1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-20 18:01:19 +08:00

add to extractor file

This commit is contained in:
Scott
2020-05-25 21:04:52 -04:00
Unverified
parent 47f777b1c3
commit de2951e53e
2 changed files with 1 additions and 9 deletions
+1
View File
@@ -825,6 +825,7 @@ from .pandoratv import PandoraTVIE
from .parliamentliveuk import ParliamentLiveUKIE
from .patreon import PatreonIE
from .pbs import PBSIE
from .pbskids import PBSKIDSIE
from .pearvideo import PearVideoIE
from .peertube import PeerTubeIE
from .people import PeopleIE
-9
View File
@@ -50,15 +50,6 @@ class PBSKIDSIE(InfoExtractor):
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):
mobj = re.match(self._VALID_URL, url)