Skip to content

Commit

Permalink
stream.hds: Handle pvtoken without extra params.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrippa committed Jun 15, 2014
1 parent 3de7c05 commit d3bd135
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/livestreamer/stream/hds.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,12 @@ def _pv_params(cls, session, pvswf, pv):
http://stream-recorder.com/forum/showpost.php?p=43761&postcount=13
"""

(data, hdntl) = pv.split(";")
try:
data, hdntl = pv.split(";")
except ValueError:
data = pv
hdntl = ""

cache = Cache(filename="stream.json")
key = "akamaihd-player:" + pvswf
cached = cache.get(key)
Expand Down

0 comments on commit d3bd135

Please sign in to comment.