1.1.72 - Fix typo
This commit is contained in:
parent
a577f9ef98
commit
77dd006f21
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class PlayUtils():
|
||||||
item = self.item
|
item = self.item
|
||||||
playurl = None
|
playurl = None
|
||||||
|
|
||||||
if item['MediaSources'][0]['Protocol'] == "Http":
|
if item.get('MediaSources') and item['MediaSources'][0]['Protocol'] == "Http":
|
||||||
# Only play as http
|
# Only play as http
|
||||||
self.logMsg("File protocol is http.", 1)
|
self.logMsg("File protocol is http.", 1)
|
||||||
playurl = self.httpPlay()
|
playurl = self.httpPlay()
|
||||||
|
@ -74,7 +74,7 @@ class PlayUtils():
|
||||||
itemid = item['Id']
|
itemid = item['Id']
|
||||||
mediatype = item['MediaType']
|
mediatype = item['MediaType']
|
||||||
|
|
||||||
if type == "Audio":
|
if mediatype == "Audio":
|
||||||
playurl = "%s/emby/Audio/%s/stream" % (server, itemid)
|
playurl = "%s/emby/Audio/%s/stream" % (server, itemid)
|
||||||
else:
|
else:
|
||||||
playurl = "%s/emby/Videos/%s/stream?static=true" % (server, itemid)
|
playurl = "%s/emby/Videos/%s/stream?static=true" % (server, itemid)
|
||||||
|
|
Loading…
Reference in a new issue