I will write what actions I performed:
1) First, I copied the folder with all the contents called "pywidevine" from the WKS-KEY folder to the folder "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\
2) From the android_generic folder I copied 2 files named: device_private_key , and device_client_id_blob
3) Then I wanted to create a WVD file by running on the command line:
pywidevine create-device -k "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\pywidevine\device_private_key" -c "C:\Users\UserName\AppData\Local\Programs\ Python\Python312\Lib\site-packages\pywidevine\device_client_id_blob" -t "ANDROID" -l 3 -o "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\WVD"
4) I received the message:
"Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Scripts\pywidevine.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pywidevine.main'
5) Please helpfor which I thank you in advance.
+ Reply to Thread
Results 31 to 60 of 80
-
-
Yeah, you're doing it entirely wrong. You don't use an existing pywidevine from I dunno where, you install it fresh using pip install.
https://pypi.org/project/pywidevine/
Delete the old one from where you copied and install new.--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Bad news again, I don't know what to do ://
INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
INFO:root:https://github.com/devine-dl/pywidevine
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Scripts\pywidevine.exe\__main__.py", line 7, in <module>
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\pywidevine\main.py", line 197, in create_device
device = Device(
^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\pywidevine\device.py", line 108, in __init__
self.private_key = RSA.importKey(private_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\AppData\Local\Programs\Python\P ython312\Lib\site-packages\Crypto\PublicKey\RSA.py", line 853, in import_key
raise ValueError("RSA key format is not supported")
ValueError: RSA key format is not supported -
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Thank you for help, unfortunately, I have another problem and questions,
In your code "
WVD_FILE = "device_wvd_file.wvd" "should I give the path or just the file name? Should I change the name of this file to e.g. "google google_android_sdk_built_for_x86_v4.1.0-android_xxxxxxxx_xxxx_l3.wvd" i.e. the one that was generated? Because unfortunately I have problems again :/ thanks for answer.
Where should the .wvd file be placed? -
With a lot of help from 2nHxWW6GkN1l916N3ayz8HQoi I did some important things, but I managed to get something that is close to the final solution, i.e. I got PSSH, License URL, Manifest, link to .MPD file ,but unfortunately I get an error:
Traceback (most recent call last):
File "C:\Users\UserName\Downloads\DRM-xxxxx\DRM\CDA.py", line 141, in <module>
print(get_download_command(s))
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\\Downloads\DRM-xxxxx\DRM\CDA.py", line 124, in get_download_command
keys = get_keys(pssh, license_url, custom_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserName\\Downloads\DRM-xxxxx\DRM\CDA.py", line 81, in get_keys
license.raise_for_status()
File "C:\Users\UserName\\AppData\Local\Programs\Python\ Python312\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 406 Client Error: for url: https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=true
I am very close to the solution, but please tell me what may cause the above errors and how to fix it, thanks again!Last edited by PepeForEver; 10th Apr 2024 at 19:57.
-
-
I'm trying to use the script and I have the following information:
Code:C:\Users\grzech67>python D:\CDA\cda.py Need local CDM (in WVD format) for https://www.cda.pl/video/1670572f2/vfilm Need local CDM (in WVD format) for https://www.cda.pl/video/250188864/vfilm Need local CDM (in WVD format) for https://www.cda.pl/video/2508939fb/vfilm Need local CDM (in WVD format) for https://www.cda.pl/video/161441361/vfilm Need local CDM (in WVD format) for https://www.cda.pl/video/153780264/vfilm
-
If you named your CDM 'device.wvd' and placed it in the python code as 'device.wvd', then from the directory where you run the script you have to place the CDM.
You should have something like that :
device.wvd, cda.py in the same folder, open a cmd in this folder and run : python cda.py -
-
-
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Many thanks !!! to 2nHxWW6GkN1l916N3ayz8HQoi for his kind help!
, brilliant script that works perfectly.
I have a question, is it possible to use the website https://cdrm-project.com/ , having PSSH, license URL, headers, custom data obtaining keys without your own CDM ( Free DRM content from CDA.PL ) ? -
Yes, it is possible. But out of principle, I won't add "magical" external APIs that make the job easier for the end-user. There will be more points where stuff could break unexpectedly and also people won't even care how to dump a CDM anymore, so I won't do that. If anyone else wants to modify this script to add that, then feel free to do it.
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
MPD H264 can be obtained in the browser: Iridium browser, Microsoft Edge (Windows) / Mozilla Firefox (Linux). In other cases, the video loads from mpd webp.
Movies : https://www.cda.pl/video/18723067d0/vfilm
MPD H264 : https://vcze190.cda.pl/18723067/18723067.mpd - obtained from Microsoft edge
MPD WEBP (vp9) : https://vcze190.cda.pl/18723067vp9/18723067.mpd - obtained from Google chrome
Supposedly the same movie, but different MPD - depending on the browser or operating system.
Webp is more difficult to decrypt, connect and recreate.Last edited by Kadio; 21st Apr 2024 at 04:34.
-
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
How about this movie?
https://www.cda.pl/video/32591265d
I've tried extracting to no avail -
Open network requests. Filter for mp4. Select 720p quality. Take last request and copy the URL in a new tab. Right click save as video. It doesn't even use DRM.
Edit: I checked yt-dlp also. It works directly with that as well
Code:yt-dlp "https://www.cda.pl/video/32591265d"
Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 5th Sep 2024 at 14:58.
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Code:
https://vwaw673.cda.pl/h/b/b/24/na/20ANhamYK_FG0QpODIdbEA/33/1725609394/sd23d4893f304f266834ea3749e66d248ac3c1321f2d28547f285cc5c306fc7700.mp4
-
Thanks, but an error appears at the beginning.
Code:C:\_from www\cda>python cda.py Traceback (most recent call last): File "C:\_from www\cda\cda.py", line 5, in <module> import requests ModuleNotFoundError: No module named 'requests'
Path:
PATH=[...]c:\program files\python312\scripts\;c:\program files\python312\ [...] -
c:\cda>python cda.py https://www.cda.pl/video/170417420d
VPN error -
That script is outdated and also meant only for DRM videos. If you want a newer and maintained version use
Code:python widefrog.py "https://www.cda.pl/video/170417420d"
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
2nHxWW6GkN1l916N3ayz8HQoi I have a request for you: I have been looking for a long time for the keys to the link from https://www.cda.pl/video/1521017489/vfilm, the ones I provide are wrong and this is my favorite movie -
Code:
N_m3u8DL-RE "https://vcze180.cda.pl/15210174/15210174.mpd" --key 30323861366531373232363138353865:33633361636663373236313933353439 --save-name "Czuwaj_2017_Caly_film_PL" -M format=mp4
-
I have a link to a film from da.pl
https://www.cda.pl/video/1521017489/vfilm
From Widevine Proxy2 I downloaded the command to CDM
N_m3u8DL-RE "https://vcze180.cda.pl/15210174vp9/15210174.mpd?uid=546001648" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" -H "Accept: */*" -H "Origin: https://www.cda.pl" -H "Referer: https://www.cda.pl/video/1521017489/vfilm" --key 30323861366531373232363138353865:33633361636663373 236313933353439 --use-shaka-packager -M format=mkv
https://forum.videohelp.com/attachment.php?attachmentid=83878&stc=1&d=1733253179
https://forum.videohelp.com/attachment.php?attachmentid=83879&stc=1&d=1733253275
https://forum.videohelp.com/attachment.php?attachmentid=83880&stc=1&d=1733253326
https://forum.videohelp.com/attachment.php?attachmentid=83881&stc=1&d=1733253379
Where did I go wrong? why didn't it download ?????
Similar Threads
-
Need help downloading
By Angel_Cyclops in forum Video Streaming DownloadingReplies: 36Last Post: 19th Feb 2025, 06:00 -
Help download from cda
By xEska in forum Video Streaming DownloadingReplies: 3Last Post: 17th Feb 2024, 00:10 -
Downloading an HLS stream: ONLY in sync when downloading with ffmpeg. Possi
By royjeon215 in forum Video Streaming DownloadingReplies: 6Last Post: 21st Jan 2024, 02:56 -
Help for downloading
By talms in forum Video Streaming DownloadingReplies: 8Last Post: 27th Jan 2023, 06:04 -
Need help with downloading
By DWIChannel in forum Video Streaming DownloadingReplies: 2Last Post: 16th Jul 2020, 10:27