text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, unified_strdate, ) class ExpoTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?expotv\.com/videos/[^?#]*/(?P<id>[0-9]+)($|[?#])' _TEST = { 'url': 'http://www.expotv....
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>talSecondsDuration') or data.get('totalSecondsDuration')) timestamp = unified_timestamp(info.get('publishDate')) return { 'id': video_id, 'display_id': display_id, 'title': title, 'description': description, ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> .nba import ( NBAWatchEmbedIE, NBAWatchIE, NBAWatchCollectionIE, NBAEmbedIE, NBAIE, NBAChannelIE, ) from .nbc import ( NBCIE, NBCNewsIE, NBCOlympicsIE, NBCOlympicsStreamIE, NBCSportsIE, NBCSportsStreamIE, NBCSportsVPlayerIE, ) from .ndr import ( NDR...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>nt, }) return info <|fim_prefix|>from __future__ import unicode_literals from ..utils import str_to_int from .keezm<|fim_middle|>ovies import KeezMoviesIE class ExtremeTubeIE(KeezMoviesIE): _VALID_URL = r'https?://(?:www\.)?extremetube\.com/(?:[^/]+/)?video/(?P<id>[^/#?&]+)' _T...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( xpath_text, parse_duration, ExtractorError, ) class EyedoTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?eyedo\.tv/[^/]+/(?:#!/)?Live/Detail/(?P<id>[0-9]+)' _TEST = { 'ur...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import json import re import socket from .common import InfoExtractor from ..compat import ( compat_etree_fromstring, compat_http_client, compat_str, compat_urllib_error, compat_urllib_parse_unquote, compat_urllib_parse_unqu...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> if tbr: tbr = int_or_none(tbr.replace(',', '.')) f = { 'url': encoding_url, 'format_id': code.lower(), 'quality': pref, 'tbr': tbr, ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>1193a88a6ab5d5a', 'info_dict': { 'id': '201403223kCqB3Ez', 'ext': 'flv', 'title': 'プリズン・ブレイク S1-01 マイケル 【吹替】', 'thumbnail': r're:^https?://.*\.jpg$', }, } def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>503', }, } def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) msi_id = self._search_regex( r"(?s)config\s*=\s*{.+?video_id\s*:\s*'([^']+)'", webpage, 'msi id') msi_data = self._download...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, traverse_obj, unified_timestamp, ) if not callable(getattr(InfoExtractor, '_match_valid_url', None)): BaseInfoExtractor = InfoExtractor import re class InfoExtractor...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_HTTPError, ) from ..utils import ( qualities, strip_or_none, int_or_none, ExtractorError, ) class FilmOnIE(InfoExtractor): IE_NAME = 'filmon' ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>page(url, article_id) article_id = self._search_regex(r'data-videoid="(\d+)"', webpage, 'article id') embed_code = self._download_json( 'https://www.filmweb.no/template_v2/ajax/json_trailerEmbed.jsp', article_id, query={ 'articleId': article_id, ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( int_or_none, qualities, unified_strdate, url_or_none, ) class FirstTVIE(InfoExtractor): IE_NAME = '1tv' I...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>4515288, }, 'params': { # m3u8 download 'skip_download': True, } }, { # From http://on.aol.com/video/how-to-make-a-next-level-fruit-salad-518086247 'url': '5min:518086247', 'md5': 'e539a...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import int_or_none class FiveTVIE(InfoExtractor): _VALID_URL = r'''(?x) https?:// (?:www\.)?5-tv\.ru/ (?: ...
fim
ytdl-org/youtube-dl
python
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_urllib_parse_urlencode, ) from ..utils import ( ExtractorError, int_or_none, qualities, ) class FlickrIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.|secure\.)?flickr\.com/p...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>': 3960, }, 'params': { # rtmp download 'skip_download': True, }, } def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) title = self._og_search_title(webpage) ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .streamable import StreamableIE class FootyRoomIE(InfoExtractor): _VALID_URL = r'https?://footyroom\.com/matches/(?P<id>\d+)' _TESTS = [{ 'url': 'http://footyroom.com/matches/79922154/hull-cit...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>0988138001.html', 'md5': 'be7d3a8c2f804eb2ab2aa5d941c359f8', 'info_dict': { 'id': '6060988138001', 'ext': 'mp4', 'title': 'Race highlights - Spain 2016', 'timestamp': 1463332814, 'upload_date': '20160515', 'uploader_id...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import re from .common import InfoExtractor from .<|fim_suffix|>>]+itemprop="interactionCount"[^>]+content="UserLikes:([0-9,]+)">', webpage, 'like count', default=None)) duration = parse_duration(self._html_search_meta('duration', webpage)) ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>umber')), 'episode': video.get('name'), 'episode_number': int_or_none(video.get('episodeNumber')), 'release_year': int_or_none(video.get('releaseYear')), 'subtitles': subtitles, } <|fim_prefix|># coding: utf-8 from __future__ import unicode_literals ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class FOX9IE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?fox9\.com/video/(?P<id>\d+)' def _real_extract(self, url): video_id = self._match_id(url) return self.url_result( ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'title': title, 'formats': formats, 'description': description, 'thumbnail': video_data.get('act_vid', {}).get('thumb'), 'age_limit': 18, } <|fim_prefix|>from __fut<|fim_middle|>ure__ import unicode_literals import itertools from .commo...
fim
ytdl-org/youtube-dl
python
from __future__ import unicode_literals import re from .amp import AMPIE from .common import InfoExtractor class FoxNewsIE(AMPIE): IE_NAME = 'foxnews' IE_DESC = 'Fox News and Fox Business Video' _VALID_URL = r'https?://(?P<host>video\.(?:insider\.)?fox(?:news|business)\.com)/v/(?:video-embed\.html\?vide...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor class FoxSportsIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*video/(?P<id>\d+)' _TEST = { 'url': 'http://www.foxsports.com/tennessee/vid<|fim_suffix|>FNG-FOXSPORTS', }, ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>rapper|player-button))[^"]*?"[^>]*> ).*? (<button[^>]+data-(?:url|asset-source)="[^"]+"[^>]+>) ''', webpage, 'video data')) video_url = video_data.get('data-url') or video_data['data-asset-source'] title = video_data.get('data-asset-...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'vcodec': 'none', }], } <|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import month_by_name class FranceInterIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?franceinter\.fr/emissions/(?P<i...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( clean_html, determine_ext, ExtractorError, int_or_none, parse_duration, try_get, url_or_non...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>tle, 'description': description, 'duration': duration, 'uploader': uploader, 'upload_date': upload_date, 'tags': tags, 'formats': formats, } <|fim_prefix|>from __future__ import unicode_literals import re from .common import...
fim
ytdl-org/youtube-dl
python
from __future__ import unicode_literals from .common import InfoExtractor from .youtube import YoutubeIE class FreespeechIE(InfoExtractor): IE_NAME = 'freespeech.org' _VALID_URL = r'https?://(?:www\.)?freespeech\.org/stories/(?P<id>.+)' _TEST = { 'add_ie': ['Youtube'], 'url': 'http://www....
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>gramStore']['programs'][video_id] title = info['title'] if info.get('status') == 'upcoming': raise ExtractorError('Stream %s is upcoming' % video_id, expected=True) stream_url = info.get('liveStreamUrl') or info['archiveStreamUrl'] is_live = info.get('liveSt...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>ion': 'md5:82c1ea6472e88ed5acd1829fe992e4f7', 'thumbnail': r're:^https?://.*\.jpg$', 'chapter': 'Introduction', 'chapter_number': 1, }, 'params': { 'skip_download': True, }, 'skip': 'Requires FrontendMasters account credential...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class FujiTVFODPlus7IE(InfoExtractor): _VALID_URL = r'https?://i\.fod\<|fim_suffix|>_formats( self._BASE_URL + 'abr/pc_html5/%s.m3u8' % video_id, video_id, 'mp4') for f in formats: ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>ers) for _ in range(8)]), })['items'] except ExtractorError as e: if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403: error = self._parse_json(e.cause.read(), video_id)['errors'][0] raise ExtractorError('%s said: %s' % ( ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from .nexx import NexxIE from ..utils import ( int_or_none, str_or_none, ) class FunkIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?funk\.net/(?:channel|playlist)/[^/]+/(?P<display_id>...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>781', 'only_matching': True, }, { 'url': 'https://fusion.tv/show/food-exposed-with-nelufar-hedayat/?ancla=full-episodes&video=588644', 'only_matching': True, }] def _real_extract(self, url): video_id = self._match_id(url) video = self._download_json( ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>'Bearer ' + self._jwt} media = self._download_json( 'https://brooklyn.gaia.com/media/' + media_id, media_id, headers=headers) formats = self._extract_m3u8_formats( media['mediaUrls']['bcHLS'], media_id, 'mp4') self._sort_formats(formats) ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .brightcove import BrightcoveNewIE from .common import InfoExtractor from ..utils import ( clean_html, get_element_by_class, get_element_by_id, ) class GameInformerIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?gameinfor...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>3u8_url = streams.get('adaptive_stream') if m3u8_url: m3u8_formats = self._extract_m3u8_formats( m3u8_url, page_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False) for f in m3u8_formats: formats.append(f) htt...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( int_or_none, remove_end, ) class GameStarIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?game(?P<site>pro|star)\.de/videos/.*,(?P<id>[0-9]+)\.html' _TESTS = [{...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( float_or_none, int_or_none, unified_strdate, ) class GaskrankIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?gaskrank\.tv/tv/(?P<categories>[^/]+)/(?P<id>[^/]+)...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class GazetaIE(InfoExtractor): _VALID_URL = r'(?P<url>https?://(?:www\.)?gazeta\.ru/(?:[^/]+/)?video/(?:main/)*(?:\d{4}/\d{2}/\d{2}/)?(?P<id>[A-Za-z0-9-_.]+)\.s?html)' _TESTS = [{ 'url':...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( extract_attributes, ExtractorError, T, traverse_obj, txt_or_none, url_or_none, ) class GBNewsIE(InfoExtractor): IE_DESC = 'GB News clips, features and live stream'...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>lf._og_search_title( start_page, default=None), 'GDC Vault - '), 'id': video_id, 'display_id': display_id, }) return info embed_url = '%s/xml/%s' % (xml_root, xml_name) ie_key = 'Digital...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>a.gelocal.it/locale/dal-ponte-visconteo-di-valeggio-l-and-8217sos-dei-ristoratori-aprire-anche-a-cena/137310/137818', 'only_matching': True, }, { 'url': 'https://video.mattinopadova.gelocal.it/dossier/coronavirus-in-veneto/covid-a-vo-un-anno-dopo-un-cuore-tricolore-per-non-dimenticare/...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>oader': uploader, 'duration': duration, 'view_count': view_count, 'like_count': like_count, 'dislike_count': dislike_count, 'categories': categories, 'age_limit': age_limit, 'formats': formats, } <|fim_prefix|># co...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import re import json from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, qualities, unescapeHTML, ) class GiantBombIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?giantbomb\.com/(?:videos|shows)/(?P<displ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>1(self._search_regex( r'datetime="([^"]+)"', webpage, 'upload date', fatal=False)) uploader = self._search_regex( r'class="author">([^<]+)</a>', webpage, 'uploader', fatal=False) view_count = str_to_int(self._search_regex( r'<span class="views"><strong>...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>%s' % error_message, expected=True) return auth_info <|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, urlencode_postdata, ) class GigyaBaseIE(InfoExtractor): def _gigya_login(self, auth_data): auth...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>_url, 'thumbnail': thumbnail, } <|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class GlideIE(InfoExtractor): IE_DESC = 'Glide mobile video messages (glide.me)' _VALID_URL = r'https?://share\.glide\.me/(?P<id>[A-Za-z0-9...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( clean_html, join_nonempty, merge_dicts, parse_duration, str_or_none, T, traverse_obj, unified_strdate, unified_timestamp, urlhandle_detect_ext, ) class...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals import base64 import hashlib import json import random import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, ) from ..utils import ( ExtractorError, float_or_none, int_or_none, orderedSet, st...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'device': '001', } if video_data.get('accesslevel') == '1': requestor_id = site_info.get('requestor_id', 'DisneyChannels') resource = site_info.get('resource_id') or self._get_mvpd_resource( reques...
fim
ytdl-org/youtube-dl
python
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, ) class GodTubeIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?godtube\.com/watch/\?v=(?P<id>[\da-zA-Z]+)' _TESTS = [ { 'url': 'https://ww...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>l': compat_urlparse.urljoin(self._PREFIX, url), 'width': self._int(e.get('width'), 'thumbnail width'), 'height': self._int(e.get('height'), 'thumbnail height'), }) info['thumbnails'] = thumbnails return info <|fim_prefix|># coding: utf-8 from __...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'format_id': 'source', 'quality': 1, }) if urlh.headers.get('Content-Disposition'): add_source_format(urlh) else: confirmation_webpage = self._webpage_read_content( urlh, url, vid...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>da x: x[1][0]) or []): entries.append(self._extract_episode(episode)) feed = try_get(data, lambda x: x[3]) or [] return self.playlist_result( entries, playlist_title=try_get(feed, lambda x: x[0]), playlist_description=try_get(feed, lambda x: x[2])) <|fi...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import itertools import re from .common import SearchInfoExtractor class GoogleSearchIE(SearchInfoExtractor): IE_DESC = 'Google Vid<|fim_suffix|> # Skip playlists if not re.search(r'id="vidthumb%d"' % (hit_idx + 1), webpage): ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_parse_qs, ) from ..utils import ( parse_duration, ) class GoshgayIE(InfoExtractor): _VALID_URL = r'https?<|fim_suffix|>n, 'age_limit': 18, } <|fim_midd...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class GPUTechConfIE(InfoExtractor): _VALID_URL = r'https?://on-demand\.gputechconf\.com/gtc/2015/video/S(?P<id>\d+)\.html' _TEST = { 'url': 'http://on-demand.gputechconf.com/gtc/2015/video/S5156.ht...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>e': ('%s', 'Youtube'), } def _real_extract(self, url): playlist_id = self._match_id(url) webpage = self._download_webpage(url, playlist_id) payload = self._parse_json(self._search_regex( r'(?:var\s+|window\.)payload\s*=\s*(.*?);\n', webpage, 'payload'), playli...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( xpath_text, xpath_element, int_or_none, parse_duration, urljoin, ) class HBOBaseIE(InfoExtractor): _FORMATS_INFO = { 'pro7': { 'width': ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>d': 'download', 'vcodec': 'none', 'ext': ext, 'url': download_url, 'preference': 2, # Usually better quality }) self._sort_formats(formats) return { 'id': track_id, 'di...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .kaltura import KalturaIE from .youtube import YoutubeIE from ..utils import ( determine_ext, int_or_none, NO_DEFAULT, parse_iso8601, smuggle_url, xpath_text, ) class HeiseIE(InfoExtractor): _VA...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, merge_dicts, remove_end, unified_timestamp, ) class HellPorno<|fim_suffix|> def _real_extract(self, url): display_id = self._match_id(url) webpage = self._dow...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> self._match_id(url) webpage = self._download_webpage(url, video_id) params = self._parse_json(self._html_search_regex( r'(?s)jwplayer\("player"\).setup\((\{.*?\})\);', webpage, 'player code'), video_id, transform_source=js_to_json) formats = [{ ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor class HentaiStigmaIE(InfoExtractor): _VALID_URL = r'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)' _TEST = { 'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/', 'md5': '4e3d07422a68a4cc363d8f5...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 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>[^/?#&]+)' _TESTS = [{ # data-module="video" 'url': 'http://...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, url_or_none, urlencode_postdata, ) class HiDiveIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?hidive\.com/s...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import parse_duration class HistoricFilmsIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?historicfilms\.com/(?:tapes/|play)(?P<id>\d+)' _TEST = { 'url': 'http://www.historicfilms.com/tapes/4728',...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( clean_html, parse_iso8601, float_or_none, int_or_none, compat_str, determine_ext, ) class HitboxIE(InfoExtractor): IE_NAME = 'hitbox' _VALID_URL = r'https?://(?:w...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..compat im<|fim_suffix|> video, lambda x: x['user']['username'], compat_str), 'uploader_id': try_get( video, lambda x: compat_str(x['user']['id'])), 'view_count': int_or...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>) # resolved_url = urlh.geturl() label = fmt.get('label') h = self._FORMAT_HEIGHTS.get(label) w = h * width // height if h and width and height else None formats.append({ 'format_id': label, 'ext': fmt.get('typ...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, parse_duration, ) class HornBunnyIE(InfoExtractor): _VALID_URL = r'http?://(?:www\.)?hornbunny\.com/videos/(?P<title_dash>[a-z-]+)-(?P<id>\d+)\.html' _TEST = { 'url': '...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_b64decode from ..utils import ( ExtractorError, HEADRequest, sanitized_Request, urlencode_postdata, ) class HotNewHipHopIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?hotnewhi...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import hashlib import hmac import json import re import time import uuid from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, ) from ..utils import ( determine_ext, ExtractorError, int_or_none, ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'article:published_time', webpage, 'timestamp')), } <|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import parse_iso8601 class HowcastIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?howcast\.com/videos/(?P<id>\d+)' _...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( find_xpath_attr, int_or_none, js_to_json, unescapeHTML, determine_ext, ) class HowStuffWorksIE(InfoExtractor): _VALID_URL = r'https?://[\da-z-]+\.(?:howstuffworks|stuff(?:(?:youshould...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import json import re from ..utils import ( int_or_none, unified_timestamp, unescapeHTML ) from .co<|fim_suffix|>", webpage, "ardloader")) loader_data = json.loads(loader_str) info = { 'id': video_id, ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>matching': True, }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) video_id = mobj.group('short_id') or mobj.group('id') display_id = mobj.group('display_id') or video_id video = self._download_json( '%s/video_id/%s/format/json' % ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>e_iso8601(feed.get('creatime'), ' '), 'uploader': get('author', 'nickname'), 'uploader_id': get('author', 'uid'), 'formats': self._extract_m3u8_formats( feed['feed']['m3u8'], video_id, 'mp4', 'm3u8_native'), } <|fim_prefix|># coding: utf-8 from _...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( determine_ext, parse_duration, unified_strdate, ) class HuffPostIE(InfoExtractor): IE_DESC = 'Huffington Post' _VALID_URL = r'''(?x) https?://(embed\.)?live\.huffington...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'artist': artist, 'album': data.get('album_name'), 'release_year': int_or_none(data.get('date')), 'formats': formats, } <|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_o...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals from .common import InfoExtractor from ..utils import int_or_none class HypemIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?hypem\.com/track/(?P<id>[0-9a-z]{5})' _TEST = { 'url': 'http://hypem.com/track/1v6ga/BODYWORK+-+TAME', 'md5':...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> }, 'expected_warnings': ['Backend fetch failed'], }, { 'url': 'http://www.ign.com/articles/2014/08/15/rewind-theater-wild-trailer-gamescom-2014?watch', 'info_dict': { 'id': '53ee806780a81ec46e0790f8', 'title': 'Rewind Theater - Wild Trailer Gamescom 20...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> podcast.get('description')) <|fim_prefix|># coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( clean_html, clean_podcast_url, int_or_none, str_or_none, ) class IHeartRadioBaseIE(InfoExtractor): def _call_api(self, path, vid...
fim
ytdl-org/youtube-dl
python
from __future__ import unicode_literals import base64 import json import re from .common import InfoExtractor from ..utils import ( determine_ext, mimetype2ext, parse_duration, qualities, try_get, url_or_none, ) class ImdbIE(InfoExtractor): IE_NAME = 'imdb' IE_DESC = 'Internet Movie ...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..compat import compat_HTTPError from ..utils import ( ExtractorError, int_or_none, str_or_none, try_get, ) class ImgGamingBaseIE(InfoExtractor): _API_BASE = 'https:...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>_result( map(self._imgur_result, yield_media_ids()), gallery_id) result.update(info) return result gallery_id = media_id result = self._imgur_result(gallery_id) info['_type'] = 'url_transparent' result.update(info) ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> 'only_matching': True, }, { 'url': 'https://www.ina.fr/audio/P16173408', 'only_matching': True, }, { 'url': 'https://www.ina.fr/video/P16173408-video.html', 'only_matching': True, }, { 'url': 'http://m.ina.fr/video/I12055569', 'only_matching': ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>ital@inc.com', }, 'params': { 'skip_download': True, }, }, { 'url': 'http://www.inc.com/video/david-whitford/founders-forum-tripadvisor-steve-kaufer-most-enjoyable-moment-for-entrepreneur.html', 'only_matching': True, }] def _real_extract(se...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( int_or_none, parse_age_limit, parse_iso8601, update_url_query, ) class IndavideoEmbedIE(InfoExtractor): _VALID_URL = r'https?://(?:(?:embed\.)...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|> self._extract_rtmp_video(webpage) + self._extract_http_video(webpage) + self._extract_http_audio(webpage, video_id)) self._sort_formats(formats) return { 'id': video_id, 'title': video_title, 'description': video_de...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import itertools import hashlib import json import re from .common import InfoExtractor from ..compat import ( compat_str, compat_HTTPError, ) from ..utils import ( ExtractorError, float_or_none, get_element_by_attribute, int_or_none, l...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import unified_timestamp class InternazionaleIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?internazionale\.it/video/(?:[^/]+/)*(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://www.internazionale...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|>from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_urlparse, ) class InternetVideoArchiveIE(InfoExtractor): _VALID_URL = r'https?://video\.internetvideoarchive\.net/(?:player|flash/players)/.*?\?.*?...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>i', 'only_matching': True, }, { 'url': 'https://love.iprima.cz/laska-az-za-hrob/slib-dany-bratrovi', 'only_matching': True, }, { 'url': 'https://autosalon.iprima.cz/motorsport/7-epizoda-1', 'only_matching': True, }] def _real_extract(self, url): ...
fim
ytdl-org/youtube-dl
python
<|fim_suffix|>e, 'var tvInfoJs='), album_id) vlist = pagelist['data']['vlist'] for item in vlist: entries.append(self.url_result(item['vurl'])) if len(vlist) < PAGE_SIZE: break return self.playlist_result(entries, album_id, album_title) d...
fim
ytdl-org/youtube-dl
python
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import remove_start class Ir90TvIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?90tv\.ir/video/(?P<id>[0-9]+)/.*' _TESTS = [{ 'url': 'http://90tv.ir/video/95719/%D8%B4%D8%A7%DB%8C%D8%B9%D8%A7%D...
fim
ytdl-org/youtube-dl
python
<|fim_prefix|># coding: utf-8 from __future__ import unicode_literals import json import re import sys from .common import InfoExtractor from .brightcove import BrightcoveNewIE from ..compat import ( compat_HTTPError, compat_integer_types, compat_kwargs, compat_urlparse, ) from ..utils import ( cl...
fim
ytdl-org/youtube-dl
python