Yep that makes perfect sense! Aha was wondering if there was a way to specify an episode to force its download! Thanks I'll play with that
That's great news thanks! The other script I used is this one: https://forum.videohelp.com/threads/410822-My5-%28Channel-5%29 which I know you're aware of but they do the URL stuff differently to you from I believe, can't say I understand any of it, just enjoy the magic of being able to download!
Thank you for the reply and in advance for any possible fixes![]()
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 211 to 240 of 1599
-
-
@stabbedbybrick
Ch4 with the latest incarnation is doing weird things (Freevine v0.6.1-beta (20231027).
Code:freevine.py -t https://www.channel4.com/programmes/help-we-bought-a-village
Code:File "D:\GitHub\freevine\services\channel4.py", line 143, in <listcomp> Episode( File "D:\GitHub\freevine\utils\titles.py", line 30, in __init__ if re.match(r"Episode ?#?\d+", name, re.IGNORECASE): File "C:\Users\Sipho\AppData\Local\Programs\Python\Python310\lib\re.py", line 190, in match return _compile(pattern, flags).match(string) TypeError: expected string or bytes-like object
To get this to work I had to fire up an old version on another computer which still runs Freevine beta (20230924).
But not for all shows though. A Place in the Sun works.
The script is always run in a venv.
I never had any issues until the CBC & ABC updates. -
-
I pushed a small update to the main branch that should hopefully fix the TypeError.
As for the other issues, I'll add them to the list and look it over when I have some time. -
I've adjusted My5 to properly fetch the 1080p manifests. There is content that simply don't have 1080p, but if it does it should get it. I'm sure there are outliers, but it seems to work well from what I can tell. Feel free to report any cases where it doesn't work.
I've also corrected the episode listing on Channel4 to not include non-playable episodes. The case of "A Place in the Sun", however, is a complete mess.
The way these scripts work is that they collect the episode and series numbers stated on their API. This works as expected in most cases, but here they must've been drunk or something, because the numbers change randomly for no reason.
Example of the last two episodes:
Code:"title": "Mon 30 Oct 2023: Mallorca", "episodeNumber": 94, "seriesNumber": 16, "title": "Fri 29 Sep 2023: La Zenia, Spain", "episodeNumber": 21, "seriesNumber": 17,
-
Great stuff thank you! Tested with last night's new episode of Killer at the Crime Scene and it's now 1080p rather than 720p when I tried this morning, also tested with the 3 Bargain-Loving Brits in the Sun series 10 episodes, again all fixed now!
Old series of Police Interceptors also 1080p, so far haven't found anything your fix doesn't fix! -
It may because these episodes are recorded way in advance and then the producer decides on the date order for broadcast. Similar to Four in a Bed and The Great House Giveaway.
I just make a note of the episode from the manifest/episode list so I know what is old/already downloaded. -
-
@stabbedbybrick
I'm trying to exclude an audio track.
My ctv.yaml config has this line.
Code:track: "id=\baac\b:for=best2"
Code:freevine.py -q 540 -e S01E01 https://www.ctv.ca/shows/the-dessert
Code:Aud *CENC ac3-ffa6v1-english-primary-384000 | 384 Kbps | ac-3 | en | 6CH Aud *CENC aac-ffa6v1-english-primary-128000 | 128 Kbps | mp4a.40.2 | en | 2CH Aud *CENC aac-ffa6v1-english-dv-128000 | 128 Kbps | mp4a.40.2 | en | 2CH
If I run the download command manually using the manifest.mpd in the tmp folder it works.
Code:n_m3u8dl-re manifest.mpd -sa "id=\baac\b:for=best2" -sv "res=540"
-
change your code in ctv.yaml to this
Code:track: "id=\\baac\\b:for=best2"
-
Using regex characters like \b in the context of a python script works differently than using it in a command line. But there's no need to have it there at all.
Code:audio: track: "id=aac:for=best2" drop:
Code:audio: track: "all" drop: "id=ac3"
-
-
-
Thanks, I figured out I had misconfigured pywidevine.
I tried putting client_id.bin and private_key.pem directly in (freevine folder)\pywidevine\L3\cdm\devices\android_generic then tried removing the extension but am still getting "no client ID blob available for this device". I also tried renaming the files to device_client_id and device_private_key without the extension, no dice. Also, I did not do a pip install of pywidevine as an earlier post indicated that could cause problems. Any idea what may be wrong with the key configuration? -
-
Trying to download two shows on My5.
https://www.channel5.com/show/murderous-history
https://www.channel5.com/show/great-british-royal-ships
Selecting an episode throws this error in my face.
Code:File "D:\GitHub\freevine\services\channel5.py", line 169, in get_mediainfo pssh = self.get_pssh(self.soup) File "D:\GitHub\freevine\services\channel5.py", line 158, in get_pssh .attrs.get("cenc:default_KID") AttributeError: 'NoneType' object has no attribute 'attrs'
-
I think it's because the two series use one of the other Mpd filename types that haven't been added yet (they use 4 or 5 different ones in total)
Murderous History s01e01 for example is:
https://akadash0.akamaized.net/cenc/C5370840001/C5370840001A/20210505022143/C5370840001A.mpd
Ones that work are:
https://akadash0.akamaized.net/hydra/C5156740007/C5156740007E/20230124043522/C5156740007_SD-tt.mpd
or
_720p
_SD-fixed-label
(amongst others) -
Ahh I butchered it to work for the Murderous History one at least!
channel5.py
Line 144
Change from:
if "A-tt" in _path[-1]:
to
if "" in _path[-1]:
And that makes it work!
SD only though...
And it does break the script for other shows so you'll need to revert it after you get all of the episodes you want of the series. -
I just pushed a small update for My5 with a much better solution that should work for all MPD versions without having to check for each one. Hopefully it'll be more robust.
It's also important to remember that not everything can be edited to get 1080p. Some content just simply don't have it. -
-
-
-
is it just me, I get problem with my5. all programmes showing error
Code:File "services\channel5.py", line 45, in <module> class CHANNEL5(Config): File "services\channel5.py", line 180, in CHANNEL5 def get_content(self, url: str) -> tuple[Movies | Series, str]: TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'ABCMeta'
-
-
A number of media players give more than one stream with the same resolution but with different bitrates. In some cases, the 'best' one is rather overbloated in terms of bitrate/ filesize. So, I need to select the 'worst' one. Now, as an example for CH4, putting, "res=576:for=worst" against 'track:' in the channel4.yaml, that does the job. I was hoping I could do similar using the --quality setting that can be used in the command line. But I've found it'll only accept `-q 576p` which gives the 'best' 576p.
So, it has to be done in the yaml file prior to running the script. A bit messy that.
Would it be possible to include this selection as a part of the --quality option in the command line?
For myself, it affects:
All4 (CH4) has two 576p streams. I need to sometimes select the 'worst' one.
ITVX has two 576p streams. I need to sometimes select the 'worst' one.
My5 (CH5) has two 720p streams. I need to sometimes select the 'worst' one.
Also, what's the 'drop:' setting in the yaml services\config files? None of them have any values set.
And do keep up the good work.
Similar Threads
-
UK Free to Air Downloader
By A_n_g_e_l_a in forum Video Streaming DownloadingReplies: 596Last Post: 22nd Apr 2025, 16:01 -
Video/Screenshot Guide to Freevine/N_m3u8DL-RE downloader for MacOS
By gwilliams1996 in forum Video Streaming DownloadingReplies: 16Last Post: 15th May 2024, 06:14 -
Forcing quality on streaming services
By qnufc in forum Video Streaming DownloadingReplies: 10Last Post: 8th Mar 2024, 17:27 -
Are we going to see all streaming services switching to L1 completely
By Loryanam2 in forum Video Streaming DownloadingReplies: 7Last Post: 5th Mar 2023, 07:37 -
Portable Streaming DownLoader for XMovies8?
By KermitJ in forum Video Streaming DownloadingReplies: 0Last Post: 27th Sep 2019, 10:44