aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/go.py
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-09-29 01:34:52 +0200
committerGitHub <noreply@github.com>2020-09-29 01:34:52 +0200
commitbd88d90f22bd15fcce2f128cc8563407a0734c57 (patch)
tree5787e5e67107301473b11051838bbf2b52cca044 /youtube_dlc/extractor/go.py
parentb96a939bbf2248f194daf9818c41e215c7b1854c (diff)
parent61e4c6ed454d0b015ad6f22d7540d3c914cd34bb (diff)
downloadhypervideo-pre-bd88d90f22bd15fcce2f128cc8563407a0734c57.tar.lz
hypervideo-pre-bd88d90f22bd15fcce2f128cc8563407a0734c57.tar.xz
hypervideo-pre-bd88d90f22bd15fcce2f128cc8563407a0734c57.zip
Merge pull request #149 from kucksdorfs/master
Added regex for ABC.com site.
Diffstat (limited to 'youtube_dlc/extractor/go.py')
-rw-r--r--youtube_dlc/extractor/go.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/go.py b/youtube_dlc/extractor/go.py
index 03cfba91f..7a75dfa49 100644
--- a/youtube_dlc/extractor/go.py
+++ b/youtube_dlc/extractor/go.py
@@ -137,7 +137,11 @@ class GoIE(AdobePassIE):
# There may be inner quotes, e.g. data-video-id="'VDKA3609139'"
# from http://freeform.go.com/shows/shadowhunters/episodes/season-2/1-this-guilty-blood
r'data-video-id=["\']*(VDKA\w+)',
- # https://abc.com/shows/the-rookie/episode-guide/season-02/03-the-bet
+ # https://github.com/ytdl-org/youtube-dl/pull/25216/files
+ # The following is based on the pull request on the line above. Changed the ABC.com URL to a show available now.
+ # https://abc.com/shows/the-rookie/episode-guide/season-02/19-the-q-word
+ r'\bvideoIdCode["\']\s*:\s*["\'](vdka\w+)',
+ # Deprecated fallback pattern
r'\b(?:video)?id["\']\s*:\s*["\'](VDKA\w+)'
), webpage, 'video id', default=video_id)
if not site_info: