spaam / svtplay-dl

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

Dplay.se - Now need login to download #1234

Open Sopor opened 4 years ago

Sopor commented 4 years ago

It seems that Dplay.se now force you to login to download videos and you need to logout from your web browser or else it won't work.

Anyone that can confirm this?

ecsjjgg commented 4 years ago

Yes I can confirm this...

What I didn't know was that you could make it work by logging out of your web browser.... I will try that...

Pirrevirr commented 4 years ago

Yes I can also confirm this, but I can't get it to work at all by logging out from my web browser. I've tried everything from:

Staying logged on and svtplay-dl [url] Staying logged on and svtplay-dl -u login -p password [url] Logging out from web browser and svtplay-dl [url] Logging out from web browser and svtplay-dl -u login -p password [url]

Every option gives me: "ERROR: No videos found. You dont have permission to watch this".

Which of these options are you suggesting and what am I then doing wrong?

Thank you in advance

Bengt-H commented 4 years ago

I believe they also have added a captcha (a puzzle you have to solve when logging in) which gives this warning and error: WARNING: Wrong username/password. no support for recaptcha. ERROR: No videos found. You dont have permission to watch this

thomassandstrom commented 4 years ago

svtplay-dl versions:

svtplay-dl 2.4-2-g5466853

FFmpeg version:

ffmpeg version git-2020-05-04-5767a2e Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9.3.1 (GCC) 20200328

Operating system:

Windows 10, ver.1909

What is the issue:

I get "ERROR: No videos found. You dont have permission to watch this" when trying to download from dplay.se (https://www.dplay.se/program/helt-perfekt), no matter if I was logged in or logged out on the web.

svtplay-dl --config dplay.yaml --verbose https://www.dplay.se/program/helt-perfekt

DEBUG [1590182500.696662] c:\projects\svtplay-dl\lib\svtplay_dl\utils\getmedia.py/get_media: version: 2.4-2-g5466853 DEBUG [1590182500.7016613] c:\projects\svtplay-dl\lib\svtplay_dl\service__init.py/init__: service: dplay DEBUG [1590182500.7016613] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://www.dplay.se/program/helt-perfekt' DEBUG [1590182500.7056632] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_new_conn: Starting new HTTPS connection (1): www.dplay.se:443 DEBUG [1590182501.1126633] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://www.dplay.se:443 "GET /program/helt-perfekt HTTP/1.1" 200 None DEBUG [1590182501.115664] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/token?realm=dplayse&deviceId=c89ecb3790e4c60419f41b6305b403baf292613fdf151c79c3f49b55640dc535&shortlived=true' DEBUG [1590182501.1206636] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_new_conn: Starting new HTTPS connection (1): disco-api.dplay.se:443 DEBUG [1590182501.3176634] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "GET /token?realm=dplayse&deviceId=c89ecb3790e4c60419f41b6305b403baf292613fdf151c79c3f49b55640dc535&shortlived=true HTTP/1.1" 200 None DEBUG [1590182501.319662] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/login' DEBUG [1590182501.3796632] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "POST /login HTTP/1.1" 400 124 DEBUG [1590182501.3806648] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/content/shows/helt-perfekt' DEBUG [1590182501.4356637] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "GET /content/shows/helt-perfekt HTTP/1.1" 200 None DEBUG [1590182501.4366653] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/content/videos?include=primaryChannel,show&filter[videoType]=EPISODE&filter[show.id]=6479&page[size]=100&sort=seasonNumber,episodeNumber,-earliestPlayableStart' DEBUG [1590182501.510663] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "GET /content/videos?include=primaryChannel,show&filter%5BvideoType%5D=EPISODE&filter%5Bshow.id%5D=6479&page%5Bsize%5D=100&sort=seasonNumber,episodeNumber,-earliestPlayableStart HTTP/1.1" 200 None DEBUG [1590182501.5466623] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/content/videos/helt-perfekt/swingers' DEBUG [1590182501.6006632] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "GET /content/videos/helt-perfekt/swingers HTTP/1.1" 200 None DEBUG [1590182501.602663] c:\projects\svtplay-dl\lib\svtplay_dl\utils\http.py/request: HTTP getting 'https://disco-api.dplay.se/playback/videoPlaybackInfo/108365' DEBUG [1590182501.6596622] C:\Python35\lib\site-packages\urllib3\connectionpool.py/_make_request: https://disco-api.dplay.se:443 "GET /playback/videoPlaybackInfo/108365 HTTP/1.1" 403 214 ERROR [1590182501.660663] c:\projects\svtplay-dl\lib\svtplay_dl\utils\getmedia.py/get_one_media: No videos found. You dont have permission to watch this

I have neither c:\python35 och c:\project on my computer.

kjetilpp commented 4 years ago

Any updates :) ?

thomassandstrom commented 4 years ago

Any updates :) ?

I switched to youtube-dl instead. It works if you copy your cookie-file.

kjetilpp commented 4 years ago

Nice!

How to get the episode url?

Any updates :) ?

I switched to youtube-dl instead. It works if you copy your cookie-file.

thomassandstrom commented 4 years ago

Nice!

How to get the episode url?

Any updates :) ?

I switched to youtube-dl instead. It works if you copy your cookie-file.

For getting the episode url's, I use svtplay-dl with the options for getting all episodes, only get the episodes url, username and password.

To get the show list for "Aldrig vuxen" at the adress https://www.dplay.se/program/aldrig-vuxen, I use the following line: svtplay-dl -u USERNAME -p PASSWORD -A --get-only-episode-url https://www.dplay.se/program/aldrig-vuxen

It results in a list like this : INFO: Episode 1 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-1 INFO: Episode 2 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-2 INFO: Episode 3 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-3 INFO: Episode 4 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-4 INFO: Episode 5 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-5 INFO: Episode 6 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-6 INFO: Episode 7 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-7 INFO: Episode 8 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-8 INFO: Episode 9 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-9 INFO: Episode 10 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-10 INFO: Episode 11 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-11 INFO: Episode 12 of 12 INFO: Url: https://www.dplay.se/videos/aldrig-vuxen/avsnitt-12

This list is easy to copy to Notepad and edit so you just have the url's. https://www.dplay.se/videos/aldrig-vuxen/avsnitt-1 https://www.dplay.se/videos/aldrig-vuxen/avsnitt-2 https://www.dplay.se/videos/aldrig-vuxen/avsnitt-3 I then use this list for batch downloading episodes during the night.