diff --git a/origin/origin_channels.py b/origin/origin_channels.py index 868f365..9193273 100644 --- a/origin/origin_channels.py +++ b/origin/origin_channels.py @@ -30,7 +30,7 @@ class OriginChannels(): state_url_req = self.fhdhr.web.session.get(state_url) state_url_json = state_url_req.json() for item in state_url_json["rss"]["channel"]["pagecomponent"]["component"]: - print(item["item"]["media:content"]) + print(item["item"]["media:content"]['sinclair:action_value']) return [] chan_list_url = "%s/channels/stirr?station=national" % (self.base_api_url) @@ -88,3 +88,18 @@ class OriginChannels(): return bestStream.absolute_uri else: 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': ''}]} +"""