mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
another attempt to delete the tvshow.nfo
This commit is contained in:
parent
1388eda326
commit
a59ef9aea0
1 changed files with 3 additions and 4 deletions
|
@ -337,10 +337,9 @@ class WriteKodiDB():
|
|||
docleanup = self.setKodiFilename(KodiItem["tvshowid"], KodiItem["file"], playurl, "tvshow")
|
||||
|
||||
#if the path has been set directly in the DB, cleanup the locally created nfo file to import the tvshow into the Kodi DB to prevent Kodi from scanning it again.
|
||||
if docleanup:
|
||||
nfoPath = os.path.join(tvLibrary,MBitem["Id"],"tvshow.nfo")
|
||||
print "about to delete file--> " + nfoPath
|
||||
os.remove(nfoPath)
|
||||
if xbmcvfs.exists(nfoPath):
|
||||
xbmcvfs.remove(nfoPath)
|
||||
|
||||
#update/check all artwork
|
||||
changes |= self.updateArtWork(KodiItem,MBitem)
|
||||
|
|
Loading…
Reference in a new issue