VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hi, all,

    When pasting in Headers information, can you copy and paste AS-IS from curl converter, or do you need to do some editing (remove punctuation?) first? (and do you copy/paste the COMPLETE block of text, from "import requests" --> to last character?)

    Ex: (can this be pasted as-is?)

    Image
    [Attachment 72866 - Click to enlarge]


    Or do you need to, say, remove single quote marks (') and commas (,)?

    Ex:

    'pragma': 'no-cache',

    becomes:

    pragma: no-cache

    or does it matter?

    Thanks!

    ** EDIT **

    Just tested it, removing the single quotes (') and commas (,) worked, i pasted in:

    authority: XXXX
    accept-language: XXXX
    cache-control: XXXX
    origin: XXXX
    pragma: XXXX
    preauthorization: XXXX

    (use your actual values in place of XXXX)

    (my advice, keep playing with values to see which lines you do/don't need until you generate a key successfully...not all lines will be needed, and some lines will cause errors, so do not use those)
    Last edited by PeeJay75; 2nd Aug 2023 at 23:52. Reason: (success)
    Quote Quote  
  2. Leave it as-is. Curl-converter produces correct code that runs standalone without editing.

    If this is to be put into the pywidevine headers.py file, you should however yank the "import request" line and the last line, that makes the request to the license site. They are done elsewhere.
    Quote Quote  



Similar Threads

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