mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
fix videonodes and playlists
This commit is contained in:
parent
3421bf88e1
commit
58533e1c44
4 changed files with 17 additions and 6 deletions
|
@ -248,6 +248,10 @@
|
|||
<string id="30254">Favourite Photos</string>
|
||||
<string id="30255">Favourite Albums</string>
|
||||
|
||||
<string id="30256">Recently added Music videos</string>
|
||||
<string id="30257">In progress Music videos</string>
|
||||
<string id="30258">Unwatched Music videos</string>
|
||||
|
||||
<!-- Default views -->
|
||||
<string id="30300">Active</string>
|
||||
<string id="30301">Clear Settings</string>
|
||||
|
|
|
@ -373,10 +373,10 @@ 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":
|
||||
if mediatype in ['movies', 'tvshows', 'musicvideos', 'homevideos']:
|
||||
vnodes.viewNode(totalnodes, foldername, mediatype, viewtype)
|
||||
totalnodes += 1
|
||||
# Add view to emby database
|
||||
|
|
|
@ -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 #############
|
||||
|
|
|
@ -163,6 +163,13 @@ class VideoNodes(object):
|
|||
'8': 30255,
|
||||
'11': 30254
|
||||
},
|
||||
'musicvideos':
|
||||
{
|
||||
'1': tagname,
|
||||
'2': 30256,
|
||||
'4': 30257,
|
||||
'6': 30258
|
||||
},
|
||||
}
|
||||
|
||||
nodes = mediatypes[mediatype]
|
||||
|
|
Loading…
Reference in a new issue