VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Jan 2025
    Location
    England
    Search Comp PM
    I'm trying to use envied to download an ITV program, and I get the following error. I've got the logon credentials in my unshackle.yaml and I've run the episode in google chrome. There's probably something simple to fix, but I can't see what it is!

    Any ideas?

    uv run unshackle --debug dl ITV https://www.itv.com/watch/unforgotten/2a3372/2a3372a0031

    ░█▀▀░█▀█░█░█░▀█▀░█▀▀░█▀▄
    ░█▀▀░█░█░▀▄▀░░█░░█▀▀░█░█
    ░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░▀▀░

    and more than unshackled...

    v 2.1.0 - https://github.com/vinefeeder/envied

    Service Config loaded
    Loaded 0/0 Vaults
    No vaults are currently active
    Starting new HTTPS connection (1): api.nordvpn.com:443
    https://api.nordvpn.com:443 "GET /v1/servers/countries HTTP/1.1" 200
    None
    Loaded NordVPN: 130 Countries (9056 Servers)

    ─────────────────────────────── Service: ITV ───────────────────────────────

    Starting new HTTPS connection (1): ipinfo.io:443
    https://ipinfo.io:443 "GET /json HTTP/1.1" 200 None
    Service is not Geoblocked in your region
    - Error: This service requires cookies for authentication.
    Quote Quote  
  2. You need to export your ITV cookies from Chrome and tell envied to use them.
    Step 1: Export Cookies from Chrome
    Install one of these extensions:
    “Get cookies.txt LOCALLY” or “EditThisCookie”
    Then:
    Go to
    1: https://www.itv.com
    2: Make sure you are logged in
    3: Open the extension
    4: Export cookies in Netscape format
    5: Save as something like:
    itv_cookies.txt
    Step 2: Tell envied to use them
    Code:
    uv run unshackle dl ITV https://www.itv.com/watch/unforgotten/2a3372/2a3372a0031 --cookies itv_cookies.txt
    Or add this to your unshackle.yaml:
    Code:
    services:
      ITV:
        cookies: /full/path/to/itv_cookies.txt
    Quote Quote  
  3. Member
    Join Date
    Jan 2025
    Location
    England
    Search Comp PM
    Thanks sesamap159

    I would never have guessed anything like this, although it may be somewhere in the documentation!

    Unfortunately, I haven't made it work There doesn't seem to be a --cookies option in unshackle, and putting the file into unshackle.yaml didn't work either.

    What am I doing wrong?

    Another point: if I do get this to work, do the cookies expire?
    Quote Quote  
  4. You will need to look in unshackle --help to see if the --cookies code exists.

    https://github.com/unshackle-dl/unshackle/blob/main/docs/OUTPUT_CONFIG.md
    Quote Quote  
  5. Member
    Join Date
    Jan 2025
    Location
    England
    Search Comp PM
    Yes, a job for another day! It used to work in Devine, but now it doesn't, so maybe I need to update the envied codebase.
    Quote Quote  
  6. Both Envied and Unshackle work on ITV for me without having to export cookies, I dunno why you have to
    Quote Quote  
  7. Member
    Join Date
    Jan 2025
    Location
    England
    Search Comp PM
    Thanks vidsrme - it used to work for me too without bothering with cookies! I've moved the problem on a little by removing my credentials for ITV from the yaml file, but it still doesn't work, and crashes the command window

    That was the situation when I started writing this reply, but I did some more experimenting to find a precise error message. I've added an explicit directory for the WVDs, and it now works! Don't know why it stopped working, because I don't think I had one before.

    But - problem solved, so thank you for making me persist...
    Quote Quote  
  8. Originally Posted by vidsrme View Post
    Both Envied and Unshackle work on ITV for me without having to export cookies, I dunno why you have to

    the ITV service __init__.py carries some help
    Image
    [Attachment 91393 - Click to enlarge]

    Always a good habit to look there first!!

    It says cookies optional for non-premium. as visrme say you don't need them. If you do...
    Cookies go in the Cookies folder, if it exists, or you make one at the location as pointed to by envied.yaml under 'directories'. You name cookies exactly as the service is named ITV.txt To find the cookies to save - use https://github.com/rotemdan/ExportCookies as a browser extension. If there are two to save, choose the larger one first. If that doesn't work select the other.
    Quote Quote  
  9. Member
    Join Date
    Jan 2025
    Location
    England
    Search Comp PM
    Thanks phased - useful advice to keep in mind! I've solved my original problem with another directory entry, but I'm still a bit puzzled over why the problem arose in the first place. I'll just let that mull over in my mind...
    Quote Quote  



Similar Threads

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