test
This commit is contained in:
parent
2d5ca0d90d
commit
6234bc25bc
@ -1,4 +1,5 @@
|
||||
import m3u8
|
||||
import json
|
||||
|
||||
|
||||
class OriginChannels():
|
||||
@ -50,7 +51,12 @@ class OriginChannels():
|
||||
|
||||
chan_item_url = "%s/status/%s" % (self.base_api_url, str(channel_dict["id"]))
|
||||
chan_item_urlopn = self.fhdhr.web.session.get(chan_item_url)
|
||||
try:
|
||||
stirr_chan_item = chan_item_urlopn.json()
|
||||
except json.JSONDecodeError:
|
||||
stirr_chan_item = None
|
||||
|
||||
if stirr_chan_item:
|
||||
|
||||
channel_ids.append(str(channel_dict["id"]))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user