From 5a4824fbe744a1b1a52a947921c9ef57f9020d54 Mon Sep 17 00:00:00 2001 From: StopIteration Date: Mon, 17 Apr 2017 22:54:19 -0700 Subject: [PATCH] [xfileshare] Support gorillavid.*com* domain Previously, only the gorillavid.in domain was supported. gorillavid.com redirects to gorillavid.in, but I have run across gorillavid.com links in certain data from time to time. I also sorted the names of the xfileshare sites to provide a consistent order since I ran it through `set`. --- youtube_dl/extractor/xfileshare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/xfileshare.py b/youtube_dl/extractor/xfileshare.py index 1b5cd122a..e74b1ee54 100644 --- a/youtube_dl/extractor/xfileshare.py +++ b/youtube_dl/extractor/xfileshare.py @@ -20,6 +20,7 @@ class XFileShareIE(InfoExtractor): ('daclips.in', 'DaClips'), ('filehoot.com', 'FileHoot'), ('gorillavid.in', 'GorillaVid'), + ('gorillavid.com', 'GorillaVid'), ('movpod.in', 'MovPod'), ('powerwatch.pw', 'PowerWatch'), ('rapidvideo.ws', 'Rapidvideo.ws'), @@ -32,7 +33,7 @@ class XFileShareIE(InfoExtractor): ('vidlo.us', 'vidlo'), ) - IE_DESC = 'XFileShare based sites: %s' % ', '.join(list(zip(*_SITES))[1]) + IE_DESC = 'XFileShare based sites: %s' % ', '.join(sorted(set(list(zip(*_SITES))[1]))) _VALID_URL = (r'https?://(?P(?:www\.)?(?:%s))/(?:embed-)?(?P[0-9a-zA-Z]+)' % '|'.join(re.escape(site) for site in list(zip(*_SITES))[0]))