Add force refresh playlist

To correct missing tag bug.
This commit is contained in:
angelblue05 2015-12-26 03:42:13 -06:00
parent 7b3aae2d83
commit a5e9fb1698
3 changed files with 46 additions and 9 deletions

View file

@ -59,7 +59,8 @@ class Main:
'channelsfolder': entrypoint.BrowseChannels,
'nextup': entrypoint.getNextUpEpisodes,
'inprogressepisodes': entrypoint.getInProgressEpisodes,
'recentepisodes': entrypoint.getRecentEpisodes
'recentepisodes': entrypoint.getRecentEpisodes,
'refreshplaylist': entrypoint.refreshPlaylist
}
if modes.get(mode):
@ -87,10 +88,12 @@ class Main:
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')
elif mode in ("manualsync", "repair"):
import librarysync
lib = librarysync.LibrarySync()
if mode == "manualsync":
librarysync.LibrarySync().fullSync(manualrun=True)
lib.fullSync(manualrun=True)
else:
librarysync.LibrarySync().fullSync(repair=True)
lib.fullSync(repair=True)
elif mode == "texturecache":
import artwork
artwork.Artwork().FullTextureCacheSync()