VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Hello there. I'm currently trying to download some children movies with the correct dubbed language since it's impossible to find copies of it elsewhere than the streaming sites that have them.

    I did manage to decrypt and download perfectly from the Viaplay.no site so thought I would try the same from play.tv2.no.

    I did the same steps, and the widewine link I fetched was
    Code:
    https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=false&assetId=vod-1935382
    this was 1 out of 3 similiar ones, but only this had values in it's payload.
    I have tried all 5 on tha tlist to be safe, without luck.
    Image
    [Attachment 80761 - Click to enlarge]


    To get the PSSH, the Init data for this one was really long, so I followed a guide of to convert it and it should turn out to be
    Code:
    AAAAWnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADoIARIQgsfVQe3+ODSj2/prLl4SxCIkZXlKaGMzTmxkRWxrSWpvaWRtOWtMVEU1TXpVek9ESWlmUT09
    This was the full code before converting:
    Code:
    AAADSHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAygoAwAAAQABAB4DPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBRAGQAWABIAGcAdgA3AHQATgBEAGkAagAyAC8AcAByAEwAbAA0AFMAeABBAD0APQA8AC8ASwBJAEQAPgA8AEwAQQBfAFUAUgBMAD4AaAB0AHQAcABzADoALwAvAGwAaQBjAC4AZAByAG0AdABvAGQAYQB5AC4AYwBvAG0ALwBsAGkAYwBlAG4AcwBlAC0AcAByAG8AeAB5AC0AaABlAGEAZABlAHIAYQB1AHQAaAAvAGQAcgBtAHQAbwBkAGEAeQAvAFIAaQBnAGgAdABzAE0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAEEAXwBVAFIATAA+ADwATABVAEkAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBwAGwAYQB5AHIAZQBhAGQAeQAtAHUAaQAuAGUAeABhAG0AcABsAGUALgBjAG8AbQA8AC8ATABVAEkAXwBVAFIATAA+ADwAQwBIAEUAQwBLAFMAVQBNAD4AaQBIAFMAYwBZAE8AZwAwAE4AUQAwAD0APAAvAEMASABFAEMASwBTAFUATQA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4AAAAAWnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADoIARIQgsfVQe3+ODSj2/prLl4SxCIkZXlKaGMzTmxkRWxrSWpvaWRtOWtMVEU1TXpVek9ESWlmUT09
    The error I'm getting when trying to request codes in getwvkeys is:
    Code:
    {"code":400,"error":true,"message":"Failed to get license: 412 "}
    I have not touched Headers, maybe that's something I need to do?

    Since this is a pay site I guess you can't test it for me, but maybe I can get some help to se if I did everything right with the conversion etc.
    Or maybe it's as simple as the key can't be obtained?

    All help appreciated. Thanks.
    Quote Quote  
  2. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    For lic.drmtoday.com you have to use x-dt-auth-token, you may have to get a fresh token for each request. Try blocking license request.
    You also have to turn True specConform in the license url.
    Here it would be :
    Code:
    https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=true&assetId=vod-1935382
    Quote Quote  
  3. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    You can send video url, I have made a script working for tv2.no.
    Ex :
    HTML Code:
    url: https://play.tv2.no/film/suicide-squad-1727510.html?play=true
    N_m3u8DL-RE "https://stream-od.akamaized.net/usp/621a6ff3-dc15-43d7-9f7c-f631a2dbd2d2/mp4/621a6ff3_dc15_43d7_9f7c_f631a2dbd2d2(1727198_ISMUSP)_v2.ism/621a6ff3_dc15_43d7_9f7c_f631a2dbd2d2(1727198_ISMUSP)_v2.mpd" --save-name "suicide-squad" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 953766177df3304dac261c1427c1e7c5:74f46f7fe56bdf1be86103b66c81b952
    Quote Quote  
  4. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Based on assetId=vod-1935382 I managed to get the link of the movie you want : https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true

    Here is the key :
    Code:
    82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    HTML Code:
    url: https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true
    N_m3u8DL-RE "https://stream-od.akamaized.net/pfr/6b06b7a6-bfbf-4f97-ae08-3bf8228b8985/mp4/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).ism/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).mpd" --save-name "bukkene-bruse-paa-badeland" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    Download link : https://gofile.io/d/WwVKWS
    Quote Quote  
  5. Thanks a lot. I will have a look at it tonight.
    Last edited by Trainfire; 16th Jul 2024 at 09:32.
    Quote Quote  
  6. Originally Posted by aqzs View Post
    Based on assetId=vod-1935382 I managed to get the link of the movie you want : https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true

    Here is the key :
    Code:
    82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    HTML Code:
    url: https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true
    N_m3u8DL-RE "https://stream-od.akamaized.net/pfr/6b06b7a6-bfbf-4f97-ae08-3bf8228b8985/mp4/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).ism/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).mpd" --save-name "bukkene-bruse-paa-badeland" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    Download link : https://gofile.io/d/WwVKWS
    Thank you for this. I would really like to be able to do it all myself so I know it for the future.
    Is the PSSH i posted correct? Did I at least do that right?

    And can you maybe elaborate or point me in the right direction about the x-dt-auth-token, and how to use it?
    Quote Quote  
  7. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Yup ! I'm here to help !
    To get the token need in the license header search in : 'https://api.sumo.tv2.no/play/a-{VIDEOID}' in playback->streams->license->headers->value
    I added some logging in my script :
    HTML Code:
    url: https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true
    keyid:  82C7D541-EDFE-3834-A3DB-FA6B2E5E12C4
    pssh:  AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEILH1UHt/jg0o9v6ay5eEsQ=
    keys:  ['82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992']
    N_m3u8DL-RE "https://stream-od.akamaized.net/pfr/6b06b7a6-bfbf-4f97-ae08-3bf8228b8985/mp4/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).ism/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).mpd" --save-name "bukkene-bruse-paa-badeland" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    As you can see I'm getting the PSSH using KEYID. Indeed in the manifest there are no PSSH provided. You can generate PSSH using KEYID. You can do that with pywidevine or https://emarsden.github.io/pssh-box-wasm/generate/
    Quote Quote  
  8. Originally Posted by aqzs View Post
    Yup ! I'm here to help !
    To get the token need in the license header search in : 'https://api.sumo.tv2.no/play/a-{VIDEOID}' in playback->streams->license->headers->value
    I added some logging in my script :
    HTML Code:
    url: https://play.tv2.no/film/bukkene-bruse-paa-badeland-1942345.html?play=true
    keyid:  82C7D541-EDFE-3834-A3DB-FA6B2E5E12C4
    pssh:  AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEILH1UHt/jg0o9v6ay5eEsQ=
    keys:  ['82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992']
    N_m3u8DL-RE "https://stream-od.akamaized.net/pfr/6b06b7a6-bfbf-4f97-ae08-3bf8228b8985/mp4/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).ism/6b06b7a6_bfbf_4f97_ae08_3bf8228b8985(1935382_ISMUSP).mpd" --save-name "bukkene-bruse-paa-badeland" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 82c7d541edfe3834a3dbfa6b2e5e12c4:f4996ec77625525d8685cd0606ef2992
    As you can see I'm getting the PSSH using KEYID. Indeed in the manifest there are no PSSH provided. You can generate PSSH using KEYID. You can do that with pywidevine or https://emarsden.github.io/pssh-box-wasm/generate/
    I managed to find the same PSSH as you did now so that's progress. I also located x-dt-auth-token, but I'm not sure how I should implement it in the Headers box. I tried to keep the Headers as it is then added the token underneath (saw it on another post how someone else did it), but no luck.
    Quote Quote  
  9. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Just use token like that, that the only header needed :
    HTML Code:
    headers = {'x-dt-auth-token': lic_token}
    Quote Quote  
  10. Originally Posted by aqzs View Post
    Just use token like that, that the only header needed :
    HTML Code:
    headers = {'x-dt-auth-token': lic_token}
    Thanks a lot!

    I did have to put it like this for it to work, but I'm just so happy that it works
    Code:
    x-dt-auth-token: edownloadyJhbGciOiJIUzUxMiJ9.eyJvcHREY....
    Thanks again man!
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!