Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
firofame authored Jul 22, 2024
1 parent 3b1de90 commit 3d7fde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
channel_id = data['contents']['twoColumnWatchNextResults']['results']['results']['contents'][1]['videoSecondaryInfoRenderer']['owner']['videoOwnerRenderer']['title']['runs'][0]['navigationEndpoint']['browseEndpoint']['browseId']

# Construct the M3U8 URL for the channel's live stream
m3u8_url = f'https://ythls.armelin.one/channel/{channel_id}.m3u8'
m3u8_url = f'https://live.firofame.workers.dev/?@={handle}'

# Write the metadata and URL to the playlist file
f.write(f'#EXTINF:-1 tvg-logo="{image_url}" group-title="{group}", {channel_name}\n{m3u8_url}\n\n')
Expand Down

0 comments on commit 3d7fde9

Please sign in to comment.