mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Adding additional logging
During playlist creation
This commit is contained in:
parent
b54f4d54e1
commit
823c5f28b1
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Playlist():
|
||||||
emby_db = embydb.Embydb_Functions(embycursor)
|
emby_db = embydb.Embydb_Functions(embycursor)
|
||||||
|
|
||||||
self.logMsg("---*** PLAY ALL ***---", 1)
|
self.logMsg("---*** PLAY ALL ***---", 1)
|
||||||
self.logMsg("Items: %s" % itemids)
|
self.logMsg("Items: %s and start at: %s" % (itemids, startat))
|
||||||
|
|
||||||
player = xbmc.Player()
|
player = xbmc.Player()
|
||||||
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
|
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
|
||||||
|
@ -62,6 +62,7 @@ class Playlist():
|
||||||
mediatype = embydb_item[4]
|
mediatype = embydb_item[4]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# Item is not found in our database, add item manually
|
# Item is not found in our database, add item manually
|
||||||
|
self.logMsg("Item was not found in the database, manually adding item.", 1)
|
||||||
item = self.emby.getItem(itemid)
|
item = self.emby.getItem(itemid)
|
||||||
self.addtoPlaylist_xbmc(playlist, item)
|
self.addtoPlaylist_xbmc(playlist, item)
|
||||||
else:
|
else:
|
||||||
|
@ -78,6 +79,7 @@ class Playlist():
|
||||||
# Seek to the starting position
|
# Seek to the starting position
|
||||||
seektime = startat / 10000000.0
|
seektime = startat / 10000000.0
|
||||||
player.seekTime(seektime)
|
player.seekTime(seektime)
|
||||||
|
self.logMsg("Seeking to: %s" % seektime, 1)
|
||||||
|
|
||||||
self.verifyPlaylist()
|
self.verifyPlaylist()
|
||||||
embycursor.close()
|
embycursor.close()
|
||||||
|
|
Loading…
Reference in a new issue