From debac2763190a63e4abc15f7ef9aad431961900d Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 30 Mar 2015 00:04:11 +0200 Subject: [PATCH] another fix for the doubled episodes problem --- resources/lib/WriteKodiDB.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index 4c4bd22d..69a8ee07 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -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):