Skip to content

J-Lich/dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install prerequisites:

pip3 install Flask requests beautifulsoup4 gunicorn

supply correct headers in headers.json file (referrer and origin)

(2 separate scripts provided to encode urls)

  1. encode_url.py will encode a single url

Example:

python3 encode_url.py https://google.com/
http://127.0.0.1:8888/proxy/m3u?url=https%3A%2F%2Fgoogle.com%2F

  1. encode_playlist.py will encode an entire playlist

Example:

cat test.m3u8 #EXTM3U
#EXTINF:-1 channel-number="1" tvg-id="" tvg-name="TEST" tvg-logo="" group-title="TEST",TEST
https://google.com/

python3 encode_playlist.py test.m3u8
Successfully processed 'test.m3u8' (3 lines read).
1 URLs/URIs were modified.
Output saved to 'test_encoded.m3u8'

cat test_encoded.m3u8
#EXTM3U
#EXTINF:-1 channel-number="1" tvg-id="" tvg-name="TEST" tvg-logo="" group-title="TEST",TEST
http://127.0.0.1:8888/proxy/m3u?url=https%3A%2F%2Fgoogle.com%2F

Run app:

gunicorn --workers 4 --bind 0.0.0.0:8888 dl:dl

enjoy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages