From 7496a0401cc1f398bd6d72a566025de178e7871d Mon Sep 17 00:00:00 2001 From: schnusch Date: Sat, 24 Apr 2021 21:55:18 +0200 Subject: [PATCH] [doodstream] only fetch embedded page, remove from generic extractors --- youtube_dl/extractor/doodstream.py | 18 +++++------------- youtube_dl/extractor/generic.py | 6 ------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/youtube_dl/extractor/doodstream.py b/youtube_dl/extractor/doodstream.py index 2d8fb1476..ddddd717a 100644 --- a/youtube_dl/extractor/doodstream.py +++ b/youtube_dl/extractor/doodstream.py @@ -4,9 +4,11 @@ from __future__ import unicode_literals import string import random import time -import re from .common import InfoExtractor +from ..utils import ( + urljoin, +) class DoodStreamIE(InfoExtractor): @@ -22,21 +24,11 @@ class DoodStreamIE(InfoExtractor): }, }] - @staticmethod - def _extract_urls(webpage): - return re.findall( - r']+?src=["\'](?P(?:https?://)?dood\.(?:watch|to|so)/e/.+?)["\']', - webpage) - def _real_extract(self, url): video_id = self._match_id(url) - webpage = self._download_webpage(url, video_id) - if '/d/' in url: - url = "https://dood.to" + self._html_search_regex( - r'