Compare commits

...

23 Commits

Author SHA1 Message Date
DmitryScaletta
5f331aede5
Merge 107bed866f into 4b5eec0aaa 2024-11-25 08:30:42 +05:30
Jakob Kruse
4b5eec0aaa
[ie/chaturbate] Fix support for non-public streams (#11624)
Fix bug in 720b3dc453

Closes #11623
Authored by: jkruse
2024-11-24 22:20:30 +00:00
DmitryScaletta
107bed866f
[PromoDJ] Sort imports 2024-02-27 02:32:49 +03:00
DmitryScaletta
2416fddcfb
[PromoDJ] Add codecs 2024-02-17 05:24:49 +03:00
DmitryScaletta
49ac5d31a3
[PromoDJ] Update radio extractor and add tests 2024-02-17 05:06:06 +03:00
DmitryScaletta
e32ba3fc21
[PromoDJ] Fix login regex 2024-02-17 04:16:05 +03:00
DmitryScaletta
345d01a175
[PromoDJ] Fix negative lookahead check 2024-02-16 23:22:57 +03:00
DmitryScaletta
ed61b73bcd
[PromoDJ] Remove player's width and height 2024-02-15 21:50:13 +03:00
DmitryScaletta
900bc5f708
[PromoDJ] Refactor fetch_media_data and regexes 2024-02-15 21:32:19 +03:00
DmitryScaletta
99dec4d6ed
[PromoDJ] Add music format ids 2024-02-15 13:48:13 +03:00
DmitryScaletta
1b3c186424
[PromoDJ] Fix page size for playlists 2024-02-15 12:41:29 +03:00
DmitryScaletta
7e96492ba0
[PromoDJ] Fix page size for playlists 2024-02-15 12:39:46 +03:00
DmitryScaletta
e6f3e6de0e
[PromoDJ] Fix paid music metadata 2024-02-15 12:34:50 +03:00
DmitryScaletta
c837d90e12
[PromoDJ] Add support for user's best media playlist 2024-02-15 12:21:53 +03:00
DmitryScaletta
c820715205
[PromoDJ] Fix parse data and size functions 2024-02-15 11:53:12 +03:00
DmitryScaletta
0c8466572f
[PromoDJ] Add more tests 2024-02-15 00:53:12 +03:00
DmitryScaletta
5b148c0f79
[PromoDJ] Improve video formats, update tests 2024-02-14 17:55:59 +03:00
DmitryScaletta
85b739eba7
[PromoDJ] Update media info extraction logic 2024-02-14 16:23:17 +03:00
DmitryScaletta
a634e7c5d1
[PromoDJ] Some refactoring 2024-02-14 14:00:03 +03:00
DmitryScaletta
13f116fce6
[PromoDJ] Rename media_types to allowed_media_cats 2024-02-14 04:40:18 +03:00
DmitryScaletta
ca0be3f1c1
[PromoDJ] Improve extractors 2024-02-14 04:36:08 +03:00
DmitryScaletta
3416c1a0e8
[PromoDJ] Add user pages and blogs extractors 2024-02-14 00:46:01 +03:00
DmitryScaletta
1a256e5d56
[PromoDJ] Add extractors 2024-02-13 22:57:05 +03:00
3 changed files with 1071 additions and 8 deletions

View File

@ -1593,6 +1593,21 @@
from .premiershiprugby import PremiershipRugbyIE from .premiershiprugby import PremiershipRugbyIE
from .presstv import PressTVIE from .presstv import PressTVIE
from .projectveritas import ProjectVeritasIE from .projectveritas import ProjectVeritasIE
from .promodj import (
PromoDJPageIE,
PromoDJUserIE,
PromoDJUserMediaIE,
PromoDJUserPagesIE,
PromoDJUserPageIE,
PromoDJBlogPageIE,
PromoDJPlaylistIE,
PromoDJMusicPlaylistIE,
PromoDJVideoPlaylistIE,
PromoDJIE,
PromoDJEmbedIE,
PromoDJShortIE,
PromoDJRadioIE,
)
from .prosiebensat1 import ProSiebenSat1IE from .prosiebensat1 import ProSiebenSat1IE
from .prx import ( from .prx import (
PRXAccountIE, PRXAccountIE,

View File

@ -59,16 +59,15 @@ def _extract_from_api(self, video_id, tld):
'Accept': 'application/json', 'Accept': 'application/json',
}, fatal=False, impersonate=True) or {} }, fatal=False, impersonate=True) or {}
status = response.get('room_status')
if status != 'public':
if error := self._ERROR_MAP.get(status):
raise ExtractorError(error, expected=True)
self.report_warning('Falling back to webpage extraction')
return None
m3u8_url = response.get('url') m3u8_url = response.get('url')
if not m3u8_url: if not m3u8_url:
self.raise_geo_restricted() status = response.get('room_status')
if error := self._ERROR_MAP.get(status):
raise ExtractorError(error, expected=True)
if status == 'public':
self.raise_geo_restricted()
self.report_warning(f'Got status "{status}" from API; falling back to webpage extraction')
return None
return { return {
'id': video_id, 'id': video_id,

1049
yt_dlp/extractor/promodj.py Normal file

File diff suppressed because it is too large Load Diff