spaam / svtplay-dl

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

add support for dplay.dk ? #1205

Open wazerstar opened 4 years ago

wazerstar commented 4 years ago

This is an example url which goes directly to the url

//season-1-episode-8 https://www.dplay.dk/videoer/remee-og-mathilde/78326

//season-1-episode-8 https://www.dplay.dk/videoer/remee-og-mathilde/season-1-episode-8

Both links work

https://disco-api.dplay.dk/content/videos/remee-og-mathilde/season-1-episode-8

https://disco-api.dplay.dk/content/videos/remee-og-mathilde/season-1-episode-8?include=tags,images,show,primaryChannel,primaryChannel.images,contentPackages

https://disco-api.dplay.dk/content/videos/78326?decorators=viewingHistory&include=genres,images,primaryChannel,show,show.images

svtplay-dl https://www.dplay.dk/videoer/remee-og-mathilde/78326 -u username -p password --verbose

svtplay-dl https://www.dplay.dk/videoer/remee-og-mathilde/season-1-episode-8 -u username -p password --verbose

Both gives permission error, tho i noticed that it wants to retrieve info from "videos" path instead of "videoer" can I test sample where it detects dplay.dk url and changes it to videoer instead?

DEBUG [1579553407.9189677] c:\projects\svtplay-dl\lib\svtplay_dl\utils\getmedia.py/get_media: version: 2.4-2-g5466853
DEBUG [1579553407.9189677] c:\projects\svtplay-dl\lib\svtplay_dl\service\__init__.py/__init__: service: dplay
DEBUG [1579553407.9194639] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://www.dplay.dk/videoer/remee-og-mathilde/season-1-episode-8'
DEBUG [1579553407.9214478] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_new_conn: Starting new HTTPS connection (1): www.dplay.dk:443
DEBUG [1579553408.098024] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://www.dplay.dk:443 "GET /videoer/remee-og-mathilde/season-1-episode-8 HTTP/1.1" 200 None
DEBUG [1579553408.09852] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.dk/token?realm=dplaydk&deviceId=11e431c215c5bd334cecbd43148274edf3ffdbd6cd6479fe279577fbe5f52ce6&shortlived=true'
DEBUG [1579553408.100008] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_new_conn: Starting new HTTPS connection (1): disco-api.dplay.dk:443
DEBUG [1579553408.290472] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.dk:443 "GET /token?realm=dplaydk&deviceId=11e431c215c5bd334cecbd43148274edf3ffdbd6cd6479fe279577fbe5f52ce6&shortlived=true HTTP/1.1" 200 None
DEBUG [1579553408.2909687] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.dk/login'
DEBUG [1579553408.34156] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.dk:443 "POST /login HTTP/1.1" 400 124
DEBUG [1579553408.3420565] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.dk/content/videos/remee-og-mathilde/season-1-episode-8'
DEBUG [1579553408.400584] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.dk:443 "GET /content/videos/remee-og-mathilde/season-1-episode-8 HTTP/1.1" 200 None
DEBUG [1579553408.4010801] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.dk/playback/videoPlaybackInfo/78326'
DEBUG [1579553408.5925362] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.dk:443 "GET /playback/videoPlaybackInfo/78326 HTTP/1.1" 403 237
ERROR [1579553408.5930321] c:\projects\svtplay-dl\lib\svtplay_dl\utils\getmedia.py/get_one_media: No videos found. You dont have permission to watch this
Arcitec commented 4 years ago

https://github.com/spaam/svtplay-dl/blob/master/lib/svtplay_dl/service/dplay.py

This lists "dplay.dk" already. But the whole dplay support is universally broken due to the ReCaptcha protection since October 2019...

wazerstar commented 4 years ago

@VideoPlayerCode So what about adding support for cookie strings or the service called deathbycaptcha?

Arcitec commented 4 years ago

edit: Moved to https://github.com/spaam/svtplay-dl/issues/1209