aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/generic.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-20 02:14:36 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-20 02:32:22 +0530
commitbc2ca1bb75d586b75d83a6f60b680ee07227ff28 (patch)
treee00af2ced38c0a0c1dfead4d27f3edba9c9651e4 /youtube_dlc/extractor/generic.py
parent5e41dca334b152d3757cff318c5f72843aeea255 (diff)
downloadhypervideo-pre-bc2ca1bb75d586b75d83a6f60b680ee07227ff28.tar.lz
hypervideo-pre-bc2ca1bb75d586b75d83a6f60b680ee07227ff28.tar.xz
hypervideo-pre-bc2ca1bb75d586b75d83a6f60b680ee07227ff28.zip
Update to ytdl-commit-cf2dbec
https://github.com/ytdl-org/youtube-dl/commit/cf2dbec6301177a1fddf72862de05fa912d9869d Except: [kakao] improve info extraction and detect geo restriction https://github.com/ytdl-org/youtube-dl/commit/d8085580f63ad3b146a31712ff76cf41d5a4558a
Diffstat (limited to 'youtube_dlc/extractor/generic.py')
-rw-r--r--youtube_dlc/extractor/generic.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/generic.py b/youtube_dlc/extractor/generic.py
index 819ba46a8..8cde11d2b 100644
--- a/youtube_dlc/extractor/generic.py
+++ b/youtube_dlc/extractor/generic.py
@@ -133,6 +133,7 @@ from .bitchute import BitChuteIE
from .rumble import RumbleEmbedIE
from .arcpublishing import ArcPublishingIE
from .medialaan import MedialaanIE
+from .simplecast import SimplecastIE
class GenericIE(InfoExtractor):
@@ -2240,6 +2241,15 @@ class GenericIE(InfoExtractor):
'duration': 159,
},
},
+ {
+ # Simplecast player embed
+ 'url': 'https://www.bio.org/podcast',
+ 'info_dict': {
+ 'id': 'podcast',
+ 'title': 'I AM BIO Podcast | BIO',
+ },
+ 'playlist_mincount': 52,
+ },
]
def report_following_redirect(self, new_url):
@@ -2794,6 +2804,12 @@ class GenericIE(InfoExtractor):
return self.playlist_from_matches(
matches, video_id, video_title, getter=unescapeHTML, ie='FunnyOrDie')
+ # Look for Simplecast embeds
+ simplecast_urls = SimplecastIE._extract_urls(webpage)
+ if simplecast_urls:
+ return self.playlist_from_matches(
+ simplecast_urls, video_id, video_title)
+
# Look for BBC iPlayer embed
matches = re.findall(r'setPlaylist\("(https?://www\.bbc\.co\.uk/iplayer/[^/]+/[\da-z]{8})"\)', webpage)
if matches: