mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-08 17:13:21 +08:00
add to extractor file
This commit is contained in:
parent
47f777b1c3
commit
de2951e53e
@ -825,6 +825,7 @@ from .pandoratv import PandoraTVIE
|
|||||||
from .parliamentliveuk import ParliamentLiveUKIE
|
from .parliamentliveuk import ParliamentLiveUKIE
|
||||||
from .patreon import PatreonIE
|
from .patreon import PatreonIE
|
||||||
from .pbs import PBSIE
|
from .pbs import PBSIE
|
||||||
|
from .pbskids import PBSKIDSIE
|
||||||
from .pearvideo import PearVideoIE
|
from .pearvideo import PearVideoIE
|
||||||
from .peertube import PeerTubeIE
|
from .peertube import PeerTubeIE
|
||||||
from .people import PeopleIE
|
from .people import PeopleIE
|
||||||
|
@ -50,15 +50,6 @@ class PBSKIDSIE(InfoExtractor):
|
|||||||
410: 'This video has expired and is no longer available for online streaming.',
|
410: 'This video has expired and is no longer available for online streaming.',
|
||||||
}
|
}
|
||||||
|
|
||||||
def _real_initialize(self):
|
|
||||||
cookie = (self._download_json(
|
|
||||||
'http://localization.services.pbs.org/localize/auto/cookie/',
|
|
||||||
None, headers=self.geo_verification_headers(), fatal=False) or {}).get('cookie')
|
|
||||||
if cookie:
|
|
||||||
station = self._search_regex(r'#?s=\["([^"]+)"', cookie, 'station')
|
|
||||||
if station:
|
|
||||||
self._set_cookie('.pbs.org', 'pbsol.station', station)
|
|
||||||
|
|
||||||
def _extract_webpage(self, url):
|
def _extract_webpage(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user