1.1.72 - Fix typo

This commit is contained in:
angelblue05 2016-01-08 20:13:52 -06:00
parent a577f9ef98
commit 77dd006f21

View file

@ -36,7 +36,7 @@ class PlayUtils():
item = self.item
playurl = None
if item['MediaSources'][0]['Protocol'] == "Http":
if item.get('MediaSources') and item['MediaSources'][0]['Protocol'] == "Http":
# Only play as http
self.logMsg("File protocol is http.", 1)
playurl = self.httpPlay()
@ -74,7 +74,7 @@ class PlayUtils():
itemid = item['Id']
mediatype = item['MediaType']
if type == "Audio":
if mediatype == "Audio":
playurl = "%s/emby/Audio/%s/stream" % (server, itemid)
else:
playurl = "%s/emby/Videos/%s/stream?static=true" % (server, itemid)