Hello!
I'm a new user, but I've been reading this forum for a few months.
I have to tell you, I didn't know Python but since I'm interested in downloading some videos I'm trying to learn and I've read a lot of threads about decrypting here.
About this ITV downloader, I have a problem I can't resolve, even if I've tried on three different computers.
I'm using:
- Windows 11 and Python 3.11.5, I've installed some modules (google-api-python-client, protobuf 3.20.3, pycryptodomex, httpx, pyfiglet, pyperclip, selectolax, termcolor, pysubs2);
- I've not installed pywidevine because I'm using this WKS-KEYS package https://github.com/weapon121/WKS-KEY/releases/tag/WKS-KEY (I've tested them with this site https://www.tg4.ie/en/player/online-boxsets/play/?pid=6281115686001&series=An%20Cuan&genre=Faisneis and they're working);
- I put mp4decrypt in Windows PATH, while N_m3u8DL-RE, mkvmerge, ffmpeg are in the same WKS-KEYS folder.
I was to able to download the video but I can't watch it even with VLC because it seems still encrypted (same problem of deccavox https://forum.videohelp.com/threads/408557-Decryption-The-Last-Crusade#post2680990). I've tried with different shows but always the same result.
So, I would like to ask you for a little help because I have no ideas at this point.
Thanks you in advance.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
+ Reply to Thread
Results 181 to 210 of 217
Thread
-
-
False alarm. My fault, I've changed the keys set and now it works perfectly. Thank you to all, for your wonderful tutorials.
-
-
I'm sorry for causing frustration, but I really started from zero about this topic. Even though I've been reading this forum for longtime, for some reason I didn't get the 'starting' point until yesterday, after making a couple of questions. So, for me it was not worthless.
Anyway, thank you again for you time and patience. -
We all all start from zero. Think you are any different? That was me Feb '22. Only if you go back through my post history I doubt you'll find much like yours.
No one minds answering relevant and meaningful questions. But it would seem you never tried to use your CDM to get the keys for the test sites. You needed to prove it was set-up correctly and working.
You jump directly into using posted scripts and as soon as it fails - with a duff untested CDM , you start posting to the script author for whom the problem has no relevance whatsoever. The thread gets polluted with rubbish as a consequence.
My email has been pinged a number of times from you blundering about looking for help which you should have sorted by following instructions in one of stickies on getting a CDM. It is small beer and of little consequence to you. I understand that.
For me and other posters of scripts. however, we get a constant flow of newbies, casting around and double posting all over. Can you perhaps understand my impatience at getting a notification about my script not working from you when I know fully it is down to the operator and not the script?
Yes you can say sorry after the event but that doesn't negate the pings and interruptions to my day. So keep off my threads if you will.
Sadly you are not the first; I cannot fathom why adults can't work through a problem forensically without needing to rush to a forum to seek the help of strangers. But hey ho... -
Have ITV changed something on their end again? Haven't used this for a few weeks but today I'm getting a 403.
12:17:30.868 INFO : N_m3u8DL-RE (Beta version) 20230628
12:17:30.875 INFO : Loading URL: https://itvpnpdotcom.blue.content.itv.com/Y-0757-0103-B/34/2/VAR028-HD-s/Y-0757-0103-B...76480548d196a8
12:17:30.966 ERROR: One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) -
Hi Killer3737,
I've just tried it now and I'm getting the same 403 (Forbidden) error as you are. -
No, just normal ITV stuff.
I've tried Classic Coronation Street and Crime - both get the same 403 permission denied error.
I've tried it using my home IP and also on a hosted server with a completely different IP. Same error. -
I wonder if my CDM has been unauthorised. I'll try downloading another CDM and see if it works.
-
Want to PM me? Just ask in the forum first.
-
Thanks Angela, that would make sense. I'll have a look at the cookie's. I've downloaded the files manually so my wife is happy once again, haha.
-
Had a brief further look and it needs specific headers for requests and the mpd request needs a bearer token which itself is a base64 jwt, it contains your login name and some personal data. So that can only come from reading your browser cookie. And it won't be a 2 minute job.
Want to PM me? Just ask in the forum first. -
The error caused by a backend changeat ITV has been corrected.
I would be grateful if users could migrate to https://forum.videohelp.com/threads/411684-ITVX-Revisited . There is a zip file for download at post #1. If you only need a single downloader then ITVX.py will do it. If you want a series explorer and downloader, then use itv_loader.py as your start script. It uses either WKS-KEYS or Pywidevine wvd. As set-up it used pywidevine - but that can be changed easily near the top of the script set PYWIDEVINE = FalseWant to PM me? Just ask in the forum first. -
Thanks Angela, that's very kind of you.
Edit - The file shows as deleted on post #1 of the ITV Revisited thread. -
Want to PM me? Just ask in the forum first.
-
Hi,
I'm using the bestITVX.py as from today and no matter what I try to download I get the following:
____ ______ _ __ _ __
/ _/ /_ __/ | | / / | |/_/
_/ / / / | |/ / _> <
/___/ /_/ |___/ /_/|_|
SERIES download: Have the first video link ready in clipboard.
Enter when ready!
To download all series, enter 'all' below.
Or to download a range, enter the series
start number
Which series start number? all
The URL list has 12 video(s)
Irvine_Welshs_Crime_S01E01
Traceback (most recent call last):
File "BestITVX.py", line 364, in <module>
main()
File "BestITVX.py", line 354, in main
myITV.download(url)
File "BestITVX.py", line 168, in download
pssh = self._get_pssh(mpd_url)
File "BestITVX.py", line 322, in _get_pssh
LexborHTMLParser(r.text)
AttributeError: 'NoneType' object has no attribute 'attributes'
....anyone got any ideas?
Many Thanks. -
See discussion here, particularly this https://forum.videohelp.com/threads/411684-ITVX-Revisited#post2707767
Want to PM me? Just ask in the forum first. -
Hi,
Many thanks for the post. I downgraded httpx as suggested and I ran the new install from requirements.txt but I get the same error, whether I run ITVX.py
The ITVX script complained about pysubs2 not being installed when it appeared to be:
A Single ITVX Downloader:
Enter video url for download.
https://www.itv.com/watch/the-long-shadow/10a1937/10a1937a0001
/usr/bin/python: No module named pysubs2
Traceback (most recent call last):
File "ITVX.py", line 268, in <module>
main()
File "ITVX.py", line 260, in main
myITV.download(url)
File "ITVX.py", line 167, in download
pssh = self.get_pssh(mpd_url)
File "ITVX.py", line 70, in get_pssh
LexborHTMLParser(r.text)
AttributeError: 'NoneType' object has no attribute 'attributes'
...so I changed it to use python3 (probably not a good thing to do - i'm not sure what I'm doing) but I still get the following error.
A Single ITVX Downloader:
Enter video url for download.
https://www.itv.com/watch/the-long-shadow/10a1937/10a1937a0001
Traceback (most recent call last):
File "ITVX.py", line 268, in <module>
main()
File "ITVX.py", line 260, in main
myITV.download(url)
File "ITVX.py", line 167, in download
pssh = self.get_pssh(mpd_url)
File "ITVX.py", line 70, in get_pssh
LexborHTMLParser(r.text)
AttributeError: 'NoneType' object has no attribute 'attributes'
...all help appreciated. -
Pysubs2 gets missed by an automated requirements builder and I keep forgetting to add it manually so:-
Code:pip install pysubs2==1.6.1
Python 2 was dead in the water years ago - so python/ python3 are interchangeable.
Try this as a last resort.
Code:pip install httpx==1.0.0b0 --upgrade
Want to PM me? Just ask in the forum first. -
I tried the suggestion, unfortunately I'm still getting the exact same error.
By the way when I say I changed from python to python3 I mean within ITVX.py at line 153. If I don't do that it complains about module pysubs2, but when I try to install it, it says it's already there. If I do change that line then the pysubs2 error goes away - I'm guessing I must have it in the path for python3 or something like that.
Once again, all help appreciated. -
Want to PM me? Just ask in the forum first.
-
Hi Van Hoopy,
I would change Python3 back to Python in the ITVX.py, I don't think that should be causing the problem.
If you do a PIP LIST in a command line does it say that PYSUBS2 is installed?
How did you install Python3 on your system?
I followed the guide here and it's always worked fine :
https://www.tomshardware.com/how-to/install-python-on-windows-10-and-11 -
Hi,
Thanks for the replies.
If I change it back to python in ITVX.py I get no module pysubs2 found. If I keep it as python3 then it gets past that but fails with
Code:Enter video url for download. https://www.itv.com/watch/the-long-shadow/10a1937/10a1937a0001 Traceback (most recent call last): File "ITVX.py", line 269, in <module> main() File "ITVX.py", line 261, in main myITV.download(url) File "ITVX.py", line 168, in download pssh = self.get_pssh(mpd_url) File "ITVX.py", line 71, in get_pssh LexborHTMLParser(r.text) AttributeError: 'NoneType' object has no attribute 'attributes'
Code:LexborHTMLParser(r.text)
I had a look at the guide you posted but unfortunately it's for windows and I'm running linux mint.
Although I did have a go at installing it on windows, I was stumped at the basics, I had a python shell/cmd line but I didn't know how to locate scripts on my hdd to run, I wanted to runCode:pip install -r requirements.txt
-
The aim is to get as far through the script without it failing. So keep python3 so that subtitles can be formatted by pysubs2.
Your issue is still with httpx. Why the issue hasn't corrected by changing the httpx module I cannot tell.
Note; r in the code stands for response and text references the text from the response. httpx isn't providing a response because it provokes a 403 not allowed message. Clearly your version of httpx is not sending all the background cookies as it should. ITV says not allowed. We've established that httpx==0.25.0 is no good. You tell me you've updated to another version. if the downgrade OR the upgrade to the beta version went through successfully you shouldn't have the issue. But you do.
Conundrum. Its a python library issue I would guess.Want to PM me? Just ask in the forum first. -
Thanks for all the feedback so far, the explanations is helping me understand.
I've checked with pip list and I had 0.23.0 version of httpx which I understand should be a compatible version. When I upgraded to the 1.0.0b0 it said the package had been yanked but it still installed, however it made no difference, the error reported was the same.
Incidentally the stream (ITVX) does actually play in the browser.
If I run it as sudo I get a different error message:
Code:sudo python3 ITVX.py ____ ______ _ __ _ __ / _/ /_ __/ | | / / | |/_/ _/ / / / | |/ / _> < /___/ /_/ |___/ /_/|_| A Single ITVX Downloader: Enter video url for download. https://www.itv.com/watch/the-long-shadow/10a1937/10a1937a0001 Using pywidevine WVD on this machine Traceback (most recent call last): File "ITVX.py", line 269, in <module> main() File "ITVX.py", line 261, in main myITV.download(url) File "ITVX.py", line 169, in download key = self.get_key(pssh, lic_url) File "ITVX.py", line 87, in get_key device = Device.load(WVD_PATH) File "/usr/local/lib/python3.8/dist-packages/pywidevine/device.py", line 164, in load with Path(path).open(mode="rb") as f: File "/usr/lib/python3.8/pathlib.py", line 1222, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/usr/lib/python3.8/pathlib.py", line 1078, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/home/user/android_sdk.wvd'
Again, thanks for all the help. -
Not the same android sdk.
You need to create a file - a WideVine Descriptor (wvd) that points to your device_private_key and your device_client_blob.
VH is a great resource and you can be sure you are not the first to ask the question about creating a wvd.
To avoid dependency and taking the time of others unnecessarily I recommend the search function.
this is what I found:-
https://forum.videohelp.com/threads/410429-Widevine-cdm-in-wvd-format#post2698071
https://forum.videohelp.com/threads/407466-how-get-wvd#post2671448
https://forum.videohelp.com/threads/407144-Help-with-Channel-4-Key-to-this-programme-a...se#post2668861
plus a snippet
Code:# To create a wvd file (use full paths): # pywidevine create-device -k "path/to/device_private_key" -c "path/to/device_client_id_blob" -t "ANDROID" -l 3 -o "output_path".
If using windows python 3.11 seems not to work for me creating a wvd. But I was using an emulator. Others may have different results.Want to PM me? Just ask in the forum first. -
Is there a dummies guide to this anywhere ?
I've downloaded Stream detector and the lastest Python and installed it.
I have absolutely no idea what to do next ?
Thanks
Similar Threads
-
Crash course on downloading ITVx hub please?
By adrian44 in forum Video Streaming DownloadingReplies: 217Last Post: 4th Dec 2023, 19:25 -
ITVX & Error 403
By PhilipG in forum Video Streaming DownloadingReplies: 14Last Post: 20th May 2023, 03:39 -
Portable Windows Video DownLoader & SubTitles?
By TEH in forum Video Streaming DownloadingReplies: 4Last Post: 21st Jul 2022, 12:41 -
4K-Video-Downloader and playlist subtitles
By ChasVideo in forum Video Streaming DownloadingReplies: 0Last Post: 11th Sep 2020, 06:49 -
Using TV downloader
By frankopstaele in forum Newbie / General discussionsReplies: 0Last Post: 2nd Feb 2019, 19:44