mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 07:28:19 +01:00
Compare commits
23 Commits
639373a684
...
5f331aede5
Author | SHA1 | Date | |
---|---|---|---|
|
5f331aede5 | ||
|
4b5eec0aaa | ||
|
107bed866f | ||
|
2416fddcfb | ||
|
49ac5d31a3 | ||
|
e32ba3fc21 | ||
|
345d01a175 | ||
|
ed61b73bcd | ||
|
900bc5f708 | ||
|
99dec4d6ed | ||
|
1b3c186424 | ||
|
7e96492ba0 | ||
|
e6f3e6de0e | ||
|
c837d90e12 | ||
|
c820715205 | ||
|
0c8466572f | ||
|
5b148c0f79 | ||
|
85b739eba7 | ||
|
a634e7c5d1 | ||
|
13f116fce6 | ||
|
ca0be3f1c1 | ||
|
3416c1a0e8 | ||
|
1a256e5d56 |
|
@ -1593,6 +1593,21 @@
|
|||
from .premiershiprugby import PremiershipRugbyIE
|
||||
from .presstv import PressTVIE
|
||||
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 .prx import (
|
||||
PRXAccountIE,
|
||||
|
|
|
@ -59,16 +59,15 @@ def _extract_from_api(self, video_id, tld):
|
|||
'Accept': 'application/json',
|
||||
}, 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')
|
||||
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 {
|
||||
'id': video_id,
|
||||
|
|
1049
yt_dlp/extractor/promodj.py
Normal file
1049
yt_dlp/extractor/promodj.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user