Open bartdedecker opened 1 month ago
Thanks for the prompt update of the code in service/tv4play.py; the client version number needed to be changed to a higher version number (5.2.0) for the graphql server since the old one (4.0.0) is no longer supported.
yeah there is a snapshot with the fix. but it should be in a official version in an hour or two.
I guess the Docker container is not updated yet? When I run:
docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd):/data" spaam/svtplay-dl --verbose -A -S --token "My.Token.Is.Correctly.Inserted.Here..." https://www.tv4play.se/program/476364080b7f3e3922ca/badhotellet
I get the following:
DEBUG [1728320678.714152] /usr/lib/python3.12/site-packages/svtplay_dl/utils/getmedia.py/get_media: version: 4.97.1
DEBUG [1728320678.7148707] /usr/lib/python3.12/site-packages/svtplay_dl/service/init.py/init: service: tv4play
DEBUG [1728320678.7151005] /usr/lib/python3.12/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://avod-auth-alb.a2d.tv/oauth/refresh'
DEBUG [1728320678.716118] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): avod-auth-alb.a2d.tv:443
DEBUG [1728320678.8744416] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_make_request: https://avod-auth-alb.a2d.tv:443 "POST /oauth/refresh HTTP/11" 200 623
DEBUG [1728320678.8750436] /usr/lib/python3.12/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://www.tv4play.se/program/476364080b7f3e3922ca/badhotellet'
DEBUG [1728320678.8755856] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): www.tv4play.se:443
DEBUG [1728320678.955211] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_make_request: https://www.tv4play.se:443 "GET /program/476364080b7f3e3922ca/badhotellet HTTP/11" 200 None
DEBUG [1728320678.9676654] /usr/lib/python3.12/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://client-gateway.tv4.a2d.tv/graphql'
DEBUG [1728320678.9684474] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): client-gateway.tv4.a2d.tv:443
DEBUG [1728320679.1412961] /usr/lib/python3.12/site-packages/urllib3/connectionpool.py/_make_request: https://client-gateway.tv4.a2d.tv:443 "POST /graphql HTTP/11" 403 70
Traceback (most recent call last):
File "/usr/bin/svtplay-dl", line 8, in
KeyError: 'data'
Any chance of a fix?
great that there is a fix but will there a new version to download any time soon? the issue says -A argument does not work, that means no pages with series work, since -A is mandatory. :(
svtplay-dl versions:
Run
svtplay-dl --version
svtplay-dl 4.97.1Operating system and Python version:
Windows 10 python 3.8.0
What is the issue:
TV4play has changed the json structure. Key "data" no longer exists. svtplay-dl -A --get-only-episode-url URL cannot find the urls
Always include the URL you want to download and all switches you are using. You should also add
--verbose
because it makes it much easier for use to find the issue :)