plugins.turkuvaz: fix/partial rewrite#5374
Conversation
bastimeyer
left a comment
There was a problem hiding this comment.
for URL in $(grep '^http' t-urls.txt | cut -f 1 -d ' '); do streamlink $URL best; done;
./script/test-plugin-urls.py turkuvaz
...
http://a2tv.com.tr
This should be removed from the tests, because it doesn't redirect to an actual video.
First VOD listed on that redirected site returns an mp4 container instead of an HLS playlist. Since the plugin matches those URLs and since a fix is simple, this should be supported in addition to the live streams. The plugin metadata would also need an update.
$ streamlink -l debug 'https://www.atv.com.tr/a2tv/webtv/a2tv-video/ozelvideo/bir-zamanlar-cukurova-hafta-ici-her-gun-1630da-a2de?id=ba70abb9-b639-46a2-b972-a9210eae87e0'
[cli][debug] OS: Linux-6.3.4-1-git-x86_64-with-glibc2.37
[cli][debug] Python: 3.11.3
[cli][debug] Streamlink: 5.5.1+39.gde5430b0
[cli][debug] Dependencies:
[cli][debug] certifi: 2023.5.7
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 4.9.2
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.18.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.31.0
[cli][debug] urllib3: 2.0.2
[cli][debug] websocket-client: 1.5.2
[cli][debug] Arguments:
[cli][debug] url=https://www.atv.com.tr/a2tv/webtv/a2tv-video/ozelvideo/bir-zamanlar-cukurova-hafta-ici-her-gun-1630da-a2de?id=ba70abb9-b639-46a2-b972-a9210eae87e0
[cli][debug] --loglevel=debug
[cli][debug] --player=mpv
[cli][info] Found matching plugin turkuvaz for URL https://www.atv.com.tr/a2tv/webtv/a2tv-video/ozelvideo/bir-zamanlar-cukurova-hafta-ici-her-gun-1630da-a2de?id=ba70abb9-b639-46a2-b972-a9210eae87e0
[plugins.turkuvaz][debug] video_id=ba270abb9nb63946ia2kb972a921-0eae87e0
[plugins.turkuvaz][debug] website_id=0fe2a405-8afa-4238-b429-e5f96aec3a5c
[plugins.turkuvaz][debug] hls_url=https://atv-vod.ercdn.net/video/2023/03/ba70abb9-b639-46a2-b972-a9210eae87e0_0400.mp4
[plugins.turkuvaz][debug] secure_hls_url=https://atv-vod.ercdn.net/video/2023/03/ba70abb9-b639-46a2-b972-a9210eae87e0_0400.mp4?st=oTX3NKvGBWO0c07Jfor3nQ&e=1685973444
[utils.l10n][debug] Language code: en_US
[stream.hls_playlist][warning] Malformed HLS Playlist. Expected #EXTM3U, but got ftypiso...
error: Failed to parse playlist: Missing #EXTM3U header
Sending a HEAD request returns the correct Content-Type header.
Thanks, I'd forgotten about that.
My bad - I tested some non-video pages, but not VOD pages. :-/ I did go the route you suggested and got it working, but then I decided to go all-in, which also turned out to be very simple, by just using Added |
a87ab95 to
c0d010f
Compare
closes #5365