diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-12 21:05:27 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-12 21:05:27 -0500 |
commit | af4847e22e81d05177f92c712983ab3f2f20184b (patch) | |
tree | 6b749333494ffe379df3e1a060660e4b1afcdf85 /yt_dlp/extractor/ro220.py | |
parent | c4b763b19f54ed5dfc2fd408adb9ed74126f6740 (diff) | |
parent | 29448350808619262d6a9ddd393a2c28df1720fe (diff) | |
download | hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.tar.lz hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.tar.xz hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.zip |
updated from upstream | 12/02/2022 at 21:05
Diffstat (limited to 'yt_dlp/extractor/ro220.py')
-rw-r--r-- | yt_dlp/extractor/ro220.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/yt_dlp/extractor/ro220.py b/yt_dlp/extractor/ro220.py deleted file mode 100644 index 69934ef2b..000000000 --- a/yt_dlp/extractor/ro220.py +++ /dev/null @@ -1,43 +0,0 @@ -from __future__ import unicode_literals - -from .common import InfoExtractor -from ..compat import compat_urllib_parse_unquote - - -class Ro220IE(InfoExtractor): - IE_NAME = '220.ro' - _VALID_URL = r'(?x)(?:https?://)?(?:www\.)?220\.ro/(?P<category>[^/]+)/(?P<shorttitle>[^/]+)/(?P<id>[^/]+)' - _TEST = { - 'url': 'http://www.220.ro/sport/Luati-Le-Banii-Sez-4-Ep-1/LYV6doKo7f/', - 'md5': '03af18b73a07b4088753930db7a34add', - 'info_dict': { - 'id': 'LYV6doKo7f', - 'ext': 'mp4', - 'title': 'Luati-le Banii sez 4 ep 1', - 'description': r're:^Iata-ne reveniti dupa o binemeritata vacanta\. +Va astept si pe Facebook cu pareri si comentarii.$', - } - } - - def _real_extract(self, url): - video_id = self._match_id(url) - - webpage = self._download_webpage(url, video_id) - url = compat_urllib_parse_unquote(self._search_regex( - r'(?s)clip\s*:\s*{.*?url\s*:\s*\'([^\']+)\'', webpage, 'url')) - title = self._og_search_title(webpage) - description = self._og_search_description(webpage) - thumbnail = self._og_search_thumbnail(webpage) - - formats = [{ - 'format_id': 'sd', - 'url': url, - 'ext': 'mp4', - }] - - return { - 'id': video_id, - 'formats': formats, - 'title': title, - 'description': description, - 'thumbnail': thumbnail, - } |