VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    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
    Last edited by Doremon; 16th Aug 2024 at 08:04.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    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 ?
    Quote Quote  
  4. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    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.
    Quote Quote  
  5. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    Here is the next automated file to go towards individual contents ,


    [/CODE]
    Last edited by Doremon; 3rd Aug 2024 at 08:31.
    Quote Quote  
  6. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    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*]
    Quote Quote  
  7. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    }



    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>(.*)</cencssh>', req.text).group(1)
    except Exception as e:
    print("Failed getting the PSSH:\n", e)
    sys.exit(1)

    # Get License URL
    try:
    l
    Last edited by Doremon; 16th Aug 2024 at 08:06.
    Quote Quote  
  8. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    @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 ?
    Quote Quote  
  9. 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?
    Quote Quote  
  10. Member
    Join Date
    Jul 2024
    Location
    Indonesia
    Search Comp PM
    The header is okay now
    Last edited by Doremon; 16th Aug 2024 at 08:06.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!