another fix for the doubled episodes problem

This commit is contained in:
Marcel van der Veldt 2015-03-30 00:04:11 +02:00
parent abf2fd2c5a
commit debac27631
1 changed files with 5 additions and 5 deletions

View File

@ -942,11 +942,11 @@ class WriteKodiDB():
finally:
cursor.close()
#rename the old strmfile to prevent Kodi from scanning it again
if oldFileName.endswith(".strm"):
if xbmcvfs.exists(oldFileName):
oldFileName_renamed = oldFileName.replace(".strm",".emby")
xbmcvfs.rename(oldFileName,oldFileName_renamed)
#rename the old strmfile to prevent Kodi from scanning it again
if oldFileName.endswith(".strm"):
if xbmcvfs.exists(oldFileName):
oldFileName_renamed = oldFileName.replace(".strm",".emby")
xbmcvfs.rename(oldFileName,oldFileName_renamed)
def AddActorsToMedia(self, KodiItem, people, mediatype):