Skip to content

Commit c71ae58

Browse files
committed
Fix Invalid Json Response
Resolves chrippa#372
1 parent 8c34089 commit c71ae58

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/livestreamer/plugins/filmon.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,9 @@ def _get_stream(self, channel_id, quality):
7777

7878
if not json:
7979
raise NoStreamsError(self.url)
80-
elif not isinstance(json, list):
81-
raise PluginError("Invalid JSON response")
8280

83-
info = json[0]
84-
rtmp = info.get("serverURL")
85-
playpath = info.get("streamName")
81+
rtmp = json.get("serverURL")
82+
playpath = json.get("streamName")
8683
if not (rtmp and playpath):
8784
raise NoStreamsError(self.url)
8885

0 commit comments

Comments
 (0)