From de2951e53e4de2f1bad129fb79dd2ca4a3001e68 Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 25 May 2020 21:04:52 -0400 Subject: [PATCH] add to extractor file --- youtube_dl/extractor/extractors.py | 1 + youtube_dl/extractor/pbskids.py | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 4b3092028..9829b550f 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -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 diff --git a/youtube_dl/extractor/pbskids.py b/youtube_dl/extractor/pbskids.py index 74b483af7..64f76c1c5 100644 --- a/youtube_dl/extractor/pbskids.py +++ b/youtube_dl/extractor/pbskids.py @@ -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)