1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-21 20:15:36 +08:00

Added Support for HGTV.ca

Since both hgtv.ca and hgtv.com are using the same CMS, by updating the
existing script to support both domains, it works well.
This commit is contained in:
Alexandre Vallières-Lagacé 2020-02-24 13:33:57 -05:00
parent bee6451fe8
commit 810dfad7b9
No known key found for this signature in database
GPG Key ID: A8074D03A8804897
2 changed files with 8 additions and 8 deletions

View File

@ -425,7 +425,7 @@ from .heise import HeiseIE
from .hellporno import HellPornoIE
from .helsinki import HelsinkiIE
from .hentaistigma import HentaiStigmaIE
from .hgtv import HGTVComShowIE
from .hgtv import HGTVShowIE
from .hketv import HKETVIE
from .hidive import HiDiveIE
from .historicfilms import HistoricFilmsIE

View File

@ -4,17 +4,17 @@ from __future__ import unicode_literals
from .common import InfoExtractor
class HGTVComShowIE(InfoExtractor):
IE_NAME = 'hgtv.com:show'
_VALID_URL = r'https?://(?:www\.)?hgtv\.com/shows/[^/]+/(?P<id>[^/?#&]+)'
class HGTVShowIE(InfoExtractor):
IE_NAME = 'hgtv:show'
_VALID_URL = r'https?://(?:www\.)?hgtv\.(?:com|ca)/shows/[^/]+/(?P<id>[^/?#&]+)'
_TESTS = [{
# data-module="video"
'url': 'http://www.hgtv.com/shows/flip-or-flop/flip-or-flop-full-episodes-season-4-videos',
'url': 'https://www.hgtv.com/shows/fixer-upper/fixer-upper-full-episodes-videos',
'info_dict': {
'id': 'flip-or-flop-full-episodes-season-4-videos',
'title': 'Flip or Flop Full Episodes',
'id': 'fixer-upper-full-episodes-videos',
'title': 'Fixer Upper - Full Episodes',
},
'playlist_mincount': 15,
'playlist_mincount': 14,
}, {
# data-deferred-module="video"
'url': 'http://www.hgtv.com/shows/good-bones/episodes/an-old-victorian-house-gets-a-new-facelift',