spaam / svtplay-dl

Small command-line program to download videos from some streaming sites.
https://svtplay-dl.se
MIT License
730 stars 123 forks source link

Cannot download videos from aftonbladet plus #1651

Open acontreras89 opened 1 month ago

acontreras89 commented 1 month ago

svtplay-dl versions:

Operating system and Python version:

What is the issue:

Videos from tv.aftonbladet.se that are accessible only under the "plus" subscription (like this one) are reported as non-existing, even when user and password are provided.

$ svtplay-dl -v -u $AFTONBLADET_USR -p $AFTONBLADET_PWD https://tv.aftonbladet.se/video/375826/allt-infor-hammarby-aik
DEBUG [1729525983.988502] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/svtplay_dl/utils/getmedia.py/get_media: version: 4.97.1
DEBUG [1729525983.9886541] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/svtplay_dl/service/__init__.py/__init__: service: aftonbladettv
DEBUG [1729525983.988682] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://tv.aftonbladet.se/video/375826/allt-infor-hammarby-aik'
DEBUG [1729525983.992975] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): tv.aftonbladet.se:443
DEBUG [1729525984.355102] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py/_make_request: https://tv.aftonbladet.se:443 "GET /video/375826/allt-infor-hammarby-aik HTTP/11" 200 None
DEBUG [1729525984.382688] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://amd-ab.akamaized.net/ab/tokenSecured/encrypted-plus/2024/10/6712449b1108500008e0581c/,480_270_426,640_360_622,960_540_1418,1280_720_2742,1920_1080_5542,/master.m3u8'
DEBUG [1729525984.3853881] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): amd-ab.akamaized.net:443
DEBUG [1729525984.707113] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py/_make_request: https://amd-ab.akamaized.net:443 "GET /ab/tokenSecured/encrypted-plus/2024/10/6712449b1108500008e0581c/,480_270_426,640_360_622,960_540_1418,1280_720_2742,1920_1080_5542,/master.m3u8 HTTP/11" 401 619
ERROR [1729525984.708478] /opt/homebrew/Cellar/svtplay-dl/4.97.1/libexec/lib/python3.12/site-packages/svtplay_dl/utils/getmedia.py/get_one_media: No videos found.

Note that at the end of the second to last line the received status code is 401 (unauthorized).

spaam commented 1 month ago

i dont have access to this soo maybe someone will fix it sometime.

SweDennis commented 1 month ago

Just some input, which doesn't help anyone ... Short answer, it doesn't work.

Tried it ever which way I could think of, tried "a competitor" to svtplay-dl, but get a 401 error either way, so I dare say it's not a "bug" or an "oversight" from svtplay-dl.

What I Haven't tried is if there's an IP-block in place, I'm always on VPN, so that Could be an issue, feel free to play with that. Last comment is that I've had similar issues with Aftonbladet in the past, some clips just refuse to work, and after I got one too many I gave up on them, not worth my time. They're as bad as pluto.tv, if not worse, at times, it's like rolling a dice, place your bet, some clips work and some won't no matter what you do, and in this case, the master.m3ua file gives the 401 error.

It's almost as error-prone, as tv4play has been at times, one can get errors with a vpn, but reload enough times, and then it works. Just thinking out loud here, but I'd guess that aftonbladet has multiple servers that are not all configured equal, or their CDN isn't.

Quick question to OP, can you download Any clips from Aftonbladet? Have you tried something else than this particular one?

Regards, /Dennis

acontreras89 commented 1 month ago

maybe someone will fix it sometime.

@spaam I'd be willing to give it a try if you point me in the right direction

Quick question to OP, can you download Any clips from Aftonbladet? Have you tried something else than this particular one?

@SweDennis yup, I'm able to download any public videos, only the ones behind the subscription are failing.