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

View file

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