VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Hi,

    I've been merrily grabbing old faves from itv dot com for a few days now, thanks to the wonderful work of many of you on this forum. Last night, I thought I'd check out the Premium content, so I subscribed on the free trial.

    Since then, every time I try to download I get a 403 response - and this is on itv material which is not in their premium package. (I cancelled the trial to see if that was the cause, and it made no difference)

    For example, for Sweeney! I get this:

    Image
    [Attachment 70984 - Click to enlarge]


    So I can play the video in my browser, and the key is found, and I am still able to grab stuff from UKTVPlay etc...

    N_m3u8DL-RE version 0.1.5.3
    yt-dlp version 2023.03.04 (I tried with this, didn't work either, same 403)

    I'm in the UK, no VPN.

    Any help appreciated!
    Quote Quote  
  2. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    yt-dlp?
    Thanks! As mentioned, it didn't work with the standard .mpd.

    However, I have just had success using The Stream Detector's "copy stream URL as ytp-dl command".

    That generates this massive string:

    Code:
    yt-dlp --no-part --restrict-filenames -N 6 --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0" --add-header "Cookie:Itv.Cid=fbe3602d-a4d0-4e3f-a402-1eff3a6dcbe6; mid=11098007993575715427; _abck=78A5FC3CDE6D6C85CC200FC70DA1BC26~-1~YAAQnMNQaFfKRgeIAQAANc0QFAkJfw275wu3PjhW8R3K9zg1RuSwEX83jHPRE2Q3+ttW1+XGIujefQnsHYXvDOBhEaH6fe7ZqoxkcaFXModvJb72N8xzgJlkW6osIaUz2oFiAF25OuVe7K97GSn5lUOwg7HyY/gY6+YukcQRk9xUyxDAZMgO8AquZxJzihmBuhm6nYwI5zgKmpklFwRqLp5OLnVRSPxA38lNxrQo9y5DI1IysWImCkhmIh6ehono/RV067+gcZUoss9j4/Z7rVw1BAR0LjzX/8hFnDLgAyObCzf8OWKje1oQQKpn8Q5ym14/gx05/abp8VTLzWpZtqUT50ApJ/YS0Q3/D2hJKFa7THSiJOTKn82SBpY9vGEpTNwffXIaIdE=~-1~-1~-1; hdntl=exp=1684050980~acl=%2f1-7442-0001-004%2f*~data=hdntl,hubplus~hmac=35a9ff1fca04a5c4ce2661bc43937268a22174ca4780a9869b11cb6aa1b184b0; Itv.Session={'tokens':{'content':{'entitlement':{'purchased':['adfree','downloads','HD'],'source':'stripe','failed_availability_checks':[]},'email_verified':true,'token_type':'bearer','access_token':'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguaXR2LmNvbSIsInN1YiI6IjM4MGE2MzJkLTg5N2MtNGY0NC04ZjcyLWI4YmI5M2Y0NTNjMCIsImV4cCI6MTY4NDA2MzEwNCwiaWF0IjoxNjgzOTczMTA0LCJicm9hZGNhc3RFcnJvck1zZyI6IiIsImJyb2FkY2FzdFJlc3BvbnNlQ29kZSI6IjIwMCIsImJyb2FkY2FzdGVyIjoiSVRWIiwiaXNBY3RpdmUiOnRydWUsIm5vbmNlIjoiY2VyYmVydXMtYXV0aC1yZXF1ZXN0LTE2ODM5MzA5MDU1MTIiLCJuYW1lIjoiUGhpbGlwIiwic2NvcGUiOiJjb250ZW50IiwiZW50aXRsZW1lbnRzIjpbImFkZnJlZSIsImRvd25sb2FkcyIsIkhEIl0sInBheW1lbnRTb3VyY2UiOiJzdHJpcGUiLCJzaG93UHJpdmFjeU5vdGljZSI6ZmFsc2UsInVuZGVyMTgiOmZhbHNlLCJhY2NvdW50UHJvZmlsZUlkSW5Vc2UiOm51bGx9.C-vTNK1IDhxCz2KPHRtfOS6nQLzxjg0cPalV41cj8Rp-Z_evlE_L7jWBYMozikgPa3ONHhU74xJ1kq3NckJcFSLqbtViSytWOQMxkd3EksB4OceSk1czM5-zIMs5akxXPP_RQ8q13XdcvfOdc_Dyu0iIbMEStaQrVD5Kb08P13TUCF0QaAkAIuQm7ON9UJkpARITFz-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f6hhf0LToBVUmzQ3/X6FKDRennRsdqeDfZ1wd6QJejlzxQTlVehTQdT2k25Lz/Q+keVPMSJppZWpggPzJDzdnVyaIbqiKUDWpCe8zw8msLFlLEN70tu3rWvft++ceWZ7A7PnrFyxPPsFssW+qA=~4338225~3159364" --referer "https://www.itv.com/" --output "Sweeney! - ITVX.%(ext)s" "https://itvpnpdotcom.blue.content.itv.com/1-7442-0001-004/34/2/VAR028-HD-s/1-7442-0001-004_34_2_VAR028-HD-s.ism/.mpd?filter=%28%28type%3D%3D%22video%22%26%26DisplayHeight%3C%3D720%29%7C%7C%28type%21%3D%22video%22%29%29&hdnea=st%3D1683973094~exp%3D1683994694~acl%3D/1-7442-0001-004/%2A~data%3Dhubplus~hmac%3D958e5e7c9d815b3b7ab817dafe52ab2ee307879dc0a24f8afc658f62d8cacf95"
    So I presume it's some sort of cookie problem, but maybe some of you cleverclogs can make a more educated guess?
    Quote Quote  
  3. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    Same problem here. Any light on this, please? Thanks in advance
    Quote Quote  
  4. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Originally Posted by oopargentina View Post
    Same problem here. Any light on this, please? Thanks in advance
    The problem was I didn't realize that, when I cancelled my subscription, I was still in the "trial", so I fully expect this problem will go away in a week, when cookies are reset for my account ID.

    If you can't wait a week:

    1. use The Stream Detector's "copy stream URL as ytp-dl command"
    2. in a command box, paste, append --allow-u, and run, this will download the (encrypyted) video and audio files
    3. modify one of the ITVX.py scripts here to get the key (the mpd is embedded at the end of the ytp-dl command)
    4. use mp4decrypt or shaka-packager to decrypt the video and audio files
    5. join the decrypted video+audio, e.g.
    Code:
    ffmpeg -i v.mp4 -i a.m4a -c:v copy -c:a copy -map 0:v:0 -map 1:a:0 output.mp4
    My Python isn't good enough to make a script from this, but it shouldn't be too difficult for the pros here.
    Quote Quote  
  5. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    I was able to download it with yt-dlp using the --allow-u command, then decrypt both audio & video with mp4decrypt.
    I was just obsessed with trying to grab it with N_m3u8DL-RE.
    BTW, I'm using a VPN (free of charge/unlimited one, UrbanVPN), from Argentina, and no premium access, not even trial (just free account).
    Last edited by oopargentina; 14th May 2023 at 11:19.
    Quote Quote  
  6. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Originally Posted by oopargentina View Post
    I was able to download it with yt-dlp using the --allow-u command, the decrypt both audio & video with mp4decrypt.
    I was just obsessed with trying to grab it with N_m3u8DL-RE.
    BTW, I'm using a VPN (free of charge/unlimited one, UrbanVPN), from Argentina, and no premium access, not even trial (just free account).
    Oh, okay, then maybe I'm stuck with yt-dlp too. :/

    If you look at the yt-dlp command there's an awful lot more data supplied than the old "table entry" one. However, the "N_m3u9DL-RE command" option doesn't work either. Either the script or the app needs updating, I suppose.
    Quote Quote  
  7. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    I guess so.
    You mean the yt-dlp command you get from Stream Detector?
    If so, that command didn't work for me.
    I just pressed F12 and grabbed the mpd link. I got something like this:

    For this video:
    Code:
    https://www.itv.com/watch/an-audience-with/L0055/1a6370a0003
    I pressed F12 and grabbed the mpd link, which is this one:

    Code:
    https://itvpnpdotcom.blue.content.itv.com/1-6370-0003-001/34/1/VAR028-HD-s/1-6370-0003-001_34_1_VAR028-HD-s.ism/.mpd?filter=%28%28type%3D%3D%22video%22%26%26DisplayHeight%3C%3D720%29%7C%7C%28type%21%3D%22video%22%29%29&hdnea=st%3D1684081598~exp%3D1684103198~acl%3D/1-6370-0003-001/%2A~data%3Dnohubplus~hmac%3Db5f5f3452759e63a806f863775635164f7912922178db52823452e037b38bc0e
    Copied the PSSH, License URL and headers, used the CDRM-Project site and got this key:

    Code:
    7b167b1fa9534fe68e0c1c830a855131:f13153785053f60e54588607b2f19877
    so I used yl-dlp this way:

    Code:
    yt-dlp --allow-u --downloader aria2c -f bv,ba "https://itvpnpdotcom.blue.content.itv.com/1-6370-0003-001/34/1/VAR028-HD-s/1-6370-0003-001_34_1_VAR028-HD-s.ism/.mpd?filter=%28%28type%3D%3D%22video%22%26%26DisplayHeight%3C%3D720%29%7C%7C%28type%21%3D%22video%22%29%29&hdnea=st%3D1684081598~exp%3D1684103198~acl%3D/1-6370-0003-001/%2A~data%3Dnohubplus~hmac%3Db5f5f3452759e63a806f863775635164f7912922178db52823452e037b38bc0e"
    Then decrypted the audio and video files with mp4decrypt, and joined the decrypted files with the following command:

    Code:
    ffmpeg.exe -i v_dec.mp4 -i a_dec.m4a -c copy final.mp4
    (where v_dec.mp4 and a_dec.m4a are the decrypted audio and video files)
    Last edited by oopargentina; 14th May 2023 at 12:04.
    Quote Quote  
  8. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Originally Posted by oopargentina View Post
    I guess so.
    You mean the yt-dlp command you get from Stream Detector?
    If so, that command didn't work for me.
    Yes.

    Did you add
    Code:
     --allow-u
    to the end of it? Because then it works (for me, anyway).

    I'm glad you found a solution, even if it's slow like mine!
    Quote Quote  
  9. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    Oh, to the end of it? No, I didn't. Lol.
    Yeah, as you said, slow, but it works, which in the end, is all that matters
    Quote Quote  
  10. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    That's a cookie error.
    Using yt-dlp is an inelegant way of avoiding the issue. But you'll also avoid faster downloads.
    The script you've used prepares a cookie so N-m3u8DL-RE can get past ITVX's defences. Since you've taken a premium subscription I guess the nature of the cookie now expected from your login and IP will be different. One possible way around your issue is to create a spoof login to ITVX that doesn't have a premium account and use that from a different browser on your machine. mail.yandex.com is ok for spoof accounts.

    Update to the latest version of my ITVXbatch.py it is the second script in this post https://forum.videohelp.com/threads/407216-Decryption-The-Dungeon-of-Despair#post2669285 Shown working below with better program labelling.

    Image
    [Attachment 71016 - Click to enlarge]
    Last edited by A_n_g_e_l_a; 14th May 2023 at 15:28.
    Quote Quote  
  11. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    In my case I prefer yt-dlp since I don't have the best Internet connection and using a solitary thread for downloading doesn't cripple web browsing etc.

    Thanks so much for that ITVXbatch.py, by the way; I was using the earlier version, which I then modified just to produce the key (which I copy back to the clipboard with
    Code:
    PC.copy(mykeys)
    ). I'll try a second account/browser next week if resetting cookies doesn't work. In no great rush.
    Quote Quote  
  12. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by PhilipG View Post
    In my case I prefer yt-dlp since I don't have the best Internet connection and using a solitary thread for downloading doesn't cripple web browsing etc.

    Thanks so much for that ITVXbatch.py, by the way; I was using the earlier version, which I then modified just to produce the key (which I copy back to the clipboard with
    Code:
    PC.copy(mykeys)
    ). I'll try a second account/browser next week if resetting cookies doesn't work. In no great rush.
    You can use this flag for N_m3u8DL-RE:
    --thread-count #
    # being the number of threads obviously
    Quote Quote  
  13. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Originally Posted by Karoolus View Post
    Originally Posted by PhilipG View Post
    In my case I prefer yt-dlp since I don't have the best Internet connection and using a solitary thread for downloading doesn't cripple web browsing etc.

    Thanks so much for that ITVXbatch.py, by the way; I was using the earlier version, which I then modified just to produce the key (which I copy back to the clipboard with
    Code:
    PC.copy(mykeys)
    ). I'll try a second account/browser next week if resetting cookies doesn't work. In no great rush.
    You can use this flag for N_m3u8DL-RE:
    --thread-count #
    # being the number of threads obviously
    That's a good tip, thanks! Pity we can't get N_m3u8DL-RE to work in this case.
    Quote Quote  
  14. Member
    Join Date
    May 2023
    Location
    England
    Search Comp PM
    Just to update: all working again after the week "trial" finished and I'm back to being non-premium.
    Quote Quote  



Similar Threads

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