Correct. The Dua Lipa example is indeed from an episode URL, which is using an endpoint where you can only get data on a per episode basis and does have enough information to list it properly. But in order to get episode data from the entire Glastonbury series URL at once, you have to use graphql which doesn't display the same information. Add to that how inconsistent they are with how and if the seasons/episodes are listed. No matter what, you have to use a metric shit ton of regex and if/else checks.
As a last resort, I guess it's possible to use an asynchronous session to fetch each episode in a series, but there has to be a proper way to handle this nonsense that haven't been able to find.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 511 to 540 of 877
Thread
-
-
All right, iPlayer service has been updated. I'm sure it's not perfect, but it's probably as good as I can make it for now. Feel free to report any breaking bugs and I'll look at it when I have time.
Fixes:
- Added more locations to look for available streams (e.g. Glastonbury 2024 UHD).
- Episode numbers will now use the numeric positional value of the episode if no standard value is available, and only fall back to 0 as last resort.
- Made search option functional again. -
C:\Users\Brian\AppData\Local\devine\services\CTV\_ _init__.py:137 in │
│ get_titles │
│ │
│ 134 │ │ │ ) │
│ 135 │ │
│ 136 │ def get_titles(self) -> Titles_T: │
│ ❱ 137 │ │ title, kind, episode = (re.match(self.TITLE_RE, self.title).gr │
│ 138 │ │ title_path = self.get_title_id(kind, title, episode) │
│ 139 │ │ │
│ 140 │ │ if episode is not None: │
│ │
│ C:\Users\Brian\AppData\Local\devine\services\CTV\_ _init__.py:137 in │
│ <genexpr> │
│ │
│ 134 │ │ │ ) │
│ 135 │ │
│ 136 │ def get_titles(self) -> Titles_T: │
│ ❱ 137 │ │ title, kind, episode = (re.match(self.TITLE_RE, self.title).gr │
│ 138 │ │ title_path = self.get_title_id(kind, title, episode) │
│ 139 │ │ │
│ 140 │ │ if episode is not None: │
╰───────────────────────────────────────────────── ─────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'group' -
-
Thanks stabby. Seems to work pretty well.
[Attachment 80432 - Click to enlarge] -
-
Not with the devine services so far. It has been doing my head in to be honest.
I have written separate scripts for 7plus, 9now and SBS in the last few days. They are all working. I just need to do ABC and then I'm going to look at releasing them in some form.
My biggest learning curve in recent times has been identifying what API's are used for what...and how to go backwards - as my scripts all start with the video URL and grab the manifest/pssh/licence/keys, then various API's to identify the series/season/episode names etc backwards. It's been fun and frustrating at the same time but very rewarding when they work.
[Attachment 80434 - Click to enlarge]
I think the starting from searching a name and going forwards with Devine is what I'm finding tricky. I'll probably reach out for some help with that at some point. -
-
That got rid of the one error but now I got a new one:
Code:╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\site-packages\dev │ │ ine\commands\dl.py:539 in result │ │ │ │ 536 │ │ │ │ │ │ │ ) │ │ 537 │ │ │ │ │ │ │ for i, track in enumerate(title.tracks) │ │ 538 │ │ │ │ │ │ )): │ │ ❱ 539 │ │ │ │ │ │ │ download.result() │ │ 540 │ │ │ except KeyboardInterrupt: │ │ 541 │ │ │ │ console.print(Padding( │ │ 542 │ │ │ │ │ ":x: Download Cancelled...", │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\concurrent\future │ │ s\_base.py:449 in result │ │ │ │ 446 │ │ │ │ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: │ │ 447 │ │ │ │ │ raise CancelledError() │ │ 448 │ │ │ │ elif self._state == FINISHED: │ │ ❱ 449 │ │ │ │ │ return self.__get_result() │ │ 450 │ │ │ │ │ │ 451 │ │ │ │ self._condition.wait(timeout) │ │ 452 │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\concurrent\future │ │ s\_base.py:401 in __get_result │ │ │ │ 398 │ def __get_result(self): │ │ 399 │ │ if self._exception: │ │ 400 │ │ │ try: │ │ ❱ 401 │ │ │ │ raise self._exception │ │ 402 │ │ │ finally: │ │ 403 │ │ │ │ # Break a reference cycle with the exception in self._ │ │ 404 │ │ │ │ self = None │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\concurrent\future │ │ s\thread.py:58 in run │ │ │ │ 55 │ │ │ return │ │ 56 │ │ │ │ 57 │ │ try: │ │ ❱ 58 │ │ │ result = self.fn(*self.args, **self.kwargs) │ │ 59 │ │ except BaseException as exc: │ │ 60 │ │ │ self.future.set_exception(exc) │ │ 61 │ │ │ # Break a reference cycle with the exception 'exc' │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\site-packages\dev │ │ ine\core\tracks\track.py:199 in download │ │ │ │ 196 │ │ │ │ │ license_widevine=prepare_drm │ │ 197 │ │ │ │ ) │ │ 198 │ │ │ elif self.descriptor == self.Descriptor.DASH: │ │ ❱ 199 │ │ │ │ DASH.download_track( │ │ 200 │ │ │ │ │ track=self, │ │ 201 │ │ │ │ │ save_path=save_path, │ │ 202 │ │ │ │ │ save_dir=save_dir, │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\site-packages\dev │ │ ine\core\manifests\dash.py:461 in download_track │ │ │ │ 458 │ │ │ # aria2(c) is shit and doesn't support the Range header, f │ │ 459 │ │ │ downloader = requests_downloader │ │ 460 │ │ │ │ ❱ 461 │ │ for status_update in downloader( │ │ 462 │ │ │ urls=[ │ │ 463 │ │ │ │ { │ │ 464 │ │ │ │ │ "url": url, │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\site-packages\dev │ │ ine\core\downloaders\aria2c.py:351 in aria2c │ │ │ │ 348 │ │ │ p.kill() │ │ 349 │ │ │ p.wait() │ │ 350 │ │ return │ │ ❱ 351 │ yield from download(urls, output_dir, filename, headers, cookies, │ │ 352 │ │ 353 │ │ 354 __all__ = ("aria2c",) │ │ │ │ C:\Users\Brian\AppData\Local\Programs\Python\Python312\Lib\site-packages\dev │ │ ine\core\downloaders\aria2c.py:237 in download │ │ │ │ 234 │ │ │ │ │ │ initial_indent="" │ │ 235 │ │ │ │ │ )) │ │ 236 │ │ │ │ │ console.log(Text.from_ansi("\n[Aria2c]: " + error_ │ │ ❱ 237 │ │ │ │ │ raise ValueError(error) │ │ 238 │ │ │ │ │ 239 │ │ │ if number_stopped == len(urls): │ │ 240 │ │ │ │ rpc( │ ╰──────────────────────────────────────────────────────────────────────────────╯ ValueError: Download Error (#7b974492a15e02c1): Network problem has occurred. cause:A socket operation was attempted to an unreachable network. (1), https://u2.video.9c9media.com/video/v1/95832/dash/widevine/xsvcodec/01-75rm72qm6 8qmjquzllzuklrrphqzllgv76qzxqqppppppppplvwpppz7ak726fzpzqzwvxpvwszspppzvppvzqppp /h264-ffa6v1-24p-primary-7200000/1/90000/0.m4v?filter=25 ❌ Download Failed... One of the track downloads had an error! See the error trace above for more information.
-
I am running into trouble on video with out any english tradoes the download ... does the " -vl " have to be built into the script of that service ,,, or is it there with the devine source
[Attachment 80440 - Click to enlarge]
[Attachment 80441 - Click to enlarge]
[Attachment 80442 - Click to enlarge]
[Attachment 80443 - Click to enlarge] -
it just you, work on my pc
[Attachment 80447 - Click to enlarge]
add --list on cmd to see what video language if it ko, zh so add -vl ko or zh on cmd -
Thank you very much for (finding solution) and making in work
There are few titles from the Pyramid stage that do not work...
# Glastonbury S01E87 SEVENTEEN
Code:https://www.bbc.co.uk/events/e35wxj/play/ajw82m/p0j2wlnt devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt devine dl -r HLG --no-folder -w s01e87 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt Error: geolocation
Code:https://www.bbc.co.uk/events/e35wxj/play/a5hgmb/p0j2wlpq devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wlpq devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlpq devine dl -r HLG --no-folder -w s01e18 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlpq Error: geolocation
Code:https://www.bbc.co.uk/events/e35wxj/acts/a6x4rz NO VIDEO at all?
Code:https://www.bbc.co.uk/events/e35wxj/play/amdn6q/p0j2wrgd devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd devine dl -r HLG --no-folder -w s01e95 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd Error: geolocation
Code:─────────────────────── Glastonbury S01E95 Burna Boy ─────────────────────── Starting new HTTPS connection (1): www.bbc.co.uk:443 https://www.bbc.co.uk:443 "GET /programmes/p0j2wrgd/playlist.json HTTP/11" 200 476 Starting new HTTPS connection (1): securegate.iplayer.bbc.co.uk:443 https://securegate.iplayer.bbc.co.uk:443 "GET /mediaselector/6/select/version/2.0/vpid/p0j2ws0r/format/json/mediaset /iptv-uhd/proto/https HTTP/11" 404 None Starting new HTTPS connection (1): ipsecure.stage.bbc.co.uk:443 https://ipsecure.stage.bbc.co.uk:443 "GET /mediaselector/6/select/version/2.0/vpid/p0j2ws0r/format/json/mediaset /iptv-uhd/proto/https HTTP/11" 403 None Error: geolocation
So is that the case of the UHD not being available or the manifest hiding somewhere else?
The rest worked great and looks amazing in HLG, sound could have been Hi-Res ..........
(Did any other stage got the HLG treatment by accident by any change)? -
The error is quite literally telling you what the problem is. Your IP is blocked due to being in an unsupported geographic location.
They are available in FHD with a valid IP.
# Glastonbury S01E87 SEVENTEEN
Code:devine dl --list ip https://www.bbc.co.uk/iplayer/episode/p0j2wlnt ──────────────────────── Series: Glastonbury (2024) ──────────────────────── 1 Season, 1 Episode ─────────────────────── Glastonbury S01E87 SEVENTEEN ─────────────────────── ╭───────────────────────── Available Tracks ─────────────────────────╮ │ 12 Videos │ │ ├── [H.264, SDR] | en | 1920x1080 @ 12000 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 1280x720 @ 5070 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 960x540 @ 2812 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 960x540 @ 1604 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 704x396 @ 1570 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 704x396 @ 827 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 640x360 @ 688 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 512x288 @ 437 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 448x252 @ 436 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 384x216 @ 281 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 256x144 @ 156 kb/s, 25.000 FPS │ │ └── [H.264, SDR] | en | 192x108 @ 86 kb/s, 25.000 FPS │ │ 3 Audio │ │ ├── [AAC] | en | 2.0 | 128 kb/s │ │ ├── [AAC] | en | 2.0 | 96 kb/s │ │ └── [AAC] | en | 2.0 | 48 kb/s │ ╰────────────────────────────────────────────────────────────────────╯
Code:devine dl --list ip https://www.bbc.co.uk/iplayer/episode/p0j2wlpq ──────────────────────── Series: Glastonbury (2024) ──────────────────────── 1 Season, 1 Episode ────────────────────── Glastonbury S01E18 Olivia Dean ────────────────────── ╭───────────────────────── Available Tracks ─────────────────────────╮ │ 12 Videos │ │ ├── [H.264, SDR] | en | 1920x1080 @ 12000 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 1280x720 @ 5070 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 960x540 @ 2812 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 960x540 @ 1604 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 704x396 @ 1570 kb/s, 50.000 FPS │ │ ├── [H.264, SDR] | en | 704x396 @ 827 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 640x360 @ 688 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 512x288 @ 437 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 448x252 @ 436 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 384x216 @ 281 kb/s, 25.000 FPS │ │ ├── [H.264, SDR] | en | 256x144 @ 156 kb/s, 25.000 FPS │ │ └── [H.264, SDR] | en | 192x108 @ 86 kb/s, 25.000 FPS │ │ 3 Audio │ │ ├── [AAC] | en | 2.0 | 128 kb/s │ │ ├── [AAC] | en | 2.0 | 96 kb/s │ │ └── [AAC] | en | 2.0 | 48 kb/s │ ╰────────────────────────────────────────────────────────────────────╯
Code:devine dl -r HLG --list ip https://www.bbc.co.uk/iplayer/episode/p0j2wlnt ──────────────────────── Series: Glastonbury (2024) ──────────────────────── 1 Season, 1 Episode ─────────────────────── Glastonbury S01E87 SEVENTEEN ─────────────────────── Error: selectionunavailable
-
Pyramid stage showing 18 acts (6 per day),
apart from the 4 mentioned above in my post,
all 14 downloaded without any error in UHD,
so why would the Beeb not make the 3 also available in UHD
and not sure why Ayra Starr performace is not available at all .....
geolocation = the previous 14 UHD tracks worked ... ???
Strange I have now tried with the VPN
Code:─────────────────────────────── Service: iP ──────────────────────────────── Service is not Geoblocked in your region ──────────────────────── Series: Glastonbury (2024) ──────────────────────── 1 Season, 1 Episode ─────────────────────── Glastonbury S01E87 SEVENTEEN ─────────────────────── Error: selectionunavailable
With VPN compatible with BBC = Service is not Geoblocked in your region
Code:─────────────────────────────── Service: iP ──────────────────────────────── Service is not Geoblocked in your region ──────────────────────── Series: Glastonbury (2024) ──────────────────────── 1 Season, 1 Episode ─────────────────────── Glastonbury S01E87 SEVENTEEN ─────────────────────── Error: geolocation
#Glastonbury S01E04 Dua Lipa
devine dl -r HLG --no-folder -w s01e4 iP https://www.bbc.co.uk/iplayer/episode/p0j4wqsy
#Glastonbury S01E136 LCD Soundsystem
devine dl -r HLG --no-folder -w s01e136 iP https://www.bbc.co.uk/iplayer/episode/p0j2wll3
#Glastonbury S01E81 PJ Harvey
devine dl -r HLG --no-folder -w s01e81 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlmn
#Glastonbury S01E79 Paul Heaton
devine dl -r HLG --no-folder -w s01e79 iP https://www.bbc.co.uk/iplayer/episode/p0j2wln5
# Glastonbury S01E87 SEVENTEEN
https://www.bbc.co.uk/events/e35wxj/acts/ajw82m
https://www.bbc.co.uk/events/e35wxj/play/ajw82m/p0j2wlnt
devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt
devine dl --list -v H.264 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt
devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt
devine dl -r HLG --no-folder -w s01e87 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlnt
Error: geolocation
#Glastonbury S01E18 Olivia Dean
https://www.bbc.co.uk/events/e35wxj/play/a5hgmb/p0j2wlpq
devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wlpq
devine dl --list -v H.264 iP https://www.bbc.co.uk/iplayer/episode/
devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/
devine dl -r HLG --no-folder -w s01e18 iP https://www.bbc.co.uk/iplayer/episode/p0j2wlpq
Error: geolocation
-----------------------------------------------------------
#Glastonbury S01E03 Coldplay
devine dl -r HLG --no-folder -w s01e3 iP https://www.bbc.co.uk/iplayer/episode/p0j4x4tr
#Glastonbury S01E08 Little Simz
devine dl -r HLG --no-folder -w s01e8 iP https://www.bbc.co.uk/iplayer/episode/p0j2wnv3
#Glastonbury S01E113 Michael Kiwanuka
devine dl -r HLG --no-folder -w s01e113 iP https://www.bbc.co.uk/iplayer/episode/p0j2wnwj
#Glastonbury S01E78 Keane
devine dl -r HLG --no-folder -w s01e78 iP https://www.bbc.co.uk/iplayer/episode/p0j2wnwv
#Glastonbury S01E77 Cyndi Lauper
devine dl -r HLG --no-folder -w s01e77 iP https://www.bbc.co.uk/iplayer/episode/p0j2wnx5
NO VIDEO - Ayra Starr
https://www.bbc.co.uk/events/e35wxj/acts/a6x4rz
-----------------------------------------------------------
#Glastonbury S01E06 SZA
devine dl -r HLG --no-folder -w s01e6 iP https://www.bbc.co.uk/iplayer/episode/p0j4xtwx
#Glastonbury S01E95 Burna Boy
https://www.bbc.co.uk/events/e35wxj/acts/amdn6q
https://www.bbc.co.uk/events/e35wxj/play/amdn6q/p0j2wrgd
devine dl --list-titles iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd
devine dl --list -v H.264 iP https://www.bbc.co.uk/iplayer/episode/
devine dl --list -v H.265 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd
devine dl -r HLG --no-folder -w s01e95 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd
Error: geolocation
devine -d dl -r HLG --no-folder -w s01e95 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrgd
#Glastonbury S01E19 Janelle Monáe
devine dl -r HLG --no-folder -w s01e19 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrhk
#Glastonbury S01E05 Shania Twain
devine dl -r HLG --no-folder -w s01e5 iP https://www.bbc.co.uk/iplayer/episode/p0j4xnnj
#Glastonbury S01E89 Paloma Faith
devine dl -r HLG --no-folder -w s01e89 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrj8
#Glastonbury S01E84 Seasick Steve
devine dl -r HLG --no-folder -w s01e84 iP https://www.bbc.co.uk/iplayer/episode/p0j2wrmw -
First of all, please try to condense your posts.
The errors are coming straight from the server response and not something I've added. If you're blocked, you're blocked. If it's not available, it's not available. There's nothing more I can do about it aside from calling them up and asking what drunk moron designed their API.
Originally Posted by pssh -
[Attachment 80456 - Click to enlarge]
[Attachment 80457 - Click to enlarge]
am I doing something else wrong now ? -
list episodes
devine dl --list-titles VIKI https://www.viki.com/tv/40503c-girls-on-fire
list info (ep01)
devine dl --list VIKI https://www.viki.com/videos/1248817v-girls-on-fire-episode-1
find video track to see what langage is it
devine dl -vl ko VIKI https://www.viki.com/videos/1248817v-girls-on-fire-episode-1Last edited by iamghost; 6th Jul 2024 at 07:21.
-
-
Is there a CWTV service script out as i want to get penn and teller however as far as i can try it isn't possible currently without the premium software options.
-
I am simply trying to understand how it works and why I got the "GEOFENCE" errors
even that 14 UHD programs downloaded without any problems,
but it looks like you think I am having a go at you, that is not that case!
In your original post you wrote:
Code:The error is quite literally telling you what the problem is. Your IP is blocked due to being in an unsupported geographic location. They are available in FHD with a valid IP.
(The 3 requests war made early on when downloading the 14 performances......)
There was other UHD content that did not work with iP, and you fixed it, so I assumed that the 3 performances could be part
of glitch that makes it's way in the iPlayer, but this somehow irradiated you .......and before you simply looked at this
and come up with fix or MPD .... now there was not need for statment:
Code:There's nothing more I can do about it aside from calling them up and asking what drunk moron designed their API.
how I can check the UHD endpoints of the iPlayer so I can in the future
have a look myself get the MPD and not need to post here.....? -
I wasn't thinking that at all, and I apologize if I came off that way. English isn't my first language and I tend to be pretty blunt in general, so things can get lost in translation sometimes.
I've exhausted all the options I can find, so there's literally nothing more I can do. If there are even more endpoints being used, I can't find them. And I can't tell you why you get geolocation errors on only certain titles, because I'm not in control of it. Using VPN/proxy, this is always going to be a factor. And iPlayer in particular gets pretty aggressive with blocking/proxy detection when you go above the 720p web streams.
To find endpoints, you either need to inspect the traffic or possibly decompile the .apk and go through the source code. -
-
Anybody else using the .pem file that was mentioned on this thread some pages back?
I haven't been able to get any UHD tracks for a while now. Just getting "Failed to request the MPD document." on every command.
Code:devine dl -r HLG -w S01E01 iP m0020bv6
Code:devine dl -r HLG iP https://www.bbc.co.uk/iplayer/episode/m0020bv8/a-good-girls-guide-to-murder-series-1-episode-1
If someone could check if it's actually the .pem that's the problem or could it be something else? -
-
-
Similar Threads
-
How do I completely remove the music and sound effects from a movie?
By cns00 in forum EditingReplies: 1Last Post: 15th Jan 2024, 12:11 -
Which software can remove music from show but keep character dialogue?
By Mohamed61020 in forum AudioReplies: 6Last Post: 2nd Jul 2023, 21:32 -
Software for simple music videos?
By dewiclements in forum Software PlayingReplies: 3Last Post: 26th Jul 2022, 01:21 -
H.264 for archival and editing - no go?
By malling in forum CapturingReplies: 8Last Post: 19th Aug 2019, 23:51 -
Movie music too loud but dialogue too quiet fix needed
By hokkom in forum AudioReplies: 121Last Post: 4th May 2019, 08:51