aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/roxwel.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-02-12 21:05:27 -0500
committerJesús <heckyel@hyperbola.info>2022-02-12 21:05:27 -0500
commitaf4847e22e81d05177f92c712983ab3f2f20184b (patch)
tree6b749333494ffe379df3e1a060660e4b1afcdf85 /yt_dlp/extractor/roxwel.py
parentc4b763b19f54ed5dfc2fd408adb9ed74126f6740 (diff)
parent29448350808619262d6a9ddd393a2c28df1720fe (diff)
downloadhypervideo-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/roxwel.py')
-rw-r--r--yt_dlp/extractor/roxwel.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/yt_dlp/extractor/roxwel.py b/yt_dlp/extractor/roxwel.py
deleted file mode 100644
index 84bb1aa00..000000000
--- a/yt_dlp/extractor/roxwel.py
+++ /dev/null
@@ -1,52 +0,0 @@
-from __future__ import unicode_literals
-
-
-from .common import InfoExtractor
-from ..utils import unified_strdate, determine_ext
-
-
-class RoxwelIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?roxwel\.com/player/(?P<filename>.+?)(\.|\?|$)'
-
- _TEST = {
- 'url': 'http://www.roxwel.com/player/passionpittakeawalklive.html',
- 'info_dict': {
- 'id': 'passionpittakeawalklive',
- 'ext': 'flv',
- 'title': 'Take A Walk (live)',
- 'uploader': 'Passion Pit',
- 'uploader_id': 'passionpit',
- 'upload_date': '20120928',
- 'description': 'Passion Pit performs "Take A Walk\" live at The Backyard in Austin, Texas. ',
- },
- 'params': {
- # rtmp download
- 'skip_download': True,
- }
- }
-
- def _real_extract(self, url):
- mobj = self._match_valid_url(url)
- filename = mobj.group('filename')
- info_url = 'http://www.roxwel.com/api/videos/%s' % filename
- info = self._download_json(info_url, filename)
-
- rtmp_rates = sorted([int(r.replace('flv_', '')) for r in info['media_rates'] if r.startswith('flv_')])
- best_rate = rtmp_rates[-1]
- url_page_url = 'http://roxwel.com/pl_one_time.php?filename=%s&quality=%s' % (filename, best_rate)
- rtmp_url = self._download_webpage(url_page_url, filename, 'Downloading video url')
- ext = determine_ext(rtmp_url)
- if ext == 'f4v':
- rtmp_url = rtmp_url.replace(filename, 'mp4:%s' % filename)
-
- return {
- 'id': filename,
- 'title': info['title'],
- 'url': rtmp_url,
- 'ext': 'flv',
- 'description': info['description'],
- 'thumbnail': info.get('player_image_url') or info.get('image_url_large'),
- 'uploader': info['artist'],
- 'uploader_id': info['artistname'],
- 'upload_date': unified_strdate(info['dbdate']),
- }