Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download videos from aftonbladet plus #1651

Open
acontreras89 opened this issue Oct 21, 2024 · 3 comments
Open

Cannot download videos from aftonbladet plus #1651

acontreras89 opened this issue Oct 21, 2024 · 3 comments

Comments

@acontreras89
Copy link

svtplay-dl versions:

  • svtplay-dl version 4.97.1

Operating system and Python version:

  • Operating system macOS Sonoma 14.4.1
  • Python version 3.12.7

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).

@acontreras89 acontreras89 changed the title Cannot download premium Cannot download videos from aftonbladet plus Oct 21, 2024
@spaam
Copy link
Owner

spaam commented Oct 21, 2024

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

@SweDennis
Copy link

SweDennis commented Oct 21, 2024

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
Copy link
Author

acontreras89 commented Oct 21, 2024

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.

This was referenced Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants