This commit is contained in:
deathbybandaid 2020-12-15 10:17:17 -05:00
parent e8532a1e7d
commit 1eecd65ceb

View File

@ -20,8 +20,6 @@ class OriginChannels():
urlopn = self.fhdhr.web.session.get(url) urlopn = self.fhdhr.web.session.get(url)
stirr_chan_list = urlopn.json() stirr_chan_list = urlopn.json()
print(stirr_chan_list["channel"][0])
""" """
{ {
'display-name': 'dco', 'display-name': 'dco',
@ -33,7 +31,7 @@ class OriginChannels():
""" """
channel_list = [] channel_list = []
for channel_dict in stirr_chan_list: for channel_dict in stirr_chan_list["channel"]:
try: try:
thumbnail = channel_dict["icon"]["src"].split("?")[0] thumbnail = channel_dict["icon"]["src"].split("?")[0]