boberle / ts-downloader

Transport Stream Video Downloader
MIT License
7 stars 1 forks source link

Can I download from this kind of website? #1

Closed beesuns closed 5 months ago

beesuns commented 5 months ago

The URL of the target TS chunks look like this:

https://dash.example.club/videos/66434f13ddcad3715b59cf24/index1.ts
https://dash.example.club/videos/66434f13ddcad3715b59cf24/index2.ts
https://dash.example.club/videos/66434f13ddcad3715b59cf24/index3.ts
https://dash.example.club/videos/66434f13ddcad3715b59cf24/index4.ts

I tried the following command using Pycharm and none of them worked.

 .\download.py -o example.mp4 https://dash.example.club/videos/66434f13ddcad3715b59cf24/index{counter}.ts
 .\download.py -o example.mp4 https://dash.example.club/videos/66434f13ddcad3715b59cf24/index({counter}).ts
 .\download.py -o example.mp4 https://dash.example.club/videos/66434f13ddcad3715b59cf24/{counter}.ts
 .\download.py -o example.mp4 https://dash.example.club/videos/66434f13ddcad3715b59cf24/({counter}).ts

Is it possible to download from this kind of websites using your script? Thanks and have a good day :)

boberle commented 5 months ago

Did you manage to make it work?

The command should be:

.\download.py -o example.mp4 https://dash.example.club/videos/66434f13ddcad3715b59cf24/index{counter}.ts

This should produced:

Reading https://dash.example.club/videos/66434f13ddcad3715b59cf24/index1.ts
Reading https://dash.example.club/videos/66434f13ddcad3715b59cf24/index2.ts
Reading https://dash.example.club/videos/66434f13ddcad3715b59cf24/index3.ts
Reading https://dash.example.club/videos/66434f13ddcad3715b59cf24/index4.ts
...