diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 9ed805d1..5a458fef 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -248,6 +248,10 @@ Favourite Photos Favourite Albums + Recently added Music videos + In progress Music videos + Unwatched Music videos + Active Clear Settings diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index c1e39b15..be3dc9a3 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -373,12 +373,12 @@ class LibrarySync(threading.Thread): self.logMsg("Creating viewid: %s in Emby database." % folderid, 1) tagid = kodi_db.createTag(foldername) # Create playlist for the video library - if mediatype != "music": + if mediatype in ['movies', 'tvshows', 'musicvideos']: utils.playlistXSP(mediatype, foldername, viewtype) - # Create the video node - if mediatype != "musicvideos": - vnodes.viewNode(totalnodes, foldername, mediatype, viewtype) - totalnodes += 1 + # Create the video node + if mediatype in ['movies', 'tvshows', 'musicvideos', 'homevideos']: + vnodes.viewNode(totalnodes, foldername, mediatype, viewtype) + totalnodes += 1 # Add view to emby database emby_db.addView(folderid, foldername, viewtype, tagid) diff --git a/resources/lib/musicutils.py b/resources/lib/musicutils.py index f388b3c3..2625cc7f 100644 --- a/resources/lib/musicutils.py +++ b/resources/lib/musicutils.py @@ -69,7 +69,7 @@ def getSongTags(file): hasEmbeddedCover = False isTemp,filename = getRealFileName(file) - logMsg( "getting song ID3 tags for " + filename,0) + logMsg( "getting song ID3 tags for " + filename) try: ###### FLAC FILES ############# diff --git a/resources/lib/videonodes.py b/resources/lib/videonodes.py index c1d42df1..bc8f1eb3 100644 --- a/resources/lib/videonodes.py +++ b/resources/lib/videonodes.py @@ -163,6 +163,13 @@ class VideoNodes(object): '8': 30255, '11': 30254 }, + 'musicvideos': + { + '1': tagname, + '2': 30256, + '4': 30257, + '6': 30258 + }, } nodes = mediatypes[mediatype]