mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +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="30254">Favourite Photos</string>
|
||||||
<string id="30255">Favourite Albums</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 -->
|
<!-- Default views -->
|
||||||
<string id="30300">Active</string>
|
<string id="30300">Active</string>
|
||||||
<string id="30301">Clear Settings</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)
|
self.logMsg("Creating viewid: %s in Emby database." % folderid, 1)
|
||||||
tagid = kodi_db.createTag(foldername)
|
tagid = kodi_db.createTag(foldername)
|
||||||
# Create playlist for the video library
|
# Create playlist for the video library
|
||||||
if mediatype != "music":
|
if mediatype in ['movies', 'tvshows', 'musicvideos']:
|
||||||
utils.playlistXSP(mediatype, foldername, viewtype)
|
utils.playlistXSP(mediatype, foldername, viewtype)
|
||||||
# Create the video node
|
# Create the video node
|
||||||
if mediatype != "musicvideos":
|
if mediatype in ['movies', 'tvshows', 'musicvideos', 'homevideos']:
|
||||||
vnodes.viewNode(totalnodes, foldername, mediatype, viewtype)
|
vnodes.viewNode(totalnodes, foldername, mediatype, viewtype)
|
||||||
totalnodes += 1
|
totalnodes += 1
|
||||||
# Add view to emby database
|
# Add view to emby database
|
||||||
|
|
|
@ -69,7 +69,7 @@ def getSongTags(file):
|
||||||
hasEmbeddedCover = False
|
hasEmbeddedCover = False
|
||||||
|
|
||||||
isTemp,filename = getRealFileName(file)
|
isTemp,filename = getRealFileName(file)
|
||||||
logMsg( "getting song ID3 tags for " + filename,0)
|
logMsg( "getting song ID3 tags for " + filename)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
###### FLAC FILES #############
|
###### FLAC FILES #############
|
||||||
|
|
|
@ -163,6 +163,13 @@ class VideoNodes(object):
|
||||||
'8': 30255,
|
'8': 30255,
|
||||||
'11': 30254
|
'11': 30254
|
||||||
},
|
},
|
||||||
|
'musicvideos':
|
||||||
|
{
|
||||||
|
'1': tagname,
|
||||||
|
'2': 30256,
|
||||||
|
'4': 30257,
|
||||||
|
'6': 30258
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
nodes = mediatypes[mediatype]
|
nodes = mediatypes[mediatype]
|
||||||
|
|
Loading…
Reference in a new issue