mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix direct play theme
This commit is contained in:
parent
15d04a5902
commit
6a1b574631
1 changed files with 5 additions and 7 deletions
|
@ -482,11 +482,10 @@ def getThemeMedia():
|
||||||
|
|
||||||
# May be more than one theme
|
# May be more than one theme
|
||||||
for theme in result['Items']:
|
for theme in result['Items']:
|
||||||
putils = playutils.PlayUtils(theme)
|
|
||||||
if playback == "DirectPlay":
|
if playback == "DirectPlay":
|
||||||
playurl = putils.directPlay()
|
playurl = api.API(theme).get_file_path()
|
||||||
else:
|
else:
|
||||||
playurl = putils.directStream()
|
playurl = playutils.PlayUtils(theme).directStream()
|
||||||
pathstowrite += ('<file>%s</file>' % playurl.encode('utf-8'))
|
pathstowrite += ('<file>%s</file>' % playurl.encode('utf-8'))
|
||||||
|
|
||||||
nfo_file.write(
|
nfo_file.write(
|
||||||
|
@ -530,11 +529,10 @@ def getThemeMedia():
|
||||||
pathstowrite = ""
|
pathstowrite = ""
|
||||||
# May be more than one theme
|
# May be more than one theme
|
||||||
for theme in result['Items']:
|
for theme in result['Items']:
|
||||||
putils = playutils.PlayUtils(theme)
|
|
||||||
if playback == "DirectPlay":
|
if playback == "DirectPlay":
|
||||||
playurl = putils.directPlay()
|
playurl = api.API(theme).get_file_path()
|
||||||
else:
|
else:
|
||||||
playurl = putils.directStream()
|
playurl = playutils.PlayUtils(theme).directStream()
|
||||||
pathstowrite += ('<file>%s</file>' % playurl.encode('utf-8'))
|
pathstowrite += ('<file>%s</file>' % playurl.encode('utf-8'))
|
||||||
|
|
||||||
nfo_file.write(
|
nfo_file.write(
|
||||||
|
|
Loading…
Reference in a new issue