test
This commit is contained in:
parent
3415a7ed6a
commit
d5363522c2
@ -30,7 +30,7 @@ class OriginChannels():
|
|||||||
state_url_req = self.fhdhr.web.session.get(state_url)
|
state_url_req = self.fhdhr.web.session.get(state_url)
|
||||||
state_url_json = state_url_req.json()
|
state_url_json = state_url_req.json()
|
||||||
for item in state_url_json["rss"]["channel"]["pagecomponent"]["component"]:
|
for item in state_url_json["rss"]["channel"]["pagecomponent"]["component"]:
|
||||||
print(item["item"]["media:content"])
|
print(item["item"]["media:content"]['sinclair:action_value'])
|
||||||
return []
|
return []
|
||||||
|
|
||||||
chan_list_url = "%s/channels/stirr?station=national" % (self.base_api_url)
|
chan_list_url = "%s/channels/stirr?station=national" % (self.base_api_url)
|
||||||
@ -88,3 +88,18 @@ class OriginChannels():
|
|||||||
return bestStream.absolute_uri
|
return bestStream.absolute_uri
|
||||||
else:
|
else:
|
||||||
return m3u8_url
|
return m3u8_url
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
{
|
||||||
|
'media:title': {
|
||||||
|
'content': 'Powered by WBMA'
|
||||||
|
},
|
||||||
|
'media:description': {
|
||||||
|
'content': 'Birmingham'
|
||||||
|
},
|
||||||
|
'media:thumbnail': [{'width': '548', 'height': '308', 'url': 'https://hummingbird-ott.s3.amazonaws.com/images/stationCards/wbma_al_birmingham_630_548x308.jpg'}, {'width': '375', 'height': '211', 'url': 'https://hummingbird-ott.s3.amazonaws.com/images/stationCards/wbma_al_birmingham_630_375x211.jpg'}],
|
||||||
|
'sinclair:action': 'storeStation',
|
||||||
|
'sinclair:logo': {'width': '119', 'height': '18', 'text': 'Powered by WBMA', 'url': ''},
|
||||||
|
'sinclair:action_value': 'abc3340', 'sinclair:ident': 'abc3340.0.AL', 'sinclair:ad_preroll': '', 'medium': 'document', 'expression': 'nonstop', 'type': 'application/json', 'url': 'https://ott-stationselection.sinclairstoryline.com/stationSelectionByState/', 'duration': '0', 'media:restriction': [{'relationship': 'allow', 'type': 'uri', 'content': ''}]}
|
||||||
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user