Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeadee authored Dec 25, 2024
1 parent c5797f9 commit 71ed1a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def toffupdate():
if "streamer" in channel['plain_hls_url']:
data['url'] = channel['plain_hls_url_for_url_type']
all_data.append(data)
fulldata = {}
fulldata['info'] = all_data
fulldata = {}
fulldata['channels_found'] = len(all_data)
fulldata['channels'] = all_data
with open("toffee_channel_data.json","w") as w:
json.dump(fulldata,w,indent=2)
print(f"\n\n\t\t\t\t\t\tToffee Data loaded! version {version}")
Expand Down

0 comments on commit 71ed1a5

Please sign in to comment.