This is a script of a site which was working fine although the script didnot donwload some missing videos , when i changed my device i couldnot replace the necessary headers and device related information in a proper place also there is a integrity token which i donot know from where to replace , anyone , who can guide me through this ?
Code:import argparse import base64 import json import os import re import sys from urllib.parse import urlparse import requests from pywidevine.pssh import PSSH from pywidevine.device import Device from pywidevine.cdm import Cdm
+ Reply to Thread
Results 1 to 10 of 10
-
Last edited by Doremon; 16th Aug 2024 at 08:04.
-
Kundan, you should at least put your code into code tags, if you expect people going to help you. This way it is a real mess...
Anyway, it seems your JWT expired last saturday. If these are actually the headers you are using, that is probably the reason why it's not working anymore. -
I am a newbie here , donot know how to do a post here
Yes you got it right , but this one is the old script . I had created a new .wvd file and replaced necessary headers and device information from a new device still while running the script it says not subscriptable , i donot understand the integrity token part where do i replace that one from i mean where do i find that and replace it ?
Shall i post the new script here and let me know how do i post perfectly here ? -
Here is the new one , what do i replace in the integrity token part ?
Code:import argparse import base64 import json import os import re import sys from urllib.parse import urlparse import requests from pywidevine.pssh import PSSH from pywidevine.device import Device from pywidevine.cdm import Cdm
Last edited by Doremon; 3rd Aug 2024 at 08:32.
-
Here is the next automated file to go towards individual contents ,
[/CODE]Last edited by Doremon; 3rd Aug 2024 at 08:31.
-
Add the code between code tags
[ CODE] your code [ /CODE] remove the first empty space after the opened bracket (in both cases)--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
}
try:
req = requests.get(url, headers=headerss)
resp = req.json()
mpd = resp['dash']['manifest']
except Exception as e:
print("Failed getting the MPD:\n", e)
sys.exit(1)
print("mpd:",mpd)
# Get PSSH
try:
req = requests.get(mpd)
input_pssh = re.search('<cencssh>(.*)</cenc
ssh>', req.text).group(1)
except Exception as e:
print("Failed getting the PSSH:\n", e)
sys.exit(1)
# Get License URL
try:
lLast edited by Doremon; 16th Aug 2024 at 08:06.
-
@Obo , I have replaced the new headers , please have a look on the integrity token part down the codes , where do i find it to replace that one
comparing to the old script that was working ? -
I have no idea; the script looks quite sane, and bearer token seems to be valid.
Possible pitfalls:
- as seemingly Vdo is inclined: your wvd file is from a real device and not revoked?
- the regex for extracting the PSSH might fetch a PSSH for a system different from widevine, as it is quite broad. Did you make sure that you use a PSSH for widevine? -
The header is okay now
Last edited by Doremon; 16th Aug 2024 at 08:06.
Similar Threads
-
m3u8 with token
By piwi1 in forum Video Streaming DownloadingReplies: 5Last Post: 24th Mar 2024, 03:24 -
Site with Token, Device id and Widevinebody: I'm doing something wrong
By sussano32 in forum Video Streaming DownloadingReplies: 4Last Post: 20th Mar 2024, 20:30 -
How to get THE KEY from this TOKEN
By pericoplaner in forum Video Streaming DownloadingReplies: 1Last Post: 30th Nov 2023, 18:49 -
Request help 'headers' has no attribute 'token'
By houjiangen in forum Video Streaming DownloadingReplies: 3Last Post: 2nd Apr 2023, 08:21 -
Need help to get stream with token
By bayd in forum Video Streaming DownloadingReplies: 2Last Post: 17th Dec 2019, 13:42