Update go.py

Leaves original pattern untouched.
This commit is contained in:
Timothy Wynn 2020-06-06 22:49:53 -04:00 committed by GitHub
parent 5a3e2a4fb1
commit 783d2968ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ class GoIE(AdobePassIE):
# 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
r'\bvideoIdCode["\']\s*:\s*["\'](vdka\w+)'
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:
brand = self._search_regex(