hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b93eccf10c2c93114fbc511f62458e1fa6a18684
| 8,863
|
py
|
Python
|
test/test_main.py
|
OSM-es/CatAtom2Osm
|
89394161b07c5dd7cd2843bce8f911b93796b33a
|
[
"BSD-2-Clause"
] | 8
|
2018-01-30T18:26:29.000Z
|
2022-02-03T19:16:54.000Z
|
test/test_main.py
|
OSM-es/CatAtom2Osm
|
89394161b07c5dd7cd2843bce8f911b93796b33a
|
[
"BSD-2-Clause"
] | 99
|
2018-01-22T08:37:53.000Z
|
2022-03-28T13:50:06.000Z
|
test/test_main.py
|
OSM-es/CatAtom2Osm
|
89394161b07c5dd7cd2843bce8f911b93796b33a
|
[
"BSD-2-Clause"
] | 9
|
2018-01-21T15:51:41.000Z
|
2022-01-04T18:35:19.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from argparse import Namespace
import logging
import mock
import os
import unittest
logging.disable(logging.WARNING)
from catatom2osm import __main__
from catatom2osm.compat import install_gettext
from test.tools import capture
os.environ['LANGUAGE'] = 'C'
install_gettext('catato2osm', '')
def raiseIOError(*args, **kwargs):
raise IOError('bartaz')
def raiseImportError(*args, **kwargs):
raise ImportError('qgis')
class TestMain(unittest.TestCase):
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py'])
def test_no_args(self):
with capture(__main__.run) as output:
self.assertIn("usage: catatom2osm", str(output))
@mock.patch(
'catatom2osm.__main__.sys.argv',
['catatom2osm.py', 'foo', 'bar', '-o', '1', '2']
)
@mock.patch('catatom2osm.__main__.log.error')
def test_too_many_args(self, mocklog):
__main__.run()
output = mocklog.call_args_list[0][0][0]
self.assertIn("Can't use multiple zones", output)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_default(self, mockcat):
__main__.run()
self.assertTrue(mockcat.called)
self.assertEqual(mockcat.call_args_list[0][0][0], 'foobar')
options = mockcat.call_args_list[0][0][1]
d = {'building': False, 'all': False, 'tasks': True, 'log_level': 'INFO',
'parcel': False, 'list': False, 'zoning': True, 'address': True}
for (k, v) in list(d.items()):
self.assertEqual(getattr(options, k), v)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar', '-a'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_all(self, mockcat):
__main__.run()
self.assertTrue(mockcat.called)
options = mockcat.call_args_list[0][0][1]
d = {'building': True, 'all': True, 'tasks': True, 'log_level': 'INFO',
'parcel': True, 'list': False, 'zoning': True, 'address': True}
for (k, v) in list(d.items()):
self.assertEqual(getattr(options, k), v)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar', '-b'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_building(self, mockcat):
__main__.run()
self.assertTrue(mockcat.called)
options = mockcat.call_args_list[0][0][1]
d = {'building': True, 'all': False, 'tasks': False, 'log_level': 'INFO',
'parcel': False, 'list': False, 'zoning': False, 'address': False}
for (k, v) in list(d.items()):
self.assertEqual(getattr(options, k), v)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', '-w', '33333'])
@mock.patch('catatom2osm.app.catatom.Reader')
def test_list(self, mockcat):
cat = mock.MagicMock()
mockcat.return_value = cat
__main__.run()
mockcat.assert_called_once_with('33333')
cat.download.assert_has_calls([
mock.call('address'),
mock.call('cadastralzoning'),
mock.call('building'),
])
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', '-l', '33'])
@mock.patch('catatom2osm.app.catatom.list_municipalities')
def test_list2(self, mocklist):
__main__.run()
mocklist.assert_called_once_with('33')
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', '-l', '33'])
@mock.patch('catatom2osm.app.catatom.list_municipalities', raiseIOError)
@mock.patch('catatom2osm.__main__.log.error')
def test_list_error(self, mocklog):
__main__.run()
output = mocklog.call_args_list[0][0][0]
self.assertTrue(mocklog.called)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm')
@mock.patch('catatom2osm.__main__.log.error')
def test_IOError(self, mocklog, mockcat):
mockcat.create_and_run = raiseIOError
__main__.run()
output = mocklog.call_args_list[0][0][0]
self.assertEqual(output, 'bartaz')
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm')
@mock.patch('catatom2osm.__main__.log.error')
def test_ImportError(self, mocklog, mockcat):
mockcat.create_and_run = raiseImportError
__main__.run()
output1 = mocklog.call_args_list[0][0][0]
output2 = mocklog.call_args_list[1][0][0]
self.assertEqual(output1, 'qgis')
self.assertIn('install QGIS', output2)
@mock.patch('catatom2osm.__main__.sys.argv', ['catatom2osm.py', 'foobar', '--log=DEBUG'])
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm')
@mock.patch('catatom2osm.__main__.log')
def test_debug(self, mocklog, mockcat):
mockcat.create_and_run = raiseImportError
mocklog.getEffectiveLevel.return_value = logging.DEBUG
with self.assertRaises(ImportError):
__main__.run()
mocklog.setLevel.assert_called_once_with(logging.DEBUG)
mocklog.error.assert_not_called()
@mock.patch(
'catatom2osm.__main__.sys.argv',
['catatom2osm.py', 'foobar', '-o', '123', '-t', '-z'],
)
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_zone(self, mockcat):
__main__.run()
self.assertTrue(mockcat.called)
self.assertEqual(mockcat.call_args_list[0][0][0], 'foobar')
options = mockcat.call_args_list[0][0][1]
d = {
'building': True, 'all': False, 'tasks': False, 'log_level': 'INFO',
'parcel': False, 'list': False, 'zoning': False, 'address': True,
'zone': ['123'],
}
for (k, v) in list(d.items()):
self.assertEqual(getattr(options, k), v)
@mock.patch(
'catatom2osm.__main__.sys.argv',
['catatom2osm.py', '11111', '22222', '33333'],
)
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_multi(self, mockcat):
options = Namespace(
zone=[], all=False, tasks=True, zoning=True, building=False,
address=True, comment=False, download=False, list=False,
list_zones=False, log_level='INFO', manual=False, parcel=False,
path=['11111', '22222', '33333'],
)
__main__.run()
mockcat.assert_has_calls([
mock.call('11111', options),
mock.call('22222', options),
mock.call('33333', options),
])
@mock.patch(
'catatom2osm.__main__.sys.argv',
['catatom2osm.py', '11111', '-o', '1', '2', '3'],
)
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_zones(self, mockcat):
options = Namespace(
zone=['1', '2', '3'], all=False, tasks=False, zoning=False,
building=True, address=True, comment=False, download=False,
list=False, list_zones=False, log_level='INFO', manual=False,
parcel=False, path=['11111'], label='3',
)
__main__.run()
mockcat.assert_has_calls([
mock.call('11111', options),
mock.call('11111', options),
mock.call('11111', options),
])
@mock.patch(
'catatom2osm.__main__.sys.argv',
['catatom2osm.py', '-o', '1', '2', '3', '11111'],
)
@mock.patch('catatom2osm.app.QgsSingleton', mock.MagicMock)
@mock.patch('catatom2osm.app.CatAtom2Osm.create_and_run')
def test_zones2(self, mockcat):
options = Namespace(
zone=['1', '2', '3'], all=False, tasks=False, zoning=False,
building=True, address=True, comment=False, download=False,
list=False, list_zones=False, log_level='INFO', manual=False,
parcel=False, path=['11111'], label='3',
)
__main__.run()
mockcat.assert_has_calls([
mock.call('11111', options),
mock.call('11111', options),
mock.call('11111', options),
])
| 40.286364
| 93
| 0.628117
| 1,031
| 8,863
| 5.159069
| 0.13967
| 0.072758
| 0.161685
| 0.099455
| 0.744125
| 0.72664
| 0.719872
| 0.70878
| 0.661591
| 0.621921
| 0
| 0.034965
| 0.20941
| 8,863
| 219
| 94
| 40.47032
| 0.724133
| 0.002369
| 0
| 0.51269
| 0
| 0
| 0.24129
| 0.152715
| 0
| 0
| 0
| 0
| 0.126904
| 1
| 0.086294
| false
| 0
| 0.086294
| 0
| 0.177665
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9499b2fefdd9eb49200a6f7e11e210c7bed199c
| 367
|
py
|
Python
|
zhixuewang/urls.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 22
|
2019-01-21T03:49:44.000Z
|
2020-02-13T08:43:01.000Z
|
zhixuewang/urls.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 10
|
2019-01-21T03:50:23.000Z
|
2020-01-03T13:06:49.000Z
|
zhixuewang/urls.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 3
|
2019-02-17T06:12:35.000Z
|
2019-10-29T13:24:06.000Z
|
BASE_URL = "https://www.zhixue.com"
class Url:
SERVICE_URL = f"{BASE_URL}:443/ssoservice.jsp"
SSO_URL = f"https://sso.zhixue.com/sso_alpha/login?service={SERVICE_URL}"
TEST_PASSWORD_URL = f"{BASE_URL}/weakPwdLogin/?from=web_login"
TEST_URL = f"{BASE_URL}/container/container/teacher/teacherAccountNew"
GET_LOGIN_STATE = f"{BASE_URL}/loginState/"
| 40.777778
| 77
| 0.735695
| 55
| 367
| 4.636364
| 0.472727
| 0.137255
| 0.12549
| 0.129412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009202
| 0.111717
| 367
| 9
| 78
| 40.777778
| 0.773006
| 0
| 0
| 0
| 0
| 0
| 0.619565
| 0.396739
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0
| 0
| 0.857143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
b9731e0ff95cf82c1e022d441b3c64c6ae34f64b
| 164
|
py
|
Python
|
tasks.py
|
annerachael/fifth_year_project
|
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
|
[
"Apache-2.0"
] | null | null | null |
tasks.py
|
annerachael/fifth_year_project
|
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
|
[
"Apache-2.0"
] | null | null | null |
tasks.py
|
annerachael/fifth_year_project
|
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
|
[
"Apache-2.0"
] | null | null | null |
import time
def example(seconds):
print('Starting task')
for i in range(seconds):
print(i)
time.sleep(1)
print('Task completed')
| 20.5
| 29
| 0.585366
| 21
| 164
| 4.571429
| 0.714286
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008696
| 0.29878
| 164
| 8
| 30
| 20.5
| 0.826087
| 0
| 0
| 0
| 0
| 0
| 0.170886
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.142857
| 0
| 0.285714
| 0.428571
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
b993ddb61cd9263eac081519ac7de511edf9c159
| 387
|
py
|
Python
|
flair/nn/distance/__init__.py
|
thomashallam/flair
|
bb345bfa917b499d976f1b966776ce0a3349097a
|
[
"MIT"
] | 7,539
|
2018-06-14T19:55:47.000Z
|
2019-12-18T14:48:24.000Z
|
flair/nn/distance/__init__.py
|
thomashallam/flair
|
bb345bfa917b499d976f1b966776ce0a3349097a
|
[
"MIT"
] | 1,237
|
2018-07-01T10:09:05.000Z
|
2019-12-18T09:50:56.000Z
|
flair/nn/distance/__init__.py
|
thomashallam/flair
|
bb345bfa917b499d976f1b966776ce0a3349097a
|
[
"MIT"
] | 958
|
2018-06-21T07:37:30.000Z
|
2019-12-17T14:15:00.000Z
|
from .cosine import CosineDistance, LogitCosineDistance, NegativeScaledDotProduct
from .euclidean import EuclideanDistance, EuclideanMean
from .hyperbolic import HyperbolicDistance, HyperbolicMean
__all__ = [
"EuclideanDistance",
"EuclideanMean",
"HyperbolicDistance",
"HyperbolicMean",
"CosineDistance",
"LogitCosineDistance",
"NegativeScaledDotProduct",
]
| 27.642857
| 81
| 0.775194
| 24
| 387
| 12.333333
| 0.541667
| 0.222973
| 0.385135
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144703
| 387
| 13
| 82
| 29.769231
| 0.89426
| 0
| 0
| 0
| 0
| 0
| 0.307494
| 0.062016
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9aa7b107f74806da1a05fe2ee24dd12c9a33075
| 1,308
|
py
|
Python
|
marching_cube/data/ellipsoid.py
|
YiyiLiao/deep_marching_cubes
|
afcad99742435eb0d57d32770befed74faaad2ab
|
[
"Unlicense"
] | 206
|
2018-06-17T19:52:12.000Z
|
2022-03-16T02:29:57.000Z
|
marching_cube/data/ellipsoid.py
|
ClarenceHoo/deep_marching_cubes
|
6fce0b26d110a6c839b6d46ea2ab67b5bdb470b2
|
[
"Unlicense"
] | 5
|
2019-04-18T06:27:11.000Z
|
2020-11-02T20:06:22.000Z
|
marching_cube/data/ellipsoid.py
|
ClarenceHoo/deep_marching_cubes
|
6fce0b26d110a6c839b6d46ea2ab67b5bdb470b2
|
[
"Unlicense"
] | 32
|
2018-06-18T09:33:34.000Z
|
2022-03-01T12:22:43.000Z
|
# Generate a series of ellipoids
import numpy as np
import os
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from numpy.random import uniform
from shape import Shape
class Ellipsoid(Shape):
def unit_sample(self):
""" randomly sample a point lying on a unit ellipsoid """
p = np.zeros(4)
theta = np.random.uniform(0, np.pi)
phi = np.random.uniform(0, 2*np.pi)
p[0] = np.sin(theta) * np.cos(phi)
p[1] = np.sin(theta) * np.sin(phi)
p[2] = np.cos(theta)
p[3] = 1
return p
if __name__=="__main__":
ellipsoid = Ellipsoid(s = np.random.uniform(0.95,1.05),
x0 = np.random.uniform(2,4),
y0 = np.random.uniform(2,4),
z0 = np.random.uniform(2,4),
rx = np.random.uniform(0, np.pi*2),
ry = np.random.uniform(0, np.pi*2),
rz = np.random.uniform(0, np.pi*2),
px = np.random.uniform(0, 0.1),
py = np.random.uniform(0, 0.1),
pz = np.random.uniform(0, 0.1),
shear = 0.0)
pts = ellipsoid.random_sample(3000)
print pts
print pts.shape
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.set_xlabel('X Label')
ax.set_ylabel('Y Label')
ax.set_zlabel('Z Label')
ax.set_aspect('equal')
ax.scatter(pts[:,0], pts[:,1], pts[:,2])
plt.show()
| 27.829787
| 66
| 0.611621
| 220
| 1,308
| 3.563636
| 0.377273
| 0.122449
| 0.229592
| 0.183673
| 0.239796
| 0.174745
| 0.080357
| 0
| 0
| 0
| 0
| 0.05336
| 0.2263
| 1,308
| 46
| 67
| 28.434783
| 0.721344
| 0.022936
| 0
| 0
| 1
| 0
| 0.029557
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.153846
| null | null | 0.051282
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9bf76a5b9f2025e1a8e85dd53caf113bd3dcafa
| 6,084
|
py
|
Python
|
tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py
|
duaneking/oauthlib
|
1dd58397d6a86fc930062cfecc6e2ea94e546aa7
|
[
"BSD-3-Clause"
] | 1
|
2018-12-20T20:17:02.000Z
|
2018-12-20T20:17:02.000Z
|
tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py
|
duaneking/oauthlib
|
1dd58397d6a86fc930062cfecc6e2ea94e546aa7
|
[
"BSD-3-Clause"
] | 1
|
2019-01-21T12:00:49.000Z
|
2019-01-21T12:00:49.000Z
|
tests/oauth2/rfc6749/endpoints/test_introspect_endpoint.py
|
duaneking/oauthlib
|
1dd58397d6a86fc930062cfecc6e2ea94e546aa7
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from json import loads
from mock import MagicMock
from oauthlib.common import urlencode
from oauthlib.oauth2 import RequestValidator, IntrospectEndpoint
from ....unittest import TestCase
class IntrospectEndpointTest(TestCase):
def setUp(self):
self.validator = MagicMock(wraps=RequestValidator())
self.validator.client_authentication_required.return_value = True
self.validator.authenticate_client.return_value = True
self.validator.validate_bearer_token.return_value = True
self.validator.introspect_token.return_value = {}
self.endpoint = IntrospectEndpoint(self.validator)
self.uri = 'should_not_matter'
self.headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}
self.resp_h = {
'Cache-Control': 'no-store',
'Content-Type': 'application/json',
'Pragma': 'no-cache'
}
self.resp_b = {
"active": True
}
def test_introspect_token(self):
for token_type in ('access_token', 'refresh_token', 'invalid'):
body = urlencode([('token', 'foo'),
('token_type_hint', token_type)])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), self.resp_b)
self.assertEqual(s, 200)
def test_introspect_token_nohint(self):
# don't specify token_type_hint
body = urlencode([('token', 'foo')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), self.resp_b)
self.assertEqual(s, 200)
def test_introspect_token_false(self):
self.validator.introspect_token.return_value = None
body = urlencode([('token', 'foo')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), {"active": False})
self.assertEqual(s, 200)
def test_introspect_token_claims(self):
self.validator.introspect_token.return_value = {"foo": "bar"}
body = urlencode([('token', 'foo')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), {"active": True, "foo": "bar"})
self.assertEqual(s, 200)
def test_introspect_token_claims_spoof_active(self):
self.validator.introspect_token.return_value = {"foo": "bar", "active": False}
body = urlencode([('token', 'foo')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), {"active": True, "foo": "bar"})
self.assertEqual(s, 200)
def test_introspect_token_client_authentication_failed(self):
self.validator.authenticate_client.return_value = False
body = urlencode([('token', 'foo'),
('token_type_hint', 'access_token')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, {
'Content-Type': 'application/json',
'Cache-Control': 'no-store',
'Pragma': 'no-cache',
"WWW-Authenticate": 'Bearer, error="invalid_client"'
})
self.assertEqual(loads(b)['error'], 'invalid_client')
self.assertEqual(s, 401)
def test_introspect_token_public_client_authentication(self):
self.validator.client_authentication_required.return_value = False
self.validator.authenticate_client_id.return_value = True
for token_type in ('access_token', 'refresh_token', 'invalid'):
body = urlencode([('token', 'foo'),
('token_type_hint', token_type)])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b), self.resp_b)
self.assertEqual(s, 200)
def test_introspect_token_public_client_authentication_failed(self):
self.validator.client_authentication_required.return_value = False
self.validator.authenticate_client_id.return_value = False
body = urlencode([('token', 'foo'),
('token_type_hint', 'access_token')])
h, b, s = self.endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, {
'Content-Type': 'application/json',
'Cache-Control': 'no-store',
'Pragma': 'no-cache',
"WWW-Authenticate": 'Bearer, error="invalid_client"'
})
self.assertEqual(loads(b)['error'], 'invalid_client')
self.assertEqual(s, 401)
def test_introspect_unsupported_token(self):
endpoint = IntrospectEndpoint(self.validator,
supported_token_types=['access_token'])
body = urlencode([('token', 'foo'),
('token_type_hint', 'refresh_token')])
h, b, s = endpoint.create_introspect_response(self.uri,
headers=self.headers, body=body)
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b)['error'], 'unsupported_token_type')
self.assertEqual(s, 400)
h, b, s = endpoint.create_introspect_response(self.uri,
headers=self.headers, body='')
self.assertEqual(h, self.resp_h)
self.assertEqual(loads(b)['error'], 'invalid_request')
self.assertEqual(s, 400)
| 42.84507
| 86
| 0.619494
| 678
| 6,084
| 5.353982
| 0.138643
| 0.123967
| 0.008264
| 0.088154
| 0.807163
| 0.772176
| 0.729477
| 0.678237
| 0.678237
| 0.636639
| 0
| 0.007062
| 0.25526
| 6,084
| 141
| 87
| 43.148936
| 0.794085
| 0.008383
| 0
| 0.619835
| 0
| 0
| 0.123051
| 0.016418
| 0
| 0
| 0
| 0
| 0.247934
| 1
| 0.082645
| false
| 0
| 0.049587
| 0
| 0.140496
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9e8d140174c634a3c5154ae35b90bffcffbbb9e
| 326
|
py
|
Python
|
IFconditions.py
|
srgummad/Python-Programming
|
b031c8a9ac553517a0efd7d2d3d40a87e28d28fd
|
[
"CC0-1.0"
] | null | null | null |
IFconditions.py
|
srgummad/Python-Programming
|
b031c8a9ac553517a0efd7d2d3d40a87e28d28fd
|
[
"CC0-1.0"
] | null | null | null |
IFconditions.py
|
srgummad/Python-Programming
|
b031c8a9ac553517a0efd7d2d3d40a87e28d28fd
|
[
"CC0-1.0"
] | null | null | null |
x=raw_input('enter the value for x : \n')
if x==10:
print 'yes x is equal to 10'
if x>5:
print 'yes x is bigger than 5'
if x>=8:
print 'yes x is bigger than 8'
if x<20:
print 'yes x is smaller than 20'
if x<=15:
print 'yes x is smaller than 15'
if x!=8:
print 'no x is the same as 8'
print 'that is it'
| 23.285714
| 41
| 0.613497
| 74
| 326
| 2.689189
| 0.364865
| 0.090452
| 0.226131
| 0.276382
| 0.432161
| 0.432161
| 0
| 0
| 0
| 0
| 0
| 0.075949
| 0.273006
| 326
| 14
| 42
| 23.285714
| 0.763713
| 0
| 0
| 0
| 0
| 0
| 0.51682
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6a18a9d749573e76f96a0c27516fa84b4e616f25
| 306
|
py
|
Python
|
scrumboard/serializers.py
|
aga8541/djangular
|
854f6b57d2916b1ed82aefb47e97bc7ac20dd23d
|
[
"Apache-2.0"
] | null | null | null |
scrumboard/serializers.py
|
aga8541/djangular
|
854f6b57d2916b1ed82aefb47e97bc7ac20dd23d
|
[
"Apache-2.0"
] | null | null | null |
scrumboard/serializers.py
|
aga8541/djangular
|
854f6b57d2916b1ed82aefb47e97bc7ac20dd23d
|
[
"Apache-2.0"
] | null | null | null |
from rest_framework import serializers
from .models import Card, List
class ListSerializer(serializers.ModelSerializer):
class Meta:
model = List
fields = '__all__'
class CardSerializer(serializers.ModelSerializer):
class Meta:
model = Card
fields = '__all__'
| 18
| 50
| 0.689542
| 30
| 306
| 6.733333
| 0.533333
| 0.257426
| 0.306931
| 0.346535
| 0.39604
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.245098
| 306
| 16
| 51
| 19.125
| 0.874459
| 0
| 0
| 0.4
| 0
| 0
| 0.045752
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6a23408bf0a567e301199f180d1acf14c95813cb
| 97
|
py
|
Python
|
edotBackend/apps.py
|
RUAN-ZX/artalkBackendDjango
|
fdcfae2c5123a800d0cb2f2e52f0812070986d64
|
[
"MIT"
] | 1
|
2020-05-02T06:37:04.000Z
|
2020-05-02T06:37:04.000Z
|
edotBackend/apps.py
|
RUAN-ZX/artalkBackendDjango
|
fdcfae2c5123a800d0cb2f2e52f0812070986d64
|
[
"MIT"
] | null | null | null |
edotBackend/apps.py
|
RUAN-ZX/artalkBackendDjango
|
fdcfae2c5123a800d0cb2f2e52f0812070986d64
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class EdotbackendConfig(AppConfig):
name = 'edotBackend'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6a2a8bef8fc7cab6a195b760043eed948e67eb50
| 445
|
py
|
Python
|
fme_server_lib/FMERepositoryUtility/FMWFilterIncludeName.py
|
bcgov/fme
|
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
|
[
"Apache-2.0"
] | null | null | null |
fme_server_lib/FMERepositoryUtility/FMWFilterIncludeName.py
|
bcgov/fme
|
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
|
[
"Apache-2.0"
] | 2
|
2021-07-26T20:33:16.000Z
|
2021-07-26T20:33:19.000Z
|
fme_server_lib/FMERepositoryUtility/FMWFilterIncludeName.py
|
bcgov/fme
|
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
|
[
"Apache-2.0"
] | null | null | null |
import re
from .FMWFilterNameBase import FMWFilterNameBase
class FMWFilterIncludeName(FMWFilterNameBase):
def __init__(self, job_config_name, fmw_name):
self.fmw_name = fmw_name.lower()
super().__init__(job_config_name, "include")
def pass_regex_filter(self, filter_item):
return re.search(filter_item, self.fmw_name)
def pass_text_filter(self, filter_item):
return filter_item in self.fmw_name
| 26.176471
| 52
| 0.739326
| 58
| 445
| 5.241379
| 0.413793
| 0.115132
| 0.108553
| 0.131579
| 0.171053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179775
| 445
| 16
| 53
| 27.8125
| 0.832877
| 0
| 0
| 0
| 0
| 0
| 0.01573
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0.2
| 0.2
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
6a2f1893f917c1f255bf8a1db4df8e05ae608b9a
| 6,330
|
py
|
Python
|
kkbox_line_bot/nlp/response.py
|
x1001000/tfgai-goodgood
|
28c3b091a267253d4e7edc154e3c079a32fba42a
|
[
"MIT"
] | null | null | null |
kkbox_line_bot/nlp/response.py
|
x1001000/tfgai-goodgood
|
28c3b091a267253d4e7edc154e3c079a32fba42a
|
[
"MIT"
] | null | null | null |
kkbox_line_bot/nlp/response.py
|
x1001000/tfgai-goodgood
|
28c3b091a267253d4e7edc154e3c079a32fba42a
|
[
"MIT"
] | null | null | null |
import reprlib
from linebot.models import (
CarouselColumn,
URITemplateAction,
CarouselTemplate,
TemplateSendMessage,
TextSendMessage)
class ErrorResponse(object):
def __init__(self, response_text, status_code=None):
self.response_text = response_text
self.status_code = status_code
def __repr__(self):
return '<ErrorResponse object: response_text = {}, status_code = {}>'.format(
self.response_text,
self.status_code)
def as_line_messages(self):
return [TextSendMessage(text=self.response_text)]#,
# TextSendMessage(text='DEBUG: status_code={}'.format(self.status_code))]
class NotImplementedResponse(object):
def __init__(self, type):
self.type = type
self.response_text = '{}這個功能還沒實作…請洽Line Bot的作者 :D'.format(self.type)
def __repr__(self):
return '<NotImplementedResponse object: type={}>'.format(self.type)
def as_line_messages(self):
return [TextSendMessage(text=self.response_text)]
class QuestionResponse(object):
def __init__(self, response_text):
self.response_text = response_text.replace('主人,', '')
def __repr__(self):
return '<QuestionResponse object: response_text={}>'.format(self.response_text)
def as_line_messages(self):
return [TextSendMessage(text=self.response_text)]
class KKBOXResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text
self.data_obj = data_obj
def __repr__(self):
return '<KKBOXResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
response_msg = TextSendMessage(text=self.response_text)
template_msg = self._create_template_message() if self.data_obj else None
return [response_msg, template_msg] if template_msg else [response_msg]
def _create_template_message(self):
return TemplateSendMessage(alt_text='KKBOX Result',
template=CarouselTemplate(self._get_carousel_columns(),
image_aspect_ratio='square'))
def _get_carousel_columns(self):
return [CarouselColumn(thumbnail_image_url=kkbox_obj['photo'][1]['url'],
title=self.reduce_string_length(kkbox_obj['title'], 40),
text=self.reduce_string_length(kkbox_obj['artist'], 60),
actions=[URITemplateAction(label='Open in KKBOX',
uri=kkbox_obj['url'])])
for kkbox_obj in self.data_obj]
@staticmethod
def reduce_string_length(s, size):
return s[:size-1] + '…' if len(s) > size else s
class WeatherResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text.replace('歐拉蜜', '讚讚')
self.data_obj = data_obj
def __repr__(self):
return '<WeatherResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
return [TextSendMessage(text=self.response_text)]
class mathResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text
self.data_obj = data_obj
def __repr__(self):
return '<mathResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
return [TextSendMessage(text=self.data_obj[0]['result'] if self.data_obj else self.response_text)]
class jokeResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text
self.data_obj = data_obj
def __repr__(self):
return '<jokeResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
return [TextSendMessage(text=self.data_obj[0]['content'] if self.data_obj else self.response_text)]
class openwebResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text
self.data_obj = data_obj
def __repr__(self):
return '<openwebResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
return [TextSendMessage(text=self.data_obj[0]['url'])]
class selectionResponse(object):
def __init__(self, response_text, data_obj):
self.response_text = response_text
self.data_obj = data_obj
def __repr__(self):
return '<selectionResponse object: response_text = {}, data_obj = {}>'.format(
self.response_text,
reprlib.repr(self.data_obj))
def as_line_messages(self):
response_msg = TextSendMessage(text=self.response_text)
template_msg = self._create_template_message() if self.data_obj else None
#print(self.data_obj)
return [template_msg]#[response_msg, template_msg]
def _create_template_message(self):
return TemplateSendMessage(alt_text='讚讚的傳送門們',
template=CarouselTemplate(self._get_carousel_columns(),
image_aspect_ratio='square'))
def _get_carousel_columns(self):
return [CarouselColumn(thumbnail_image_url=selection_obj['image_url'],
title=self.reduce_string_length(selection_obj['title'], 40),
text=self.reduce_string_length(selection_obj['detail'], 60),
actions=[URITemplateAction(label='讚讚的傳送門',
uri=selection_obj['ref_url'])])
for selection_obj in self.data_obj]
@staticmethod
def reduce_string_length(s, size):
return s[:size-1] + '…' if len(s) > size else s
| 35.561798
| 107
| 0.624171
| 697
| 6,330
| 5.315638
| 0.133429
| 0.158704
| 0.14251
| 0.061538
| 0.717139
| 0.707422
| 0.646424
| 0.646424
| 0.626991
| 0.597031
| 0
| 0.003043
| 0.273302
| 6,330
| 178
| 108
| 35.561798
| 0.800435
| 0.021485
| 0
| 0.572581
| 0
| 0
| 0.10386
| 0.003715
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266129
| false
| 0
| 0.016129
| 0.177419
| 0.548387
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6a4065148a0215abb75c3d1d42d3fa553813652f
| 135
|
py
|
Python
|
basic/loops/for1.py
|
robertob45/learning-python
|
7407f7d9e513792150eb2b65ebc644b5f8632c56
|
[
"MIT"
] | null | null | null |
basic/loops/for1.py
|
robertob45/learning-python
|
7407f7d9e513792150eb2b65ebc644b5f8632c56
|
[
"MIT"
] | null | null | null |
basic/loops/for1.py
|
robertob45/learning-python
|
7407f7d9e513792150eb2b65ebc644b5f8632c56
|
[
"MIT"
] | null | null | null |
input_1 = int(input('Ingrese numero 1 = '))
input_2 = int(input('Ingrese numero 2 = '))
for x in range(input_1, input_2):
print(x)
| 27
| 43
| 0.659259
| 24
| 135
| 3.541667
| 0.458333
| 0.141176
| 0.352941
| 0.494118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054054
| 0.177778
| 135
| 4
| 44
| 33.75
| 0.711712
| 0
| 0
| 0
| 0
| 0
| 0.281481
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dbeabd0e7dc43416f01616d26ff3bd866551290e
| 364
|
py
|
Python
|
config/model_path.py
|
hisashi-y/phrase-bert-topic-model
|
3d793baa9d3cab4927988acdb51c858e0c2b8c91
|
[
"MIT"
] | 36
|
2021-10-29T21:45:22.000Z
|
2022-03-23T03:26:23.000Z
|
config/model_path.py
|
hisashi-y/phrase-bert-topic-model
|
3d793baa9d3cab4927988acdb51c858e0c2b8c91
|
[
"MIT"
] | 6
|
2021-10-30T03:03:58.000Z
|
2022-03-09T07:16:01.000Z
|
config/model_path.py
|
hisashi-y/phrase-bert-topic-model
|
3d793baa9d3cab4927988acdb51c858e0c2b8c91
|
[
"MIT"
] | 4
|
2021-11-15T08:02:40.000Z
|
2022-02-28T09:34:22.000Z
|
MODEL_PATH = {
"glove": "phrase-emb-storage/saved_models/glove/",
"bert": "bert-base-uncased",
"spanbert": "phrase-emb-storage/saved_models/span-bert-model/",
"sentbert": "bert-base-nli-stsb-mean-tokens",
"phrase-bert": "phrase-emb-storage/saved_models/phrase-bert-model/"
}
GLOVE_FILE_PATH = 'phrase-emb-storage/cc_glove/glove.840B.300d.txt'
| 36.4
| 71
| 0.706044
| 51
| 364
| 4.901961
| 0.45098
| 0.144
| 0.256
| 0.252
| 0.324
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018405
| 0.104396
| 364
| 10
| 72
| 36.4
| 0.748466
| 0
| 0
| 0
| 0
| 0
| 0.728767
| 0.583562
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e04636b6f05e31c9b15a27c1764c5463ddb085a4
| 4,384
|
py
|
Python
|
notebook/scipy_stats_trim_mean_tmean.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 174
|
2018-05-30T21:14:50.000Z
|
2022-03-25T07:59:37.000Z
|
notebook/scipy_stats_trim_mean_tmean.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 5
|
2019-08-10T03:22:02.000Z
|
2021-07-12T20:31:17.000Z
|
notebook/scipy_stats_trim_mean_tmean.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 53
|
2018-04-27T05:26:35.000Z
|
2022-03-25T07:59:37.000Z
|
import scipy.stats
import numpy as np
import pandas as pd
import scipy
print(scipy.__version__)
# 1.7.1
a = np.array([2**n for n in range(10)])
print(a)
# [ 1 2 4 8 16 32 64 128 256 512]
print(type(a))
# <class 'numpy.ndarray'>
print(a.mean())
# 102.3
print(np.mean(a))
# 102.3
print(scipy.stats.trim_mean(a, 0.1))
# 63.75
print(scipy.stats.trim_mean(a, 0.2))
# 42.0
print(scipy.stats.trimboth(a, 0.1))
# [ 2 8 4 16 32 64 128 256]
print(scipy.stats.trimboth(a, 0.2))
# [ 4 16 8 32 64 128]
print(scipy.stats.trimboth(a, 0.19))
# [ 2 8 4 16 32 64 128 256]
print(scipy.stats.trim_mean(a, 0.19))
# 63.75
a_unsorted = np.array([100, 1000, 0, 10000, 10])
print(a_unsorted)
# [ 100 1000 0 10000 10]
print(scipy.stats.trimboth(a_unsorted, 0.2))
# [ 10 100 1000]
print(scipy.stats.trim_mean(a_unsorted, 0.2))
# 370.0
print(a_unsorted[1:-1])
# [ 1000 0 10000]
print(a_unsorted[1:-1].mean())
# 3666.6666666666665
a_2d = np.array([2**n for n in range(16)]).reshape(4, 4)
print(a_2d)
# [[ 1 2 4 8]
# [ 16 32 64 128]
# [ 256 512 1024 2048]
# [ 4096 8192 16384 32768]]
print(scipy.stats.trimboth(a_2d, 0.25))
# [[ 16 32 64 128]
# [ 256 512 1024 2048]]
print(scipy.stats.trim_mean(a_2d, 0.25))
# [ 136. 272. 544. 1088.]
print(scipy.stats.trimboth(a_2d, 0.25, axis=1))
# [[ 2 4]
# [ 32 64]
# [ 512 1024]
# [ 8192 16384]]
print(scipy.stats.trim_mean(a_2d, 0.25, axis=1))
# [3.0000e+00 4.8000e+01 7.6800e+02 1.2288e+04]
print(scipy.stats.trimboth(a_2d, 0.25, axis=None))
# [ 16 32 64 128 512 256 1024 2048]
print(scipy.stats.trim_mean(a_2d, 0.25, axis=None))
# 510.0
print(a)
# [ 1 2 4 8 16 32 64 128 256 512]
print(scipy.stats.tmean(a, (4, 32)))
# 15.0
print(scipy.stats.tmean(a, (None, 32)))
# 10.5
print(scipy.stats.tmean(a, (4, 32), (False, False)))
# 12.0
print(a_2d)
# [[ 1 2 4 8]
# [ 16 32 64 128]
# [ 256 512 1024 2048]
# [ 4096 8192 16384 32768]]
print(scipy.stats.tmean(a_2d, (16, 2048)))
# 510.0
print(scipy.stats.tmean(a_2d, (16, 2048), axis=0))
# 510.0
# print(scipy.stats.tmean(a_2d, (16, 2048), axis=1))
# AxisError: axis 1 is out of bounds for array of dimension 1
for i in range(a_2d.shape[1]):
print(scipy.stats.tmean(a_2d[:, i], (16, 2048)))
# 136.0
# 272.0
# 544.0
# 1088.0
df = pd.DataFrame(a_2d,
index=['R1', 'R2', 'R3', 'R4'],
columns=['C1', 'C2', 'C3', 'C4'])
print(df)
# C1 C2 C3 C4
# R1 1 2 4 8
# R2 16 32 64 128
# R3 256 512 1024 2048
# R4 4096 8192 16384 32768
print(type(df['C1']))
# <class 'pandas.core.series.Series'>
print(scipy.stats.trim_mean(df['C1'], 0.25))
# 136.0
print(scipy.stats.trimboth(df['C1'], 0.25))
# [ 16 256]
print(type(scipy.stats.trimboth(df['C1'], 0.25)))
# <class 'numpy.ndarray'>
print(scipy.stats.trim_mean(df, 0.25))
# [ 136. 272. 544. 1088.]
print(type(scipy.stats.trim_mean(df, 0.25)))
# <class 'numpy.ndarray'>
print(scipy.stats.trimboth(df, 0.25))
# [[ 16 32 64 128]
# [ 256 512 1024 2048]]
print(type(scipy.stats.trimboth(df, 0.25)))
# <class 'numpy.ndarray'>
print(scipy.stats.trim_mean(df, 0.25, axis=1))
# [3.0000e+00 4.8000e+01 7.6800e+02 1.2288e+04]
print(scipy.stats.trim_mean(df, 0.25, axis=None))
# 510.0
s_tm = pd.Series(scipy.stats.trim_mean(df, 0.25),
index=df.columns)
print(s_tm)
# C1 136.0
# C2 272.0
# C3 544.0
# C4 1088.0
# dtype: float64
print(scipy.stats.tmean(df, (16, 2048)))
# 510.0
print(scipy.stats.tmean(df['C1'], (16, 2048)))
# 136.0
for col in df:
print(col, scipy.stats.tmean(df[col], (16, 2048)))
# C1 136.0
# C2 272.0
# C3 544.0
# C4 1088.0
df['C5'] = ['A', 'B', 'C', 'D']
print(df)
# C1 C2 C3 C4 C5
# R1 1 2 4 8 A
# R2 16 32 64 128 B
# R3 256 512 1024 2048 C
# R4 4096 8192 16384 32768 D
# print(scipy.stats.trim_mean(df, 0.25))
# TypeError: unsupported operand type(s) for /: 'str' and 'int'
print(df.select_dtypes(include='number'))
# C1 C2 C3 C4
# R1 1 2 4 8
# R2 16 32 64 128
# R3 256 512 1024 2048
# R4 4096 8192 16384 32768
print(scipy.stats.trim_mean(df.select_dtypes(include='number'), 0.25))
# [ 136. 272. 544. 1088.]
| 21.490196
| 70
| 0.580292
| 791
| 4,384
| 3.160556
| 0.149178
| 0.148
| 0.186
| 0.108
| 0.7284
| 0.6536
| 0.532
| 0.4392
| 0.39
| 0.3472
| 0
| 0.264962
| 0.24156
| 4,384
| 203
| 71
| 21.596059
| 0.486917
| 0.42906
| 0
| 0.09375
| 0
| 0
| 0.018212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.0625
| 0
| 0.0625
| 0.765625
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
e05143430b682184094c7c39c8584f026e9b9ec7
| 435
|
py
|
Python
|
jsparse/yy/__init__.py
|
PyDee/Spiders
|
6fc0a414060032b5ba4332302285e3fcc9a6113e
|
[
"Apache-2.0"
] | 6
|
2020-06-02T16:22:58.000Z
|
2021-09-18T03:20:16.000Z
|
jsparse/yy/__init__.py
|
PyDee/Spiders
|
6fc0a414060032b5ba4332302285e3fcc9a6113e
|
[
"Apache-2.0"
] | 4
|
2021-03-31T19:54:37.000Z
|
2022-03-12T00:33:41.000Z
|
jsparse/yy/__init__.py
|
PyDee/Spiders
|
6fc0a414060032b5ba4332302285e3fcc9a6113e
|
[
"Apache-2.0"
] | 5
|
2020-06-02T16:23:00.000Z
|
2021-09-03T02:16:15.000Z
|
"""
http://www.yy.com/more/page.action?biz=chicken&subBiz=cjzc&page=2&moduleId=1776&pageSize=60
主播列表
['data']-['data']-item-['desc'] 简介
['data']-['data']-item-['id'] 用户id
['data']-['data']-item-['sid'] 直播间id
['data']-['data']-item-['ssid'] 直播间id
['data']-['data']-item-['name'] 昵称
['data']-['data']-item-['users'] 火热程度
['data']-['data']-item-['subBiz'] cjzc
['data']-['data']-item-['biz'] chicken
"""
| 27.1875
| 91
| 0.544828
| 58
| 435
| 4.086207
| 0.517241
| 0.270042
| 0.405063
| 0.14346
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018373
| 0.124138
| 435
| 16
| 92
| 27.1875
| 0.603675
| 0.972414
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e05928f192a0f7f76ee22b1333219fb1193ee118
| 89
|
py
|
Python
|
joey/cli/templates/project/asgi.py
|
pinecrew/joey
|
0a4715051629aa58b2333365149d2f3a4c6f4dee
|
[
"MIT"
] | 1
|
2020-08-23T22:33:06.000Z
|
2020-08-23T22:33:06.000Z
|
joey/cli/templates/project/asgi.py
|
pinecrew/joey
|
0a4715051629aa58b2333365149d2f3a4c6f4dee
|
[
"MIT"
] | 8
|
2020-08-13T13:20:19.000Z
|
2020-10-19T10:26:17.000Z
|
joey/cli/templates/project/asgi.py
|
pinecrew/joey
|
0a4715051629aa58b2333365149d2f3a4c6f4dee
|
[
"MIT"
] | null | null | null |
from settings import settings
from joey import Application
app = Application(settings)
| 14.833333
| 29
| 0.820225
| 11
| 89
| 6.636364
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146067
| 89
| 5
| 30
| 17.8
| 0.960526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e0636630ba90bbe41a90d8768e72c766d8ff68c0
| 106
|
py
|
Python
|
examples/wait.py
|
rstms/netchat
|
d9c726528722001d6d295d093df0c337e8ce4e53
|
[
"MIT"
] | null | null | null |
examples/wait.py
|
rstms/netchat
|
d9c726528722001d6d295d093df0c337e8ce4e53
|
[
"MIT"
] | null | null | null |
examples/wait.py
|
rstms/netchat
|
d9c726528722001d6d295d093df0c337e8ce4e53
|
[
"MIT"
] | null | null | null |
import netchat
# connect and wait for the string 'AAA'
netchat.Session(('localhost', 2000), 'AAA').run()
| 21.2
| 49
| 0.707547
| 15
| 106
| 5
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.132075
| 106
| 4
| 50
| 26.5
| 0.771739
| 0.349057
| 0
| 0
| 0
| 0
| 0.179104
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e0663947a5243402a00763820a605dcb78c883bb
| 115
|
py
|
Python
|
app/admin/__init__.py
|
DigitME2/oee_server
|
450df961ad6eaae3b20e043629089988b5f9e438
|
[
"Apache-2.0"
] | 2
|
2020-07-14T12:45:04.000Z
|
2022-03-21T05:44:09.000Z
|
app/admin/__init__.py
|
DigitME2/oee_server
|
450df961ad6eaae3b20e043629089988b5f9e438
|
[
"Apache-2.0"
] | 5
|
2022-01-25T00:37:38.000Z
|
2022-03-17T17:18:06.000Z
|
app/admin/__init__.py
|
DigitME2/oee_server
|
450df961ad6eaae3b20e043629089988b5f9e438
|
[
"Apache-2.0"
] | 2
|
2020-07-14T12:45:16.000Z
|
2020-12-27T00:44:10.000Z
|
from flask import Blueprint
bp = Blueprint('admin', __name__)
# noinspection PyPep8
from app.admin import routes
| 16.428571
| 33
| 0.782609
| 15
| 115
| 5.733333
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010204
| 0.147826
| 115
| 6
| 34
| 19.166667
| 0.867347
| 0.165217
| 0
| 0
| 0
| 0
| 0.053191
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
e069addc0b77db5bccb8f0b63aded7a699a0a946
| 169
|
py
|
Python
|
src/data/__init__.py
|
shaysakazi/PrivilegeMisuseDetection
|
57a17a05a0bf83890ab99aed874cf2691f7290b6
|
[
"FTL"
] | null | null | null |
src/data/__init__.py
|
shaysakazi/PrivilegeMisuseDetection
|
57a17a05a0bf83890ab99aed874cf2691f7290b6
|
[
"FTL"
] | null | null | null |
src/data/__init__.py
|
shaysakazi/PrivilegeMisuseDetection
|
57a17a05a0bf83890ab99aed874cf2691f7290b6
|
[
"FTL"
] | null | null | null |
import src.data.make_dataset as make_dataset
def data_pipeline():
"""
Start data pipeline
"""
make_dataset.intermediate_data()
print('hello')
| 15.363636
| 44
| 0.656805
| 20
| 169
| 5.3
| 0.6
| 0.311321
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236686
| 169
| 10
| 45
| 16.9
| 0.821705
| 0.112426
| 0
| 0
| 0
| 0
| 0.03876
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e071b7d38444a2cd86d4d1c5649e2597989bd649
| 96
|
py
|
Python
|
cogs rework/idstuff/owner.py
|
lubnc4261/House-Keeper
|
6de20014afaf00cf9050e54c91cd8b3a02702a27
|
[
"MIT"
] | null | null | null |
cogs rework/idstuff/owner.py
|
lubnc4261/House-Keeper
|
6de20014afaf00cf9050e54c91cd8b3a02702a27
|
[
"MIT"
] | null | null | null |
cogs rework/idstuff/owner.py
|
lubnc4261/House-Keeper
|
6de20014afaf00cf9050e54c91cd8b3a02702a27
|
[
"MIT"
] | null | null | null |
##### Used Commands #####
# shutdown
# rename
652530420524777493 # Militär Staubsauger#0668
| 19.2
| 45
| 0.6875
| 8
| 96
| 8.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.275
| 0.166667
| 96
| 5
| 45
| 19.2
| 0.55
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e073ab66b8f5c8ac24bd57c0b9f634c8257eb7fa
| 625
|
py
|
Python
|
src/verifai/monitor.py
|
BehaviorPredictionTestingPlatform/VerifAI
|
db05f3573c2e7d98c03029c1b4efca93e6b08edb
|
[
"BSD-3-Clause"
] | 109
|
2019-04-29T03:30:42.000Z
|
2022-03-31T03:06:26.000Z
|
src/verifai/monitor.py
|
BehaviorPredictionTestingPlatform/VerifAI
|
db05f3573c2e7d98c03029c1b4efca93e6b08edb
|
[
"BSD-3-Clause"
] | 25
|
2019-03-25T00:27:39.000Z
|
2022-03-27T20:29:23.000Z
|
src/verifai/monitor.py
|
BehaviorPredictionTestingPlatform/VerifAI
|
db05f3573c2e7d98c03029c1b4efca93e6b08edb
|
[
"BSD-3-Clause"
] | 35
|
2019-02-12T20:50:32.000Z
|
2022-01-05T11:25:06.000Z
|
from abc import ABC
import mtl
class specification_monitor(ABC):
def __init__(self, specification):
self.specification = specification
def evaluate(self, traj):
return self.specification(traj)
class mtl_specification(specification_monitor):
def __init__(self, specification):
mtl_specs = [mtl.parse(spec) for spec in specification]
mtl_spec = mtl_specs[0]
if len(mtl_specs) > 1:
for spec in mtl_specs[1:]:
mtl_spec = (mtl_spec & spec)
super().__init__(mtl_spec)
def evaluate(self, traj):
return self.specification(traj)
| 27.173913
| 63
| 0.6576
| 76
| 625
| 5.105263
| 0.302632
| 0.219072
| 0.056701
| 0.123711
| 0.237113
| 0.237113
| 0.237113
| 0.237113
| 0
| 0
| 0
| 0.006424
| 0.2528
| 625
| 22
| 64
| 28.409091
| 0.824411
| 0
| 0
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.235294
| false
| 0
| 0.117647
| 0.117647
| 0.588235
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0eb3b3f7ecd88e4180281eac897e220acc15b06c
| 109
|
py
|
Python
|
tests/transformations/test_ozone_transf_quantization.py
|
jmabry/pyaf
|
afbc15a851a2445a7824bf255af612dc429265af
|
[
"BSD-3-Clause"
] | null | null | null |
tests/transformations/test_ozone_transf_quantization.py
|
jmabry/pyaf
|
afbc15a851a2445a7824bf255af612dc429265af
|
[
"BSD-3-Clause"
] | 1
|
2019-11-30T23:39:38.000Z
|
2019-12-01T04:34:35.000Z
|
tests/transformations/test_ozone_transf_quantization.py
|
jmabry/pyaf
|
afbc15a851a2445a7824bf255af612dc429265af
|
[
"BSD-3-Clause"
] | null | null | null |
import pyaf.tests.transformations.test_ozone_transf_generic as gen
gen.test_transformation('Quantization');
| 27.25
| 66
| 0.862385
| 14
| 109
| 6.428571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055046
| 109
| 3
| 67
| 36.333333
| 0.873786
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0ebbd6cc6f32edd8a5abca4fa7e1a996a6bc270d
| 11,705
|
py
|
Python
|
papermill/tests/test_execute.py
|
wsavran/papermill
|
a28ffe536bb23029169a02c0fd06fe7adf3e1801
|
[
"BSD-3-Clause"
] | null | null | null |
papermill/tests/test_execute.py
|
wsavran/papermill
|
a28ffe536bb23029169a02c0fd06fe7adf3e1801
|
[
"BSD-3-Clause"
] | null | null | null |
papermill/tests/test_execute.py
|
wsavran/papermill
|
a28ffe536bb23029169a02c0fd06fe7adf3e1801
|
[
"BSD-3-Clause"
] | null | null | null |
import io
import os
import pytest
import shutil
import sys
import tempfile
import unittest
from functools import partial
import six
if six.PY3:
from unittest.mock import patch
else:
from mock import patch
import nbformat
from nbconvert import HTMLExporter
from ..api import read_notebook
from .. import execute
from ..execute import (execute_notebook, log_outputs, _translate_type_python,
_translate_type_r, _translate_type_scala)
from ..exceptions import PapermillExecutionError
from . import get_notebook_path, RedirectOutput
if six.PY2:
kernel_name = 'python2'
else:
kernel_name = 'python3'
execute_notebook = partial(execute_notebook, kernel_name=kernel_name)
@pytest.mark.parametrize("test_input,expected", [
("foo", '"foo"'),
('{"foo": "bar"}', '"{\\"foo\\": \\"bar\\"}"'),
({"foo": "bar"}, '{"foo": "bar"}'),
({"foo": '"bar"'}, '{"foo": "\\"bar\\""}'),
({"foo": ["bar"]}, '{"foo": ["bar"]}'),
({"foo": {"bar": "baz"}}, '{"foo": {"bar": "baz"}}'),
({"foo": {"bar": '"baz"'}}, '{"foo": {"bar": "\\"baz\\""}}'),
(["foo"], '["foo"]'),
(["foo", '"bar"'], '["foo", "\\"bar\\""]'),
([{"foo": "bar"}], '[{"foo": "bar"}]'),
([{"foo": '"bar"'}], '[{"foo": "\\"bar\\""}]'),
(12345, '12345'),
(-54321, '-54321'),
(1.2345, '1.2345'),
(-5432.1, '-5432.1'),
(True, 'True'),
(False, 'False')
])
def test_translate_type_python(test_input, expected):
assert _translate_type_python(test_input) == expected
@pytest.mark.parametrize("test_input,expected", [
("foo", '"foo"'),
('{"foo": "bar"}', '"{\\"foo\\": \\"bar\\"}"'),
({"foo": "bar"}, 'list("foo" = "bar")'),
({"foo": '"bar"'}, 'list("foo" = "\\"bar\\"")'),
({"foo": ["bar"]}, 'list("foo" = list("bar"))'),
({"foo": {"bar": "baz"}}, 'list("foo" = list("bar" = "baz"))'),
({"foo": {"bar": '"baz"'}}, 'list("foo" = list("bar" = "\\"baz\\""))'),
(["foo"], 'list("foo")'),
(["foo", '"bar"'], 'list("foo", "\\"bar\\"")'),
([{"foo": "bar"}], 'list(list("foo" = "bar"))'),
([{"foo": '"bar"'}], 'list(list("foo" = "\\"bar\\""))'),
(12345, '12345'),
(-54321, '-54321'),
(1.2345, '1.2345'),
(-5432.1, '-5432.1'),
(True, 'TRUE'),
(False, 'FALSE')
])
def test_translate_type_r(test_input, expected):
assert _translate_type_r(test_input) == expected
@pytest.mark.parametrize("test_input,expected", [
("foo", '"foo"'),
('{"foo": "bar"}', '"{\\"foo\\": \\"bar\\"}"'),
({"foo": "bar"}, 'Map("foo" -> "bar")'),
({"foo": '"bar"'}, 'Map("foo" -> "\\"bar\\"")'),
({"foo": ["bar"]}, 'Map("foo" -> Seq("bar"))'),
({"foo": {"bar": "baz"}}, 'Map("foo" -> Map("bar" -> "baz"))'),
({"foo": {"bar": '"baz"'}}, 'Map("foo" -> Map("bar" -> "\\"baz\\""))'),
(["foo"], 'Seq("foo")'),
(["foo", '"bar"'], 'Seq("foo", "\\"bar\\"")'),
([{"foo": "bar"}], 'Seq(Map("foo" -> "bar"))'),
([{"foo": '"bar"'}], 'Seq(Map("foo" -> "\\"bar\\""))'),
(12345, '12345'),
(-54321, '-54321'),
(1.2345, '1.2345'),
(-5432.1, '-5432.1'),
(2147483648, '2147483648L'),
(-2147483649, '-2147483649L'),
(True, 'true'),
(False, 'false')
])
def test_translate_type_scala(test_input, expected):
assert _translate_type_scala(test_input) == expected
class TestNotebookHelpers(unittest.TestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
self.notebook_name = 'simple_execute.ipynb'
self.notebook_path = get_notebook_path(self.notebook_name)
self.nb_test_executed_fname = os.path.join(self.test_dir, 'output_{}'.format(self.notebook_name))
def tearDown(self):
shutil.rmtree(self.test_dir)
@patch(execute.__name__ + '.PapermillExecutePreprocessor')
def test_start_timeout(self, preproc_mock):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, start_timeout=123)
preproc_mock.assert_called_once_with(timeout=None, startup_timeout=123, kernel_name=kernel_name)
@patch(execute.__name__ + '.PapermillExecutePreprocessor')
def test_default_start_timeout(self, preproc_mock):
execute_notebook(self.notebook_path, self.nb_test_executed_fname)
preproc_mock.assert_called_once_with(timeout=None, startup_timeout=60, kernel_name=kernel_name)
def test_cell_insertion(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'msg': 'Hello'})
test_nb = read_notebook(self.nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[1].get('source').split('\n'), ['# Parameters', 'msg = "Hello"', ''])
self.assertEqual(test_nb.parameters, {'msg': 'Hello'})
def test_no_tags(self):
notebook_name = 'no_parameters.ipynb'
nb_test_executed_fname = os.path.join(self.test_dir, 'output_{}'.format(notebook_name))
execute_notebook(get_notebook_path(notebook_name), nb_test_executed_fname, {'msg': 'Hello'})
test_nb = read_notebook(nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[0].get('source').split('\n'), ['# Parameters', 'msg = "Hello"', ''])
self.assertEqual(test_nb.parameters, {'msg': 'Hello'})
def test_quoted_params(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'msg': '"Hello"'})
test_nb = read_notebook(self.nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[1].get('source').split('\n'), ['# Parameters', r'msg = "\"Hello\""', ''])
self.assertEqual(test_nb.parameters, {'msg': '"Hello"'})
def test_backslash_params(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'foo': r'do\ not\ crash'})
test_nb = read_notebook(self.nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[1].get('source').split('\n'), ['# Parameters', r'foo = "do\\ not\\ crash"', ''])
self.assertEqual(test_nb.parameters, {'foo': r'do\ not\ crash'})
def test_backslash_quote_params(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'foo': r'bar=\"baz\"'})
test_nb = read_notebook(self.nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[1].get('source').split('\n'), ['# Parameters', r'foo = "bar=\\\"baz\\\""', ''])
self.assertEqual(test_nb.parameters, {'foo': r'bar=\"baz\"'})
def test_double_backslash_quote_params(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'foo': r'\\"bar\\"'})
test_nb = read_notebook(self.nb_test_executed_fname)
self.assertListEqual(test_nb.node.cells[1].get('source').split('\n'), ['# Parameters', r'foo = "\\\\\"bar\\\\\""', ''])
self.assertEqual(test_nb.parameters, {'foo': r'\\"bar\\"'})
def test_prepare_only(self):
path = get_notebook_path('broken1.ipynb')
result_path = os.path.join(self.test_dir, 'broken1.ipynb')
# Should not raise as we don't execute the notebook at all
execute_notebook(path, result_path, {'foo': r'do\ not\ crash'}, prepare_only=True)
nb = read_notebook(result_path)
self.assertEqual(nb.node.cells[0].cell_type, "code")
self.assertEqual(nb.node.cells[0].get('source').split('\n'), ['# Parameters', r'foo = "do\\ not\\ crash"', ''])
class TestBrokenNotebook1(unittest.TestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
def tearDown(self):
shutil.rmtree(self.test_dir)
def test(self):
path = get_notebook_path('broken1.ipynb')
result_path = os.path.join(self.test_dir, 'broken1.ipynb')
with self.assertRaises(PapermillExecutionError):
execute_notebook(path, result_path)
nb = read_notebook(result_path)
self.assertEqual(nb.node.cells[0].cell_type, "code")
self.assertEqual(nb.node.cells[0].outputs[0].output_type, "display_data")
self.assertEqual(nb.node.cells[1].execution_count, 1)
self.assertEqual(nb.node.cells[2].execution_count, 2)
self.assertEqual(nb.node.cells[2].outputs[0].output_type, 'error')
self.assertEqual(nb.node.cells[3].execution_count, None)
class TestBrokenNotebook2(unittest.TestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
def tearDown(self):
shutil.rmtree(self.test_dir)
def test(self):
path = get_notebook_path('broken2.ipynb')
result_path = os.path.join(self.test_dir, 'broken2.ipynb')
with self.assertRaises(PapermillExecutionError):
execute_notebook(path, result_path)
nb = read_notebook(result_path)
self.assertEqual(nb.node.cells[0].cell_type, "code")
self.assertEqual(nb.node.cells[0].outputs[0].output_type, "display_data")
self.assertEqual(nb.node.cells[1].execution_count, 1)
self.assertEqual(nb.node.cells[2].execution_count, 2)
self.assertEqual(nb.node.cells[2].outputs[0].output_type, 'display_data')
self.assertEqual(nb.node.cells[2].outputs[1].output_type, 'error')
self.assertEqual(nb.node.cells[3].execution_count, None)
class TestLogging(unittest.TestCase):
def setUp(self):
self.saved_stdout = sys.stdout
self.out = io.StringIO()
sys.stdout = self.out
def tearDown(self):
sys.stdout = self.saved_stdout
def test_logging(self):
nb = nbformat.read(get_notebook_path('test_logging.ipynb'), as_version=4)
# stderr output
with RedirectOutput() as redirect:
log_outputs(nb.cells[0])
stdout = redirect.get_stdout()
self.assertEqual(stdout, u'Out [1] --------------------------------\n\n')
stderr = redirect.get_stderr()
self.assertEqual(stderr, u'Out [1] --------------------------------\nINFO:test:test text\n\n')
# stream output
with RedirectOutput() as redirect:
log_outputs(nb.cells[1])
stdout = redirect.get_stdout()
self.assertEqual(stdout, u'Out [2] --------------------------------\nhello world\n\n')
stderr = redirect.get_stderr()
self.assertEqual(stderr, u'Out [2] --------------------------------\n\n')
# text/plain output
with RedirectOutput() as redirect:
log_outputs(nb.cells[2])
stdout = redirect.get_stdout()
self.assertEqual(stdout,
(
"Out [3] --------------------------------\n"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f8391f10290>\n"
"<matplotlib.figure.Figure at 0x7f830af7b350>\n"
)
)
stderr = redirect.get_stderr()
self.assertEqual(stderr, u'Out [3] --------------------------------\n\n')
class TestNBConvertCalls(unittest.TestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
self.notebook_name = 'simple_execute.ipynb'
self.notebook_path = get_notebook_path(self.notebook_name)
self.nb_test_executed_fname = os.path.join(self.test_dir, 'output_{}'.format(self.notebook_name))
self.html_exporter = HTMLExporter()
self.html_exporter.template_file = 'basic'
def test_convert_output_to_html(self):
execute_notebook(self.notebook_path, self.nb_test_executed_fname, {'msg': 'Hello'})
test_nb = read_notebook(self.nb_test_executed_fname)
# Ensure the notebook builds valid html without crashing
(body, resources) = self.html_exporter.from_notebook_node(test_nb.node)
self.assertTrue(body.startswith("\n<div"))
| 41.953405
| 128
| 0.601623
| 1,402
| 11,705
| 4.810984
| 0.131241
| 0.044477
| 0.036027
| 0.044477
| 0.766938
| 0.757598
| 0.715641
| 0.702743
| 0.673981
| 0.60934
| 0
| 0.025354
| 0.191286
| 11,705
| 278
| 129
| 42.104317
| 0.687196
| 0.013413
| 0
| 0.409692
| 0
| 0
| 0.199446
| 0.030324
| 0
| 0
| 0.002426
| 0
| 0.180617
| 1
| 0.110132
| false
| 0
| 0.079295
| 0
| 0.211454
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0ec42db10119c1bcc64416096038805c6d61fbb0
| 517,193
|
py
|
Python
|
yt_dlp/extractor/lazy_extractors.py
|
bestPeople105/BRUHbot
|
b49ac353170dab0a3d02c6a242184aa8b7999ee7
|
[
"MIT"
] | null | null | null |
yt_dlp/extractor/lazy_extractors.py
|
bestPeople105/BRUHbot
|
b49ac353170dab0a3d02c6a242184aa8b7999ee7
|
[
"MIT"
] | 6
|
2022-02-06T10:48:29.000Z
|
2022-02-06T13:41:37.000Z
|
yt_dlp/extractor/lazy_extractors.py
|
bestPeople105/BRUHbot
|
b49ac353170dab0a3d02c6a242184aa8b7999ee7
|
[
"MIT"
] | null | null | null |
# coding: utf-8
import re
from ..utils import bug_reports_message, write_string
class LazyLoadMetaClass(type):
def __getattr__(cls, name):
if '_real_class' not in cls.__dict__:
write_string(
f'WARNING: Falling back to normal extractor since lazy extractor '
f'{cls.__name__} does not have attribute {name}{bug_reports_message()}')
return getattr(cls._get_real_class(), name)
class LazyLoadExtractor(metaclass=LazyLoadMetaClass):
_module = None
_WORKING = True
@classmethod
def _get_real_class(cls):
if '_real_class' not in cls.__dict__:
mod = __import__(cls._module, fromlist=(cls.__name__,))
cls._real_class = getattr(mod, cls.__name__)
return cls._real_class
def __new__(cls, *args, **kwargs):
real_cls = cls._get_real_class()
instance = real_cls.__new__(real_cls)
instance.__init__(*args, **kwargs)
return instance
@classmethod
def ie_key(cls):
"""A string for getting the InfoExtractor with get_info_extractor"""
return cls.__name__[:-2]
@classmethod
def working(cls):
"""Getter method for _WORKING."""
return cls._WORKING
@classmethod
def _match_valid_url(cls, url):
# This does not use has/getattr intentionally - we want to know whether
# we have cached the regexp for *this* class, whereas getattr would also
# match the superclass
if '_VALID_URL_RE' not in cls.__dict__:
if '_VALID_URL' not in cls.__dict__:
cls._VALID_URL = cls._make_valid_url()
cls._VALID_URL_RE = re.compile(cls._VALID_URL)
return cls._VALID_URL_RE.match(url)
@classmethod
def suitable(cls, url):
"""Receives a URL and returns True if suitable for this IE."""
# This function must import everything it needs (except other extractors),
# so that lazy_extractors works correctly
return cls._match_valid_url(url) is not None
@classmethod
def _match_id(cls, url):
return cls._match_valid_url(url).group('id')
@classmethod
def get_temp_id(cls, url):
try:
return cls._match_id(url)
except (IndexError, AttributeError):
return None
class LazyLoadSearchExtractor(LazyLoadExtractor):
pass
class ABCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abc'
_VALID_URL = 'https?://(?:www\\.)?abc\\.net\\.au/(?:news|btn)/(?:[^/]+/){1,4}(?P<id>\\d{5,})'
class ABCIViewIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abc'
_VALID_URL = 'https?://iview\\.abc\\.net\\.au/(?:[^/]+/)*video/(?P<id>[^/?#]+)'
class ABCIViewShowSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abc'
_VALID_URL = 'https?://iview\\.abc\\.net\\.au/show/(?P<id>[^/]+)(?:/series/\\d+)?$'
class AbcNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abcnews'
_VALID_URL = 'https?://abcnews\\.go\\.com/(?:[^/]+/)+(?P<display_id>[0-9a-z-]+)/story\\?id=(?P<id>\\d+)'
class AMPIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.amp'
class AbcNewsVideoIE(AMPIE):
_module = 'yt_dlp.extractor.abcnews'
_VALID_URL = '(?x)\n https?://\n (?:\n abcnews\\.go\\.com/\n (?:\n (?:[^/]+/)*video/(?P<display_id>[0-9a-z-]+)-|\n video/(?:embed|itemfeed)\\?.*?\\bid=\n )|\n fivethirtyeight\\.abcnews\\.go\\.com/video/embed/\\d+/\n )\n (?P<id>\\d+)\n '
class ABCOTVSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abcotvs'
_VALID_URL = 'https?://(?P<site>abc(?:7(?:news|ny|chicago)?|11|13|30)|6abc)\\.com(?:(?:/[^/]+)*/(?P<display_id>[^/]+))?/(?P<id>\\d+)'
class ABCOTVSClipsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.abcotvs'
_VALID_URL = 'https?://clips\\.abcotvs\\.com/(?:[^/]+/)*video/(?P<id>\\d+)'
class AcademicEarthCourseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.academicearth'
_VALID_URL = '^https?://(?:www\\.)?academicearth\\.org/playlists/(?P<id>[^?#/]+)'
class ACastBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.acast'
class ACastIE(ACastBaseIE):
_module = 'yt_dlp.extractor.acast'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:(?:embed|www)\\.)?acast\\.com/|\n play\\.acast\\.com/s/\n )\n (?P<channel>[^/]+)/(?P<id>[^/#?]+)\n '
class ACastChannelIE(ACastBaseIE):
_module = 'yt_dlp.extractor.acast'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?acast\\.com/|\n play\\.acast\\.com/s/\n )\n (?P<id>[^/#?]+)\n '
@classmethod
def suitable(cls, url):
return False if ACastIE.suitable(url) else super(ACastChannelIE, cls).suitable(url)
class ADNIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.adn'
_VALID_URL = 'https?://(?:www\\.)?animedigitalnetwork\\.fr/video/[^/]+/(?P<id>\\d+)'
class AdobeConnectIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.adobeconnect'
_VALID_URL = 'https?://\\w+\\.adobeconnect\\.com/(?P<id>[\\w-]+)'
class AdobeTVBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.adobetv'
class AdobeTVEmbedIE(AdobeTVBaseIE):
_module = 'yt_dlp.extractor.adobetv'
_VALID_URL = 'https?://tv\\.adobe\\.com/embed/\\d+/(?P<id>\\d+)'
class AdobeTVIE(AdobeTVBaseIE):
_module = 'yt_dlp.extractor.adobetv'
_VALID_URL = 'https?://tv\\.adobe\\.com/(?:(?P<language>fr|de|es|jp)/)?watch/(?P<show_urlname>[^/]+)/(?P<id>[^/]+)'
class AdobeTVPlaylistBaseIE(AdobeTVBaseIE):
_module = 'yt_dlp.extractor.adobetv'
class AdobeTVShowIE(AdobeTVPlaylistBaseIE):
_module = 'yt_dlp.extractor.adobetv'
_VALID_URL = 'https?://tv\\.adobe\\.com/(?:(?P<language>fr|de|es|jp)/)?show/(?P<id>[^/]+)'
class AdobeTVChannelIE(AdobeTVPlaylistBaseIE):
_module = 'yt_dlp.extractor.adobetv'
_VALID_URL = 'https?://tv\\.adobe\\.com/(?:(?P<language>fr|de|es|jp)/)?channel/(?P<id>[^/]+)(?:/(?P<category_urlname>[^/]+))?'
class AdobeTVVideoIE(AdobeTVBaseIE):
_module = 'yt_dlp.extractor.adobetv'
_VALID_URL = 'https?://video\\.tv\\.adobe\\.com/v/(?P<id>\\d+)'
class AdobePassIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.adobepass'
class TurnerBaseIE(AdobePassIE):
_module = 'yt_dlp.extractor.turner'
class AdultSwimIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.adultswim'
_VALID_URL = 'https?://(?:www\\.)?adultswim\\.com/videos/(?P<show_path>[^/?#]+)(?:/(?P<episode_path>[^/?#]+))?'
class AfreecaTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.afreecatv'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:(?:live|afbbs|www)\\.)?afreeca(?:tv)?\\.com(?::\\d+)?\n (?:\n /app/(?:index|read_ucc_bbs)\\.cgi|\n /player/[Pp]layer\\.(?:swf|html)\n )\\?.*?\\bnTitleNo=|\n vod\\.afreecatv\\.com/PLAYER/STATION/\n )\n (?P<id>\\d+)\n '
class AfreecaTVLiveIE(AfreecaTVIE):
_module = 'yt_dlp.extractor.afreecatv'
_VALID_URL = 'https?://play\\.afreeca(?:tv)?\\.com/(?P<id>[^/]+)(?:/(?P<bno>\\d+))?'
class AirMozillaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.airmozilla'
_VALID_URL = 'https?://air\\.mozilla\\.org/(?P<id>[0-9a-z-]+)/?'
class AlJazeeraIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.aljazeera'
_VALID_URL = 'https?://(?P<base>\\w+\\.aljazeera\\.\\w+)/(?P<type>programs?/[^/]+|(?:feature|video|new)s)?/\\d{4}/\\d{1,2}/\\d{1,2}/(?P<id>[^/?&#]+)'
class AlphaPornoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.alphaporno'
_VALID_URL = 'https?://(?:www\\.)?alphaporno\\.com/videos/(?P<id>[^/]+)'
class AmaraIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.amara'
_VALID_URL = 'https?://(?:www\\.)?amara\\.org/(?:\\w+/)?videos/(?P<id>\\w+)'
class AluraIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.alura'
_VALID_URL = 'https?://(?:cursos\\.)?alura\\.com\\.br/course/(?P<course_name>[^/]+)/task/(?P<id>\\d+)'
class AluraCourseIE(AluraIE):
_module = 'yt_dlp.extractor.alura'
_VALID_URL = 'https?://(?:cursos\\.)?alura\\.com\\.br/course/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if AluraIE.suitable(url) else super(AluraCourseIE, cls).suitable(url)
class AnimeLabBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.animelab'
class AnimeLabIE(AnimeLabBaseIE):
_module = 'yt_dlp.extractor.animelab'
_VALID_URL = 'https?://(?:www\\.)?animelab\\.com/player/(?P<id>[^/]+)'
class AnimeLabShowsIE(AnimeLabBaseIE):
_module = 'yt_dlp.extractor.animelab'
_VALID_URL = 'https?://(?:www\\.)?animelab\\.com/shows/(?P<id>[^/]+)'
class AmazonStoreIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.amazon'
_VALID_URL = 'https?://(?:www\\.)?amazon\\.(?:[a-z]{2,3})(?:\\.[a-z]{2})?/(?:[^/]+/)?(?:dp|gp/product)/(?P<id>[^/&#$?]+)'
class AmericasTestKitchenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.americastestkitchen'
_VALID_URL = 'https?://(?:www\\.)?(?:americastestkitchen|cooks(?:country|illustrated))\\.com/(?P<resource_type>episode|videos)/(?P<id>\\d+)'
class AmericasTestKitchenSeasonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.americastestkitchen'
_VALID_URL = 'https?://(?:www\\.)?(?P<show>americastestkitchen|cookscountry)\\.com/episodes/browse/season_(?P<id>\\d+)'
class AnimeOnDemandIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.animeondemand'
_VALID_URL = 'https?://(?:www\\.)?anime-on-demand\\.de/anime/(?P<id>\\d+)'
class AnvatoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.anvato'
_VALID_URL = 'anvato:(?P<access_key_or_mcp>[^:]+):(?P<id>\\d+)'
class AllocineIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.allocine'
_VALID_URL = 'https?://(?:www\\.)?allocine\\.fr/(?:article|video|film)/(?:fichearticle_gen_carticle=|player_gen_cmedia=|fichefilm_gen_cfilm=|video-)(?P<id>[0-9]+)(?:\\.html)?'
class AliExpressLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.aliexpress'
_VALID_URL = 'https?://live\\.aliexpress\\.com/live/(?P<id>\\d+)'
class APAIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.apa'
_VALID_URL = '(?P<base_url>https?://[^/]+\\.apa\\.at)/embed/(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class AparatIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.aparat'
_VALID_URL = 'https?://(?:www\\.)?aparat\\.com/(?:v/|video/video/embed/videohash/)(?P<id>[a-zA-Z0-9]+)'
class AppleConnectIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.appleconnect'
_VALID_URL = 'https?://itunes\\.apple\\.com/\\w{0,2}/?post/(?:id)?sa\\.(?P<id>[\\w-]+)'
class AppleTrailersIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.appletrailers'
_VALID_URL = 'https?://(?:www\\.|movie)?trailers\\.apple\\.com/(?:trailers|ca)/(?P<company>[^/]+)/(?P<movie>[^/]+)'
class AppleTrailersSectionIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.appletrailers'
_VALID_URL = 'https?://(?:www\\.)?trailers\\.apple\\.com/#section=(?P<id>justadded|exclusive|justhd|mostpopular|moviestudios)'
class ApplePodcastsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.applepodcasts'
_VALID_URL = 'https?://podcasts\\.apple\\.com/(?:[^/]+/)?podcast(?:/[^/]+){1,2}.*?\\bi=(?P<id>\\d+)'
class ArchiveOrgIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.archiveorg'
_VALID_URL = 'https?://(?:www\\.)?archive\\.org/(?:details|embed)/(?P<id>[^?#]+)(?:[?].*)?$'
class YoutubeWebArchiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.archiveorg'
_VALID_URL = '(?x)(?:(?P<prefix>ytarchive:)|\n (?:https?://)?web\\.archive\\.org/\n (?:web/)?(?:(?P<date>[0-9]{14})?[0-9A-Za-z_*]*/)? # /web and the version index is optional\n (?:https?(?::|%3[Aa])//)?(?:\n (?:\\w+\\.)?youtube\\.com(?::(?:80|443))?/watch(?:\\.php)?(?:\\?|%3[fF])(?:[^\\#]+(?:&|%26))?v(?:=|%3[dD]) # Youtube URL\n |(?:wayback-fakeurl\\.archive\\.org/yt/) # Or the internal fake url\n )\n )(?P<id>[0-9A-Za-z_-]{11})\n (?(prefix)\n (?::(?P<date2>[0-9]{14}))?$|\n (?:%26|[#&]|$)\n )'
class ArcPublishingIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.arcpublishing'
_VALID_URL = 'arcpublishing:(?P<org>[a-z]+):(?P<id>[\\da-f]{8}-(?:[\\da-f]{4}-){3}[\\da-f]{12})'
class ArkenaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.arkena'
_VALID_URL = '(?x)\n https?://\n (?:\n video\\.(?:arkena|qbrick)\\.com/play2/embed/player\\?|\n play\\.arkena\\.com/(?:config|embed)/avp/v\\d/player/media/(?P<id>[^/]+)/[^/]+/(?P<account_id>\\d+)\n )\n '
class ARDMediathekBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ard'
class ARDBetaMediathekIE(ARDMediathekBaseIE):
_module = 'yt_dlp.extractor.ard'
_VALID_URL = '(?x)https://\n (?:(?:beta|www)\\.)?ardmediathek\\.de/\n (?:(?P<client>[^/]+)/)?\n (?:player|live|video|(?P<playlist>sendung|sammlung))/\n (?:(?P<display_id>[^?#]+)/)?\n (?P<id>(?(playlist)|Y3JpZDovL)[a-zA-Z0-9]+)'
class ARDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ard'
_VALID_URL = '(?P<mainurl>https?://(?:www\\.)?daserste\\.de/(?:[^/?#&]+/)+(?P<id>[^/?#&]+))\\.html'
class ARDMediathekIE(ARDMediathekBaseIE):
_module = 'yt_dlp.extractor.ard'
_VALID_URL = '^https?://(?:(?:(?:www|classic)\\.)?ardmediathek\\.de|mediathek\\.(?:daserste|rbb-online)\\.de|one\\.ard\\.de)/(?:.*/)(?P<video_id>[0-9]+|[^0-9][^/\\?]+)[^/\\?]*(?:\\?.*)?'
@classmethod
def suitable(cls, url):
return False if ARDBetaMediathekIE.suitable(url) else super(ARDMediathekIE, cls).suitable(url)
class ArteTVBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.arte'
class ArteTVIE(ArteTVBaseIE):
_module = 'yt_dlp.extractor.arte'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?arte\\.tv/(?P<lang>fr|de|en|es|it|pl)/videos|\n api\\.arte\\.tv/api/player/v\\d+/config/(?P<lang_2>fr|de|en|es|it|pl)\n )\n /(?P<id>\\d{6}-\\d{3}-[AF])\n '
class ArteTVEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.arte'
_VALID_URL = 'https?://(?:www\\.)?arte\\.tv/player/v\\d+/index\\.php\\?.*?\\bjson_url=.+'
class ArteTVPlaylistIE(ArteTVBaseIE):
_module = 'yt_dlp.extractor.arte'
_VALID_URL = 'https?://(?:www\\.)?arte\\.tv/(?P<lang>fr|de|en|es|it|pl)/videos/(?P<id>RC-\\d{6})'
class ArnesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.arnes'
_VALID_URL = 'https?://video\\.arnes\\.si/(?:[a-z]{2}/)?(?:watch|embed|api/(?:asset|public/video))/(?P<id>[0-9a-zA-Z]{12})'
class AsianCrushBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.asiancrush'
class AsianCrushIE(AsianCrushBaseIE):
_module = 'yt_dlp.extractor.asiancrush'
_VALID_URL = 'https?://(?:www\\.)?(?P<host>(?:(?:asiancrush|yuyutv|midnightpulp)\\.com|(?:cocoro|retrocrush)\\.tv))/video/(?:[^/]+/)?0+(?P<id>\\d+)v\\b'
class AsianCrushPlaylistIE(AsianCrushBaseIE):
_module = 'yt_dlp.extractor.asiancrush'
_VALID_URL = 'https?://(?:www\\.)?(?P<host>(?:(?:asiancrush|yuyutv|midnightpulp)\\.com|(?:cocoro|retrocrush)\\.tv))/series/0+(?P<id>\\d+)s\\b'
class AtresPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.atresplayer'
_VALID_URL = 'https?://(?:www\\.)?atresplayer\\.com/[^/]+/[^/]+/[^/]+/[^/]+/(?P<display_id>.+?)_(?P<id>[0-9a-f]{24})'
class ATTTechChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.atttechchannel'
_VALID_URL = 'https?://techchannel\\.att\\.com/play-video\\.cfm/([^/]+/)*(?P<id>.+)'
class ATVAtIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.atvat'
_VALID_URL = 'https?://(?:www\\.)?atv\\.at/tv/(?:[^/]+/){2,3}(?P<id>.*)'
class AudiMediaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.audimedia'
_VALID_URL = 'https?://(?:www\\.)?audi-mediacenter\\.com/(?:en|de)/audimediatv/(?:video/)?(?P<id>[^/?#]+)'
class AudioBoomIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.audioboom'
_VALID_URL = 'https?://(?:www\\.)?audioboom\\.com/(?:boos|posts)/(?P<id>[0-9]+)'
class AudiomackIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.audiomack'
_VALID_URL = 'https?://(?:www\\.)?audiomack\\.com/(?:song/|(?=.+/song/))(?P<id>[\\w/-]+)'
class AudiomackAlbumIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.audiomack'
_VALID_URL = 'https?://(?:www\\.)?audiomack\\.com/(?:album/|(?=.+/album/))(?P<id>[\\w/-]+)'
class AudiusBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.audius'
class AudiusIE(AudiusBaseIE):
_module = 'yt_dlp.extractor.audius'
_VALID_URL = '(?x)https?://(?:www\\.)?(?:audius\\.co/(?P<uploader>[\\w\\d-]+)(?!/album|/playlist)/(?P<title>\\S+))'
class AudiusTrackIE(AudiusIE):
_module = 'yt_dlp.extractor.audius'
_VALID_URL = '(?x)(?:audius:)(?:https?://(?:www\\.)?.+/v1/tracks/)?(?P<track_id>\\w+)'
class AudiusPlaylistIE(AudiusBaseIE):
_module = 'yt_dlp.extractor.audius'
_VALID_URL = 'https?://(?:www\\.)?audius\\.co/(?P<uploader>[\\w\\d-]+)/(?:album|playlist)/(?P<title>\\S+)'
class AudiusProfileIE(AudiusPlaylistIE):
_module = 'yt_dlp.extractor.audius'
_VALID_URL = 'https?://(?:www)?audius\\.co/(?P<id>[^\\/]+)/?(?:[?#]|$)'
class AWAANIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.awaan'
_VALID_URL = 'https?://(?:www\\.)?(?:awaan|dcndigital)\\.ae/(?:#/)?show/(?P<show_id>\\d+)/[^/]+(?:/(?P<id>\\d+)/(?P<season_id>\\d+))?'
class AWAANBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.awaan'
class AWAANVideoIE(AWAANBaseIE):
_module = 'yt_dlp.extractor.awaan'
_VALID_URL = 'https?://(?:www\\.)?(?:awaan|dcndigital)\\.ae/(?:#/)?(?:video(?:/[^/]+)?|media|catchup/[^/]+/[^/]+)/(?P<id>\\d+)'
class AWAANLiveIE(AWAANBaseIE):
_module = 'yt_dlp.extractor.awaan'
_VALID_URL = 'https?://(?:www\\.)?(?:awaan|dcndigital)\\.ae/(?:#/)?live/(?P<id>\\d+)'
class AWAANSeasonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.awaan'
_VALID_URL = 'https?://(?:www\\.)?(?:awaan|dcndigital)\\.ae/(?:#/)?program/(?:(?P<show_id>\\d+)|season/(?P<season_id>\\d+))'
class AZMedienIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.azmedien'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n (?P<host>\n telezueri\\.ch|\n telebaern\\.tv|\n telem1\\.ch\n )/\n [^/]+/\n (?P<id>\n [^/]+-(?P<article_id>\\d+)\n )\n (?:\n \\#video=\n (?P<kaltura_id>\n [_0-9a-z]+\n )\n )?\n '
class BaiduVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.baidu'
_VALID_URL = 'https?://v\\.baidu\\.com/(?P<type>[a-z]+)/(?P<id>\\d+)\\.htm'
class BandcampIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bandcamp'
_VALID_URL = 'https?://[^/]+\\.bandcamp\\.com/track/(?P<id>[^/?#&]+)'
class BandcampAlbumIE(BandcampIE):
_module = 'yt_dlp.extractor.bandcamp'
_VALID_URL = 'https?://(?:(?P<subdomain>[^.]+)\\.)?bandcamp\\.com(?!/music)(?:/album/(?P<id>[^/?#&]+))?'
@classmethod
def suitable(cls, url):
return (False
if BandcampWeeklyIE.suitable(url) or BandcampIE.suitable(url)
else super(BandcampAlbumIE, cls).suitable(url))
class BandcampWeeklyIE(BandcampIE):
_module = 'yt_dlp.extractor.bandcamp'
_VALID_URL = 'https?://(?:www\\.)?bandcamp\\.com/?\\?(?:.*?&)?show=(?P<id>\\d+)'
class BandcampMusicIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bandcamp'
_VALID_URL = 'https?://(?P<id>[^/]+)\\.bandcamp\\.com/music'
class BannedVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bannedvideo'
_VALID_URL = 'https?://(?:www\\.)?banned\\.video/watch\\?id=(?P<id>[0-f]{24})'
class BBCCoUkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?bbc\\.co\\.uk/\n (?:\n programmes/(?!articles/)|\n iplayer(?:/[^/]+)?/(?:episode/|playlist/)|\n music/(?:clips|audiovideo/popular)[/#]|\n radio/player/|\n sounds/play/|\n events/[^/]+/play/[^/]+/\n )\n (?P<id>(?:[pbm][\\da-z]{7}|w[\\da-z]{7,14}))(?!/(?:episodes|broadcasts|clips))\n '
class BBCCoUkArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = 'https?://(?:www\\.)?bbc\\.co\\.uk/programmes/articles/(?P<id>[a-zA-Z0-9]+)'
class BBCCoUkIPlayerPlaylistBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bbc'
class BBCCoUkIPlayerEpisodesIE(BBCCoUkIPlayerPlaylistBaseIE):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = 'https?://(?:www\\.)?bbc\\.co\\.uk/iplayer/episodes/(?P<id>(?:[pbm][\\da-z]{7}|w[\\da-z]{7,14}))'
class BBCCoUkIPlayerGroupIE(BBCCoUkIPlayerPlaylistBaseIE):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = 'https?://(?:www\\.)?bbc\\.co\\.uk/iplayer/group/(?P<id>(?:[pbm][\\da-z]{7}|w[\\da-z]{7,14}))'
class BBCCoUkPlaylistBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bbc'
class BBCCoUkPlaylistIE(BBCCoUkPlaylistBaseIE):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = 'https?://(?:www\\.)?bbc\\.co\\.uk/programmes/(?P<id>(?:[pbm][\\da-z]{7}|w[\\da-z]{7,14}))/(?:episodes|broadcasts|clips)'
class BBCIE(BBCCoUkIE):
_module = 'yt_dlp.extractor.bbc'
_VALID_URL = 'https?://(?:www\\.)?bbc\\.(?:com|co\\.uk)/(?:[^/]+/)+(?P<id>[^/#?]+)'
@classmethod
def suitable(cls, url):
EXCLUDE_IE = (BBCCoUkIE, BBCCoUkArticleIE, BBCCoUkIPlayerEpisodesIE, BBCCoUkIPlayerGroupIE, BBCCoUkPlaylistIE)
return (False if any(ie.suitable(url) for ie in EXCLUDE_IE)
else super(BBCIE, cls).suitable(url))
class BeegIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.beeg'
_VALID_URL = 'https?://(?:www\\.)?beeg\\.(?:com|porn(?:/video)?)/(?P<id>\\d+)'
class BehindKinkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.behindkink'
_VALID_URL = 'https?://(?:www\\.)?behindkink\\.com/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<id>[^/#?_]+)'
class BellMediaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bellmedia'
_VALID_URL = '(?x)https?://(?:www\\.)?\n (?P<domain>\n (?:\n ctv|\n tsn|\n bnn(?:bloomberg)?|\n thecomedynetwork|\n discovery|\n discoveryvelocity|\n sciencechannel|\n investigationdiscovery|\n animalplanet|\n bravo|\n mtv|\n space|\n etalk|\n marilyn\n )\\.ca|\n (?:much|cp24)\\.com\n )/.*?(?:\\b(?:vid(?:eoid)?|clipId)=|-vid|~|%7E|/(?:episode)?)(?P<id>[0-9]{6,})'
class BeatportIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.beatport'
_VALID_URL = 'https?://(?:www\\.|pro\\.)?beatport\\.com/track/(?P<display_id>[^/]+)/(?P<id>[0-9]+)'
class MTVServicesInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mtv'
class BetIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.bet'
_VALID_URL = 'https?://(?:www\\.)?bet\\.com/(?:[^/]+/)+(?P<id>.+?)\\.html'
class BFIPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bfi'
_VALID_URL = 'https?://player\\.bfi\\.org\\.uk/[^/]+/film/watch-(?P<id>[\\w-]+)-online'
class BFMTVBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bfmtv'
class BFMTVIE(BFMTVBaseIE):
_module = 'yt_dlp.extractor.bfmtv'
_VALID_URL = 'https?://(?:www\\.)?bfmtv\\.com/(?:[^/]+/)*[^/?&#]+_V[A-Z]-(?P<id>\\d{12})\\.html'
class BFMTVLiveIE(BFMTVIE):
_module = 'yt_dlp.extractor.bfmtv'
_VALID_URL = 'https?://(?:www\\.)?bfmtv\\.com/(?P<id>(?:[^/]+/)?en-direct)'
class BFMTVArticleIE(BFMTVBaseIE):
_module = 'yt_dlp.extractor.bfmtv'
_VALID_URL = 'https?://(?:www\\.)?bfmtv\\.com/(?:[^/]+/)*[^/?&#]+_A[A-Z]-(?P<id>\\d{12})\\.html'
class BibelTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bibeltv'
_VALID_URL = 'https?://(?:www\\.)?bibeltv\\.de/mediathek/videos/(?:crn/)?(?P<id>\\d+)'
class BigflixIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bigflix'
_VALID_URL = 'https?://(?:www\\.)?bigflix\\.com/.+/(?P<id>[0-9]+)'
class BildIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bild'
_VALID_URL = 'https?://(?:www\\.)?bild\\.de/(?:[^/]+/)+(?P<display_id>[^/]+)-(?P<id>\\d+)(?:,auto=true)?\\.bild\\.html'
class BiliBiliIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = '(?x)\n https?://\n (?:(?:www|bangumi)\\.)?\n bilibili\\.(?:tv|com)/\n (?:\n (?:\n video/[aA][vV]|\n anime/(?P<anime_id>\\d+)/play\\#\n )(?P<id>\\d+)|\n (s/)?video/[bB][vV](?P<id_bv>[^/?#&]+)\n )\n (?:/?\\?p=(?P<page>\\d+))?\n '
class BiliBiliSearchIE(LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'bilisearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class BilibiliCategoryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://www\\.bilibili\\.com/v/[a-zA-Z]+\\/[a-zA-Z]+'
class BiliBiliBangumiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://bangumi\\.bilibili\\.com/anime/(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if BiliBiliIE.suitable(url) else super(BiliBiliBangumiIE, cls).suitable(url)
class BilibiliAudioBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
class BilibiliAudioIE(BilibiliAudioBaseIE):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://(?:www\\.)?bilibili\\.com/audio/au(?P<id>\\d+)'
class BilibiliAudioAlbumIE(BilibiliAudioBaseIE):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://(?:www\\.)?bilibili\\.com/audio/am(?P<id>\\d+)'
class BiliBiliPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://player\\.bilibili\\.com/player\\.html\\?.*?\\baid=(?P<id>\\d+)'
class BilibiliChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://space.bilibili\\.com/(?P<id>\\d+)'
class BiliIntlBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bilibili'
class BiliIntlIE(BiliIntlBaseIE):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://(?:www\\.)?bili(?:bili\\.tv|intl\\.com)/(?:[a-z]{2}/)?play/(?P<season_id>\\d+)/(?P<id>\\d+)'
class BiliIntlSeriesIE(BiliIntlBaseIE):
_module = 'yt_dlp.extractor.bilibili'
_VALID_URL = 'https?://(?:www\\.)?bili(?:bili\\.tv|intl\\.com)/(?:[a-z]{2}/)?play/(?P<id>\\d+)$'
class BioBioChileTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.biobiochiletv'
_VALID_URL = 'https?://(?:tv|www)\\.biobiochile\\.cl/(?:notas|noticias)/(?:[^/]+/)+(?P<id>[^/]+)\\.shtml'
class BitChuteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bitchute'
_VALID_URL = 'https?://(?:www\\.)?bitchute\\.com/(?:video|embed|torrent/[^/]+)/(?P<id>[^/?#&]+)'
class BitChuteChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bitchute'
_VALID_URL = 'https?://(?:www\\.)?bitchute\\.com/channel/(?P<id>[^/?#&]+)'
class BitwaveReplayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bitwave'
_VALID_URL = 'https?://(?:www\\.)?bitwave\\.tv/(?P<user>\\w+)/replay/(?P<id>\\w+)/?$'
class BitwaveStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bitwave'
_VALID_URL = 'https?://(?:www\\.)?bitwave\\.tv/(?P<id>\\w+)/?$'
class BIQLEIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.biqle'
_VALID_URL = 'https?://(?:www\\.)?biqle\\.(?:com|org|ru)/watch/(?P<id>-?\\d+_\\d+)'
class BlackboardCollaborateIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.blackboardcollaborate'
_VALID_URL = '(?x)\n https?://\n (?P<region>[a-z-]+)\\.bbcollab\\.com/\n (?:\n collab/ui/session/playback/load|\n recording\n )/\n (?P<id>[^/]+)'
class BleacherReportIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bleacherreport'
_VALID_URL = 'https?://(?:www\\.)?bleacherreport\\.com/articles/(?P<id>\\d+)'
class BleacherReportCMSIE(AMPIE):
_module = 'yt_dlp.extractor.bleacherreport'
_VALID_URL = 'https?://(?:www\\.)?bleacherreport\\.com/video_embed\\?id=(?P<id>[0-9a-f-]{36}|\\d{5})'
class BloggerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.blogger'
_VALID_URL = 'https?://(?:www\\.)?blogger\\.com/video\\.g\\?token=(?P<id>.+)'
class BloombergIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bloomberg'
_VALID_URL = 'https?://(?:www\\.)?bloomberg\\.com/(?:[^/]+/)*(?P<id>[^/?#]+)'
class BokeCCBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bokecc'
class BokeCCIE(BokeCCBaseIE):
_module = 'yt_dlp.extractor.bokecc'
_VALID_URL = 'https?://union\\.bokecc\\.com/playvideo\\.bo\\?(?P<query>.*)'
class BongaCamsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bongacams'
_VALID_URL = 'https?://(?P<host>(?:[^/]+\\.)?bongacams\\d*\\.com)/(?P<id>[^/?&#]+)'
class BostonGlobeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bostonglobe'
_VALID_URL = '(?i)https?://(?:www\\.)?bostonglobe\\.com/.*/(?P<id>[^/]+)/\\w+(?:\\.html)?'
class BoxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.box'
_VALID_URL = 'https?://(?:[^.]+\\.)?app\\.box\\.com/s/(?P<shared_name>[^/]+)/file/(?P<id>\\d+)'
class BpbIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.bpb'
_VALID_URL = 'https?://(?:www\\.)?bpb\\.de/mediathek/(?P<id>[0-9]+)/'
class BRIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.br'
_VALID_URL = '(?P<base_url>https?://(?:www\\.)?br(?:-klassik)?\\.de)/(?:[a-z0-9\\-_]+/)+(?P<id>[a-z0-9\\-_]+)\\.html'
class BRMediathekIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.br'
_VALID_URL = 'https?://(?:www\\.)?br\\.de/mediathek/video/[^/?&#]*?-(?P<id>av:[0-9a-f]{24})'
class BravoTVIE(AdobePassIE):
_module = 'yt_dlp.extractor.bravotv'
_VALID_URL = 'https?://(?:www\\.)?(?P<req_id>bravotv|oxygen)\\.com/(?:[^/]+/)+(?P<id>[^/?#]+)'
class BreakIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.breakcom'
_VALID_URL = 'https?://(?:www\\.)?break\\.com/video/(?P<display_id>[^/]+?)(?:-(?P<id>\\d+))?(?:[/?#&]|$)'
class BreitBartIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.breitbart'
_VALID_URL = 'https?:\\/\\/(?:www\\.)breitbart.com/videos/v/(?P<id>[^/]+)'
class BrightcoveLegacyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.brightcove'
_VALID_URL = '(?:https?://.*brightcove\\.com/(services|viewer).*?\\?|brightcove:)(?P<query>.*)'
class BrightcoveNewIE(AdobePassIE):
_module = 'yt_dlp.extractor.brightcove'
_VALID_URL = 'https?://players\\.brightcove\\.net/(?P<account_id>\\d+)/(?P<player_id>[^/]+)_(?P<embed>[^/]+)/index\\.html\\?.*(?P<content_type>video|playlist)Id=(?P<video_id>\\d+|ref:[^&]+)'
class BandaiChannelIE(BrightcoveNewIE):
_module = 'yt_dlp.extractor.bandaichannel'
_VALID_URL = 'https?://(?:www\\.)?b-ch\\.com/titles/(?P<id>\\d+/\\d+)'
class BusinessInsiderIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.businessinsider'
_VALID_URL = 'https?://(?:[^/]+\\.)?businessinsider\\.(?:com|nl)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class BuzzFeedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.buzzfeed'
_VALID_URL = 'https?://(?:www\\.)?buzzfeed\\.com/[^?#]*?/(?P<id>[^?#]+)'
class BYUtvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.byutv'
_VALID_URL = 'https?://(?:www\\.)?byutv\\.org/(?:watch|player)/(?!event/)(?P<id>[0-9a-f-]+)(?:/(?P<display_id>[^/?#&]+))?'
class C56IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.c56'
_VALID_URL = 'https?://(?:(?:www|player)\\.)?56\\.com/(?:.+?/)?(?:v_|(?:play_album.+-))(?P<textid>.+?)\\.(?:html|swf)'
class CableAVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cableav'
_VALID_URL = 'https://cableav\\.tv/(?P<id>[a-zA-Z0-9]+)'
class CallinIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.callin'
_VALID_URL = 'https?://(?:www\\.)?callin\\.com/(episode)/(?P<id>[-a-zA-Z]+)'
class CAM4IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cam4'
_VALID_URL = 'https?://(?:[^/]+\\.)?cam4\\.com/(?P<id>[a-z0-9_]+)'
class CamdemyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.camdemy'
_VALID_URL = 'https?://(?:www\\.)?camdemy\\.com/media/(?P<id>\\d+)'
class CamdemyFolderIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.camdemy'
_VALID_URL = 'https?://(?:www\\.)?camdemy\\.com/folder/(?P<id>\\d+)'
class CamModelsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cammodels'
_VALID_URL = 'https?://(?:www\\.)?cammodels\\.com/cam/(?P<id>[^/?#&]+)'
class CamWithHerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.camwithher'
_VALID_URL = 'https?://(?:www\\.)?camwithher\\.tv/view_video\\.php\\?.*\\bviewkey=(?P<id>\\w+)'
class CanalAlphaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canalalpha'
_VALID_URL = 'https?://(?:www\\.)?canalalpha\\.ch/play/[^/]+/[^/]+/(?P<id>\\d+)/?.*'
class CanalplusIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canalplus'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>mycanal|piwiplus)\\.fr/(?:[^/]+/)*(?P<display_id>[^?/]+)(?:\\.html\\?.*\\bvid=|/p/)(?P<id>\\d+)'
class Canalc2IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canalc2'
_VALID_URL = 'https?://(?:(?:www\\.)?canalc2\\.tv/video/|archives-canalc2\\.u-strasbg\\.fr/video\\.asp\\?.*\\bidVideo=)(?P<id>\\d+)'
class CanvasIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canvas'
_VALID_URL = 'https?://mediazone\\.vrt\\.be/api/v1/(?P<site_id>canvas|een|ketnet|vrt(?:video|nieuws)|sporza|dako)/assets/(?P<id>[^/?#&]+)'
class CanvasEenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canvas'
_VALID_URL = 'https?://(?:www\\.)?(?P<site_id>canvas|een)\\.be/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class GigyaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gigya'
class VrtNUIE(GigyaBaseIE):
_module = 'yt_dlp.extractor.canvas'
_VALID_URL = 'https?://(?:www\\.)?vrt\\.be/vrtnu/a-z/(?:[^/]+/){2}(?P<id>[^/?#&]+)'
class DagelijkseKostIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.canvas'
_VALID_URL = 'https?://dagelijksekost\\.een\\.be/gerechten/(?P<id>[^/?#&]+)'
class CarambaTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.carambatv'
_VALID_URL = '(?:carambatv:|https?://video1\\.carambatv\\.ru/v/)(?P<id>\\d+)'
class CarambaTVPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.carambatv'
_VALID_URL = 'https?://carambatv\\.ru/(?:[^/]+/)+(?P<id>[^/?#&]+)'
class CartoonNetworkIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.cartoonnetwork'
_VALID_URL = 'https?://(?:www\\.)?cartoonnetwork\\.com/video/(?:[^/]+/)+(?P<id>[^/?#]+)-(?:clip|episode)\\.html'
class CBCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbc'
_VALID_URL = 'https?://(?:www\\.)?cbc\\.ca/(?!player/)(?:[^/]+/)+(?P<id>[^/?#]+)'
@classmethod
def suitable(cls, url):
return False if CBCPlayerIE.suitable(url) else super(CBCIE, cls).suitable(url)
class CBCPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbc'
_VALID_URL = '(?:cbcplayer:|https?://(?:www\\.)?cbc\\.ca/(?:player/play/|i/caffeine/syndicate/\\?mediaId=))(?P<id>\\d+)'
class CBCGemIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbc'
_VALID_URL = 'https?://gem\\.cbc\\.ca/media/(?P<id>[0-9a-z-]+/s[0-9]+[a-z][0-9]+)'
class CBCGemPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbc'
_VALID_URL = 'https?://gem\\.cbc\\.ca/media/(?P<id>(?P<show>[0-9a-z-]+)/s(?P<season>[0-9]+))/?(?:[?#]|$)'
class CBCGemLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbc'
_VALID_URL = 'https?://gem\\.cbc\\.ca/live/(?P<id>\\d+)'
class CBSLocalIE(AnvatoIE):
_module = 'yt_dlp.extractor.cbslocal'
_VALID_URL = 'https?://[a-z]+\\.cbslocal\\.com/video/(?P<id>\\d+)'
class CBSLocalArticleIE(AnvatoIE):
_module = 'yt_dlp.extractor.cbslocal'
_VALID_URL = 'https?://[a-z]+\\.cbslocal\\.com/\\d+/\\d+/\\d+/(?P<id>[0-9a-z-]+)'
class CBSNewsLiveVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbsnews'
_VALID_URL = 'https?://(?:www\\.)?cbsnews\\.com/live/video/(?P<id>[^/?#]+)'
class CBSSportsEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbssports'
_VALID_URL = '(?ix)https?://(?:(?:www\\.)?cbs|embed\\.247)sports\\.com/player/embed.+?\n (?:\n ids%3D(?P<id>[\\da-f]{8}-(?:[\\da-f]{4}-){3}[\\da-f]{12})|\n pcid%3D(?P<pcid>\\d+)\n )'
class CBSSportsBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cbssports'
class CBSSportsIE(CBSSportsBaseIE):
_module = 'yt_dlp.extractor.cbssports'
_VALID_URL = 'https?://(?:www\\.)?cbssports\\.com/[^/]+/video/(?P<id>[^/?#&]+)'
class TwentyFourSevenSportsIE(CBSSportsBaseIE):
_module = 'yt_dlp.extractor.cbssports'
_VALID_URL = 'https?://(?:www\\.)?247sports\\.com/Video/(?:[^/?#&]+-)?(?P<id>\\d+)'
class CCCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ccc'
_VALID_URL = 'https?://(?:www\\.)?media\\.ccc\\.de/v/(?P<id>[^/?#&]+)'
class CCCPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ccc'
_VALID_URL = 'https?://(?:www\\.)?media\\.ccc\\.de/c/(?P<id>[^/?#&]+)'
class CCMAIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ccma'
_VALID_URL = 'https?://(?:www\\.)?ccma\\.cat/(?:[^/]+/)*?(?P<type>video|audio)/(?P<id>\\d+)'
class CCTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cctv'
_VALID_URL = 'https?://(?:(?:[^/]+)\\.(?:cntv|cctv)\\.(?:com|cn)|(?:www\\.)?ncpa-classic\\.com)/(?:[^/]+/)*?(?P<id>[^/?#&]+?)(?:/index)?(?:\\.s?html|[?#&]|$)'
class CDAIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cda'
_VALID_URL = 'https?://(?:(?:www\\.)?cda\\.pl/video|ebd\\.cda\\.pl/[0-9]+x[0-9]+)/(?P<id>[0-9a-z]+)'
class CeskaTelevizeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ceskatelevize'
_VALID_URL = 'https?://(?:www\\.)?ceskatelevize\\.cz/(?:ivysilani|porady)/(?:[^/?#&]+/)*(?P<id>[^/#?]+)'
class CGTNIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cgtn'
_VALID_URL = 'https?://news\\.cgtn\\.com/news/[0-9]{4}-[0-9]{2}-[0-9]{2}/[a-zA-Z0-9-]+-(?P<id>[a-zA-Z0-9-]+)/index\\.html'
class Channel9IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.channel9'
_VALID_URL = 'https?://(?:www\\.)?(?:channel9\\.msdn\\.com|s\\.ch9\\.ms)/(?P<contentpath>.+?)(?P<rss>/RSS)?/?(?:[?#&]|$)'
class CharlieRoseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.charlierose'
_VALID_URL = 'https?://(?:www\\.)?charlierose\\.com/(?:video|episode)(?:s|/player)/(?P<id>\\d+)'
class ChaturbateIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.chaturbate'
_VALID_URL = 'https?://(?:[^/]+\\.)?chaturbate\\.com/(?:fullvideo/?\\?.*?\\bb=)?(?P<id>[^/?&#]+)'
class ChilloutzoneIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.chilloutzone'
_VALID_URL = 'https?://(?:www\\.)?chilloutzone\\.net/video/(?P<id>[\\w|-]+)\\.html'
class ChingariBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.chingari'
class ChingariIE(ChingariBaseIE):
_module = 'yt_dlp.extractor.chingari'
_VALID_URL = 'https?://(?:www\\.)?chingari\\.io/share/post\\?id=(?P<id>[^&/#?]+)'
class ChingariUserIE(ChingariBaseIE):
_module = 'yt_dlp.extractor.chingari'
_VALID_URL = 'https?://(?:www\\.)?chingari\\.io/(?!share/post)(?P<id>[^/?]+)'
class ChirbitIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.chirbit'
_VALID_URL = 'https?://(?:www\\.)?chirb\\.it/(?:(?:wp|pl)/|fb_chirbit_player\\.swf\\?key=)?(?P<id>[\\da-zA-Z]+)'
class ChirbitProfileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.chirbit'
_VALID_URL = 'https?://(?:www\\.)?chirbit\\.com/(?:rss/)?(?P<id>[^/]+)'
class CinchcastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cinchcast'
_VALID_URL = 'https?://player\\.cinchcast\\.com/.*?(?:assetId|show_id)=(?P<id>[0-9]+)'
class HBOBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hbo'
class CinemaxIE(HBOBaseIE):
_module = 'yt_dlp.extractor.cinemax'
_VALID_URL = 'https?://(?:www\\.)?cinemax\\.com/(?P<path>[^/]+/video/[0-9a-z-]+-(?P<id>\\d+))'
class CiscoLiveBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ciscolive'
class CiscoLiveSessionIE(CiscoLiveBaseIE):
_module = 'yt_dlp.extractor.ciscolive'
_VALID_URL = 'https?://(?:www\\.)?ciscolive(?:\\.cisco)?\\.com/[^#]*#/session/(?P<id>[^/?&]+)'
class CiscoLiveSearchIE(CiscoLiveBaseIE):
_module = 'yt_dlp.extractor.ciscolive'
_VALID_URL = 'https?://(?:www\\.)?ciscolive(?:\\.cisco)?\\.com/(?:global/)?on-demand-library(?:\\.html|/)'
@classmethod
def suitable(cls, url):
return False if CiscoLiveSessionIE.suitable(url) else super(CiscoLiveSearchIE, cls).suitable(url)
class CiscoWebexIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ciscowebex'
_VALID_URL = '(?x)\n (?P<url>https?://(?P<subdomain>[^/#?]*)\\.webex\\.com/(?:\n (?P<siteurl_1>[^/#?]*)/(?:ldr|lsr).php\\?(?:[^#]*&)*RCID=(?P<rcid>[0-9a-f]{32})|\n (?:recordingservice|webappng)/sites/(?P<siteurl_2>[^/#?]*)/recording/(?:playback/|play/)?(?P<id>[0-9a-f]{32})\n ))'
class CJSWIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cjsw'
_VALID_URL = 'https?://(?:www\\.)?cjsw\\.com/program/(?P<program>[^/]+)/episode/(?P<id>\\d+)'
class CliphunterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cliphunter'
_VALID_URL = '(?x)https?://(?:www\\.)?cliphunter\\.com/w/\n (?P<id>[0-9]+)/\n (?P<seo>.+?)(?:$|[#\\?])\n '
class ClippitIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.clippit'
_VALID_URL = 'https?://(?:www\\.)?clippituser\\.tv/c/(?P<id>[a-z]+)'
class OnetBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.onet'
class ClipRsIE(OnetBaseIE):
_module = 'yt_dlp.extractor.cliprs'
_VALID_URL = 'https?://(?:www\\.)?clip\\.rs/(?P<id>[^/]+)/\\d+'
class ClipsyndicateIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.clipsyndicate'
_VALID_URL = 'https?://(?:chic|www)\\.clipsyndicate\\.com/video/play(list/\\d+)?/(?P<id>\\d+)'
class CloserToTruthIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.closertotruth'
_VALID_URL = 'https?://(?:www\\.)?closertotruth\\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class CloudflareStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cloudflarestream'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:watch\\.)?(?:cloudflarestream\\.com|(?:videodelivery|bytehighway)\\.net)/|\n embed\\.(?:cloudflarestream\\.com|(?:videodelivery|bytehighway)\\.net)/embed/[^/]+\\.js\\?.*?\\bvideo=\n )\n (?P<id>[\\da-f]{32}|[\\w-]+\\.[\\w-]+\\.[\\w-]+)\n '
class CloudyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cloudy'
_VALID_URL = 'https?://(?:www\\.)?cloudy\\.ec/(?:v/|embed\\.php\\?.*?\\bid=)(?P<id>[A-Za-z0-9]+)'
class ClubicIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.clubic'
_VALID_URL = 'https?://(?:www\\.)?clubic\\.com/video/(?:[^/]+/)*video.*-(?P<id>[0-9]+)\\.html'
class ClypIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.clyp'
_VALID_URL = 'https?://(?:www\\.)?clyp\\.it/(?P<id>[a-z0-9]+)'
class CNBCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cnbc'
_VALID_URL = 'https?://video\\.cnbc\\.com/gallery/\\?video=(?P<id>[0-9]+)'
class CNBCVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cnbc'
_VALID_URL = 'https?://(?:www\\.)?cnbc\\.com(?P<path>/video/(?:[^/]+/)+(?P<id>[^./?#&]+)\\.html)'
class CNNIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.cnn'
_VALID_URL = '(?x)https?://(?:(?P<sub_domain>edition|www|money)\\.)?cnn\\.com/(?:video/(?:data/.+?|\\?)/)?videos?/\n (?P<path>.+?/(?P<title>[^/]+?)(?:\\.(?:[a-z\\-]+)|(?=&)))'
class CNNBlogsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cnn'
_VALID_URL = 'https?://[^\\.]+\\.blogs\\.cnn\\.com/.+'
class CNNArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cnn'
_VALID_URL = 'https?://(?:(?:edition|www)\\.)?cnn\\.com/(?!videos?/)'
class CoubIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.coub'
_VALID_URL = '(?:coub:|https?://(?:coub\\.com/(?:view|embed|coubs)/|c-cdn\\.coub\\.com/fb-player\\.swf\\?.*\\bcoub(?:ID|id)=))(?P<id>[\\da-z]+)'
class ComedyCentralIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.comedycentral'
_VALID_URL = 'https?://(?:www\\.)?cc\\.com/(?:episodes|video(?:-clips)?|collection-playlist)/(?P<id>[0-9a-z]{6})'
class ComedyCentralTVIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.comedycentral'
_VALID_URL = 'https?://(?:www\\.)?comedycentral\\.tv/folgen/(?P<id>[0-9a-z]{6})'
class CommonMistakesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.commonmistakes'
_VALID_URL = '(?x)\n (?:url|URL)$\n '
class UnicodeBOMIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.commonmistakes'
_VALID_URL = '(?P<bom>\\ufeff)(?P<id>.*)$'
class MmsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.commonprotocols'
_VALID_URL = '(?i)mms://.+'
class RtmpIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.commonprotocols'
_VALID_URL = '(?i)rtmp[est]?://.+'
class ViewSourceIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.commonprotocols'
_VALID_URL = 'view-source:(?P<url>.+)'
class CondeNastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.condenast'
_VALID_URL = '(?x)https?://(?:video|www|player(?:-backend)?)\\.(?:allure|architecturaldigest|arstechnica|bonappetit|brides|cnevids|cntraveler|details|epicurious|glamour|golfdigest|gq|newyorker|self|teenvogue|vanityfair|vogue|wired|wmagazine)\\.com/\n (?:\n (?:\n embed(?:js)?|\n (?:script|inline)/video\n )/(?P<id>[0-9a-f]{24})(?:/(?P<player_id>[0-9a-f]{24}))?(?:.+?\\btarget=(?P<target>[^&]+))?|\n (?P<type>watch|series|video)/(?P<display_id>[^/?#]+)\n )'
class CONtvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.contv'
_VALID_URL = 'https?://(?:www\\.)?contv\\.com/details-movie/(?P<id>[^/]+)'
class CozyTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cozytv'
_VALID_URL = 'https?://(?:www\\.)?cozy\\.tv/(?P<uploader>[^/]+)/replays/(?P<id>[^/$#&?]+)'
class CrackedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cracked'
_VALID_URL = 'https?://(?:www\\.)?cracked\\.com/video_(?P<id>\\d+)_[\\da-z-]+\\.html'
class CrackleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.crackle'
_VALID_URL = '(?:crackle:|https?://(?:(?:www|m)\\.)?(?:sony)?crackle\\.com/(?:playlist/\\d+/|(?:[^/]+/)+))(?P<id>\\d+)'
class CrooksAndLiarsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.crooksandliars'
_VALID_URL = 'https?://embed\\.crooksandliars\\.com/(?:embed|v)/(?P<id>[A-Za-z0-9]+)'
class CrowdBunkerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.crowdbunker'
_VALID_URL = 'https?://(?:www\\.)?crowdbunker\\.com/v/(?P<id>[^/?#$&]+)'
class CrowdBunkerChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.crowdbunker'
_VALID_URL = 'https?://(?:www\\.)?crowdbunker\\.com/@(?P<id>[^/?#$&]+)'
class CrunchyrollBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.crunchyroll'
class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
_module = 'yt_dlp.extractor.crunchyroll'
_VALID_URL = 'https?://(?:(?P<prefix>www|m)\\.)?(?P<url>crunchyroll\\.com/(?:\\w{1,2}/)?(?!(?:news|anime-news|library|forum|launchcalendar|lineup|store|comics|freetrial|login|media-\\d+))(?P<id>[\\w\\-]+))/?(?:\\?|$)'
class CrunchyrollBetaIE(CrunchyrollBaseIE):
_module = 'yt_dlp.extractor.crunchyroll'
_VALID_URL = 'https?://beta\\.crunchyroll\\.com/(?P<lang>(?:\\w{1,2}/)?)watch/(?P<internal_id>\\w+)/(?P<id>[\\w\\-]+)/?(?:\\?|$)'
class CrunchyrollBetaShowIE(CrunchyrollBaseIE):
_module = 'yt_dlp.extractor.crunchyroll'
_VALID_URL = 'https?://beta\\.crunchyroll\\.com/(?P<lang>(?:\\w{1,2}/)?)series/\\w+/(?P<id>[\\w\\-]+)/?(?:\\?|$)'
class CSpanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cspan'
_VALID_URL = 'https?://(?:www\\.)?c-span\\.org/video/\\?(?P<id>[0-9a-f]+)'
class CtsNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ctsnews'
_VALID_URL = 'https?://news\\.cts\\.com\\.tw/[a-z]+/[a-z]+/\\d+/(?P<id>\\d+)\\.html'
class CTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ctv'
_VALID_URL = 'https?://(?:www\\.)?ctv\\.ca/(?P<id>(?:show|movie)s/[^/]+/[^/?#&]+)'
class CTVNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ctvnews'
_VALID_URL = 'https?://(?:.+?\\.)?ctvnews\\.ca/(?:video\\?(?:clip|playlist|bin)Id=|.*?)(?P<id>[0-9.]+)'
class CultureUnpluggedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cultureunplugged'
_VALID_URL = 'https?://(?:www\\.)?cultureunplugged\\.com/documentary/watch-online/play/(?P<id>\\d+)(?:/(?P<display_id>[^/]+))?'
class CuriosityStreamBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.curiositystream'
class CuriosityStreamIE(CuriosityStreamBaseIE):
_module = 'yt_dlp.extractor.curiositystream'
_VALID_URL = 'https?://(?:app\\.)?curiositystream\\.com/video/(?P<id>\\d+)'
class CuriosityStreamCollectionBaseIE(CuriosityStreamBaseIE):
_module = 'yt_dlp.extractor.curiositystream'
class CuriosityStreamCollectionsIE(CuriosityStreamCollectionBaseIE):
_module = 'yt_dlp.extractor.curiositystream'
_VALID_URL = 'https?://(?:app\\.)?curiositystream\\.com/collections/(?P<id>\\d+)'
class CuriosityStreamSeriesIE(CuriosityStreamCollectionBaseIE):
_module = 'yt_dlp.extractor.curiositystream'
_VALID_URL = 'https?://(?:app\\.)?curiositystream\\.com/(?:series|collection)/(?P<id>\\d+)'
class CWTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.cwtv'
_VALID_URL = 'https?://(?:www\\.)?cw(?:tv(?:pr)?|seed)\\.com/(?:shows/)?(?:[^/]+/)+[^?]*\\?.*\\b(?:play|watch)=(?P<id>[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})'
class DaftsexIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.daftsex'
_VALID_URL = 'https?://(?:www\\.)?daftsex\\.com/watch/(?P<id>-?\\d+_\\d+)'
class DailyMailIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dailymail'
_VALID_URL = 'https?://(?:www\\.)?dailymail\\.co\\.uk/(?:video/[^/]+/video-|embed/video/)(?P<id>[0-9]+)'
class DailymotionBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dailymotion'
class DailymotionIE(DailymotionBaseInfoExtractor):
_module = 'yt_dlp.extractor.dailymotion'
_VALID_URL = '(?ix)\n https?://\n (?:\n (?:(?:www|touch)\\.)?dailymotion\\.[a-z]{2,3}/(?:(?:(?:embed|swf|\\#)/)?video|swf)|\n (?:www\\.)?lequipe\\.fr/video\n )\n /(?P<id>[^/?_]+)(?:.+?\\bplaylist=(?P<playlist_id>x[0-9a-z]+))?\n '
class DailymotionPlaylistBaseIE(DailymotionBaseInfoExtractor):
_module = 'yt_dlp.extractor.dailymotion'
class DailymotionPlaylistIE(DailymotionPlaylistBaseIE):
_module = 'yt_dlp.extractor.dailymotion'
_VALID_URL = '(?:https?://)?(?:www\\.)?dailymotion\\.[a-z]{2,3}/playlist/(?P<id>x[0-9a-z]+)'
class DailymotionUserIE(DailymotionPlaylistBaseIE):
_module = 'yt_dlp.extractor.dailymotion'
_VALID_URL = 'https?://(?:www\\.)?dailymotion\\.[a-z]{2,3}/(?!(?:embed|swf|#|video|playlist)/)(?:(?:old/)?user/)?(?P<id>[^/]+)'
class DamtomoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.damtomo'
class DamtomoRecordIE(DamtomoBaseIE):
_module = 'yt_dlp.extractor.damtomo'
_VALID_URL = 'https?://(?:www\\.)?clubdam\\.com/app/damtomo/(?:SP/)?karaokePost/StreamingKrk\\.do\\?karaokeContributeId=(?P<id>\\d+)'
class DamtomoVideoIE(DamtomoBaseIE):
_module = 'yt_dlp.extractor.damtomo'
_VALID_URL = 'https?://(?:www\\.)?clubdam\\.com/app/damtomo/(?:SP/)?karaokeMovie/StreamingDkm\\.do\\?karaokeMovieId=(?P<id>\\d+)'
class DaumBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.daum'
class DaumIE(DaumBaseIE):
_module = 'yt_dlp.extractor.daum'
_VALID_URL = 'https?://(?:(?:m\\.)?tvpot\\.daum\\.net/v/|videofarm\\.daum\\.net/controller/player/VodPlayer\\.swf\\?vid=)(?P<id>[^?#&]+)'
class DaumClipIE(DaumBaseIE):
_module = 'yt_dlp.extractor.daum'
_VALID_URL = 'https?://(?:m\\.)?tvpot\\.daum\\.net/(?:clip/ClipView.(?:do|tv)|mypot/View.do)\\?.*?clipid=(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if DaumPlaylistIE.suitable(url) or DaumUserIE.suitable(url) else super(DaumClipIE, cls).suitable(url)
class DaumListIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.daum'
class DaumPlaylistIE(DaumListIE):
_module = 'yt_dlp.extractor.daum'
_VALID_URL = 'https?://(?:m\\.)?tvpot\\.daum\\.net/mypot/(?:View\\.do|Top\\.tv)\\?.*?playlistid=(?P<id>[0-9]+)'
@classmethod
def suitable(cls, url):
return False if DaumUserIE.suitable(url) else super(DaumPlaylistIE, cls).suitable(url)
class DaumUserIE(DaumListIE):
_module = 'yt_dlp.extractor.daum'
_VALID_URL = 'https?://(?:m\\.)?tvpot\\.daum\\.net/mypot/(?:View|Top)\\.(?:do|tv)\\?.*?ownerid=(?P<id>[0-9a-zA-Z]+)'
class DBTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dbtv'
_VALID_URL = 'https?://(?:www\\.)?dagbladet\\.no/video/(?:(?:embed|(?P<display_id>[^/]+))/)?(?P<id>[0-9A-Za-z_-]{11}|[a-zA-Z0-9]{8})'
class DctpTvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dctp'
_VALID_URL = 'https?://(?:www\\.)?dctp\\.tv/(?:#/)?filme/(?P<id>[^/?#&]+)'
class DeezerBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.deezer'
class DeezerPlaylistIE(DeezerBaseInfoExtractor):
_module = 'yt_dlp.extractor.deezer'
_VALID_URL = 'https?://(?:www\\.)?deezer\\.com/(../)?playlist/(?P<id>[0-9]+)'
class DeezerAlbumIE(DeezerBaseInfoExtractor):
_module = 'yt_dlp.extractor.deezer'
_VALID_URL = 'https?://(?:www\\.)?deezer\\.com/(../)?album/(?P<id>[0-9]+)'
class DemocracynowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.democracynow'
_VALID_URL = 'https?://(?:www\\.)?democracynow\\.org/(?P<id>[^\\?]*)'
class DFBIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dfb'
_VALID_URL = 'https?://tv\\.dfb\\.de/video/(?P<display_id>[^/]+)/(?P<id>\\d+)'
class DHMIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dhm'
_VALID_URL = 'https?://(?:www\\.)?dhm\\.de/filmarchiv/(?:[^/]+/)+(?P<id>[^/]+)'
class DiggIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.digg'
_VALID_URL = 'https?://(?:www\\.)?digg\\.com/video/(?P<id>[^/?#&]+)'
class DotsubIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dotsub'
_VALID_URL = 'https?://(?:www\\.)?dotsub\\.com/view/(?P<id>[^/]+)'
class DouyuShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.douyutv'
_VALID_URL = 'https?://v(?:mobile)?\\.douyu\\.com/show/(?P<id>[0-9a-zA-Z]+)'
class DouyuTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.douyutv'
_VALID_URL = 'https?://(?:www\\.)?douyu(?:tv)?\\.com/(?:[^/]+/)*(?P<id>[A-Za-z0-9]+)'
class DPlayBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dplay'
class DPlayIE(DPlayBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = '(?x)https?://\n (?P<domain>\n (?:www\\.)?(?P<host>d\n (?:\n play\\.(?P<country>dk|fi|jp|se|no)|\n iscoveryplus\\.(?P<plus_country>dk|es|fi|it|se|no)\n )\n )|\n (?P<subdomain_country>es|it)\\.dplay\\.com\n )/[^/]+/(?P<id>[^/]+/[^/?#]+)'
class DiscoveryPlusBaseIE(DPlayBaseIE):
_module = 'yt_dlp.extractor.dplay'
class DiscoveryPlusIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoveryplus\\.com/(?!it/)(?:\\w{2}/)?video/(?P<id>[^/]+/[^/?#]+)'
class HGTVDeIE(DPlayBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://de\\.hgtv\\.com/sendungen/(?P<id>[^/]+/[^/?#]+)'
class GoDiscoveryIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:go\\.)?discovery\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class TravelChannelIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:watch\\.)?travelchannel\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class CookingChannelIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:watch\\.)?cookingchanneltv\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class HGTVUsaIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:watch\\.)?hgtv\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class FoodNetworkIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:watch\\.)?foodnetwork\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class InvestigationDiscoveryIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?investigationdiscovery\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class DestinationAmericaIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?destinationamerica\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class AmHistoryChannelIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?ahctv\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class ScienceChannelIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?sciencechannel\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class DIYNetworkIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:watch\\.)?diynetwork\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class DiscoveryLifeIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoverylife\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class AnimalPlanetIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?animalplanet\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class TLCIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:go\\.)?tlc\\.com/video/(?P<id>[^/]+/[^/?#]+)'
class DiscoveryPlusIndiaIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoveryplus\\.in/videos?/(?P<id>[^/]+/[^/?#]+)'
class DiscoveryNetworksDeIE(DPlayBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?(?P<domain>(?:tlc|dmax)\\.de|dplay\\.co\\.uk)/(?:programme|show|sendungen)/(?P<programme>[^/]+)/(?:video/)?(?P<alternate_id>[^/]+)'
class DiscoveryPlusItalyIE(DiscoveryPlusBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoveryplus\\.com/it/video/(?P<id>[^/]+/[^/?#]+)'
class DiscoveryPlusShowBaseIE(DPlayBaseIE):
_module = 'yt_dlp.extractor.dplay'
class DiscoveryPlusItalyShowIE(DiscoveryPlusShowBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoveryplus\\.it/programmi/(?P<show_name>[^/]+)/?(?:[?#]|$)'
class DiscoveryPlusIndiaShowIE(DiscoveryPlusShowBaseIE):
_module = 'yt_dlp.extractor.dplay'
_VALID_URL = 'https?://(?:www\\.)?discoveryplus\\.in/show/(?P<show_name>[^/]+)/?(?:[?#]|$)'
class DRBonanzaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.drbonanza'
_VALID_URL = 'https?://(?:www\\.)?dr\\.dk/bonanza/[^/]+/\\d+/[^/]+/(?P<id>\\d+)/(?P<display_id>[^/?#&]+)'
class DrTuberIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.drtuber'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?drtuber\\.com/(?:video|embed)/(?P<id>\\d+)(?:/(?P<display_id>[\\w-]+))?'
class DRTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.drtv'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?dr\\.dk/(?:tv/se|nyheder|radio(?:/ondemand)?)/(?:[^/]+/)*|\n (?:www\\.)?(?:dr\\.dk|dr-massive\\.com)/drtv/(?:se|episode|program)/\n )\n (?P<id>[\\da-z_-]+)\n '
class DRTVLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.drtv'
_VALID_URL = 'https?://(?:www\\.)?dr\\.dk/(?:tv|TV)/live/(?P<id>[\\da-z-]+)'
class DTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dtube'
_VALID_URL = 'https?://(?:www\\.)?d\\.tube/(?:#!/)?v/(?P<uploader_id>[0-9a-z.-]+)/(?P<id>[0-9a-z]{8})'
class DVTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dvtv'
_VALID_URL = 'https?://video\\.aktualne\\.cz/(?:[^/]+/)+r~(?P<id>[0-9a-f]{32})'
class DubokuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.duboku'
_VALID_URL = '(?:https?://[^/]+\\.duboku\\.co/vodplay/)(?P<id>[0-9]+-[0-9-]+)\\.html.*'
class DubokuPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.duboku'
_VALID_URL = '(?:https?://[^/]+\\.duboku\\.co/voddetail/)(?P<id>[0-9]+)\\.html.*'
class DumpertIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dumpert'
_VALID_URL = '(?P<protocol>https?)://(?:(?:www|legacy)\\.)?dumpert\\.nl/(?:mediabase|embed|item)/(?P<id>[0-9]+[/_][0-9a-zA-Z]+)'
class DefenseGouvFrIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.defense'
_VALID_URL = 'https?://.*?\\.defense\\.gouv\\.fr/layout/set/ligthboxvideo/base-de-medias/webtv/(?P<id>[^/?#]*)'
class DigitalConcertHallIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.digitalconcerthall'
_VALID_URL = 'https?://(?:www\\.)?digitalconcerthall\\.com/(?P<language>[a-z]+)/concert/(?P<id>[0-9]+)'
class DiscoveryGoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.discoverygo'
class DiscoveryIE(DiscoveryGoBaseIE):
_module = 'yt_dlp.extractor.discovery'
_VALID_URL = '(?x)https?://\n (?P<site>\n go\\.discovery|\n www\\.\n (?:\n investigationdiscovery|\n discoverylife|\n animalplanet|\n ahctv|\n destinationamerica|\n sciencechannel|\n tlc\n )|\n watch\\.\n (?:\n hgtv|\n foodnetwork|\n travelchannel|\n diynetwork|\n cookingchanneltv|\n motortrend\n )\n )\\.com/tv-shows/(?P<show_slug>[^/]+)/(?:video|full-episode)s/(?P<id>[^./?#]+)'
class DisneyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.disney'
_VALID_URL = '(?x)\n https?://(?P<domain>(?:[^/]+\\.)?(?:disney\\.[a-z]{2,3}(?:\\.[a-z]{2})?|disney(?:(?:me|latino)\\.com|turkiye\\.com\\.tr|channel\\.de)|(?:starwars|marvelkids)\\.com))/(?:(?:embed/|(?:[^/]+/)+[\\w-]+-)(?P<id>[a-z0-9]{24})|(?:[^/]+/)?(?P<display_id>[^/?#]+))'
class DigitallySpeakingIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dispeak'
_VALID_URL = 'https?://(?:s?evt\\.dispeak|events\\.digitallyspeaking)\\.com/(?:[^/]+/)+xml/(?P<id>[^.]+)\\.xml'
class DoodStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.doodstream'
_VALID_URL = 'https?://(?:www\\.)?dood\\.(?:to|watch)/[ed]/(?P<id>[a-z0-9]+)'
class DropboxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dropbox'
_VALID_URL = 'https?://(?:www\\.)?dropbox[.]com/sh?/(?P<id>[a-zA-Z0-9]{15})/.*'
class DropoutSeasonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dropout'
_VALID_URL = 'https?://(?:www\\.)?dropout\\.tv/(?P<id>[^\\/$&?#]+)(?:/?$|/season:[0-9]+/?$)'
class DropoutIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dropout'
_VALID_URL = 'https?://(?:www\\.)?dropout\\.tv/(?:[^/]+/)*videos/(?P<id>[^/]+)/?$'
class DWIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dw'
_VALID_URL = 'https?://(?:www\\.)?dw\\.com/(?:[^/]+/)+(?:av|e)-(?P<id>\\d+)'
class DWArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dw'
_VALID_URL = 'https?://(?:www\\.)?dw\\.com/(?:[^/]+/)+a-(?P<id>\\d+)'
class EaglePlatformIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eagleplatform'
_VALID_URL = '(?x)\n (?:\n eagleplatform:(?P<custom_host>[^/]+):|\n https?://(?P<host>.+?\\.media\\.eagleplatform\\.com)/index/player\\?.*\\brecord_id=\n )\n (?P<id>\\d+)\n '
class EbaumsWorldIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ebaumsworld'
_VALID_URL = 'https?://(?:www\\.)?ebaumsworld\\.com/videos/[^/]+/(?P<id>\\d+)'
class EchoMskIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.echomsk'
_VALID_URL = 'https?://(?:www\\.)?echo\\.msk\\.ru/sounds/(?P<id>\\d+)'
class EggheadBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.egghead'
class EggheadCourseIE(EggheadBaseIE):
_module = 'yt_dlp.extractor.egghead'
_VALID_URL = 'https://(?:app\\.)?egghead\\.io/(?:course|playlist)s/(?P<id>[^/?#&]+)'
class EggheadLessonIE(EggheadBaseIE):
_module = 'yt_dlp.extractor.egghead'
_VALID_URL = 'https://(?:app\\.)?egghead\\.io/(?:api/v1/)?lessons/(?P<id>[^/?#&]+)'
class EHowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ehow'
_VALID_URL = 'https?://(?:www\\.)?ehow\\.com/[^/_?]*_(?P<id>[0-9]+)'
class EightTracksIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eighttracks'
_VALID_URL = 'https?://8tracks\\.com/(?P<user>[^/]+)/(?P<id>[^/#]+)(?:#.*)?$'
class EinthusanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.einthusan'
_VALID_URL = 'https?://(?P<host>einthusan\\.(?:tv|com|ca))/movie/watch/(?P<id>[^/?#&]+)'
class EitbIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eitb'
_VALID_URL = 'https?://(?:www\\.)?eitb\\.tv/(?:eu/bideoa|es/video)/[^/]+/\\d+/(?P<id>\\d+)'
class EllenTubeBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ellentube'
class EllenTubeIE(EllenTubeBaseIE):
_module = 'yt_dlp.extractor.ellentube'
_VALID_URL = '(?x)\n (?:\n ellentube:|\n https://api-prod\\.ellentube\\.com/ellenapi/api/item/\n )\n (?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})\n '
class EllenTubeVideoIE(EllenTubeBaseIE):
_module = 'yt_dlp.extractor.ellentube'
_VALID_URL = 'https?://(?:www\\.)?ellentube\\.com/video/(?P<id>.+?)\\.html'
class EllenTubePlaylistIE(EllenTubeBaseIE):
_module = 'yt_dlp.extractor.ellentube'
_VALID_URL = 'https?://(?:www\\.)?ellentube\\.com/(?:episode|studios)/(?P<id>.+?)\\.html'
class ElonetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.elonet'
_VALID_URL = 'https?://elonet\\.finna\\.fi/Record/kavi\\.elonet_elokuva_(?P<id>[0-9]+)'
class ElPaisIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.elpais'
_VALID_URL = 'https?://(?:[^.]+\\.)?elpais\\.com/.*/(?P<id>[^/#?]+)\\.html(?:$|[?#])'
class EmbedlyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.embedly'
_VALID_URL = 'https?://(?:www|cdn\\.)?embedly\\.com/widgets/media\\.html\\?(?:[^#]*?&)?url=(?P<id>[^#&]+)'
class EngadgetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.engadget'
_VALID_URL = 'https?://(?:www\\.)?engadget\\.com/video/(?P<id>[^/?#]+)'
class EpiconIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.epicon'
_VALID_URL = 'https?://(?:www\\.)?epicon\\.in/(?:documentaries|movies|tv-shows/[^/?#]+/[^/?#]+)/(?P<id>[^/?#]+)'
class EpiconSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.epicon'
_VALID_URL = '(?!.*season)https?://(?:www\\.)?epicon\\.in/tv-shows/(?P<id>[^/?#]+)'
class EpornerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eporner'
_VALID_URL = 'https?://(?:www\\.)?eporner\\.com/(?:(?:hd-porn|embed)/|video-)(?P<id>\\w+)(?:/(?P<display_id>[\\w-]+))?'
class EroProfileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eroprofile'
_VALID_URL = 'https?://(?:www\\.)?eroprofile\\.com/m/videos/view/(?P<id>[^/]+)'
class EroProfileAlbumIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eroprofile'
_VALID_URL = 'https?://(?:www\\.)?eroprofile\\.com/m/videos/album/(?P<id>[^/]+)'
class ERTFlixBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ertgr'
class ERTFlixCodenameIE(ERTFlixBaseIE):
_module = 'yt_dlp.extractor.ertgr'
_VALID_URL = 'ertflix:(?P<id>[\\w-]+)'
class ERTFlixIE(ERTFlixBaseIE):
_module = 'yt_dlp.extractor.ertgr'
_VALID_URL = 'https?://www\\.ertflix\\.gr/(?:series|vod)/(?P<id>[a-z]{3}\\.\\d+)'
class ERTWebtvEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ertgr'
_VALID_URL = 'https?://www\\.ert\\.gr/webtv/live\\-uni/vod/dt\\-uni\\-vod\\.php\\?([^#]+&)?f=(?P<id>[^#&]+)'
class EscapistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.escapist'
_VALID_URL = 'https?://?(?:(?:www|v1)\\.)?escapistmagazine\\.com/videos/view/[^/]+/(?P<id>[0-9]+)'
class OnceIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.once'
_VALID_URL = 'https?://.+?\\.unicornmedia\\.com/now/(?:ads/vmap/)?[^/]+/[^/]+/(?P<domain_id>[^/]+)/(?P<application_id>[^/]+)/(?:[^/]+/)?(?P<media_item_id>[^/]+)/content\\.(?:once|m3u8|mp4)'
class ESPNIE(OnceIE):
_module = 'yt_dlp.extractor.espn'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:\n (?:\n (?:(?:\\w+\\.)+)?espn\\.go|\n (?:www\\.)?espn\n )\\.com/\n (?:\n (?:\n video/(?:clip|iframe/twitter)|\n watch/player\n )\n (?:\n .*?\\?.*?\\bid=|\n /_/id/\n )|\n [^/]+/video/\n )\n )|\n (?:www\\.)espnfc\\.(?:com|us)/(?:video/)?[^/]+/\\d+/video/\n )\n (?P<id>\\d+)\n '
class ESPNArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.espn'
_VALID_URL = 'https?://(?:espn\\.go|(?:www\\.)?espn)\\.com/(?:[^/]+/)*(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if ESPNIE.suitable(url) else super(ESPNArticleIE, cls).suitable(url)
class FiveThirtyEightIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.espn'
_VALID_URL = 'https?://(?:www\\.)?fivethirtyeight\\.com/features/(?P<id>[^/?#]+)'
class ESPNCricInfoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.espn'
_VALID_URL = 'https?://(?:www\\.)?espncricinfo\\.com/video/[^#$&?/]+-(?P<id>\\d+)'
class EsriVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.esri'
_VALID_URL = 'https?://video\\.esri\\.com/watch/(?P<id>[0-9]+)'
class EuropaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.europa'
_VALID_URL = 'https?://ec\\.europa\\.eu/avservices/(?:video/player|audio/audioDetails)\\.cfm\\?.*?\\bref=(?P<id>[A-Za-z0-9-]+)'
class EuropeanTourIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.europeantour'
_VALID_URL = 'https?://(?:www\\.)?europeantour\\.com/dpworld-tour/news/video/(?P<id>[^/&?#$]+)'
class EUScreenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.euscreen'
_VALID_URL = 'https?://(?:www\\.)?euscreen\\.eu/item.html\\?id=(?P<id>[^&?$/]+)'
class ExpoTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.expotv'
_VALID_URL = 'https?://(?:www\\.)?expotv\\.com/videos/[^?#]*/(?P<id>[0-9]+)($|[?#])'
class ExpressenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.expressen'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?(?:expressen|di)\\.se/\n (?:(?:tvspelare/video|videoplayer/embed)/)?\n tv/(?:[^/]+/)*\n (?P<id>[^/?#&]+)\n '
class EyedoTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.eyedotv'
_VALID_URL = 'https?://(?:www\\.)?eyedo\\.tv/[^/]+/(?:#!/)?Live/Detail/(?P<id>[0-9]+)'
class FacebookIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.facebook'
_VALID_URL = '(?x)\n (?:\n https?://\n (?:[\\w-]+\\.)?(?:facebook\\.com|facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd\\.onion)/\n (?:[^#]*?\\#!/)?\n (?:\n (?:\n video/video\\.php|\n photo\\.php|\n video\\.php|\n video/embed|\n story\\.php|\n watch(?:/live)?/?\n )\\?(?:.*?)(?:v|video_id|story_fbid)=|\n [^/]+/videos/(?:[^/]+/)?|\n [^/]+/posts/|\n groups/[^/]+/permalink/|\n watchparty/\n )|\n facebook:\n )\n (?P<id>[0-9]+)\n '
class FacebookPluginsVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.facebook'
_VALID_URL = 'https?://(?:[\\w-]+\\.)?facebook\\.com/plugins/video\\.php\\?.*?\\bhref=(?P<id>https.+)'
class FacebookRedirectURLIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.facebook'
_VALID_URL = 'https?://(?:[\\w-]+\\.)?facebook\\.com/flx/warn[/?]'
class FancodeVodIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fancode'
_VALID_URL = 'https?://(?:www\\.)?fancode\\.com/video/(?P<id>[0-9]+)\\b'
class FancodeLiveIE(FancodeVodIE):
_module = 'yt_dlp.extractor.fancode'
_VALID_URL = 'https?://(www\\.)?fancode\\.com/match/(?P<id>[0-9]+).+'
class FazIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.faz'
_VALID_URL = 'https?://(?:www\\.)?faz\\.net/(?:[^/]+/)*.*?-(?P<id>\\d+)\\.html'
class FC2IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fc2'
_VALID_URL = '^(?:https?://video\\.fc2\\.com/(?:[^/]+/)*content/|fc2:)(?P<id>[^/]+)'
class FC2EmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fc2'
_VALID_URL = 'https?://video\\.fc2\\.com/flv2\\.swf\\?(?P<query>.+)'
class FczenitIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fczenit'
_VALID_URL = 'https?://(?:www\\.)?fc-zenit\\.ru/video/(?P<id>[0-9]+)'
class FilmmoduIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.filmmodu'
_VALID_URL = 'https?://(?:www.)?filmmodu.org/(?P<id>[^/]+-(?:turkce-dublaj-izle|altyazili-izle))'
class FilmOnIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.filmon'
_VALID_URL = '(?:https?://(?:www\\.)?filmon\\.com/vod/view/|filmon:)(?P<id>\\d+)'
class FilmOnChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.filmon'
_VALID_URL = 'https?://(?:www\\.)?filmon\\.com/(?:tv|channel)/(?P<id>[a-z0-9-]+)'
class FilmwebIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.filmweb'
_VALID_URL = 'https?://(?:www\\.)?filmweb\\.no/(?P<type>trailere|filmnytt)/article(?P<id>\\d+)\\.ece'
class FirstTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.firsttv'
_VALID_URL = 'https?://(?:www\\.)?1tv\\.ru/(?:[^/]+/)+(?P<id>[^/?#]+)'
class FiveMinIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fivemin'
_VALID_URL = '(?:5min:|https?://(?:[^/]*?5min\\.com/|delivery\\.vidible\\.tv/aol)(?:(?:Scripts/PlayerSeed\\.js|playerseed/?)?\\?.*?playList=)?)(?P<id>\\d+)'
class FiveTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fivetv'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?5-tv\\.ru/\n (?:\n (?:[^/]+/)+(?P<id>\\d+)|\n (?P<path>[^/?#]+)(?:[/?#])?\n )\n '
class FlickrIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.flickr'
_VALID_URL = 'https?://(?:www\\.|secure\\.)?flickr\\.com/photos/[\\w\\-_@]+/(?P<id>\\d+)'
class FolketingetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.folketinget'
_VALID_URL = 'https?://(?:www\\.)?ft\\.dk/webtv/video/[^?#]*?\\.(?P<id>[0-9]+)\\.aspx'
class FootyRoomIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.footyroom'
_VALID_URL = 'https?://footyroom\\.com/matches/(?P<id>\\d+)'
class Formula1IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.formula1'
_VALID_URL = 'https?://(?:www\\.)?formula1\\.com/en/latest/video\\.[^.]+\\.(?P<id>\\d+)\\.html'
class FourTubeBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fourtube'
class FourTubeIE(FourTubeBaseIE):
_module = 'yt_dlp.extractor.fourtube'
_VALID_URL = 'https?://(?:(?P<kind>www|m)\\.)?4tube\\.com/(?:videos|embed)/(?P<id>\\d+)(?:/(?P<display_id>[^/?#&]+))?'
class PornTubeIE(FourTubeBaseIE):
_module = 'yt_dlp.extractor.fourtube'
_VALID_URL = 'https?://(?:(?P<kind>www|m)\\.)?porntube\\.com/(?:videos/(?P<display_id>[^/]+)_|embed/)(?P<id>\\d+)'
class PornerBrosIE(FourTubeBaseIE):
_module = 'yt_dlp.extractor.fourtube'
_VALID_URL = 'https?://(?:(?P<kind>www|m)\\.)?pornerbros\\.com/(?:videos/(?P<display_id>[^/]+)_|embed/)(?P<id>\\d+)'
class FuxIE(FourTubeBaseIE):
_module = 'yt_dlp.extractor.fourtube'
_VALID_URL = 'https?://(?:(?P<kind>www|m)\\.)?fux\\.com/(?:video|embed)/(?P<id>\\d+)(?:/(?P<display_id>[^/?#&]+))?'
class FOXIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fox'
_VALID_URL = 'https?://(?:www\\.)?fox\\.com/watch/(?P<id>[\\da-fA-F]+)'
class FOX9IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fox9'
_VALID_URL = 'https?://(?:www\\.)?fox9\\.com/video/(?P<id>\\d+)'
class FOX9NewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fox9'
_VALID_URL = 'https?://(?:www\\.)?fox9\\.com/news/(?P<id>[^/?&#]+)'
class FoxgayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.foxgay'
_VALID_URL = 'https?://(?:www\\.)?foxgay\\.com/videos/(?:\\S+-)?(?P<id>\\d+)\\.shtml'
class FoxNewsIE(AMPIE):
_module = 'yt_dlp.extractor.foxnews'
_VALID_URL = 'https?://(?P<host>video\\.(?:insider\\.)?fox(?:news|business)\\.com)/v/(?:video-embed\\.html\\?video_id=)?(?P<id>\\d+)'
class FoxNewsArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.foxnews'
_VALID_URL = 'https?://(?:www\\.)?(?:insider\\.)?foxnews\\.com/(?!v)([^/]+/)+(?P<id>[a-z-]+)'
class FoxSportsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.foxsports'
_VALID_URL = 'https?://(?:www\\.)?foxsports\\.com/(?:[^/]+/)*video/(?P<id>\\d+)'
class FranceCultureIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.franceculture'
_VALID_URL = 'https?://(?:www\\.)?franceculture\\.fr/emissions/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class FranceInterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.franceinter'
_VALID_URL = 'https?://(?:www\\.)?franceinter\\.fr/emissions/(?P<id>[^?#]+)'
class FranceTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.francetv'
_VALID_URL = '(?x)\n (?:\n https?://\n sivideo\\.webservices\\.francetelevisions\\.fr/tools/getInfosOeuvre/v2/\\?\n .*?\\bidDiffusion=[^&]+|\n (?:\n https?://videos\\.francetv\\.fr/video/|\n francetv:\n )\n (?P<id>[^@]+)(?:@(?P<catalog>.+))?\n )\n '
class FranceTVBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.francetv'
class FranceTVSiteIE(FranceTVBaseInfoExtractor):
_module = 'yt_dlp.extractor.francetv'
_VALID_URL = 'https?://(?:(?:www\\.)?france\\.tv|mobile\\.france\\.tv)/(?:[^/]+/)*(?P<id>[^/]+)\\.html'
class FranceTVInfoIE(FranceTVBaseInfoExtractor):
_module = 'yt_dlp.extractor.francetv'
_VALID_URL = 'https?://(?:www|mobile|france3-regions)\\.francetvinfo\\.fr/(?:[^/]+/)*(?P<id>[^/?#&.]+)'
class FreesoundIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.freesound'
_VALID_URL = 'https?://(?:www\\.)?freesound\\.org/people/[^/]+/sounds/(?P<id>[^/]+)'
class FreespeechIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.freespeech'
_VALID_URL = 'https?://(?:www\\.)?freespeech\\.org/stories/(?P<id>.+)'
class FreshLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.freshlive'
_VALID_URL = 'https?://freshlive\\.tv/[^/]+/(?P<id>\\d+)'
class FrontendMastersBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.frontendmasters'
class FrontendMastersIE(FrontendMastersBaseIE):
_module = 'yt_dlp.extractor.frontendmasters'
_VALID_URL = '(?:frontendmasters:|https?://api\\.frontendmasters\\.com/v\\d+/kabuki/video/)(?P<id>[^/]+)'
class FrontendMastersPageBaseIE(FrontendMastersBaseIE):
_module = 'yt_dlp.extractor.frontendmasters'
class FrontendMastersLessonIE(FrontendMastersPageBaseIE):
_module = 'yt_dlp.extractor.frontendmasters'
_VALID_URL = 'https?://(?:www\\.)?frontendmasters\\.com/courses/(?P<course_name>[^/]+)/(?P<lesson_name>[^/]+)'
class FrontendMastersCourseIE(FrontendMastersPageBaseIE):
_module = 'yt_dlp.extractor.frontendmasters'
_VALID_URL = 'https?://(?:www\\.)?frontendmasters\\.com/courses/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if FrontendMastersLessonIE.suitable(url) else super(
FrontendMastersBaseIE, cls).suitable(url)
class FujiTVFODPlus7IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fujitv'
_VALID_URL = 'https?://fod\\.fujitv\\.co\\.jp/title/(?P<sid>[0-9a-z]{4})/(?P<id>[0-9a-z]+)'
class FunimationBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.funimation'
class FunimationIE(FunimationBaseIE):
_module = 'yt_dlp.extractor.funimation'
_VALID_URL = 'https?://(?:www\\.)?funimation\\.com/player/(?P<id>\\d+)'
class FunimationPageIE(FunimationBaseIE):
_module = 'yt_dlp.extractor.funimation'
_VALID_URL = 'https?://(?:www\\.)?funimation(?:\\.com|now\\.uk)/(?:(?P<lang>[^/]+)/)?(?:shows|v)/(?P<show>[^/]+)/(?P<episode>[^/?#&]+)'
class FunimationShowIE(FunimationBaseIE):
_module = 'yt_dlp.extractor.funimation'
_VALID_URL = '(?P<url>https?://(?:www\\.)?funimation(?:\\.com|now\\.uk)/(?P<locale>[^/]+)?/?shows/(?P<id>[^/?#&]+))/?(?:[?#]|$)'
class FunkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.funk'
_VALID_URL = 'https?://(?:www\\.|origin\\.)?funk\\.net/(?:channel|playlist)/[^/]+/(?P<display_id>[0-9a-z-]+)-(?P<id>\\d+)'
class FusionIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.fusion'
_VALID_URL = 'https?://(?:www\\.)?fusion\\.(?:net|tv)/(?:video/|show/.+?\\bvideo=)(?P<id>\\d+)'
class GabTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gab'
_VALID_URL = 'https?://tv\\.gab\\.com/channel/[^/]+/view/(?P<id>[a-z0-9-]+)'
class GabIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gab'
_VALID_URL = 'https?://(?:www\\.)?gab\\.com/[^/]+/posts/(?P<id>\\d+)'
class GaiaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gaia'
_VALID_URL = 'https?://(?:www\\.)?gaia\\.com/video/(?P<id>[^/?]+).*?\\bfullplayer=(?P<type>feature|preview)'
class GameInformerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gameinformer'
_VALID_URL = 'https?://(?:www\\.)?gameinformer\\.com/(?:[^/]+/)*(?P<id>[^.?&#]+)'
class GameJoltBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gamejolt'
class GameJoltIE(GameJoltBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/p/(?:[\\w-]*-)?(?P<id>\\w{8})'
class GameJoltPostListBaseIE(GameJoltBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
class GameJoltUserIE(GameJoltPostListBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/@(?P<id>[\\w-]+)'
class GameJoltGameIE(GameJoltPostListBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/games/[\\w-]+/(?P<id>\\d+)'
class GameJoltGameSoundtrackIE(GameJoltBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/get/soundtrack(?:\\?|\\#!?)(?:.*?[&;])??game=(?P<id>(?:\\d+)+)'
class GameJoltCommunityIE(GameJoltPostListBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/c/(?P<id>(?P<community>[\\w-]+)(?:/(?P<channel>[\\w-]+))?)(?:(?:\\?|\\#!?)(?:.*?[&;])??sort=(?P<sort>\\w+))?'
class GameJoltSearchIE(GameJoltPostListBaseIE):
_module = 'yt_dlp.extractor.gamejolt'
_VALID_URL = 'https?://(?:www\\.)?gamejolt\\.com/search(?:/(?P<filter>communities|users|games))?(?:\\?|\\#!?)(?:.*?[&;])??q=(?P<id>(?:[^&#]+)+)'
class GameSpotIE(OnceIE):
_module = 'yt_dlp.extractor.gamespot'
_VALID_URL = 'https?://(?:www\\.)?gamespot\\.com/(?:video|article|review)s/(?:[^/]+/\\d+-|embed/)(?P<id>\\d+)'
class GameStarIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gamestar'
_VALID_URL = 'https?://(?:www\\.)?game(?P<site>pro|star)\\.de/videos/.*,(?P<id>[0-9]+)\\.html'
class GaskrankIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gaskrank'
_VALID_URL = 'https?://(?:www\\.)?gaskrank\\.tv/tv/(?P<categories>[^/]+)/(?P<id>[^/]+)\\.htm'
class GazetaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gazeta'
_VALID_URL = '(?P<url>https?://(?:www\\.)?gazeta\\.ru/(?:[^/]+/)?video/(?:main/)*(?:\\d{4}/\\d{2}/\\d{2}/)?(?P<id>[A-Za-z0-9-_.]+)\\.s?html)'
class GDCVaultIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gdcvault'
_VALID_URL = 'https?://(?:www\\.)?gdcvault\\.com/play/(?P<id>\\d+)(?:/(?P<name>[\\w-]+))?'
class GediDigitalIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gedidigital'
_VALID_URL = '(?x)(?P<url>(?:https?:)//video\\.\n (?:\n (?:\n (?:espresso\\.)?repubblica\n |lastampa\n |ilsecoloxix\n |huffingtonpost\n )|\n (?:\n iltirreno\n |messaggeroveneto\n |ilpiccolo\n |gazzettadimantova\n |mattinopadova\n |laprovinciapavese\n |tribunatreviso\n |nuovavenezia\n |gazzettadimodena\n |lanuovaferrara\n |corrierealpi\n |lasentinella\n )\\.gelocal\n )\\.it(?:/[^/]+){2,4}/(?P<id>\\d+))(?:$|[?&].*)'
class GettrIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gettr'
_VALID_URL = 'https?://(www\\.)?gettr\\.com/post/(?P<id>[a-z0-9]+)'
class GfycatIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gfycat'
_VALID_URL = '(?i)https?://(?:(?:www|giant|thumbs)\\.)?gfycat\\.com/(?:ru/|ifr/|gifs/detail/)?(?P<id>[^-/?#\\."\\\']+)'
class GiantBombIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.giantbomb'
_VALID_URL = 'https?://(?:www\\.)?giantbomb\\.com/(?:videos|shows)/(?P<display_id>[^/]+)/(?P<id>\\d+-\\d+)'
class GigaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.giga'
_VALID_URL = 'https?://(?:www\\.)?giga\\.de/(?:[^/]+/)*(?P<id>[^/]+)'
class GlideIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.glide'
_VALID_URL = 'https?://share\\.glide\\.me/(?P<id>[A-Za-z0-9\\-=_+]+)'
class GloboIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.globo'
_VALID_URL = '(?:globo:|https?://.+?\\.globo\\.com/(?:[^/]+/)*(?:v/(?:[^/]+/)?|videos/))(?P<id>\\d{7,})'
class GloboArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.globo'
_VALID_URL = 'https?://.+?\\.globo\\.com/(?:[^/]+/)*(?P<id>[^/.]+)(?:\\.html)?'
@classmethod
def suitable(cls, url):
return False if GloboIE.suitable(url) else super(GloboArticleIE, cls).suitable(url)
class GoIE(AdobePassIE):
_module = 'yt_dlp.extractor.go'
_VALID_URL = '(?x)\n https?://\n (?P<sub_domain>\n (?:abc\\.|freeform\\.|watchdisneychannel\\.|watchdisneyjunior\\.|watchdisneyxd\\.|disneynow\\.|fxnow.fxnetworks\\.)?go|fxnow\\.fxnetworks|\n (?:www\\.)?(?:abc|freeform|disneynow)\n )\\.com/\n (?:\n (?:[^/]+/)*(?P<id>[Vv][Dd][Kk][Aa]\\w+)|\n (?:[^/]+/)*(?P<display_id>[^/?\\#]+)\n )\n '
class GodTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.godtube'
_VALID_URL = 'https?://(?:www\\.)?godtube\\.com/watch/\\?v=(?P<id>[\\da-zA-Z]+)'
class GofileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gofile'
_VALID_URL = 'https?://(?:www\\.)?gofile\\.io/d/(?P<id>[^/]+)'
class GolemIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.golem'
_VALID_URL = '^https?://video\\.golem\\.de/.+?/(?P<id>.+?)/'
class GoogleDriveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.googledrive'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:docs|drive)\\.google\\.com/\n (?:\n (?:uc|open)\\?.*?id=|\n file/d/\n )|\n video\\.google\\.com/get_player\\?.*?docid=\n )\n (?P<id>[a-zA-Z0-9_-]{28,})\n '
class GooglePodcastsBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.googlepodcasts'
class GooglePodcastsIE(GooglePodcastsBaseIE):
_module = 'yt_dlp.extractor.googlepodcasts'
_VALID_URL = 'https?://podcasts\\.google\\.com/feed/(?P<feed_url>[^/]+)/episode/(?P<id>[^/?&#]+)'
class GooglePodcastsFeedIE(GooglePodcastsBaseIE):
_module = 'yt_dlp.extractor.googlepodcasts'
_VALID_URL = 'https?://podcasts\\.google\\.com/feed/(?P<id>[^/?&#]+)/?(?:[?#&]|$)'
class GoogleSearchIE(LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.googlesearch'
_VALID_URL = 'gvsearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class GoProIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gopro'
_VALID_URL = 'https?://(www\\.)?gopro\\.com/v/(?P<id>[A-Za-z0-9]+)'
class GoshgayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.goshgay'
_VALID_URL = 'https?://(?:www\\.)?goshgay\\.com/video(?P<id>\\d+?)($|/)'
class GoToStageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gotostage'
_VALID_URL = 'https?://(?:www\\.)?gotostage\\.com/channel/[a-z0-9]+/recording/(?P<id>[a-z0-9]+)/watch'
class GPUTechConfIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gputechconf'
_VALID_URL = 'https?://on-demand\\.gputechconf\\.com/gtc/2015/video/S(?P<id>\\d+)\\.html'
class GronkhIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.gronkh'
_VALID_URL = 'https?://(?:www\\.)?gronkh\\.tv/(?:watch/)?stream/(?P<id>\\d+)'
class GrouponIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.groupon'
_VALID_URL = 'https?://(?:www\\.)?groupon\\.com/deals/(?P<id>[^/?#&]+)'
class HBOIE(HBOBaseIE):
_module = 'yt_dlp.extractor.hbo'
_VALID_URL = 'https?://(?:www\\.)?hbo\\.com/(?:video|embed)(?:/[^/]+)*/(?P<id>[^/?#]+)'
class HearThisAtIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hearthisat'
_VALID_URL = 'https?://(?:www\\.)?hearthis\\.at/(?P<artist>[^/]+)/(?P<title>[A-Za-z0-9\\-]+)/?$'
class HeiseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.heise'
_VALID_URL = 'https?://(?:www\\.)?heise\\.de/(?:[^/]+/)+[^/]+-(?P<id>[0-9]+)\\.html'
class HellPornoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hellporno'
_VALID_URL = 'https?://(?:www\\.)?hellporno\\.(?:com/videos|net/v)/(?P<id>[^/]+)'
class HelsinkiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.helsinki'
_VALID_URL = 'https?://video\\.helsinki\\.fi/Arkisto/flash\\.php\\?id=(?P<id>\\d+)'
class HentaiStigmaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hentaistigma'
_VALID_URL = '^https?://hentai\\.animestigma\\.com/(?P<id>[^/]+)'
class HGTVComShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hgtv'
_VALID_URL = 'https?://(?:www\\.)?hgtv\\.com/shows/[^/]+/(?P<id>[^/?#&]+)'
class HKETVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hketv'
_VALID_URL = 'https?://(?:www\\.)?hkedcity\\.net/etv/resource/(?P<id>[0-9]+)'
class HiDiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hidive'
_VALID_URL = 'https?://(?:www\\.)?hidive\\.com/stream/(?P<id>(?P<title>[^/]+)/(?P<key>[^/?#&]+))'
class HistoricFilmsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.historicfilms'
_VALID_URL = 'https?://(?:www\\.)?historicfilms\\.com/(?:tapes/|play)(?P<id>\\d+)'
class HitboxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hitbox'
_VALID_URL = 'https?://(?:www\\.)?(?:hitbox|smashcast)\\.tv/(?:[^/]+/)*videos?/(?P<id>[0-9]+)'
class HitboxLiveIE(HitboxIE):
_module = 'yt_dlp.extractor.hitbox'
_VALID_URL = 'https?://(?:www\\.)?(?:hitbox|smashcast)\\.tv/(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return False if HitboxIE.suitable(url) else super(HitboxLiveIE, cls).suitable(url)
class HitRecordIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hitrecord'
_VALID_URL = 'https?://(?:www\\.)?hitrecord\\.org/records/(?P<id>\\d+)'
class HornBunnyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hornbunny'
_VALID_URL = 'http?://(?:www\\.)?hornbunny\\.com/videos/(?P<title_dash>[a-z-]+)-(?P<id>\\d+)\\.html'
class HotNewHipHopIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hotnewhiphop'
_VALID_URL = 'https?://(?:www\\.)?hotnewhiphop\\.com/.*\\.(?P<id>.*)\\.html'
class HotStarBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hotstar'
class HotStarIE(HotStarBaseIE):
_module = 'yt_dlp.extractor.hotstar'
_VALID_URL = '(?x)\n (?:\n hotstar\\:|\n https?://(?:www\\.)?hotstar\\.com(?:/in)?/(?!in/)\n )\n (?:\n (?P<type>movies|sports|episode|(?P<tv>tv))\n (?:\n \\:|\n /[^/?#]+/\n (?(tv)\n (?:[^/?#]+/){2}|\n (?:[^/?#]+/)*\n )\n )|\n [^/?#]+/\n )?\n (?P<id>\\d{10})\n '
class HotStarPlaylistIE(HotStarBaseIE):
_module = 'yt_dlp.extractor.hotstar'
_VALID_URL = 'https?://(?:www\\.)?hotstar\\.com/tv/[^/]+/s-\\w+/list/[^/]+/t-(?P<id>\\w+)'
class HotStarSeriesIE(HotStarBaseIE):
_module = 'yt_dlp.extractor.hotstar'
_VALID_URL = '(?P<url>https?://(?:www\\.)?hotstar\\.com(?:/in)?/tv/[^/]+/(?P<id>\\d+))'
class HowcastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.howcast'
_VALID_URL = 'https?://(?:www\\.)?howcast\\.com/videos/(?P<id>\\d+)'
class HowStuffWorksIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.howstuffworks'
_VALID_URL = 'https?://[\\da-z-]+\\.(?:howstuffworks|stuff(?:(?:youshould|theydontwantyouto)know|toblowyourmind|momnevertoldyou)|(?:brain|car)stuffshow|fwthinking|geniusstuff)\\.com/(?:[^/]+/)*(?:\\d+-)?(?P<id>.+?)-video\\.htm'
class HRFernsehenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hrfensehen'
_VALID_URL = '^https?://www\\.(?:hr-fernsehen|hessenschau)\\.de/.*,video-(?P<id>[0-9]{6})\\.html'
class HRTiBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hrti'
class HRTiIE(HRTiBaseIE):
_module = 'yt_dlp.extractor.hrti'
_VALID_URL = '(?x)\n (?:\n hrti:(?P<short_id>[0-9]+)|\n https?://\n hrti\\.hrt\\.hr/(?:\\#/)?video/show/(?P<id>[0-9]+)/(?P<display_id>[^/]+)?\n )\n '
class HRTiPlaylistIE(HRTiBaseIE):
_module = 'yt_dlp.extractor.hrti'
_VALID_URL = 'https?://hrti\\.hrt\\.hr/(?:#/)?video/list/category/(?P<id>[0-9]+)/(?P<display_id>[^/]+)?'
class HSEShowBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hse'
class HSEShowIE(HSEShowBaseInfoExtractor):
_module = 'yt_dlp.extractor.hse'
_VALID_URL = 'https?://(?:www\\.)?hse\\.de/dpl/c/tv-shows/(?P<id>[0-9]+)'
class HSEProductIE(HSEShowBaseInfoExtractor):
_module = 'yt_dlp.extractor.hse'
_VALID_URL = 'https?://(?:www\\.)?hse\\.de/dpl/p/product/(?P<id>[0-9]+)'
class HuajiaoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.huajiao'
_VALID_URL = 'https?://(?:www\\.)?huajiao\\.com/l/(?P<id>[0-9]+)'
class HuffPostIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.huffpost'
_VALID_URL = '(?x)\n https?://(embed\\.)?live\\.huffingtonpost\\.com/\n (?:\n r/segment/[^/]+/|\n HPLEmbedPlayer/\\?segmentId=\n )\n (?P<id>[0-9a-f]+)'
class HungamaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hungama'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?hungama\\.com/\n (?:\n (?:video|movie)/[^/]+/|\n tv-show/(?:[^/]+/){2}\\d+/episode/[^/]+/\n )\n (?P<id>\\d+)\n '
class HungamaSongIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hungama'
_VALID_URL = 'https?://(?:www\\.)?hungama\\.com/song/[^/]+/(?P<id>\\d+)'
class HungamaAlbumPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hungama'
_VALID_URL = 'https?://(?:www\\.)?hungama\\.com/(?:playlists|album)/[^/]+/(?P<id>\\d+)'
class HypemIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.hypem'
_VALID_URL = 'https?://(?:www\\.)?hypem\\.com/track/(?P<id>[0-9a-z]{5})'
class IchinanaLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ichinanalive'
_VALID_URL = 'https?://(?:www\\.)?17\\.live/(?:[^/]+/)*(?:live|profile/r)/(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return not IchinanaLiveClipIE.suitable(url) and super(IchinanaLiveIE, cls).suitable(url)
class IchinanaLiveClipIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ichinanalive'
_VALID_URL = 'https?://(?:www\\.)?17\\.live/(?:[^/]+/)*profile/r/(?P<uploader_id>\\d+)/clip/(?P<id>[^/]+)'
class IGNBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ign'
class IGNIE(IGNBaseIE):
_module = 'yt_dlp.extractor.ign'
_VALID_URL = 'https?://(?:.+?\\.ign|www\\.pcmag)\\.com/videos/(?:\\d{4}/\\d{2}/\\d{2}/)?(?P<id>[^/?&#]+)'
class IGNVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ign'
_VALID_URL = 'https?://.+?\\.ign\\.com/(?:[a-z]{2}/)?[^/]+/(?P<id>\\d+)/(?:video|trailer)/'
class IGNArticleIE(IGNBaseIE):
_module = 'yt_dlp.extractor.ign'
_VALID_URL = 'https?://.+?\\.ign\\.com/(?:articles(?:/\\d{4}/\\d{2}/\\d{2})?|(?:[a-z]{2}/)?feature/\\d+)/(?P<id>[^/?&#]+)'
class IHeartRadioBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iheart'
class IHeartRadioIE(IHeartRadioBaseIE):
_module = 'yt_dlp.extractor.iheart'
_VALID_URL = '(?:https?://(?:www\\.)?iheart\\.com/podcast/[^/]+/episode/(?P<display_id>[^/?&#]+)-|iheartradio:)(?P<id>\\d+)'
class IHeartRadioPodcastIE(IHeartRadioBaseIE):
_module = 'yt_dlp.extractor.iheart'
_VALID_URL = 'https?://(?:www\\.)?iheart(?:podcastnetwork)?\\.com/podcast/[^/?&#]+-(?P<id>\\d+)/?(?:[?#&]|$)'
class ImdbIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.imdb'
_VALID_URL = 'https?://(?:www|m)\\.imdb\\.com/(?:video|title|list).*?[/-]vi(?P<id>\\d+)'
class ImdbListIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.imdb'
_VALID_URL = 'https?://(?:www\\.)?imdb\\.com/list/ls(?P<id>\\d{9})(?!/videoplayer/vi\\d+)'
class ImgurIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.imgur'
_VALID_URL = 'https?://(?:i\\.)?imgur\\.com/(?!(?:a|gallery|(?:t(?:opic)?|r)/[^/]+)/)(?P<id>[a-zA-Z0-9]+)'
class ImgurGalleryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.imgur'
_VALID_URL = 'https?://(?:i\\.)?imgur\\.com/(?:gallery|(?:t(?:opic)?|r)/[^/]+)/(?P<id>[a-zA-Z0-9]+)'
class ImgurAlbumIE(ImgurGalleryIE):
_module = 'yt_dlp.extractor.imgur'
_VALID_URL = 'https?://(?:i\\.)?imgur\\.com/a/(?P<id>[a-zA-Z0-9]+)'
class InaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ina'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?ina\\.fr/(?:video|audio)/(?P<id>[A-Z0-9_]+)'
class IncIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.inc'
_VALID_URL = 'https?://(?:www\\.)?inc\\.com/(?:[^/]+/)+(?P<id>[^.]+).html'
class IndavideoEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.indavideo'
_VALID_URL = 'https?://(?:(?:embed\\.)?indavideo\\.hu/player/video/|assets\\.indavideo\\.hu/swf/player\\.swf\\?.*\\b(?:v(?:ID|id))=)(?P<id>[\\da-f]+)'
class InfoQIE(BokeCCBaseIE):
_module = 'yt_dlp.extractor.infoq'
_VALID_URL = 'https?://(?:www\\.)?infoq\\.com/(?:[^/]+/)+(?P<id>[^/]+)'
class InstagramBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.instagram'
class InstagramIE(InstagramBaseIE):
_module = 'yt_dlp.extractor.instagram'
_VALID_URL = '(?P<url>https?://(?:www\\.)?instagram\\.com(?:/[^/]+)?/(?:p|tv|reel)/(?P<id>[^/?#&]+))'
class InstagramIOSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.instagram'
_VALID_URL = 'instagram://media\\?id=(?P<id>[\\d_]+)'
class InstagramPlaylistBaseIE(InstagramBaseIE):
_module = 'yt_dlp.extractor.instagram'
class InstagramUserIE(InstagramPlaylistBaseIE):
_module = 'yt_dlp.extractor.instagram'
_VALID_URL = 'https?://(?:www\\.)?instagram\\.com/(?P<id>[^/]{2,})/?(?:$|[?#])'
class InstagramTagIE(InstagramPlaylistBaseIE):
_module = 'yt_dlp.extractor.instagram'
_VALID_URL = 'https?://(?:www\\.)?instagram\\.com/explore/tags/(?P<id>[^/]+)'
class InstagramStoryIE(InstagramBaseIE):
_module = 'yt_dlp.extractor.instagram'
_VALID_URL = 'https?://(?:www\\.)?instagram\\.com/stories/(?P<user>[^/]+)/(?P<id>\\d+)'
class InternazionaleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.internazionale'
_VALID_URL = 'https?://(?:www\\.)?internazionale\\.it/video/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class InternetVideoArchiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.internetvideoarchive'
_VALID_URL = 'https?://video\\.internetvideoarchive\\.net/(?:player|flash/players)/.*?\\?.*?publishedid.*?'
class IPrimaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iprima'
_VALID_URL = 'https?://(?!cnn)(?:[^/]+)\\.iprima\\.cz/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class IPrimaCNNIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iprima'
_VALID_URL = 'https?://cnn\\.iprima\\.cz/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class IqiyiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iqiyi'
_VALID_URL = 'https?://(?:(?:[^.]+\\.)?iqiyi\\.com|www\\.pps\\.tv)/.+\\.html'
class IqIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iqiyi'
_VALID_URL = 'https?://(?:www\\.)?iq\\.com/play/(?:[\\w%-]*-)?(?P<id>\\w+)'
class IqAlbumIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iqiyi'
_VALID_URL = 'https?://(?:www\\.)?iq\\.com/album/(?:[\\w%-]*-)?(?P<id>\\w+)'
class Ir90TvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ir90tv'
_VALID_URL = 'https?://(?:www\\.)?90tv\\.ir/video/(?P<id>[0-9]+)/.*'
class ITVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.itv'
_VALID_URL = 'https?://(?:www\\.)?itv\\.com/hub/[^/]+/(?P<id>[0-9a-zA-Z]+)'
class ITVBTCCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.itv'
_VALID_URL = 'https?://(?:www\\.)?itv\\.com/(?:news|btcc)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class IviIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ivi'
_VALID_URL = 'https?://(?:www\\.)?ivi\\.(?:ru|tv)/(?:watch/(?:[^/]+/)?|video/player\\?.*?videoId=)(?P<id>\\d+)'
class IviCompilationIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ivi'
_VALID_URL = 'https?://(?:www\\.)?ivi\\.ru/watch/(?!\\d+)(?P<compilationid>[a-z\\d_-]+)(?:/season(?P<seasonid>\\d+))?$'
class IvideonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ivideon'
_VALID_URL = 'https?://(?:www\\.)?ivideon\\.com/tv/(?:[^/]+/)*camera/(?P<id>\\d+-[\\da-f]+)/(?P<camera_id>\\d+)'
class IwaraIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.iwara'
_VALID_URL = 'https?://(?:www\\.|ecchi\\.)?iwara\\.tv/videos/(?P<id>[a-zA-Z0-9]+)'
class IzleseneIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.izlesene'
_VALID_URL = '(?x)\n https?://(?:(?:www|m)\\.)?izlesene\\.com/\n (?:video|embedplayer)/(?:[^/]+/)?(?P<id>[0-9]+)\n '
class JamendoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.jamendo'
_VALID_URL = '(?x)\n https?://\n (?:\n licensing\\.jamendo\\.com/[^/]+|\n (?:www\\.)?jamendo\\.com\n )\n /track/(?P<id>[0-9]+)(?:/(?P<display_id>[^/?#&]+))?\n '
class JamendoAlbumIE(JamendoIE):
_module = 'yt_dlp.extractor.jamendo'
_VALID_URL = 'https?://(?:www\\.)?jamendo\\.com/album/(?P<id>[0-9]+)'
class JeuxVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.jeuxvideo'
_VALID_URL = 'https?://.*?\\.jeuxvideo\\.com/.*/(.*?)\\.htm'
class JoveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.jove'
_VALID_URL = 'https?://(?:www\\.)?jove\\.com/video/(?P<id>[0-9]+)'
class JojIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.joj'
_VALID_URL = '(?x)\n (?:\n joj:|\n https?://media\\.joj\\.sk/embed/\n )\n (?P<id>[^/?#^]+)\n '
class JWPlatformIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.jwplatform'
_VALID_URL = '(?:https?://(?:content\\.jwplatform|cdn\\.jwplayer)\\.com/(?:(?:feed|player|thumb|preview)s|jw6|v2/media)/|jwplatform:)(?P<id>[a-zA-Z0-9]{8})'
class KakaoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kakao'
_VALID_URL = 'https?://(?:play-)?tv\\.kakao\\.com/(?:channel/\\d+|embed/player)/cliplink/(?P<id>\\d+|[^?#&]+@my)'
class KalturaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kaltura'
_VALID_URL = '(?x)\n (?:\n kaltura:(?P<partner_id>\\d+):(?P<id>[0-9a-z_]+)|\n https?://\n (:?(?:www|cdnapi(?:sec)?)\\.)?kaltura\\.com(?::\\d+)?/\n (?:\n (?:\n # flash player\n index\\.php/(?:kwidget|extwidget/preview)|\n # html5 player\n html5/html5lib/[^/]+/mwEmbedFrame\\.php\n )\n )(?:/(?P<path>[^?]+))?(?:\\?(?P<query>.*))?\n )\n '
class KankanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kankan'
_VALID_URL = 'https?://(?:.*?\\.)?kankan\\.com/.+?/(?P<id>\\d+)\\.shtml'
class KaraoketvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.karaoketv'
_VALID_URL = 'https?://(?:www\\.)?karaoketv\\.co\\.il/[^/]+/(?P<id>\\d+)'
class KarriereVideosIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.karrierevideos'
_VALID_URL = 'https?://(?:www\\.)?karrierevideos\\.at(?:/[^/]+)+/(?P<id>[^/]+)'
class KeezMoviesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.keezmovies'
_VALID_URL = 'https?://(?:www\\.)?keezmovies\\.com/video/(?:(?P<display_id>[^/]+)-)?(?P<id>\\d+)'
class ExtremeTubeIE(KeezMoviesIE):
_module = 'yt_dlp.extractor.extremetube'
_VALID_URL = 'https?://(?:www\\.)?extremetube\\.com/(?:[^/]+/)?video/(?P<id>[^/#?&]+)'
class KelbyOneIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kelbyone'
_VALID_URL = 'https?://members\\.kelbyone\\.com/course/(?P<id>[^$&?#/]+)'
class KetnetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ketnet'
_VALID_URL = 'https?://(?:www\\.)?ketnet\\.be/(?P<id>(?:[^/]+/)*[^/?#&]+)'
class KhanAcademyBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.khanacademy'
class KhanAcademyIE(KhanAcademyBaseIE):
_module = 'yt_dlp.extractor.khanacademy'
_VALID_URL = 'https?://(?:www\\.)?khanacademy\\.org/(?P<id>(?:[^/]+/){4}v/[^?#/&]+)'
class KhanAcademyUnitIE(KhanAcademyBaseIE):
_module = 'yt_dlp.extractor.khanacademy'
_VALID_URL = 'https?://(?:www\\.)?khanacademy\\.org/(?P<id>(?:[^/]+/){2}[^?#/&]+)/?(?:[?#&]|$)'
class KickStarterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kickstarter'
_VALID_URL = 'https?://(?:www\\.)?kickstarter\\.com/projects/(?P<id>[^/]*)/.*'
class KinjaEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kinja'
_VALID_URL = '(?x)https?://(?:[^.]+\\.)?\n (?:\n avclub|\n clickhole|\n deadspin|\n gizmodo|\n jalopnik|\n jezebel|\n kinja|\n kotaku|\n lifehacker|\n splinternews|\n the(?:inventory|onion|root|takeout)\n )\\.com/\n (?:\n ajax/inset|\n embed/video\n )/iframe\\?.*?\\bid=\n (?P<type>\n fb|\n imgur|\n instagram|\n jwp(?:layer)?-video|\n kinjavideo|\n mcp|\n megaphone|\n ooyala|\n soundcloud(?:-playlist)?|\n tumblr-post|\n twitch-stream|\n twitter|\n ustream-channel|\n vimeo|\n vine|\n youtube-(?:list|video)\n )-(?P<id>[^&]+)'
class KinoPoiskIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kinopoisk'
_VALID_URL = 'https?://(?:www\\.)?kinopoisk\\.ru/film/(?P<id>\\d+)'
class KonserthusetPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.konserthusetplay'
_VALID_URL = 'https?://(?:www\\.)?(?:konserthusetplay|rspoplay)\\.se/\\?.*\\bm=(?P<id>[^&]+)'
class KooIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.koo'
_VALID_URL = 'https?://(?:www\\.)?kooapp\\.com/koo/[^/]+/(?P<id>[^/&#$?]+)'
class KrasViewIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.krasview'
_VALID_URL = 'https?://krasview\\.ru/(?:video|embed)/(?P<id>\\d+)'
class Ku6IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ku6'
_VALID_URL = 'https?://v\\.ku6\\.com/show/(?P<id>[a-zA-Z0-9\\-\\_]+)(?:\\.)*html'
class KUSIIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kusi'
_VALID_URL = 'https?://(?:www\\.)?kusi\\.com/(?P<path>story/.+|video\\?clipId=(?P<clipId>\\d+))'
class KuwoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kuwo'
class KuwoIE(KuwoBaseIE):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://(?:www\\.)?kuwo\\.cn/yinyue/(?P<id>\\d+)'
class KuwoAlbumIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://(?:www\\.)?kuwo\\.cn/album/(?P<id>\\d+?)/'
class KuwoChartIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://yinyue\\.kuwo\\.cn/billboard_(?P<id>[^.]+).htm'
class KuwoSingerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://(?:www\\.)?kuwo\\.cn/mingxing/(?P<id>[^/]+)'
class KuwoCategoryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://yinyue\\.kuwo\\.cn/yy/cinfo_(?P<id>\\d+?).htm'
class KuwoMvIE(KuwoBaseIE):
_module = 'yt_dlp.extractor.kuwo'
_VALID_URL = 'https?://(?:www\\.)?kuwo\\.cn/mv/(?P<id>\\d+?)/'
class LA7IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.la7'
_VALID_URL = '(?x)(https?://)?(?:\n (?:www\\.)?la7\\.it/([^/]+)/(?:rivedila7|video)/|\n tg\\.la7\\.it/repliche-tgla7\\?id=\n )(?P<id>.+)'
class LA7PodcastEpisodeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.la7'
_VALID_URL = '(?x)(https?://)?\n (?:www\\.)?la7\\.it/[^/]+/podcast/([^/]+-)?(?P<id>\\d+)'
class LA7PodcastIE(LA7PodcastEpisodeIE):
_module = 'yt_dlp.extractor.la7'
_VALID_URL = '(https?://)?(www\\.)?la7\\.it/(?P<id>[^/]+)/podcast/?(?:$|[#?])'
class Laola1TvEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.laola1tv'
_VALID_URL = 'https?://(?:www\\.)?laola1\\.tv/titanplayer\\.php\\?.*?\\bvideoid=(?P<id>\\d+)'
class Laola1TvBaseIE(Laola1TvEmbedIE):
_module = 'yt_dlp.extractor.laola1tv'
_VALID_URL = 'https?://(?:www\\.)?laola1\\.tv/titanplayer\\.php\\?.*?\\bvideoid=(?P<id>\\d+)'
class Laola1TvIE(Laola1TvBaseIE):
_module = 'yt_dlp.extractor.laola1tv'
_VALID_URL = 'https?://(?:www\\.)?laola1\\.tv/[a-z]+-[a-z]+/[^/]+/(?P<id>[^/?#&]+)'
class EHFTVIE(Laola1TvBaseIE):
_module = 'yt_dlp.extractor.laola1tv'
_VALID_URL = 'https?://(?:www\\.)?ehftv\\.com/[a-z]+(?:-[a-z]+)?/[^/]+/(?P<id>[^/?#&]+)'
class ITTFIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.laola1tv'
_VALID_URL = 'https?://tv\\.ittf\\.com/video/[^/]+/(?P<id>\\d+)'
class LBRYBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lbry'
class LBRYIE(LBRYBaseIE):
_module = 'yt_dlp.extractor.lbry'
_VALID_URL = '(?:https?://(?:www\\.)?(?:lbry\\.tv|odysee\\.com)/|lbry://)(?P<id>\\$/[^/]+/[^/]+/[0-9a-f]{1,40}|@[^:/?#&]+(?:[:#][0-9a-f]{1,40})?/[^:/?#&]+(?:[:#][0-9a-f]{1,40})?|(?!@)[^:/?#&]+(?:[:#][0-9a-f]{1,40})?)'
class LBRYChannelIE(LBRYBaseIE):
_module = 'yt_dlp.extractor.lbry'
_VALID_URL = '(?:https?://(?:www\\.)?(?:lbry\\.tv|odysee\\.com)/|lbry://)(?P<id>@[^:/?#&]+(?:[:#][0-9a-f]{1,40})?)/?(?:[?&]|$)'
class LCIIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lci'
_VALID_URL = 'https?://(?:www\\.)?lci\\.fr/[^/]+/[\\w-]+-(?P<id>\\d+)\\.html'
class LcpPlayIE(ArkenaIE):
_module = 'yt_dlp.extractor.lcp'
_VALID_URL = 'https?://play\\.lcp\\.fr/embed/(?P<id>[^/]+)/(?P<account_id>[^/]+)/[^/]+/[^/]+'
class LcpIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lcp'
_VALID_URL = 'https?://(?:www\\.)?lcp\\.fr/(?:[^/]+/)*(?P<id>[^/]+)'
class Lecture2GoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lecture2go'
_VALID_URL = 'https?://lecture2go\\.uni-hamburg\\.de/veranstaltungen/-/v/(?P<id>\\d+)'
class LecturioBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lecturio'
class LecturioIE(LecturioBaseIE):
_module = 'yt_dlp.extractor.lecturio'
_VALID_URL = '(?x)\n https://\n (?:\n app\\.lecturio\\.com/([^/]+/(?P<nt>[^/?#&]+)\\.lecture|(?:\\#/)?lecture/c/\\d+/(?P<id>\\d+))|\n (?:www\\.)?lecturio\\.de/[^/]+/(?P<nt_de>[^/?#&]+)\\.vortrag\n )\n '
class LecturioCourseIE(LecturioBaseIE):
_module = 'yt_dlp.extractor.lecturio'
_VALID_URL = 'https://app\\.lecturio\\.com/(?:[^/]+/(?P<nt>[^/?#&]+)\\.course|(?:#/)?course/c/(?P<id>\\d+))'
class LecturioDeCourseIE(LecturioBaseIE):
_module = 'yt_dlp.extractor.lecturio'
_VALID_URL = 'https://(?:www\\.)?lecturio\\.de/[^/]+/(?P<id>[^/?#&]+)\\.kurs'
class LeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.leeco'
_VALID_URL = 'https?://(?:www\\.le\\.com/ptv/vplay|(?:sports\\.le|(?:www\\.)?lesports)\\.com/(?:match|video))/(?P<id>\\d+)\\.html'
class LePlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.leeco'
_VALID_URL = 'https?://[a-z]+\\.le\\.com/(?!video)[a-z]+/(?P<id>[a-z0-9_]+)'
@classmethod
def suitable(cls, url):
return False if LeIE.suitable(url) else super(LePlaylistIE, cls).suitable(url)
class LetvCloudIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.leeco'
_VALID_URL = 'https?://yuntv\\.letv\\.com/bcloud.html\\?.+'
class LEGOIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lego'
_VALID_URL = 'https?://(?:www\\.)?lego\\.com/(?P<locale>[a-z]{2}-[a-z]{2})/(?:[^/]+/)*videos/(?:[^/]+/)*[^/?#]+-(?P<id>[0-9a-f]{32})'
class LemondeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lemonde'
_VALID_URL = 'https?://(?:.+?\\.)?lemonde\\.fr/(?:[^/]+/)*(?P<id>[^/]+)\\.html'
class LentaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lenta'
_VALID_URL = 'https?://(?:www\\.)?lenta\\.ru/[^/]+/\\d+/\\d+/\\d+/(?P<id>[^/?#&]+)'
class LibraryOfCongressIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.libraryofcongress'
_VALID_URL = 'https?://(?:www\\.)?loc\\.gov/(?:item/|today/cyberlc/feature_wdesc\\.php\\?.*\\brec=)(?P<id>[0-9a-z_.]+)'
class LibsynIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.libsyn'
_VALID_URL = '(?P<mainurl>https?://html5-player\\.libsyn\\.com/embed/episode/id/(?P<id>[0-9]+))'
class LifeNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lifenews'
_VALID_URL = 'https?://life\\.ru/t/[^/]+/(?P<id>\\d+)'
class LifeEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lifenews'
_VALID_URL = 'https?://embed\\.life\\.ru/(?:embed|video)/(?P<id>[\\da-f]{32})'
class LimelightBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.limelight'
class LimelightMediaIE(LimelightBaseIE):
_module = 'yt_dlp.extractor.limelight'
_VALID_URL = '(?x)\n (?:\n limelight:media:|\n https?://\n (?:\n link\\.videoplatform\\.limelight\\.com/media/|\n assets\\.delvenetworks\\.com/player/loader\\.swf\n )\n \\?.*?\\bmediaId=\n )\n (?P<id>[a-z0-9]{32})\n '
class LimelightChannelIE(LimelightBaseIE):
_module = 'yt_dlp.extractor.limelight'
_VALID_URL = '(?x)\n (?:\n limelight:channel:|\n https?://\n (?:\n link\\.videoplatform\\.limelight\\.com/media/|\n assets\\.delvenetworks\\.com/player/loader\\.swf\n )\n \\?.*?\\bchannelId=\n )\n (?P<id>[a-z0-9]{32})\n '
class LimelightChannelListIE(LimelightBaseIE):
_module = 'yt_dlp.extractor.limelight'
_VALID_URL = '(?x)\n (?:\n limelight:channel_list:|\n https?://\n (?:\n link\\.videoplatform\\.limelight\\.com/media/|\n assets\\.delvenetworks\\.com/player/loader\\.swf\n )\n \\?.*?\\bchannelListId=\n )\n (?P<id>[a-z0-9]{32})\n '
class LineLiveBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.line'
class LineLiveIE(LineLiveBaseIE):
_module = 'yt_dlp.extractor.line'
_VALID_URL = 'https?://live\\.line\\.me/channels/(?P<channel_id>\\d+)/broadcast/(?P<id>\\d+)'
class LineLiveChannelIE(LineLiveBaseIE):
_module = 'yt_dlp.extractor.line'
_VALID_URL = 'https?://live\\.line\\.me/channels/(?P<id>\\d+)(?!/broadcast/\\d+)(?:[/?&#]|$)'
class LinkedInBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.linkedin'
class LinkedInIE(LinkedInBaseIE):
_module = 'yt_dlp.extractor.linkedin'
_VALID_URL = 'https?://(?:www\\.)?linkedin\\.com/posts/.+?(?P<id>\\d+)'
class LinkedInLearningBaseIE(LinkedInBaseIE):
_module = 'yt_dlp.extractor.linkedin'
class LinkedInLearningIE(LinkedInLearningBaseIE):
_module = 'yt_dlp.extractor.linkedin'
_VALID_URL = 'https?://(?:www\\.)?linkedin\\.com/learning/(?P<course_slug>[^/]+)/(?P<id>[^/?#]+)'
class LinkedInLearningCourseIE(LinkedInLearningBaseIE):
_module = 'yt_dlp.extractor.linkedin'
_VALID_URL = 'https?://(?:www\\.)?linkedin\\.com/learning/(?P<id>[^/?#]+)'
@classmethod
def suitable(cls, url):
return False if LinkedInLearningIE.suitable(url) else super(LinkedInLearningCourseIE, cls).suitable(url)
class LinuxAcademyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.linuxacademy'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?linuxacademy\\.com/cp/\n (?:\n courses/lesson/course/(?P<chapter_id>\\d+)/lesson/(?P<lesson_id>\\d+)|\n modules/view/id/(?P<course_id>\\d+)\n )\n '
class LiTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.litv'
_VALID_URL = 'https?://(?:www\\.)?litv\\.tv/(?:vod|promo)/[^/]+/(?:content\\.do)?\\?.*?\\b(?:content_)?id=(?P<id>[^&]+)'
class LiveJournalIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.livejournal'
_VALID_URL = 'https?://(?:[^.]+\\.)?livejournal\\.com/video/album/\\d+.+?\\bid=(?P<id>\\d+)'
class LivestreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.livestream'
_VALID_URL = 'https?://(?:new\\.)?livestream\\.com/(?:accounts/(?P<account_id>\\d+)|(?P<account_name>[^/]+))/(?:events/(?P<event_id>\\d+)|(?P<event_name>[^/]+))(?:/videos/(?P<id>\\d+))?'
class LivestreamOriginalIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.livestream'
_VALID_URL = '(?x)https?://original\\.livestream\\.com/\n (?P<user>[^/\\?#]+)(?:/(?P<type>video|folder)\n (?:(?:\\?.*?Id=|/)(?P<id>.*?)(&|$))?)?\n '
class LivestreamShortenerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.livestream'
_VALID_URL = 'https?://livestre\\.am/(?P<id>.+)'
class LnkGoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lnkgo'
_VALID_URL = 'https?://(?:www\\.)?lnk(?:go)?\\.(?:alfa\\.)?lt/(?:visi-video/[^/]+|video)/(?P<id>[A-Za-z0-9-]+)(?:/(?P<episode_id>\\d+))?'
class LnkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lnkgo'
_VALID_URL = 'https?://(?:www\\.)?lnk\\.lt/[^/]+/(?P<id>\\d+)'
class LocalNews8IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.localnews8'
_VALID_URL = 'https?://(?:www\\.)?localnews8\\.com/(?:[^/]+/)*(?P<display_id>[^/]+)/(?P<id>[0-9]+)'
class NuevoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nuevo'
class LoveHomePornIE(NuevoBaseIE):
_module = 'yt_dlp.extractor.lovehomeporn'
_VALID_URL = 'https?://(?:www\\.)?lovehomeporn\\.com/video/(?P<id>\\d+)(?:/(?P<display_id>[^/?#&]+))?'
class LRTIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lrt'
_VALID_URL = 'https?://(?:www\\.)?lrt\\.lt(?P<path>/mediateka/irasas/(?P<id>[0-9]+))'
class LyndaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.lynda'
class LyndaIE(LyndaBaseIE):
_module = 'yt_dlp.extractor.lynda'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?(?:lynda\\.com|educourse\\.ga)/\n (?:\n (?:[^/]+/){2,3}(?P<course_id>\\d+)|\n player/embed\n )/\n (?P<id>\\d+)\n '
class LyndaCourseIE(LyndaBaseIE):
_module = 'yt_dlp.extractor.lynda'
_VALID_URL = 'https?://(?:www|m)\\.(?:lynda\\.com|educourse\\.ga)/(?P<coursepath>(?:[^/]+/){2,3}(?P<courseid>\\d+))-2\\.html'
class M6IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.m6'
_VALID_URL = 'https?://(?:www\\.)?m6\\.fr/[^/]+/videos/(?P<id>\\d+)-[^\\.]+\\.html'
class MagentaMusik360IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.magentamusik360'
_VALID_URL = 'https?://(?:www\\.)?magenta-musik-360\\.de/([a-z0-9-]+-(?P<id>[0-9]+)|festivals/.+)'
class MailRuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mailru'
_VALID_URL = '(?x)\n https?://\n (?:(?:www|m|videoapi)\\.)?my\\.mail\\.ru/+\n (?:\n video/.*\\#video=/?(?P<idv1>(?:[^/]+/){3}\\d+)|\n (?:videos/embed/)?(?:(?P<idv2prefix>(?:[^/]+/+){2})(?:video/(?:embed/)?)?(?P<idv2suffix>[^/]+/\\d+))(?:\\.html)?|\n (?:video/embed|\\+/video/meta)/(?P<metaid>\\d+)\n )\n '
class MailRuMusicSearchBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mailru'
class MailRuMusicIE(MailRuMusicSearchBaseIE):
_module = 'yt_dlp.extractor.mailru'
_VALID_URL = 'https?://my\\.mail\\.ru/+music/+songs/+[^/?#&]+-(?P<id>[\\da-f]+)'
class MailRuMusicSearchIE(MailRuMusicSearchBaseIE):
_module = 'yt_dlp.extractor.mailru'
_VALID_URL = 'https?://my\\.mail\\.ru/+music/+search/+(?P<id>[^/?#&]+)'
class MainStreamingIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mainstreaming'
_VALID_URL = 'https?://(?:webtools-?)?(?P<host>[A-Za-z0-9-]*\\.msvdn.net)/(?:embed|amp_embed|content)/(?P<id>\\w+)'
class MallTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.malltv'
_VALID_URL = 'https?://(?:(?:www|sk)\\.)?mall\\.tv/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class MangomoloBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mangomolo'
class MangomoloVideoIE(MangomoloBaseIE):
_module = 'yt_dlp.extractor.mangomolo'
_VALID_URL = 'https?://(?:admin\\.mangomolo\\.com/analytics/index\\.php/customers/embed/|player\\.mangomolo\\.com/v1/)video\\?.*?\\bid=(?P<id>\\d+)'
class MangomoloLiveIE(MangomoloBaseIE):
_module = 'yt_dlp.extractor.mangomolo'
_VALID_URL = 'https?://(?:admin\\.mangomolo\\.com/analytics/index\\.php/customers/embed/|player\\.mangomolo\\.com/v1/)(live|index)\\?.*?\\bchannelid=(?P<id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)'
class ManotoTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.manoto'
_VALID_URL = 'https?://(?:www\\.)?manototv\\.com/episode/(?P<id>[0-9]+)'
class ManotoTVShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.manoto'
_VALID_URL = 'https?://(?:www\\.)?manototv\\.com/show/(?P<id>[0-9]+)'
class ManotoTVLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.manoto'
_VALID_URL = 'https?://(?:www\\.)?manototv\\.com/live/'
class ManyVidsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.manyvids'
_VALID_URL = '(?i)https?://(?:www\\.)?manyvids\\.com/video/(?P<id>\\d+)'
class MaoriTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.maoritv'
_VALID_URL = 'https?://(?:www\\.)?maoritelevision\\.com/shows/(?:[^/]+/)+(?P<id>[^/?&#]+)'
class MarkizaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.markiza'
_VALID_URL = 'https?://(?:www\\.)?videoarchiv\\.markiza\\.sk/(?:video/(?:[^/]+/)*|embed/)(?P<id>\\d+)(?:[_/]|$)'
class MarkizaPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.markiza'
_VALID_URL = 'https?://(?:www\\.)?(?:(?:[^/]+\\.)?markiza|tvnoviny)\\.sk/(?:[^/]+/)*(?P<id>\\d+)_'
@classmethod
def suitable(cls, url):
return False if MarkizaIE.suitable(url) else super(MarkizaPageIE, cls).suitable(url)
class MassengeschmackTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.massengeschmacktv'
_VALID_URL = 'https?://(?:www\\.)?massengeschmack\\.tv/play/(?P<id>[^?&#]+)'
class MatchTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.matchtv'
_VALID_URL = 'https?://matchtv\\.ru(?:/on-air|/?#live-player)'
class MDRIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mdr'
_VALID_URL = 'https?://(?:www\\.)?(?:mdr|kika)\\.de/(?:.*)/[a-z-]+-?(?P<id>\\d+)(?:_.+?)?\\.html'
class MedalTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.medaltv'
_VALID_URL = 'https?://(?:www\\.)?medal\\.tv/clips/(?P<id>[^/?#&]+)'
class MediaiteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mediaite'
_VALID_URL = 'https?://(?:www\\.)?mediaite.com(?!/category)(?:/[\\w-]+){2}'
class MediaKlikkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mediaklikk'
_VALID_URL = '(?x)https?://(?:www\\.)?\n (?:mediaklikk|m4sport|hirado|petofilive)\\.hu/.*?(?:videok?|cikk)/\n (?:(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/(?P<day>[0-9]{1,2})/)?\n (?P<id>[^/#?_]+)'
class ThePlatformBaseIE(OnceIE):
_module = 'yt_dlp.extractor.theplatform'
_VALID_URL = 'https?://.+?\\.unicornmedia\\.com/now/(?:ads/vmap/)?[^/]+/[^/]+/(?P<domain_id>[^/]+)/(?P<application_id>[^/]+)/(?:[^/]+/)?(?P<media_item_id>[^/]+)/content\\.(?:once|m3u8|mp4)'
class MediasetIE(ThePlatformBaseIE):
_module = 'yt_dlp.extractor.mediaset'
_VALID_URL = '(?x)\n (?:\n mediaset:|\n https?://\n (?:(?:www|static3)\\.)?mediasetplay\\.mediaset\\.it/\n (?:\n (?:video|on-demand|movie)/(?:[^/]+/)+[^/]+_|\n player/index\\.html\\?.*?\\bprogramGuid=\n )\n )(?P<id>[0-9A-Z]{16,})\n '
class MediasetShowIE(MediasetIE):
_module = 'yt_dlp.extractor.mediaset'
_VALID_URL = '(?x)\n (?:\n https?://\n (?:(?:www|static3)\\.)?mediasetplay\\.mediaset\\.it/\n (?:\n (?:fiction|programmi-tv|serie-tv|kids)/(?:.+?/)?\n (?:[a-z-]+)_SE(?P<id>\\d{12})\n (?:,ST(?P<st>\\d{12}))?\n (?:,sb(?P<sb>\\d{9}))?$\n )\n )\n '
class MediasiteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mediasite'
_VALID_URL = '(?xi)https?://[^/]+/Mediasite/(?:Play|Showcase/[^/#?]+/Presentation)/(?P<id>(?:[0-9a-f]{32,34}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,14}))(?P<query>\\?[^#]+|)'
class MediasiteCatalogIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mediasite'
_VALID_URL = '(?xi)\n (?P<url>https?://[^/]+/Mediasite)\n /Catalog/Full/\n (?P<catalog_id>(?:[0-9a-f]{32,34}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,14}))\n (?:\n /(?P<current_folder_id>(?:[0-9a-f]{32,34}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,14}))\n /(?P<root_dynamic_folder_id>(?:[0-9a-f]{32,34}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,14}))\n )?\n '
class MediasiteNamedCatalogIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mediasite'
_VALID_URL = '(?xi)(?P<url>https?://[^/]+/Mediasite)/Catalog/catalogs/(?P<catalog_name>[^/?#&]+)'
class MediciIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.medici'
_VALID_URL = 'https?://(?:www\\.)?medici\\.tv/#!/(?P<id>[^?#&]+)'
class MegaphoneIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.megaphone'
_VALID_URL = 'https://player\\.megaphone\\.fm/(?P<id>[A-Z0-9]+)'
class MeipaiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.meipai'
_VALID_URL = 'https?://(?:www\\.)?meipai\\.com/media/(?P<id>[0-9]+)'
class MelonVODIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.melonvod'
_VALID_URL = 'https?://vod\\.melon\\.com/video/detail2\\.html?\\?.*?mvId=(?P<id>[0-9]+)'
class METAIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.meta'
_VALID_URL = 'https?://video\\.meta\\.ua/(?:iframe/)?(?P<id>[0-9]+)'
class MetacafeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.metacafe'
_VALID_URL = 'https?://(?:www\\.)?metacafe\\.com/watch/(?P<id>[^/]+)/(?P<display_id>[^/?#]+)'
class MetacriticIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.metacritic'
_VALID_URL = 'https?://(?:www\\.)?metacritic\\.com/.+?/trailers/(?P<id>\\d+)'
class MgoonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mgoon'
_VALID_URL = '(?x)https?://(?:www\\.)?\n (?:(:?m\\.)?mgoon\\.com/(?:ch/(?:.+)/v|play/view)|\n video\\.mgoon\\.com)/(?P<id>[0-9]+)'
class MGTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mgtv'
_VALID_URL = 'https?://(?:w(?:ww)?\\.)?mgtv\\.com/(v|b)/(?:[^/]+/)*(?P<id>\\d+)\\.html'
class MiaoPaiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.miaopai'
_VALID_URL = 'https?://(?:www\\.)?miaopai\\.com/show/(?P<id>[-A-Za-z0-9~_]+)'
class MicrosoftStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.microsoftstream'
_VALID_URL = 'https?://(?:web|www|msit)\\.microsoftstream\\.com/video/(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class MicrosoftVirtualAcademyBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.microsoftvirtualacademy'
class MicrosoftVirtualAcademyIE(MicrosoftVirtualAcademyBaseIE):
_module = 'yt_dlp.extractor.microsoftvirtualacademy'
_VALID_URL = '(?:mva:|https?://(?:mva\\.microsoft|(?:www\\.)?microsoftvirtualacademy)\\.com/[^/]+/training-courses/[^/?#&]+-)(?P<course_id>\\d+)(?::|\\?l=)(?P<id>[\\da-zA-Z]+_\\d+)'
class MicrosoftVirtualAcademyCourseIE(MicrosoftVirtualAcademyBaseIE):
_module = 'yt_dlp.extractor.microsoftvirtualacademy'
_VALID_URL = '(?:mva:course:|https?://(?:mva\\.microsoft|(?:www\\.)?microsoftvirtualacademy)\\.com/[^/]+/training-courses/(?P<display_id>[^/?#&]+)-)(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if MicrosoftVirtualAcademyIE.suitable(url) else super(
MicrosoftVirtualAcademyCourseIE, cls).suitable(url)
class MildomBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mildom'
class MildomIE(MildomBaseIE):
_module = 'yt_dlp.extractor.mildom'
_VALID_URL = 'https?://(?:(?:www|m)\\.)mildom\\.com/(?P<id>\\d+)'
class MildomVodIE(MildomBaseIE):
_module = 'yt_dlp.extractor.mildom'
_VALID_URL = 'https?://(?:(?:www|m)\\.)mildom\\.com/playback/(?P<user_id>\\d+)/(?P<id>(?P=user_id)-[a-zA-Z0-9]+-?[0-9]*)'
class MildomUserVodIE(MildomBaseIE):
_module = 'yt_dlp.extractor.mildom'
_VALID_URL = 'https?://(?:(?:www|m)\\.)mildom\\.com/profile/(?P<id>\\d+)'
class MindsBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.minds'
class MindsIE(MindsBaseIE):
_module = 'yt_dlp.extractor.minds'
_VALID_URL = 'https?://(?:www\\.)?minds\\.com/(?:media|newsfeed|archive/view)/(?P<id>[0-9]+)'
class MindsFeedBaseIE(MindsBaseIE):
_module = 'yt_dlp.extractor.minds'
class MindsChannelIE(MindsFeedBaseIE):
_module = 'yt_dlp.extractor.minds'
_VALID_URL = 'https?://(?:www\\.)?minds\\.com/(?!(?:newsfeed|media|api|archive|groups)/)(?P<id>[^/?&#]+)'
class MindsGroupIE(MindsFeedBaseIE):
_module = 'yt_dlp.extractor.minds'
_VALID_URL = 'https?://(?:www\\.)?minds\\.com/groups/profile/(?P<id>[0-9]+)'
class MinistryGridIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ministrygrid'
_VALID_URL = 'https?://(?:www\\.)?ministrygrid\\.com/([^/?#]*/)*(?P<id>[^/#?]+)/?(?:$|[?#])'
class MinotoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.minoto'
_VALID_URL = '(?:minoto:|https?://(?:play|iframe|embed)\\.minoto-video\\.com/(?P<player_id>[0-9]+)/)(?P<id>[a-zA-Z0-9]+)'
class MioMioIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.miomio'
_VALID_URL = 'https?://(?:www\\.)?miomio\\.tv/watch/cc(?P<id>[0-9]+)'
class MirrativBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mirrativ'
class MirrativIE(MirrativBaseIE):
_module = 'yt_dlp.extractor.mirrativ'
_VALID_URL = 'https?://(?:www\\.)?mirrativ\\.com/live/(?P<id>[^/?#&]+)'
class MirrativUserIE(MirrativBaseIE):
_module = 'yt_dlp.extractor.mirrativ'
_VALID_URL = 'https?://(?:www\\.)?mirrativ\\.com/user/(?P<id>\\d+)'
class TechTVMITIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mit'
_VALID_URL = 'https?://techtv\\.mit\\.edu/(?:videos|embeds)/(?P<id>\\d+)'
class OCWMITIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mit'
_VALID_URL = '^https?://ocw\\.mit\\.edu/courses/(?P<topic>[a-z0-9\\-]+)'
class MixchIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mixch'
_VALID_URL = 'https?://(?:www\\.)?mixch\\.tv/u/(?P<id>\\d+)'
class MixchArchiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mixch'
_VALID_URL = 'https?://(?:www\\.)?mixch\\.tv/archive/(?P<id>\\d+)'
class MixcloudBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mixcloud'
class MixcloudIE(MixcloudBaseIE):
_module = 'yt_dlp.extractor.mixcloud'
_VALID_URL = 'https?://(?:(?:www|beta|m)\\.)?mixcloud\\.com/([^/]+)/(?!stream|uploads|favorites|listens|playlists)([^/]+)'
class MixcloudPlaylistBaseIE(MixcloudBaseIE):
_module = 'yt_dlp.extractor.mixcloud'
class MixcloudUserIE(MixcloudPlaylistBaseIE):
_module = 'yt_dlp.extractor.mixcloud'
_VALID_URL = 'https?://(?:www\\.)?mixcloud\\.com/(?P<id>[^/]+)/(?P<type>uploads|favorites|listens|stream)?/?$'
class MixcloudPlaylistIE(MixcloudPlaylistBaseIE):
_module = 'yt_dlp.extractor.mixcloud'
_VALID_URL = 'https?://(?:www\\.)?mixcloud\\.com/(?P<user>[^/]+)/playlists/(?P<playlist>[^/]+)/?$'
class MLBBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mlb'
class MLBIE(MLBBaseIE):
_module = 'yt_dlp.extractor.mlb'
_VALID_URL = '(?x)\n https?://\n (?:[\\da-z_-]+\\.)*mlb\\.com/\n (?:\n (?:\n (?:[^/]+/)*video/[^/]+/c-|\n (?:\n shared/video/embed/(?:embed|m-internal-embed)\\.html|\n (?:[^/]+/)+(?:play|index)\\.jsp|\n )\\?.*?\\bcontent_id=\n )\n (?P<id>\\d+)\n )\n '
class MLBVideoIE(MLBBaseIE):
_module = 'yt_dlp.extractor.mlb'
_VALID_URL = 'https?://(?:www\\.)?mlb\\.com/(?:[^/]+/)*video/(?P<id>[^/?&#]+)'
@classmethod
def suitable(cls, url):
return False if MLBIE.suitable(url) else super(MLBVideoIE, cls).suitable(url)
class MLSSoccerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mlssoccer'
_VALID_URL = 'https?://(?:www\\.)?(?:(?:cfmontreal|intermiamicf|lagalaxy|lafc|houstondynamofc|dcunited|atlutd|mlssoccer|fcdallas|columbuscrew|coloradorapids|fccincinnati|chicagofirefc|austinfc|nashvillesc|whitecapsfc|sportingkc|soundersfc|sjearthquakes|rsl|timbers|philadelphiaunion|orlandocitysc|newyorkredbulls|nycfc)\\.com|(?:torontofc)\\.ca|(?:revolutionsoccer)\\.net)/video/#?(?P<id>[^/&$#?]+)'
class MnetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mnet'
_VALID_URL = 'https?://(?:www\\.)?mnet\\.(?:com|interest\\.me)/tv/vod/(?:.*?\\bclip_id=)?(?P<id>[0-9]+)'
class MoeVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.moevideo'
_VALID_URL = '(?x)\n https?://(?P<host>(?:www\\.)?\n (?:(?:moevideo|playreplay|videochart)\\.net|thesame\\.tv))/\n (?:video|framevideo|embed)/(?P<id>[0-9a-z]+\\.[0-9A-Za-z]+)'
class MofosexIE(KeezMoviesIE):
_module = 'yt_dlp.extractor.mofosex'
_VALID_URL = 'https?://(?:www\\.)?mofosex\\.com/videos/(?P<id>\\d+)/(?P<display_id>[^/?#&.]+)\\.html'
class MofosexEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mofosex'
_VALID_URL = 'https?://(?:www\\.)?mofosex\\.com/embed/?\\?.*?\\bvideoid=(?P<id>\\d+)'
class MojvideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mojvideo'
_VALID_URL = 'https?://(?:www\\.)?mojvideo\\.com/video-(?P<display_id>[^/]+)/(?P<id>[a-f0-9]+)'
class MorningstarIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.morningstar'
_VALID_URL = 'https?://(?:(?:www|news)\\.)morningstar\\.com/[cC]over/video[cC]enter\\.aspx\\?id=(?P<id>[0-9]+)'
class MotherlessIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.motherless'
_VALID_URL = 'https?://(?:www\\.)?motherless\\.com/(?:g/[a-z0-9_]+/)?(?P<id>[A-Z0-9]+)'
class MotherlessGroupIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.motherless'
_VALID_URL = 'https?://(?:www\\.)?motherless\\.com/gv?/(?P<id>[a-z0-9_]+)'
@classmethod
def suitable(cls, url):
return (False if MotherlessIE.suitable(url)
else super(MotherlessGroupIE, cls).suitable(url))
class MotorsportIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.motorsport'
_VALID_URL = 'https?://(?:www\\.)?motorsport\\.com/[^/?#]+/video/(?:[^/?#]+/)(?P<id>[^/]+)/?(?:$|[?#])'
class MovieClipsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.movieclips'
_VALID_URL = 'https?://(?:www\\.)?movieclips\\.com/videos/.+-(?P<id>\\d+)(?:\\?|$)'
class MoviezineIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.moviezine'
_VALID_URL = 'https?://(?:www\\.)?moviezine\\.se/video/(?P<id>[^?#]+)'
class MovingImageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.movingimage'
_VALID_URL = 'https?://movingimage\\.nls\\.uk/film/(?P<id>\\d+)'
class MSNIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.msn'
_VALID_URL = 'https?://(?:(?:www|preview)\\.)?msn\\.com/(?:[^/]+/)+(?P<display_id>[^/]+)/[a-z]{2}-(?P<id>[\\da-zA-Z]+)'
class MTVIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://(?:www\\.)?mtv\\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
class CMTIE(MTVIE):
_module = 'yt_dlp.extractor.cmt'
_VALID_URL = 'https?://(?:www\\.)?cmt\\.com/(?:videos|shows|(?:full-)?episodes|video-clips)/(?P<id>[^/]+)'
class MTVVideoIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = '(?x)^https?://\n (?:(?:www\\.)?mtv\\.com/videos/.+?/(?P<videoid>[0-9]+)/[^/]+$|\n m\\.mtv\\.com/videos/video\\.rbml\\?.*?id=(?P<mgid>[^&]+))'
class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://media\\.mtvnservices\\.com/embed/(?P<mgid>.+?)(\\?|/|$)'
class MTVDEIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://(?:www\\.)?mtv\\.de/(?:musik/videoclips|folgen|news)/(?P<id>[0-9a-z]+)'
class MTVJapanIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://(?:www\\.)?mtvjapan\\.com/videos/(?P<id>[0-9a-z]+)'
class MTVItaliaIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://(?:www\\.)?mtv\\.it/(?:episodi|video|musica)/(?P<id>[0-9a-z]+)'
class MTVItaliaProgrammaIE(MTVItaliaIE):
_module = 'yt_dlp.extractor.mtv'
_VALID_URL = 'https?://(?:www\\.)?mtv\\.it/(?:programmi|playlist)/(?P<id>[0-9a-z]+)'
class MuenchenTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.muenchentv'
_VALID_URL = 'https?://(?:www\\.)?muenchen\\.tv/livestream'
class MuseScoreIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.musescore'
_VALID_URL = 'https?://(?:www\\.)?musescore\\.com/(?:user/\\d+|[^/]+)(?:/scores)?/(?P<id>[^#&?]+)'
class MusicdexBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.musicdex'
class MusicdexSongIE(MusicdexBaseIE):
_module = 'yt_dlp.extractor.musicdex'
_VALID_URL = 'https?://(?:www\\.)?musicdex\\.org/track/(?P<id>\\d+)'
class MusicdexAlbumIE(MusicdexBaseIE):
_module = 'yt_dlp.extractor.musicdex'
_VALID_URL = 'https?://(?:www\\.)?musicdex\\.org/album/(?P<id>\\d+)'
class MusicdexPageIE(MusicdexBaseIE):
_module = 'yt_dlp.extractor.musicdex'
class MusicdexArtistIE(MusicdexPageIE):
_module = 'yt_dlp.extractor.musicdex'
_VALID_URL = 'https?://(?:www\\.)?musicdex\\.org/artist/(?P<id>\\d+)'
class MusicdexPlaylistIE(MusicdexPageIE):
_module = 'yt_dlp.extractor.musicdex'
_VALID_URL = 'https?://(?:www\\.)?musicdex\\.org/playlist/(?P<id>\\d+)'
class MwaveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mwave'
_VALID_URL = 'https?://mwave\\.interest\\.me/(?:[^/]+/)?mnettv/videodetail\\.m\\?searchVideoDetailVO\\.clip_id=(?P<id>[0-9]+)'
class MwaveMeetGreetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mwave'
_VALID_URL = 'https?://mwave\\.interest\\.me/(?:[^/]+/)?meetgreet/view/(?P<id>\\d+)'
class MxplayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mxplayer'
_VALID_URL = 'https?://(?:www\\.)?mxplayer\\.in/(?P<type>movie|show/[-\\w]+/[-\\w]+)/(?P<display_id>[-\\w]+)-(?P<id>\\w+)'
class MxplayerShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mxplayer'
_VALID_URL = 'https?://(?:www\\.)?mxplayer\\.in/show/(?P<display_id>[-\\w]+)-(?P<id>\\w+)/?(?:$|[#?])'
class MyChannelsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.mychannels'
_VALID_URL = 'https?://(?:www\\.)?mychannels\\.com/.*(?P<id_type>video|production)_id=(?P<id>[0-9]+)'
class MySpaceIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myspace'
_VALID_URL = '(?x)\n https?://\n myspace\\.com/[^/]+/\n (?P<mediatype>\n video/[^/]+/(?P<video_id>\\d+)|\n music/song/[^/?#&]+-(?P<song_id>\\d+)-\\d+(?:[/?#&]|$)\n )\n '
class MySpaceAlbumIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myspace'
_VALID_URL = 'https?://myspace\\.com/([^/]+)/music/album/(?P<title>.*-)(?P<id>\\d+)'
class MySpassIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myspass'
_VALID_URL = 'https?://(?:www\\.)?myspass\\.de/(?:[^/]+/)*(?P<id>\\d+)/?[^/]*$'
class SprutoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vimple'
class MyviIE(SprutoBaseIE):
_module = 'yt_dlp.extractor.myvi'
_VALID_URL = '(?x)\n (?:\n https?://\n (?:www\\.)?\n myvi\\.\n (?:\n (?:ru/player|tv)/\n (?:\n (?:\n embed/html|\n flash|\n api/Video/Get\n )/|\n content/preloader\\.swf\\?.*\\bid=\n )|\n ru/watch/\n )|\n myvi:\n )\n (?P<id>[\\da-zA-Z_-]+)\n '
class MyviEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myvi'
_VALID_URL = 'https?://(?:www\\.)?myvi\\.tv/(?:[^?]+\\?.*?\\bv=|embed/)(?P<id>[\\da-z]+)'
@classmethod
def suitable(cls, url):
return False if MyviIE.suitable(url) else super(MyviEmbedIE, cls).suitable(url)
class MyVideoGeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myvideoge'
_VALID_URL = 'https?://(?:www\\.)?myvideo\\.ge/v/(?P<id>[0-9]+)'
class MyVidsterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.myvidster'
_VALID_URL = 'https?://(?:www\\.)?myvidster\\.com/video/(?P<id>\\d+)/'
class N1InfoAssetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.n1'
_VALID_URL = 'https?://best-vod\\.umn\\.cdn\\.united\\.cloud/stream\\?asset=(?P<id>[^&]+)'
class N1InfoIIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.n1'
_VALID_URL = 'https?://(?:(?:(?:ba|rs|hr)\\.)?n1info\\.(?:com|si)|nova\\.rs)/(?:[^/]+/){1,2}(?P<id>[^/]+)'
class NateIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nate'
_VALID_URL = 'https?://tv\\.nate\\.com/clip/(?P<id>[0-9]+)'
class NateProgramIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nate'
_VALID_URL = 'https?://tv\\.nate\\.com/program/clips/(?P<id>[0-9]+)'
class NationalGeographicVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nationalgeographic'
_VALID_URL = 'https?://video\\.nationalgeographic\\.com/.*?'
class NationalGeographicTVIE(FOXIE):
_module = 'yt_dlp.extractor.nationalgeographic'
_VALID_URL = 'https?://(?:www\\.)?nationalgeographic\\.com/tv/watch/(?P<id>[\\da-fA-F]+)'
class NaverBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.naver'
class NaverIE(NaverBaseIE):
_module = 'yt_dlp.extractor.naver'
_VALID_URL = 'https?://(?:m\\.)?tv(?:cast)?\\.naver\\.com/(?:v|embed)/(?P<id>\\d+)'
class NaverLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.naver'
_VALID_URL = 'https?://(?:m\\.)?tv(?:cast)?\\.naver\\.com/l/(?P<id>\\d+)'
class NBACVPBaseIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.nba'
class NBAWatchBaseIE(NBACVPBaseIE):
_module = 'yt_dlp.extractor.nba'
class NBAWatchEmbedIE(NBAWatchBaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = 'https?://(?:(?:www\\.)?nba\\.com(?:/watch)?|watch\\.nba\\.com)/embed\\?.*?\\bid=(?P<id>\\d+)'
class NBAWatchIE(NBAWatchBaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = 'https?://(?:(?:www\\.)?nba\\.com(?:/watch)?|watch\\.nba\\.com)/(?:nba/)?video/(?P<id>.+?(?=/index\\.html)|(?:[^/]+/)*[^/?#&]+)'
class NBAWatchCollectionIE(NBAWatchBaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = 'https?://(?:(?:www\\.)?nba\\.com(?:/watch)?|watch\\.nba\\.com)/list/collection/(?P<id>[^/?#&]+)'
class NBABaseIE(NBACVPBaseIE):
_module = 'yt_dlp.extractor.nba'
class NBAEmbedIE(NBABaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = 'https?://secure\\.nba\\.com/assets/amp/include/video/(?:topI|i)frame\\.html\\?.*?\\bcontentId=(?P<id>[^?#&]+)'
class NBAIE(NBABaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = '(?x)\n https?://(?:www\\.)?nba\\.com/\n (?P<team>\n blazers|\n bucks|\n bulls|\n cavaliers|\n celtics|\n clippers|\n grizzlies|\n hawks|\n heat|\n hornets|\n jazz|\n kings|\n knicks|\n lakers|\n magic|\n mavericks|\n nets|\n nuggets|\n pacers|\n pelicans|\n pistons|\n raptors|\n rockets|\n sixers|\n spurs|\n suns|\n thunder|\n timberwolves|\n warriors|\n wizards\n )\n (?:/play\\#)?/(?!video/channel|series)video/(?P<id>(?:[^/]+/)*[^/?#&]+)'
class NBAChannelIE(NBABaseIE):
_module = 'yt_dlp.extractor.nba'
_VALID_URL = '(?x)\n https?://(?:www\\.)?nba\\.com/\n (?P<team>\n blazers|\n bucks|\n bulls|\n cavaliers|\n celtics|\n clippers|\n grizzlies|\n hawks|\n heat|\n hornets|\n jazz|\n kings|\n knicks|\n lakers|\n magic|\n mavericks|\n nets|\n nuggets|\n pacers|\n pelicans|\n pistons|\n raptors|\n rockets|\n sixers|\n spurs|\n suns|\n thunder|\n timberwolves|\n warriors|\n wizards\n )\n (?:/play\\#)?/(?:video/channel|series)/(?P<id>[^/?#&]+)'
class NBCOlympicsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?://www\\.nbcolympics\\.com/videos?/(?P<id>[0-9a-z-]+)'
class NBCOlympicsStreamIE(AdobePassIE):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?://stream\\.nbcolympics\\.com/(?P<id>[0-9a-z-]+)'
class NBCSportsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?://(?:www\\.)?nbcsports\\.com//?(?!vplayer/)(?:[^/]+/)+(?P<id>[0-9a-z-]+)'
class NBCSportsStreamIE(AdobePassIE):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?://stream\\.nbcsports\\.com/.+?\\bpid=(?P<id>\\d+)'
class NBCSportsVPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?://(?:vplayer\\.nbcsports\\.com|(?:www\\.)?nbcsports\\.com/vplayer)/(?:[^/]+/)+(?P<id>[0-9a-zA-Z_]+)'
class NDRBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ndr'
class NDRIE(NDRBaseIE):
_module = 'yt_dlp.extractor.ndr'
_VALID_URL = 'https?://(?:www\\.)?(?:daserste\\.)?ndr\\.de/(?:[^/]+/)*(?P<display_id>[^/?#]+),(?P<id>[\\da-z]+)\\.html'
class NJoyIE(NDRBaseIE):
_module = 'yt_dlp.extractor.ndr'
_VALID_URL = 'https?://(?:www\\.)?n-joy\\.de/(?:[^/]+/)*(?:(?P<display_id>[^/?#]+),)?(?P<id>[\\da-z]+)\\.html'
class NDREmbedBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ndr'
_VALID_URL = '(?:ndr:(?P<id_s>[\\da-z]+)|https?://www\\.ndr\\.de/(?P<id>[\\da-z]+)-ppjson\\.json)'
class NDREmbedIE(NDREmbedBaseIE):
_module = 'yt_dlp.extractor.ndr'
_VALID_URL = 'https?://(?:www\\.)?(?:daserste\\.)?ndr\\.de/(?:[^/]+/)*(?P<id>[\\da-z]+)-(?:player|externalPlayer)\\.html'
class NJoyEmbedIE(NDREmbedBaseIE):
_module = 'yt_dlp.extractor.ndr'
_VALID_URL = 'https?://(?:www\\.)?n-joy\\.de/(?:[^/]+/)*(?P<id>[\\da-z]+)-(?:player|externalPlayer)_[^/]+\\.html'
class NDTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ndtv'
_VALID_URL = 'https?://(?:[^/]+\\.)?ndtv\\.com/(?:[^/]+/)*videos?/?(?:[^/]+/)*[^/?^&]+-(?P<id>\\d+)'
class NebulaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nebula'
class NebulaIE(NebulaBaseIE):
_module = 'yt_dlp.extractor.nebula'
_VALID_URL = 'https?://(?:www\\.)?(?:watchnebula\\.com|nebula\\.app)/videos/(?P<id>[-\\w]+)'
class NebulaCollectionIE(NebulaBaseIE):
_module = 'yt_dlp.extractor.nebula'
_VALID_URL = 'https?://(?:www\\.)?(?:watchnebula\\.com|nebula\\.app)/(?!videos/)(?P<id>[-\\w]+)'
class NerdCubedFeedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nerdcubed'
_VALID_URL = 'https?://(?:www\\.)?nerdcubed\\.co\\.uk/feed\\.json'
class NetzkinoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.netzkino'
_VALID_URL = 'https?://(?:www\\.)?netzkino\\.de/\\#!/[^/]+/(?P<id>[^/]+)'
class NetEaseMusicBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.neteasemusic'
class NetEaseMusicIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?song\\?id=(?P<id>[0-9]+)'
class NetEaseMusicAlbumIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?album\\?id=(?P<id>[0-9]+)'
class NetEaseMusicSingerIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?artist\\?id=(?P<id>[0-9]+)'
class NetEaseMusicListIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?(playlist|discover/toplist)\\?id=(?P<id>[0-9]+)'
class NetEaseMusicMvIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?mv\\?id=(?P<id>[0-9]+)'
class NetEaseMusicProgramIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/?)program\\?id=(?P<id>[0-9]+)'
class NetEaseMusicDjRadioIE(NetEaseMusicBaseIE):
_module = 'yt_dlp.extractor.neteasemusic'
_VALID_URL = 'https?://music\\.163\\.com/(#/)?djradio\\?id=(?P<id>[0-9]+)'
class NewgroundsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.newgrounds'
_VALID_URL = 'https?://(?:www\\.)?newgrounds\\.com/(?:audio/listen|portal/view)/(?P<id>\\d+)(?:/format/flash)?'
class NewgroundsPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.newgrounds'
_VALID_URL = 'https?://(?:www\\.)?newgrounds\\.com/(?:collection|[^/]+/search/[^/]+)/(?P<id>[^/?#&]+)'
class NewgroundsUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.newgrounds'
_VALID_URL = 'https?://(?P<id>[^\\.]+)\\.newgrounds\\.com/(?:movies|audio)/?(?:[#?]|$)'
class NewstubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.newstube'
_VALID_URL = 'https?://(?:www\\.)?newstube\\.ru/media/(?P<id>.+)'
class NewsyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.newsy'
_VALID_URL = 'https?://(?:www\\.)?newsy\\.com/stories/(?P<id>[^/?#$&]+)'
class NextMediaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nextmedia'
_VALID_URL = 'https?://hk\\.apple\\.nextmedia\\.com/[^/]+/[^/]+/(?P<date>\\d+)/(?P<id>\\d+)'
class NextMediaActionNewsIE(NextMediaIE):
_module = 'yt_dlp.extractor.nextmedia'
_VALID_URL = 'https?://hk\\.dv\\.nextmedia\\.com/actionnews/[^/]+/(?P<date>\\d+)/(?P<id>\\d+)/\\d+'
class AppleDailyIE(NextMediaIE):
_module = 'yt_dlp.extractor.nextmedia'
_VALID_URL = 'https?://(www|ent)\\.appledaily\\.com\\.tw/[^/]+/[^/]+/[^/]+/(?P<date>\\d+)/(?P<id>\\d+)(/.*)?'
class NextTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nextmedia'
_VALID_URL = 'https?://(?:www\\.)?nexttv\\.com\\.tw/(?:[^/]+/)+(?P<id>\\d+)'
class NexxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nexx'
_VALID_URL = '(?x)\n (?:\n https?://api\\.nexx(?:\\.cloud|cdn\\.com)/v3(?:\\.\\d)?/(?P<domain_id>\\d+)/videos/byid/|\n nexx:(?:(?P<domain_id_s>\\d+):)?|\n https?://arc\\.nexx\\.cloud/api/video/\n )\n (?P<id>\\d+)\n '
class NexxEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nexx'
_VALID_URL = 'https?://embed\\.nexx(?:\\.cloud|cdn\\.com)/\\d+/(?:video/)?(?P<id>[^/?#&]+)'
class NFHSNetworkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nfhsnetwork'
_VALID_URL = 'https?://(?:www\\.)?nfhsnetwork\\.com/events/[\\w-]+/(?P<id>(?:gam|evt|dd|)?[\\w\\d]{0,10})'
class NFLBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nfl'
_WORKING = False
class NFLIE(NFLBaseIE):
_module = 'yt_dlp.extractor.nfl'
_VALID_URL = '(?x)\n https?://\n (?P<host>\n (?:www\\.)?\n (?:\n (?:\n nfl|\n buffalobills|\n miamidolphins|\n patriots|\n newyorkjets|\n baltimoreravens|\n bengals|\n clevelandbrowns|\n steelers|\n houstontexans|\n colts|\n jaguars|\n (?:titansonline|tennesseetitans)|\n denverbroncos|\n (?:kc)?chiefs|\n raiders|\n chargers|\n dallascowboys|\n giants|\n philadelphiaeagles|\n (?:redskins|washingtonfootball)|\n chicagobears|\n detroitlions|\n packers|\n vikings|\n atlantafalcons|\n panthers|\n neworleanssaints|\n buccaneers|\n azcardinals|\n (?:stlouis|the)rams|\n 49ers|\n seahawks\n )\\.com|\n .+?\\.clubs\\.nfl\\.com\n )\n )/\n (?:videos?|listen|audio)/(?P<id>[^/#?&]+)'
_WORKING = False
class NFLArticleIE(NFLBaseIE):
_module = 'yt_dlp.extractor.nfl'
_VALID_URL = '(?x)\n https?://\n (?P<host>\n (?:www\\.)?\n (?:\n (?:\n nfl|\n buffalobills|\n miamidolphins|\n patriots|\n newyorkjets|\n baltimoreravens|\n bengals|\n clevelandbrowns|\n steelers|\n houstontexans|\n colts|\n jaguars|\n (?:titansonline|tennesseetitans)|\n denverbroncos|\n (?:kc)?chiefs|\n raiders|\n chargers|\n dallascowboys|\n giants|\n philadelphiaeagles|\n (?:redskins|washingtonfootball)|\n chicagobears|\n detroitlions|\n packers|\n vikings|\n atlantafalcons|\n panthers|\n neworleanssaints|\n buccaneers|\n azcardinals|\n (?:stlouis|the)rams|\n 49ers|\n seahawks\n )\\.com|\n .+?\\.clubs\\.nfl\\.com\n )\n )/\n news/(?P<id>[^/#?&]+)'
_WORKING = False
class NhkBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nhk'
class NhkVodIE(NhkBaseIE):
_module = 'yt_dlp.extractor.nhk'
_VALID_URL = 'https?://www3\\.nhk\\.or\\.jp/nhkworld/(?P<lang>[a-z]{2})/ondemand/(?P<type>video|audio)/(?P<id>\\d{7}|[^/]+?-\\d{8}-[0-9a-z]+)'
class NhkVodProgramIE(NhkBaseIE):
_module = 'yt_dlp.extractor.nhk'
_VALID_URL = 'https?://www3\\.nhk\\.or\\.jp/nhkworld/(?P<lang>[a-z]{2})/ondemand/program/(?P<type>video|audio)/(?P<id>[0-9a-z]+)(?:.+?\\btype=(?P<episode_type>clip|(?:radio|tv)Episode))?'
class NHLBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nhl'
class NHLIE(NHLBaseIE):
_module = 'yt_dlp.extractor.nhl'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>nhl|wch2016)\\.com/(?:[^/]+/)*c-(?P<id>\\d+)'
class NickIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.nick'
_VALID_URL = 'https?://(?P<domain>(?:www\\.)?nick(?:jr)?\\.com)/(?:[^/]+/)?(?P<type>videos/clip|[^/]+/videos|episodes/[^/]+)/(?P<id>[^/?#.]+)'
class NickBrIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.nick'
_VALID_URL = '(?x)\n https?://\n (?:\n (?P<domain>(?:www\\.)?nickjr|mundonick\\.uol)\\.com\\.br|\n (?:www\\.)?nickjr\\.[a-z]{2}|\n (?:www\\.)?nickelodeonjunior\\.fr\n )\n /(?:programas/)?[^/]+/videos/(?:episodios/)?(?P<id>[^/?\\#.]+)\n '
class NickDeIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.nick'
_VALID_URL = 'https?://(?:www\\.)?(?P<host>nick\\.(?:de|com\\.pl|ch)|nickelodeon\\.(?:nl|be|at|dk|no|se))/[^/]+/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class NickNightIE(NickDeIE):
_module = 'yt_dlp.extractor.nick'
_VALID_URL = 'https?://(?:www\\.)(?P<host>nicknight\\.(?:de|at|tv))/(?:playlist|shows)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class NickRuIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.nick'
_VALID_URL = 'https?://(?:www\\.)nickelodeon\\.(?:ru|fr|es|pt|ro|hu|com\\.tr)/[^/]+/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class NiconicoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'https?://(?:www\\.|secure\\.|sp\\.)?nicovideo\\.jp/watch/(?P<id>(?:[a-z]{2})?[0-9]+)'
class NiconicoPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'https?://(?:www\\.)?nicovideo\\.jp/(?:user/\\d+/|my/)?mylist/(?P<id>\\d+)'
class NiconicoUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'https?://(?:www\\.)?nicovideo\\.jp/user/(?P<id>\\d+)/?(?:$|[#?])'
class NicovideoSearchBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.niconico'
class NicovideoSearchDateIE(NicovideoSearchBaseIE, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'nicosearchdate(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class NicovideoSearchIE(NicovideoSearchBaseIE, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'nicosearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class NicovideoSearchURLIE(NicovideoSearchBaseIE):
_module = 'yt_dlp.extractor.niconico'
_VALID_URL = 'https?://(?:www\\.)?nicovideo\\.jp/search/(?P<id>[^?#&]+)?'
class NineCNineMediaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ninecninemedia'
_VALID_URL = '9c9media:(?P<destination_code>[^:]+):(?P<id>\\d+)'
class CPTwentyFourIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ninecninemedia'
_VALID_URL = 'https?://(?:www\\.)?cp24\\.com/news/(?P<id>[^?#]+)'
class NineGagIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ninegag'
_VALID_URL = 'https?://(?:www\\.)?9gag\\.com/gag/(?P<id>[^/?&#]+)'
class NineNowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ninenow'
_VALID_URL = 'https?://(?:www\\.)?9now\\.com\\.au/(?:[^/]+/){2}(?P<id>[^/?#]+)'
class NintendoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nintendo'
_VALID_URL = 'https?://(?:www\\.)?nintendo\\.com/(?:games/detail|nintendo-direct)/(?P<id>[^/?#&]+)'
class NitterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nitter'
_VALID_URL = 'https?://(?:3nzoldnxplag42gqjs23xvghtzf6t6yzssrtytnntc6ppc7xxuoneoad\\.onion|nitter\\.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd\\.onion|nitter7bryz3jv7e3uekphigvmoyoem4al3fynerxkj22dmoxoq553qd\\.onion|npf37k3mtzwxreiw52ccs5ay4e6qt2fkcs2ndieurdyn2cuzzsfyfvid\\.onion|nitter\\.v6vgyqpa7yefkorazmg5d5fimstmvm2vtbirt6676mt7qmllrcnwycqd\\.onion|i23nv6w3juvzlw32xzoxcqzktegd4i4fu3nmnc2ewv4ggiu4ledwklad\\.onion|26oq3gioiwcmfojub37nz5gzbkdiqp7fue5kvye7d4txv4ny6fb4wwid\\.onion|nitter\\.i2p|u6ikd6zndl3c4dsdq4mmujpntgeevdk5qzkfb57r4tnfeccrn2qa\\.b32\\.i2p|nitterlgj3n5fgwesu3vxc5h67ruku33nqaoeoocae2mvlzhsu6k7fqd\\.onion|nitter\\.42l\\.fr|nitter\\.pussthecat\\.org|nitter\\.nixnet\\.services|nitter\\.mastodont\\.cat|nitter\\.tedomum\\.net|nitter\\.fdn\\.fr|nitter\\.1d4\\.us|nitter\\.kavin\\.rocks|tweet\\.lambda\\.dance|nitter\\.cc|nitter\\.vxempire\\.xyz|nitter\\.unixfox\\.eu|nitter\\.domain\\.glass|nitter\\.himiko\\.cloud|nitter\\.eu|nitter\\.namazso\\.eu|nitter\\.mailstation\\.de|nitter\\.actionsack\\.com|nitter\\.cattube\\.org|nitter\\.dark\\.fail|birdsite\\.xanny\\.family|nitter\\.40two\\.app|nitter\\.skrep\\.in|nitter\\.snopyta\\.org|nitter\\.ethibox\\.fr|nitter\\.net|nitter\\.13ad\\.de|nitter\\.weaponizedhumiliation\\.com)/(?P<uploader_id>.+)/status/(?P<id>[0-9]+)(#.)?'
class NJPWWorldIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.njpwworld'
_VALID_URL = 'https?://(front\\.)?njpwworld\\.com/p/(?P<id>[a-z0-9_]+)'
class NobelPrizeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nobelprize'
_VALID_URL = 'https?://(?:www\\.)?nobelprize\\.org/mediaplayer.*?\\bid=(?P<id>\\d+)'
class NonkTubeIE(NuevoBaseIE):
_module = 'yt_dlp.extractor.nonktube'
_VALID_URL = 'https?://(?:www\\.)?nonktube\\.com/(?:(?:video|embed)/|media/nuevo/embed\\.php\\?.*?\\bid=)(?P<id>\\d+)'
class NoodleMagazineIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.noodlemagazine'
_VALID_URL = 'https?://(?:www|adult\\.)?noodlemagazine\\.com/watch/(?P<id>[0-9-_]+)'
class NoovoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.noovo'
_VALID_URL = 'https?://(?:[^/]+\\.)?noovo\\.ca/videos/(?P<id>[^/]+/[^/?#&]+)'
class NormalbootsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.normalboots'
_VALID_URL = 'https?://(?:www\\.)?normalboots\\.com/video/(?P<id>[0-9a-z-]*)/?$'
class NosVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nosvideo'
_VALID_URL = 'https?://(?:www\\.)?nosvideo\\.com/(?:embed/|\\?v=)(?P<id>[A-Za-z0-9]{12})/?'
class NovaEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nova'
_VALID_URL = 'https?://media\\.cms\\.nova\\.cz/embed/(?P<id>[^/?#&]+)'
class NovaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nova'
_VALID_URL = 'https?://(?:[^.]+\\.)?(?P<site>tv(?:noviny)?|tn|novaplus|vymena|fanda|krasna|doma|prask)\\.nova\\.cz/(?:[^/]+/)+(?P<id>[^/]+?)(?:\\.html|/|$)'
class NovaPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.novaplay'
_VALID_URL = 'https://play.nova\\.bg/video/.*/(?P<id>\\d+)'
class NownessBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nowness'
class NownessIE(NownessBaseIE):
_module = 'yt_dlp.extractor.nowness'
_VALID_URL = 'https?://(?:(?:www|cn)\\.)?nowness\\.com/(?:story|(?:series|category)/[^/]+)/(?P<id>[^/]+?)(?:$|[?#])'
class NownessPlaylistIE(NownessBaseIE):
_module = 'yt_dlp.extractor.nowness'
_VALID_URL = 'https?://(?:(?:www|cn)\\.)?nowness\\.com/playlist/(?P<id>\\d+)'
class NownessSeriesIE(NownessBaseIE):
_module = 'yt_dlp.extractor.nowness'
_VALID_URL = 'https?://(?:(?:www|cn)\\.)?nowness\\.com/series/(?P<id>[^/]+?)(?:$|[?#])'
class NozIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.noz'
_VALID_URL = 'https?://(?:www\\.)?noz\\.de/video/(?P<id>[0-9]+)/'
class NPOBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.npo'
class NPOIE(NPOBaseIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = '(?x)\n (?:\n npo:|\n https?://\n (?:www\\.)?\n (?:\n npo\\.nl/(?:[^/]+/)*|\n (?:ntr|npostart)\\.nl/(?:[^/]+/){2,}|\n omroepwnl\\.nl/video/fragment/[^/]+__|\n (?:zapp|npo3)\\.nl/(?:[^/]+/){2,}\n )\n )\n (?P<id>[^/?#]+)\n '
@classmethod
def suitable(cls, url):
return (False if any(ie.suitable(url)
for ie in (NPOLiveIE, NPORadioIE, NPORadioFragmentIE))
else super(NPOIE, cls).suitable(url))
class NPOPlaylistBaseIE(NPOIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = '(?x)\n (?:\n npo:|\n https?://\n (?:www\\.)?\n (?:\n npo\\.nl/(?:[^/]+/)*|\n (?:ntr|npostart)\\.nl/(?:[^/]+/){2,}|\n omroepwnl\\.nl/video/fragment/[^/]+__|\n (?:zapp|npo3)\\.nl/(?:[^/]+/){2,}\n )\n )\n (?P<id>[^/?#]+)\n '
@classmethod
def suitable(cls, url):
return (False if any(ie.suitable(url)
for ie in (NPOLiveIE, NPORadioIE, NPORadioFragmentIE))
else super(NPOIE, cls).suitable(url))
class AndereTijdenIE(NPOPlaylistBaseIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?anderetijden\\.nl/programma/(?:[^/]+/)+(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return (False if any(ie.suitable(url)
for ie in (NPOLiveIE, NPORadioIE, NPORadioFragmentIE))
else super(NPOIE, cls).suitable(url))
class NPOLiveIE(NPOBaseIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?npo(?:start)?\\.nl/live(?:/(?P<id>[^/?#&]+))?'
class NPORadioIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?npo\\.nl/radio/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if NPORadioFragmentIE.suitable(url) else super(NPORadioIE, cls).suitable(url)
class NPORadioFragmentIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?npo\\.nl/radio/[^/]+/fragment/(?P<id>\\d+)'
class NPODataMidEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.npo'
class SchoolTVIE(NPODataMidEmbedIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?schooltv\\.nl/video/(?P<id>[^/?#&]+)'
class HetKlokhuisIE(NPODataMidEmbedIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?hetklokhuis\\.nl/[^/]+/\\d+/(?P<id>[^/?#&]+)'
class VPROIE(NPOPlaylistBaseIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?(?:(?:tegenlicht\\.)?vpro|2doc)\\.nl/(?:[^/]+/)*(?P<id>[^/]+)\\.html'
@classmethod
def suitable(cls, url):
return (False if any(ie.suitable(url)
for ie in (NPOLiveIE, NPORadioIE, NPORadioFragmentIE))
else super(NPOIE, cls).suitable(url))
class WNLIE(NPOPlaylistBaseIE):
_module = 'yt_dlp.extractor.npo'
_VALID_URL = 'https?://(?:www\\.)?omroepwnl\\.nl/video/detail/(?P<id>[^/]+)__\\d+'
@classmethod
def suitable(cls, url):
return (False if any(ie.suitable(url)
for ie in (NPOLiveIE, NPORadioIE, NPORadioFragmentIE))
else super(NPOIE, cls).suitable(url))
class NprIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.npr'
_VALID_URL = 'https?://(?:www\\.)?npr\\.org/(?:sections/[^/]+/)?\\d{4}/\\d{2}/\\d{2}/(?P<id>\\d+)'
class NRKBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
class NRKIE(NRKBaseIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = '(?x)\n (?:\n nrk:|\n https?://\n (?:\n (?:www\\.)?nrk\\.no/video/(?:PS\\*|[^_]+_)|\n v8[-.]psapi\\.nrk\\.no/mediaelement/\n )\n )\n (?P<id>[^?\\#&]+)\n '
class NRKPlaylistBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
class NRKPlaylistIE(NRKPlaylistBaseIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://(?:www\\.)?nrk\\.no/(?!video|skole)(?:[^/]+/)+(?P<id>[^/]+)'
class NRKSkoleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://(?:www\\.)?nrk\\.no/skole/?\\?.*\\bmediaId=(?P<id>\\d+)'
class NRKTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://(?:tv|radio)\\.nrk(?:super)?\\.no/(?:[^/]+/)*(?P<id>[a-zA-Z]{4}\\d{8})'
class NRKTVDirekteIE(NRKTVIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://(?:tv|radio)\\.nrk\\.no/direkte/(?P<id>[^/?#&]+)'
class NRKRadioPodkastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://radio\\.nrk\\.no/pod[ck]ast/(?:[^/]+/)+(?P<id>l_[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class NRKTVEpisodeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://tv\\.nrk\\.no/serie/(?P<id>[^/]+/sesong/(?P<season_number>\\d+)/episode/(?P<episode_number>\\d+))'
class NRKTVEpisodesIE(NRKPlaylistBaseIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://tv\\.nrk\\.no/program/[Ee]pisodes/[^/]+/(?P<id>\\d+)'
class NRKTVSerieBaseIE(NRKBaseIE):
_module = 'yt_dlp.extractor.nrk'
class NRKTVSeasonIE(NRKTVSerieBaseIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = '(?x)\n https?://\n (?P<domain>tv|radio)\\.nrk\\.no/\n (?P<serie_kind>serie|pod[ck]ast)/\n (?P<serie>[^/]+)/\n (?:\n (?:sesong/)?(?P<id>\\d+)|\n sesong/(?P<id_2>[^/?#&]+)\n )\n '
@classmethod
def suitable(cls, url):
return (False if NRKTVIE.suitable(url) or NRKTVEpisodeIE.suitable(url) or NRKRadioPodkastIE.suitable(url)
else super(NRKTVSeasonIE, cls).suitable(url))
class NRKTVSeriesIE(NRKTVSerieBaseIE):
_module = 'yt_dlp.extractor.nrk'
_VALID_URL = 'https?://(?P<domain>(?:tv|radio)\\.nrk|(?:tv\\.)?nrksuper)\\.no/(?P<serie_kind>serie|pod[ck]ast)/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return (
False if any(ie.suitable(url)
for ie in (NRKTVIE, NRKTVEpisodeIE, NRKRadioPodkastIE, NRKTVSeasonIE))
else super(NRKTVSeriesIE, cls).suitable(url))
class NRLTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nrl'
_VALID_URL = 'https?://(?:www\\.)?nrl\\.com/tv(/[^/]+)*/(?P<id>[^/?&#]+)'
class NTVCoJpCUIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ntvcojp'
_VALID_URL = 'https?://cu\\.ntv\\.co\\.jp/(?!program)(?P<id>[^/?&#]+)'
class NTVDeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ntvde'
_VALID_URL = 'https?://(?:www\\.)?n-tv\\.de/mediathek/videos/[^/?#]+/[^/?#]+-article(?P<id>.+)\\.html'
class NTVRuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ntvru'
_VALID_URL = 'https?://(?:www\\.)?ntv\\.ru/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class NYTimesBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nytimes'
class NYTimesIE(NYTimesBaseIE):
_module = 'yt_dlp.extractor.nytimes'
_VALID_URL = 'https?://(?:(?:www\\.)?nytimes\\.com/video/(?:[^/]+/)+?|graphics8\\.nytimes\\.com/bcvideo/\\d+(?:\\.\\d+)?/iframe/embed\\.html\\?videoId=)(?P<id>\\d+)'
class NYTimesArticleIE(NYTimesBaseIE):
_module = 'yt_dlp.extractor.nytimes'
_VALID_URL = 'https?://(?:www\\.)?nytimes\\.com/(.(?<!video))*?/(?:[^/]+/)*(?P<id>[^.]+)(?:\\.html)?'
class NYTimesCookingIE(NYTimesBaseIE):
_module = 'yt_dlp.extractor.nytimes'
_VALID_URL = 'https?://cooking\\.nytimes\\.com/(?:guid|recip)es/(?P<id>\\d+)'
class NuvidIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nuvid'
_VALID_URL = 'https?://(?:www|m)\\.nuvid\\.com/video/(?P<id>[0-9]+)'
class NZHeraldIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nzherald'
_VALID_URL = 'https?://(?:www\\.)?nzherald\\.co\\.nz/[\\w\\/-]+\\/(?P<id>[A-Z0-9]+)'
class NZZIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.nzz'
_VALID_URL = 'https?://(?:www\\.)?nzz\\.ch/(?:[^/]+/)*[^/?#]+-ld\\.(?P<id>\\d+)'
class OdaTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.odatv'
_VALID_URL = 'https?://(?:www\\.)?odatv\\.com/(?:mob|vid)_video\\.php\\?.*\\bid=(?P<id>[^&]+)'
class OdnoklassnikiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.odnoklassniki'
_VALID_URL = '(?x)\n https?://\n (?:(?:www|m|mobile)\\.)?\n (?:odnoklassniki|ok)\\.ru/\n (?:\n video(?:embed)?/|\n web-api/video/moviePlayer/|\n live/|\n dk\\?.*?st\\.mvId=\n )\n (?P<id>[\\d-]+)\n '
class OktoberfestTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.oktoberfesttv'
_VALID_URL = 'https?://(?:www\\.)?oktoberfest-tv\\.de/[^/]+/[^/]+/video/(?P<id>[^/?#]+)'
class OlympicsReplayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.olympics'
_VALID_URL = 'https?://(?:www\\.)?olympics\\.com(?:/tokyo-2020)?/[a-z]{2}/(?:replay|video)/(?P<id>[^/#&?]+)'
class On24IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.on24'
_VALID_URL = '(?x)\n https?://event\\.on24\\.com/(?:\n wcc/r/(?P<id_1>\\d{7})/(?P<key_1>[0-9A-F]{32})|\n eventRegistration/(?:console/EventConsoleApollo|EventLobbyServlet\\?target=lobby30)\n \\.jsp\\?(?:[^/#?]*&)?eventid=(?P<id_2>\\d{7})[^/#?]*&key=(?P<key_2>[0-9A-F]{32})\n )'
class OnDemandKoreaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ondemandkorea'
_VALID_URL = 'https?://(?:www\\.)?ondemandkorea\\.com/(?P<id>[^/]+)\\.html'
class OneFootballIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.onefootball'
_VALID_URL = 'https?://(?:www\\.)?onefootball\\.com/[a-z]{2}/video/[^/&?#]+-(?P<id>\\d+)'
class OnetIE(OnetBaseIE):
_module = 'yt_dlp.extractor.onet'
_VALID_URL = 'https?://(?:(?:www\\.)?onet\\.tv|onet100\\.vod\\.pl)/[a-z]/[a-z]+/(?P<display_id>[0-9a-z-]+)/(?P<id>[0-9a-z]+)'
class OnetChannelIE(OnetBaseIE):
_module = 'yt_dlp.extractor.onet'
_VALID_URL = 'https?://(?:(?:www\\.)?onet\\.tv|onet100\\.vod\\.pl)/[a-z]/(?P<id>[a-z]+)(?:[?#]|$)'
class OnetMVPIE(OnetBaseIE):
_module = 'yt_dlp.extractor.onet'
_VALID_URL = 'onetmvp:(?P<id>\\d+\\.\\d+)'
class OnetPlIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.onet'
_VALID_URL = 'https?://(?:[^/]+\\.)?(?:onet|businessinsider\\.com|plejada)\\.pl/(?:[^/]+/)+(?P<id>[0-9a-z]+)'
class OnionStudiosIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.onionstudios'
_VALID_URL = 'https?://(?:www\\.)?onionstudios\\.com/(?:video(?:s/[^/]+-|/)|embed\\?.*\\bid=)(?P<id>\\d+)(?!-)'
class OoyalaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ooyala'
class OoyalaIE(OoyalaBaseIE):
_module = 'yt_dlp.extractor.ooyala'
_VALID_URL = '(?:ooyala:|https?://.+?\\.ooyala\\.com/.*?(?:embedCode|ec)=)(?P<id>.+?)(&|$)'
class OoyalaExternalIE(OoyalaBaseIE):
_module = 'yt_dlp.extractor.ooyala'
_VALID_URL = '(?x)\n (?:\n ooyalaexternal:|\n https?://.+?\\.ooyala\\.com/.*?\\bexternalId=\n )\n (?P<partner_id>[^:]+)\n :\n (?P<id>.+)\n (?:\n :|\n .*?&pcode=\n )\n (?P<pcode>.+?)\n (?:&|$)\n '
class OpencastBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.opencast'
class OpencastIE(OpencastBaseIE):
_module = 'yt_dlp.extractor.opencast'
_VALID_URL = '(?x)\n https?://(?P<host>(?:\n opencast\\.informatik\\.kit\\.edu|\n electures\\.uni-muenster\\.de|\n oc-presentation\\.ltcc\\.tuwien\\.ac\\.at|\n medien\\.ph-noe\\.ac\\.at|\n oc-video\\.ruhr-uni-bochum\\.de|\n oc-video1\\.ruhr-uni-bochum\\.de|\n opencast\\.informatik\\.uni-goettingen\\.de|\n heicast\\.uni-heidelberg\\.de|\n opencast\\.hawk\\.de:8080|\n opencast\\.hs-osnabrueck\\.de|\n video[0-9]+\\.virtuos\\.uni-osnabrueck\\.de|\n opencast\\.uni-koeln\\.de|\n media\\.opencast\\.hochschule-rhein-waal\\.de|\n matterhorn\\.dce\\.harvard\\.edu|\n hs-harz\\.opencast\\.uni-halle\\.de|\n videocampus\\.urz\\.uni-leipzig\\.de|\n media\\.uct\\.ac\\.za|\n vid\\.igb\\.illinois\\.edu|\n cursosabertos\\.c3sl\\.ufpr\\.br|\n mcmedia\\.missioncollege\\.org|\n clases\\.odon\\.edu\\.uy\n ))/paella/ui/watch.html\\?.*?\n id=(?P<id>[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12})\n '
class OpencastPlaylistIE(OpencastBaseIE):
_module = 'yt_dlp.extractor.opencast'
_VALID_URL = '(?x)\n https?://(?P<host>(?:\n opencast\\.informatik\\.kit\\.edu|\n electures\\.uni-muenster\\.de|\n oc-presentation\\.ltcc\\.tuwien\\.ac\\.at|\n medien\\.ph-noe\\.ac\\.at|\n oc-video\\.ruhr-uni-bochum\\.de|\n oc-video1\\.ruhr-uni-bochum\\.de|\n opencast\\.informatik\\.uni-goettingen\\.de|\n heicast\\.uni-heidelberg\\.de|\n opencast\\.hawk\\.de:8080|\n opencast\\.hs-osnabrueck\\.de|\n video[0-9]+\\.virtuos\\.uni-osnabrueck\\.de|\n opencast\\.uni-koeln\\.de|\n media\\.opencast\\.hochschule-rhein-waal\\.de|\n matterhorn\\.dce\\.harvard\\.edu|\n hs-harz\\.opencast\\.uni-halle\\.de|\n videocampus\\.urz\\.uni-leipzig\\.de|\n media\\.uct\\.ac\\.za|\n vid\\.igb\\.illinois\\.edu|\n cursosabertos\\.c3sl\\.ufpr\\.br|\n mcmedia\\.missioncollege\\.org|\n clases\\.odon\\.edu\\.uy\n ))/engage/ui/index.html\\?.*?\n epFrom=(?P<id>[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12})\n '
class OpenRecBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.openrec'
class OpenRecIE(OpenRecBaseIE):
_module = 'yt_dlp.extractor.openrec'
_VALID_URL = 'https?://(?:www\\.)?openrec\\.tv/live/(?P<id>[^/]+)'
class OpenRecCaptureIE(OpenRecBaseIE):
_module = 'yt_dlp.extractor.openrec'
_VALID_URL = 'https?://(?:www\\.)?openrec\\.tv/capture/(?P<id>[^/]+)'
class OpenRecMovieIE(OpenRecBaseIE):
_module = 'yt_dlp.extractor.openrec'
_VALID_URL = 'https?://(?:www\\.)?openrec\\.tv/movie/(?P<id>[^/]+)'
class OraTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ora'
_VALID_URL = 'https?://(?:www\\.)?(?:ora\\.tv|unsafespeech\\.com)/([^/]+/)*(?P<id>[^/\\?#]+)'
class ORFTVthekIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = '(?P<url>https?://tvthek\\.orf\\.at/(?:(?:[^/]+/){2}){1,2}(?P<id>\\d+))(/[^/]+/(?P<vid>\\d+))?(?:$|[?#])'
class ORFRadioIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.orf'
class ORFFM4IE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>fm4)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>4\\w+)'
class ORFFM4StoryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://fm4\\.orf\\.at/stories/(?P<id>\\d+)'
class ORFOE1IE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>oe1)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFOE3IE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>oe3)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFNOEIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>noe)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFWIEIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>wien)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFBGLIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>burgenland)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFOOEIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>ooe)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFSTMIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>steiermark)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFKTNIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>kaernten)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFSBGIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>salzburg)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFTIRIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>tirol)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFVBGIE(ORFRadioIE):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://(?P<station>vorarlberg)\\.orf\\.at/player/(?P<date>[0-9]+)/(?P<show>\\w+)'
class ORFIPTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.orf'
_VALID_URL = 'https?://iptv\\.orf\\.at/(?:#/)?stories/(?P<id>\\d+)'
class OutsideTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.outsidetv'
_VALID_URL = 'https?://(?:www\\.)?outsidetv\\.com/(?:[^/]+/)*?play/[a-zA-Z0-9]{8}/\\d+/\\d+/(?P<id>[a-zA-Z0-9]{8})'
class PacktPubBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.packtpub'
class PacktPubIE(PacktPubBaseIE):
_module = 'yt_dlp.extractor.packtpub'
_VALID_URL = 'https?://(?:(?:www\\.)?packtpub\\.com/mapt|subscription\\.packtpub\\.com)/video/[^/]+/(?P<course_id>\\d+)/(?P<chapter_id>[^/]+)/(?P<id>[^/]+)(?:/(?P<display_id>[^/?&#]+))?'
class PacktPubCourseIE(PacktPubBaseIE):
_module = 'yt_dlp.extractor.packtpub'
_VALID_URL = '(?P<url>https?://(?:(?:www\\.)?packtpub\\.com/mapt|subscription\\.packtpub\\.com)/video/[^/]+/(?P<id>\\d+))'
@classmethod
def suitable(cls, url):
return False if PacktPubIE.suitable(url) else super(
PacktPubCourseIE, cls).suitable(url)
class PalcoMP3BaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.palcomp3'
class PalcoMP3IE(PalcoMP3BaseIE):
_module = 'yt_dlp.extractor.palcomp3'
_VALID_URL = 'https?://(?:www\\.)?palcomp3\\.com(?:\\.br)?/(?P<artist>[^/]+)/(?P<id>[^/?&#]+)'
@classmethod
def suitable(cls, url):
return False if PalcoMP3VideoIE.suitable(url) else super(PalcoMP3IE, cls).suitable(url)
class PalcoMP3ArtistIE(PalcoMP3BaseIE):
_module = 'yt_dlp.extractor.palcomp3'
_VALID_URL = 'https?://(?:www\\.)?palcomp3\\.com(?:\\.br)?/(?P<id>[^/?&#]+)'
@classmethod
def suitable(cls, url):
return False if PalcoMP3IE._match_valid_url(url) else super(PalcoMP3ArtistIE, cls).suitable(url)
class PalcoMP3VideoIE(PalcoMP3BaseIE):
_module = 'yt_dlp.extractor.palcomp3'
_VALID_URL = 'https?://(?:www\\.)?palcomp3\\.com(?:\\.br)?/(?P<artist>[^/]+)/(?P<id>[^/?&#]+)/?#clipe'
class PandoraTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pandoratv'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?pandora\\.tv/view/(?P<user_id>[^/]+)/(?P<id>\\d+)| # new format\n (?:.+?\\.)?channel\\.pandora\\.tv/channel/video\\.ptv\\?| # old format\n m\\.pandora\\.tv/?\\? # mobile\n )\n '
class ParamountPlusSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.paramountplus'
_VALID_URL = 'https?://(?:www\\.)?paramountplus\\.com/shows/(?P<id>[a-zA-Z0-9-_]+)/?(?:[#?]|$)'
class ParliamentLiveUKIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.parliamentliveuk'
_VALID_URL = '(?i)https?://(?:www\\.)?parliamentlive\\.tv/Event/Index/(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class ParlviewIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.parlview'
_VALID_URL = 'https?://(?:www\\.)?parlview\\.aph\\.gov\\.au/(?:[^/]+)?\\bvideoID=(?P<id>\\d{6})'
class PatreonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.patreon'
_VALID_URL = 'https?://(?:www\\.)?patreon\\.com/(?:creation\\?hid=|posts/(?:[\\w-]+-)?)(?P<id>\\d+)'
class PatreonUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.patreon'
_VALID_URL = 'https?://(?:www\\.)?patreon\\.com/(?!rss)(?P<id>[-\\w]+)'
@classmethod
def suitable(cls, url):
return False if PatreonIE.suitable(url) else super(PatreonUserIE, cls).suitable(url)
class PBSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pbs'
_VALID_URL = '(?x)https?://\n (?:\n # Direct video URL\n (?:(?:video|www|player)\\.pbs\\.org|video\\.aptv\\.org|video\\.gpb\\.org|video\\.mpbonline\\.org|video\\.wnpt\\.org|video\\.wfsu\\.org|video\\.wsre\\.org|video\\.wtcitv\\.org|video\\.pba\\.org|video\\.alaskapublic\\.org|video\\.azpbs\\.org|portal\\.knme\\.org|video\\.vegaspbs\\.org|watch\\.aetn\\.org|video\\.ket\\.org|video\\.wkno\\.org|video\\.lpb\\.org|videos\\.oeta\\.tv|video\\.optv\\.org|watch\\.wsiu\\.org|video\\.keet\\.org|pbs\\.kixe\\.org|video\\.kpbs\\.org|video\\.kqed\\.org|vids\\.kvie\\.org|video\\.pbssocal\\.org|video\\.valleypbs\\.org|video\\.cptv\\.org|watch\\.knpb\\.org|video\\.soptv\\.org|video\\.rmpbs\\.org|video\\.kenw\\.org|video\\.kued\\.org|video\\.wyomingpbs\\.org|video\\.cpt12\\.org|video\\.kbyueleven\\.org|video\\.thirteen\\.org|video\\.wgbh\\.org|video\\.wgby\\.org|watch\\.njtvonline\\.org|watch\\.wliw\\.org|video\\.mpt\\.tv|watch\\.weta\\.org|video\\.whyy\\.org|video\\.wlvt\\.org|video\\.wvpt\\.net|video\\.whut\\.org|video\\.wedu\\.org|video\\.wgcu\\.org|video\\.wpbt2\\.org|video\\.wucftv\\.org|video\\.wuft\\.org|watch\\.wxel\\.org|video\\.wlrn\\.org|video\\.wusf\\.usf\\.edu|video\\.scetv\\.org|video\\.unctv\\.org|video\\.pbshawaii\\.org|video\\.idahoptv\\.org|video\\.ksps\\.org|watch\\.opb\\.org|watch\\.nwptv\\.org|video\\.will\\.illinois\\.edu|video\\.networkknowledge\\.tv|video\\.wttw\\.com|video\\.iptv\\.org|video\\.ninenet\\.org|video\\.wfwa\\.org|video\\.wfyi\\.org|video\\.mptv\\.org|video\\.wnin\\.org|video\\.wnit\\.org|video\\.wpt\\.org|video\\.wvut\\.org|video\\.weiu\\.net|video\\.wqpt\\.org|video\\.wycc\\.org|video\\.wipb\\.org|video\\.indianapublicmedia\\.org|watch\\.cetconnect\\.org|video\\.thinktv\\.org|video\\.wbgu\\.org|video\\.wgvu\\.org|video\\.netnebraska\\.org|video\\.pioneer\\.org|watch\\.sdpb\\.org|video\\.tpt\\.org|watch\\.ksmq\\.org|watch\\.kpts\\.org|watch\\.ktwu\\.org|watch\\.easttennesseepbs\\.org|video\\.wcte\\.tv|video\\.wljt\\.org|video\\.wosu\\.org|video\\.woub\\.org|video\\.wvpublic\\.org|video\\.wkyupbs\\.org|video\\.kera\\.org|video\\.mpbn\\.net|video\\.mountainlake\\.org|video\\.nhptv\\.org|video\\.vpt\\.org|video\\.witf\\.org|watch\\.wqed\\.org|video\\.wmht\\.org|video\\.deltabroadcasting\\.org|video\\.dptv\\.org|video\\.wcmu\\.org|video\\.wkar\\.org|wnmuvideo\\.nmu\\.edu|video\\.wdse\\.org|video\\.wgte\\.org|video\\.lptv\\.org|video\\.kmos\\.org|watch\\.montanapbs\\.org|video\\.krwg\\.org|video\\.kacvtv\\.org|video\\.kcostv\\.org|video\\.wcny\\.org|video\\.wned\\.org|watch\\.wpbstv\\.org|video\\.wskg\\.org|video\\.wxxi\\.org|video\\.wpsu\\.org|on-demand\\.wvia\\.org|video\\.wtvi\\.org|video\\.westernreservepublicmedia\\.org|video\\.ideastream\\.org|video\\.kcts9\\.org|video\\.basinpbs\\.org|video\\.houstonpbs\\.org|video\\.klrn\\.org|video\\.klru\\.tv|video\\.wtjx\\.org|video\\.ideastations\\.org|video\\.kbtc\\.org)/(?:(?:vir|port)alplayer|video)/(?P<id>[0-9]+)(?:[?/]|$) |\n # Article with embedded player (or direct video)\n (?:www\\.)?pbs\\.org/(?:[^/]+/){1,5}(?P<presumptive_id>[^/]+?)(?:\\.html)?/?(?:$|[?\\#]) |\n # Player\n (?:video|player)\\.pbs\\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+)\n )\n '
class PearVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pearvideo'
_VALID_URL = 'https?://(?:www\\.)?pearvideo\\.com/video_(?P<id>\\d+)'
class PeerTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.peertube'
_VALID_URL = '(?x)\n (?:\n peertube:(?P<host>[^:]+):|\n https?://(?P<host_2>(?:\n # Taken from https://instances.joinpeertube.org/instances\n 40two\\.tube|\n a\\.metube\\.ch|\n advtv\\.ml|\n algorithmic\\.tv|\n alimulama\\.com|\n arcana\\.fun|\n archive\\.vidicon\\.org|\n artefac-paris\\.tv|\n auf1\\.eu|\n battlepenguin\\.video|\n beertube\\.epgn\\.ch|\n befree\\.nohost\\.me|\n bideoak\\.argia\\.eus|\n birkeundnymphe\\.de|\n bitcointv\\.com|\n cattube\\.org|\n clap\\.nerv-project\\.eu|\n climatejustice\\.video|\n comf\\.tube|\n conspiracydistillery\\.com|\n darkvapor\\.nohost\\.me|\n daschauher\\.aksel\\.rocks|\n digitalcourage\\.video|\n dreiecksnebel\\.alex-detsch\\.de|\n eduvid\\.org|\n evangelisch\\.video|\n exo\\.tube|\n fair\\.tube|\n fediverse\\.tv|\n film\\.k-prod\\.fr|\n flim\\.txmn\\.tk|\n fotogramas\\.politicaconciencia\\.org|\n ftsi\\.ru|\n gary\\.vger\\.cloud|\n graeber\\.video|\n greatview\\.video|\n grypstube\\.uni-greifswald\\.de|\n highvoltage\\.tv|\n hpstube\\.fr|\n htp\\.live|\n hyperreal\\.tube|\n juggling\\.digital|\n kino\\.kompot\\.si|\n kino\\.schuerz\\.at|\n kinowolnosc\\.pl|\n kirche\\.peertube-host\\.de|\n kodcast\\.com|\n kolektiva\\.media|\n kraut\\.zone|\n kumi\\.tube|\n lastbreach\\.tv|\n lepetitmayennais\\.fr\\.nf|\n lexx\\.impa\\.me|\n libertynode\\.tv|\n libra\\.syntazia\\.org|\n libremedia\\.video|\n live\\.libratoi\\.org|\n live\\.nanao\\.moe|\n live\\.toobnix\\.org|\n livegram\\.net|\n lolitube\\.freedomchan\\.moe|\n lucarne\\.balsamine\\.be|\n maindreieck-tv\\.de|\n mani\\.tube|\n manicphase\\.me|\n media\\.gzevd\\.de|\n media\\.inno3\\.cricket|\n media\\.kaitaia\\.life|\n media\\.krashboyz\\.org|\n media\\.over-world\\.org|\n media\\.skewed\\.de|\n media\\.undeadnetwork\\.de|\n medias\\.pingbase\\.net|\n melsungen\\.peertube-host\\.de|\n mirametube\\.fr|\n mojotube\\.net|\n monplaisirtube\\.ddns\\.net|\n mountaintown\\.video|\n my\\.bunny\\.cafe|\n myfreetube\\.de|\n mytube\\.kn-cloud\\.de|\n mytube\\.madzel\\.de|\n myworkoutarenapeertube\\.cf|\n nanawel-peertube\\.dyndns\\.org|\n nastub\\.cz|\n offenes\\.tv|\n orgdup\\.media|\n ovaltube\\.codinglab\\.ch|\n p2ptv\\.ru|\n p\\.eertu\\.be|\n p\\.lu|\n peer\\.azurs\\.fr|\n peertube1\\.zeteo\\.me|\n peertube\\.020\\.pl|\n peertube\\.0x5e\\.eu|\n peertube\\.alpharius\\.io|\n peertube\\.am-networks\\.fr|\n peertube\\.anduin\\.net|\n peertube\\.anzui\\.dev|\n peertube\\.arbleizez\\.bzh|\n peertube\\.art3mis\\.de|\n peertube\\.atilla\\.org|\n peertube\\.atsuchan\\.page|\n peertube\\.aukfood\\.net|\n peertube\\.aventer\\.biz|\n peertube\\.b38\\.rural-it\\.org|\n peertube\\.beeldengeluid\\.nl|\n peertube\\.be|\n peertube\\.bgzashtita\\.es|\n peertube\\.bitsandlinux\\.com|\n peertube\\.biz|\n peertube\\.boba\\.best|\n peertube\\.br0\\.fr|\n peertube\\.bridaahost\\.ynh\\.fr|\n peertube\\.bubbletea\\.dev|\n peertube\\.bubuit\\.net|\n peertube\\.cabaal\\.net|\n peertube\\.cats-home\\.net|\n peertube\\.chemnitz\\.freifunk\\.net|\n peertube\\.chevro\\.fr|\n peertube\\.chrisspiegl\\.com|\n peertube\\.chtisurel\\.net|\n peertube\\.cipherbliss\\.com|\n peertube\\.cloud\\.sans\\.pub|\n peertube\\.cpge-brizeux\\.fr|\n peertube\\.ctseuro\\.com|\n peertube\\.cuatrolibertades\\.org|\n peertube\\.cybercirujas\\.club|\n peertube\\.cythin\\.com|\n peertube\\.davigge\\.com|\n peertube\\.dc\\.pini\\.fr|\n peertube\\.debian\\.social|\n peertube\\.demonix\\.fr|\n peertube\\.designersethiques\\.org|\n peertube\\.desmu\\.fr|\n peertube\\.devloprog\\.org|\n peertube\\.devol\\.it|\n peertube\\.dtmf\\.ca|\n peertube\\.ecologie\\.bzh|\n peertube\\.eu\\.org|\n peertube\\.european-pirates\\.eu|\n peertube\\.euskarabildua\\.eus|\n peertube\\.fenarinarsa\\.com|\n peertube\\.fomin\\.site|\n peertube\\.forsud\\.be|\n peertube\\.francoispelletier\\.org|\n peertube\\.freenet\\.ru|\n peertube\\.freetalklive\\.com|\n peertube\\.functional\\.cafe|\n peertube\\.gardeludwig\\.fr|\n peertube\\.gargantia\\.fr|\n peertube\\.gcfamily\\.fr|\n peertube\\.genma\\.fr|\n peertube\\.get-racing\\.de|\n peertube\\.gidikroon\\.eu|\n peertube\\.gruezishop\\.ch|\n peertube\\.habets\\.house|\n peertube\\.hackerfraternity\\.org|\n peertube\\.ichigo\\.everydayimshuflin\\.com|\n peertube\\.ignifi\\.me|\n peertube\\.inapurna\\.org|\n peertube\\.informaction\\.info|\n peertube\\.interhop\\.org|\n peertube\\.iselfhost\\.com|\n peertube\\.it|\n peertube\\.jensdiemer\\.de|\n peertube\\.joffreyverd\\.fr|\n peertube\\.kalua\\.im|\n peertube\\.kathryl\\.fr|\n peertube\\.keazilla\\.net|\n peertube\\.klaewyss\\.fr|\n peertube\\.kodcast\\.com|\n peertube\\.kx\\.studio|\n peertube\\.lagvoid\\.com|\n peertube\\.lavallee\\.tech|\n peertube\\.le5emeaxe\\.fr|\n peertube\\.lestutosdeprocessus\\.fr|\n peertube\\.librenet\\.co\\.za|\n peertube\\.logilab\\.fr|\n peertube\\.louisematic\\.site|\n peertube\\.luckow\\.org|\n peertube\\.luga\\.at|\n peertube\\.lyceeconnecte\\.fr|\n peertube\\.manalejandro\\.com|\n peertube\\.marud\\.fr|\n peertube\\.mattone\\.net|\n peertube\\.maxweiss\\.io|\n peertube\\.monlycee\\.net|\n peertube\\.mxinfo\\.fr|\n peertube\\.myrasp\\.eu|\n peertube\\.nebelcloud\\.de|\n peertube\\.netzbegruenung\\.de|\n peertube\\.newsocial\\.tech|\n peertube\\.nicolastissot\\.fr|\n peertube\\.nz|\n peertube\\.offerman\\.com|\n peertube\\.opencloud\\.lu|\n peertube\\.orthus\\.link|\n peertube\\.patapouf\\.xyz|\n peertube\\.pi2\\.dev|\n peertube\\.plataformess\\.org|\n peertube\\.pl|\n peertube\\.portaesgnos\\.org|\n peertube\\.r2\\.enst\\.fr|\n peertube\\.r5c3\\.fr|\n peertube\\.radres\\.xyz|\n peertube\\.red|\n peertube\\.robonomics\\.network|\n peertube\\.rtnkv\\.cloud|\n peertube\\.runfox\\.tk|\n peertube\\.satoshishop\\.de|\n peertube\\.scic-tetris\\.org|\n peertube\\.securitymadein\\.lu|\n peertube\\.semweb\\.pro|\n peertube\\.social\\.my-wan\\.de|\n peertube\\.soykaf\\.org|\n peertube\\.stefofficiel\\.me|\n peertube\\.stream|\n peertube\\.su|\n peertube\\.swrs\\.net|\n peertube\\.takeko\\.cyou|\n peertube\\.tangentfox\\.com|\n peertube\\.taxinachtegel\\.de|\n peertube\\.thenewoil\\.xyz|\n peertube\\.ti-fr\\.com|\n peertube\\.tiennot\\.net|\n peertube\\.troback\\.com|\n peertube\\.tspu\\.edu\\.ru|\n peertube\\.tux\\.ovh|\n peertube\\.tv|\n peertube\\.tweb\\.tv|\n peertube\\.ucy\\.de|\n peertube\\.underworld\\.fr|\n peertube\\.us\\.to|\n peertube\\.ventresmous\\.fr|\n peertube\\.vlaki\\.cz|\n peertube\\.w\\.utnw\\.de|\n peertube\\.westring\\.digital|\n peertube\\.xwiki\\.com|\n peertube\\.zoz-serv\\.org|\n peervideo\\.ru|\n periscope\\.numenaute\\.org|\n perron-tube\\.de|\n petitlutinartube\\.fr|\n phijkchu\\.com|\n pierre\\.tube|\n piraten\\.space|\n play\\.rosano\\.ca|\n player\\.ojamajo\\.moe|\n plextube\\.nl|\n pocketnetpeertube1\\.nohost\\.me|\n pocketnetpeertube3\\.nohost\\.me|\n pocketnetpeertube4\\.nohost\\.me|\n pocketnetpeertube5\\.nohost\\.me|\n pocketnetpeertube6\\.nohost\\.me|\n pt\\.24-7\\.ro|\n pt\\.apathy\\.top|\n pt\\.diaspodon\\.fr|\n pt\\.fedi\\.tech|\n pt\\.maciej\\.website|\n ptb\\.lunarviews\\.net|\n ptmir1\\.inter21\\.net|\n ptmir2\\.inter21\\.net|\n ptmir3\\.inter21\\.net|\n ptmir4\\.inter21\\.net|\n ptmir5\\.inter21\\.net|\n ptube\\.horsentiers\\.fr|\n ptube\\.xmanifesto\\.club|\n queermotion\\.org|\n re-wizja\\.re-medium\\.com|\n regarder\\.sans\\.pub|\n ruraletv\\.ovh|\n s1\\.gegenstimme\\.tv|\n s2\\.veezee\\.tube|\n sdmtube\\.fr|\n sender-fm\\.veezee\\.tube|\n serv1\\.wiki-tube\\.de|\n serv3\\.wiki-tube\\.de|\n sickstream\\.net|\n sleepy\\.tube|\n sovran\\.video|\n spectra\\.video|\n stream\\.elven\\.pw|\n stream\\.k-prod\\.fr|\n stream\\.shahab\\.nohost\\.me|\n streamsource\\.video|\n studios\\.racer159\\.com|\n testtube\\.florimond\\.eu|\n tgi\\.hosted\\.spacebear\\.ee|\n thaitube\\.in\\.th|\n the\\.jokertv\\.eu|\n theater\\.ethernia\\.net|\n thecool\\.tube|\n tilvids\\.com|\n toob\\.bub\\.org|\n tpaw\\.video|\n truetube\\.media|\n tuba\\.lhub\\.pl|\n tube-aix-marseille\\.beta\\.education\\.fr|\n tube-amiens\\.beta\\.education\\.fr|\n tube-besancon\\.beta\\.education\\.fr|\n tube-bordeaux\\.beta\\.education\\.fr|\n tube-clermont-ferrand\\.beta\\.education\\.fr|\n tube-corse\\.beta\\.education\\.fr|\n tube-creteil\\.beta\\.education\\.fr|\n tube-dijon\\.beta\\.education\\.fr|\n tube-education\\.beta\\.education\\.fr|\n tube-grenoble\\.beta\\.education\\.fr|\n tube-lille\\.beta\\.education\\.fr|\n tube-limoges\\.beta\\.education\\.fr|\n tube-montpellier\\.beta\\.education\\.fr|\n tube-nancy\\.beta\\.education\\.fr|\n tube-nantes\\.beta\\.education\\.fr|\n tube-nice\\.beta\\.education\\.fr|\n tube-normandie\\.beta\\.education\\.fr|\n tube-orleans-tours\\.beta\\.education\\.fr|\n tube-outremer\\.beta\\.education\\.fr|\n tube-paris\\.beta\\.education\\.fr|\n tube-poitiers\\.beta\\.education\\.fr|\n tube-reims\\.beta\\.education\\.fr|\n tube-rennes\\.beta\\.education\\.fr|\n tube-strasbourg\\.beta\\.education\\.fr|\n tube-toulouse\\.beta\\.education\\.fr|\n tube-versailles\\.beta\\.education\\.fr|\n tube1\\.it\\.tuwien\\.ac\\.at|\n tube\\.abolivier\\.bzh|\n tube\\.ac-amiens\\.fr|\n tube\\.aerztefueraufklaerung\\.de|\n tube\\.alexx\\.ml|\n tube\\.amic37\\.fr|\n tube\\.anufrij\\.de|\n tube\\.apolut\\.net|\n tube\\.arkhalabs\\.io|\n tube\\.arthack\\.nz|\n tube\\.as211696\\.net|\n tube\\.avensio\\.de|\n tube\\.azbyka\\.ru|\n tube\\.azkware\\.net|\n tube\\.bachaner\\.fr|\n tube\\.bmesh\\.org|\n tube\\.borked\\.host|\n tube\\.bstly\\.de|\n tube\\.chaoszone\\.tv|\n tube\\.chatelet\\.ovh|\n tube\\.cloud-libre\\.eu|\n tube\\.cms\\.garden|\n tube\\.cowfee\\.moe|\n tube\\.cryptography\\.dog|\n tube\\.darknight-coffee\\.org|\n tube\\.dev\\.lhub\\.pl|\n tube\\.distrilab\\.fr|\n tube\\.dsocialize\\.net|\n tube\\.ebin\\.club|\n tube\\.fdn\\.fr|\n tube\\.florimond\\.eu|\n tube\\.foxarmy\\.ml|\n tube\\.foxden\\.party|\n tube\\.frischesicht\\.de|\n tube\\.futuretic\\.fr|\n tube\\.gnous\\.eu|\n tube\\.grap\\.coop|\n tube\\.graz\\.social|\n tube\\.grin\\.hu|\n tube\\.hackerscop\\.org|\n tube\\.hordearii\\.fr|\n tube\\.jeena\\.net|\n tube\\.kai-stuht\\.com|\n tube\\.kockatoo\\.org|\n tube\\.kotur\\.org|\n tube\\.lacaveatonton\\.ovh|\n tube\\.linkse\\.media|\n tube\\.lokad\\.com|\n tube\\.lucie-philou\\.com|\n tube\\.melonbread\\.xyz|\n tube\\.mfraters\\.net|\n tube\\.motuhake\\.xyz|\n tube\\.mrbesen\\.de|\n tube\\.nah\\.re|\n tube\\.nchoco\\.net|\n tube\\.novg\\.net|\n tube\\.nox-rhea\\.org|\n tube\\.nuagelibre\\.fr|\n tube\\.nx12\\.net|\n tube\\.octaplex\\.net|\n tube\\.odat\\.xyz|\n tube\\.oisux\\.org|\n tube\\.opportunis\\.me|\n tube\\.org\\.il|\n tube\\.ortion\\.xyz|\n tube\\.others\\.social|\n tube\\.picasoft\\.net|\n tube\\.plomlompom\\.com|\n tube\\.pmj\\.rocks|\n tube\\.portes-imaginaire\\.org|\n tube\\.pyngu\\.com|\n tube\\.rebellion\\.global|\n tube\\.rhythms-of-resistance\\.org|\n tube\\.rita\\.moe|\n tube\\.rsi\\.cnr\\.it|\n tube\\.s1gm4\\.eu|\n tube\\.saumon\\.io|\n tube\\.schleuss\\.online|\n tube\\.schule\\.social|\n tube\\.seditio\\.fr|\n tube\\.shanti\\.cafe|\n tube\\.shela\\.nu|\n tube\\.skrep\\.in|\n tube\\.sp-codes\\.de|\n tube\\.sp4ke\\.com|\n tube\\.superseriousbusiness\\.org|\n tube\\.systest\\.eu|\n tube\\.tappret\\.fr|\n tube\\.tardis\\.world|\n tube\\.toontoet\\.nl|\n tube\\.tpshd\\.de|\n tube\\.troopers\\.agency|\n tube\\.tylerdavis\\.xyz|\n tube\\.undernet\\.uy|\n tube\\.vigilian-consulting\\.nl|\n tube\\.vraphim\\.com|\n tube\\.wehost\\.lgbt|\n tube\\.wien\\.rocks|\n tube\\.wolfe\\.casa|\n tube\\.xd0\\.de|\n tube\\.xy-space\\.de|\n tube\\.yapbreak\\.fr|\n tubedu\\.org|\n tubes\\.jodh\\.us|\n tuktube\\.com|\n turkum\\.me|\n tututu\\.tube|\n tuvideo\\.encanarias\\.info|\n tv1\\.cocu\\.cc|\n tv1\\.gomntu\\.space|\n tv2\\.cocu\\.cc|\n tv\\.adn\\.life|\n tv\\.atmx\\.ca|\n tv\\.bitma\\.st|\n tv\\.generallyrubbish\\.net\\.au|\n tv\\.lumbung\\.space|\n tv\\.mattchristiansenmedia\\.com|\n tv\\.netwhood\\.online|\n tv\\.neue\\.city|\n tv\\.piejacker\\.net|\n tv\\.pirateradio\\.social|\n tv\\.undersco\\.re|\n tvox\\.ru|\n twctube\\.twc-zone\\.eu|\n unfilter\\.tube|\n v\\.basspistol\\.org|\n v\\.kisombrella\\.top|\n v\\.lastorder\\.xyz|\n v\\.lor\\.sh|\n v\\.phreedom\\.club|\n v\\.sil\\.sh|\n v\\.szy\\.io|\n v\\.xxxapex\\.com|\n veezee\\.tube|\n vid\\.dascoyote\\.xyz|\n vid\\.garwood\\.io|\n vid\\.ncrypt\\.at|\n vid\\.pravdastalina\\.info|\n vid\\.qorg11\\.net|\n vid\\.rajeshtaylor\\.com|\n vid\\.samtripoli\\.com|\n vid\\.werefox\\.dev|\n vid\\.wildeboer\\.net|\n video-cave-v2\\.de|\n video\\.076\\.ne\\.jp|\n video\\.1146\\.nohost\\.me|\n video\\.altertek\\.org|\n video\\.anartist\\.org|\n video\\.apps\\.thedoodleproject\\.net|\n video\\.artist\\.cx|\n video\\.asgardius\\.company|\n video\\.balsillie\\.net|\n video\\.bards\\.online|\n video\\.binarydad\\.com|\n video\\.blast-info\\.fr|\n video\\.catgirl\\.biz|\n video\\.cigliola\\.com|\n video\\.cm-en-transition\\.fr|\n video\\.cnt\\.social|\n video\\.coales\\.co|\n video\\.codingfield\\.com|\n video\\.comptoir\\.net|\n video\\.comune\\.trento\\.it|\n video\\.cpn\\.so|\n video\\.csc49\\.fr|\n video\\.cybre\\.town|\n video\\.demokratischer-sommer\\.de|\n video\\.discord-insoumis\\.fr|\n video\\.dolphincastle\\.com|\n video\\.dresden\\.network|\n video\\.ecole-89\\.com|\n video\\.elgrillolibertario\\.org|\n video\\.emergeheart\\.info|\n video\\.eradicatinglove\\.xyz|\n video\\.ethantheenigma\\.me|\n video\\.exodus-privacy\\.eu\\.org|\n video\\.fbxl\\.net|\n video\\.fhtagn\\.org|\n video\\.greenmycity\\.eu|\n video\\.guerredeclasse\\.fr|\n video\\.gyt\\.is|\n video\\.hackers\\.town|\n video\\.hardlimit\\.com|\n video\\.hooli\\.co|\n video\\.igem\\.org|\n video\\.internet-czas-dzialac\\.pl|\n video\\.islameye\\.com|\n video\\.kicik\\.fr|\n video\\.kuba-orlik\\.name|\n video\\.kyushojitsu\\.ca|\n video\\.lavolte\\.net|\n video\\.lespoesiesdheloise\\.fr|\n video\\.liberta\\.vip|\n video\\.liege\\.bike|\n video\\.linc\\.systems|\n video\\.linux\\.it|\n video\\.linuxtrent\\.it|\n video\\.lokal\\.social|\n video\\.lono\\.space|\n video\\.lunasqu\\.ee|\n video\\.lundi\\.am|\n video\\.marcorennmaus\\.de|\n video\\.mass-trespass\\.uk|\n video\\.mugoreve\\.fr|\n video\\.mundodesconocido\\.com|\n video\\.mycrowd\\.ca|\n video\\.nogafam\\.es|\n video\\.odayacres\\.farm|\n video\\.ozgurkon\\.org|\n video\\.p1ng0ut\\.social|\n video\\.p3x\\.de|\n video\\.pcf\\.fr|\n video\\.pony\\.gallery|\n video\\.potate\\.space|\n video\\.pourpenser\\.pro|\n video\\.progressiv\\.dev|\n video\\.resolutions\\.it|\n video\\.rw501\\.de|\n video\\.screamer\\.wiki|\n video\\.sdm-tools\\.net|\n video\\.sftblw\\.moe|\n video\\.shitposter\\.club|\n video\\.skyn3t\\.in|\n video\\.soi\\.ch|\n video\\.stuartbrand\\.co\\.uk|\n video\\.thinkof\\.name|\n video\\.toot\\.pt|\n video\\.triplea\\.fr|\n video\\.turbo\\.chat|\n video\\.vaku\\.org\\.ua|\n video\\.veloma\\.org|\n video\\.violoncello\\.ch|\n video\\.wilkie\\.how|\n video\\.wsf2021\\.info|\n videorelay\\.co|\n videos-passages\\.huma-num\\.fr|\n videos\\.3d-wolf\\.com|\n videos\\.ahp-numerique\\.fr|\n videos\\.alexandrebadalo\\.pt|\n videos\\.archigny\\.net|\n videos\\.benjaminbrady\\.ie|\n videos\\.buceoluegoexisto\\.com|\n videos\\.capas\\.se|\n videos\\.casually\\.cat|\n videos\\.cloudron\\.io|\n videos\\.coletivos\\.org|\n videos\\.danksquad\\.org|\n videos\\.denshi\\.live|\n videos\\.fromouter\\.space|\n videos\\.fsci\\.in|\n videos\\.globenet\\.org|\n videos\\.hauspie\\.fr|\n videos\\.hush\\.is|\n videos\\.john-livingston\\.fr|\n videos\\.jordanwarne\\.xyz|\n videos\\.lavoixdessansvoix\\.org|\n videos\\.leslionsfloorball\\.fr|\n videos\\.lucero\\.top|\n videos\\.martyn\\.berlin|\n videos\\.mastodont\\.cat|\n videos\\.monstro1\\.com|\n videos\\.npo\\.city|\n videos\\.optoutpod\\.com|\n videos\\.petch\\.rocks|\n videos\\.pzelawski\\.xyz|\n videos\\.rampin\\.org|\n videos\\.scanlines\\.xyz|\n videos\\.shmalls\\.pw|\n videos\\.sibear\\.fr|\n videos\\.stadtfabrikanten\\.org|\n videos\\.tankernn\\.eu|\n videos\\.testimonia\\.org|\n videos\\.thisishowidontdisappear\\.com|\n videos\\.traumaheilung\\.net|\n videos\\.trom\\.tf|\n videos\\.wakkerewereld\\.nu|\n videos\\.weblib\\.re|\n videos\\.yesil\\.club|\n vids\\.roshless\\.me|\n vids\\.tekdmn\\.me|\n vidz\\.dou\\.bet|\n vod\\.lumikko\\.dev|\n vs\\.uniter\\.network|\n vulgarisation-informatique\\.fr|\n watch\\.breadtube\\.tv|\n watch\\.deranalyst\\.ch|\n watch\\.ignorance\\.eu|\n watch\\.krazy\\.party|\n watch\\.libertaria\\.space|\n watch\\.rt4mn\\.org|\n watch\\.softinio\\.com|\n watch\\.tubelab\\.video|\n web-fellow\\.de|\n webtv\\.vandoeuvre\\.net|\n wechill\\.space|\n wikileaks\\.video|\n wiwi\\.video|\n worldofvids\\.com|\n wwtube\\.net|\n www4\\.mir\\.inter21\\.net|\n www\\.birkeundnymphe\\.de|\n www\\.captain-german\\.com|\n www\\.wiki-tube\\.de|\n xxivproduction\\.video|\n xxx\\.noho\\.st|\n\n # from youtube-dl\n peertube\\.rainbowswingers\\.net|\n tube\\.stanisic\\.nl|\n peer\\.suiri\\.us|\n medias\\.libox\\.fr|\n videomensoif\\.ynh\\.fr|\n peertube\\.travelpandas\\.eu|\n peertube\\.rachetjay\\.fr|\n peertube\\.montecsys\\.fr|\n tube\\.eskuero\\.me|\n peer\\.tube|\n peertube\\.umeahackerspace\\.se|\n tube\\.nx-pod\\.de|\n video\\.monsieurbidouille\\.fr|\n tube\\.openalgeria\\.org|\n vid\\.lelux\\.fi|\n video\\.anormallostpod\\.ovh|\n tube\\.crapaud-fou\\.org|\n peertube\\.stemy\\.me|\n lostpod\\.space|\n exode\\.me|\n peertube\\.snargol\\.com|\n vis\\.ion\\.ovh|\n videosdulib\\.re|\n v\\.mbius\\.io|\n videos\\.judrey\\.eu|\n peertube\\.osureplayviewer\\.xyz|\n peertube\\.mathieufamily\\.ovh|\n www\\.videos-libr\\.es|\n fightforinfo\\.com|\n peertube\\.fediverse\\.ru|\n peertube\\.oiseauroch\\.fr|\n video\\.nesven\\.eu|\n v\\.bearvideo\\.win|\n video\\.qoto\\.org|\n justporn\\.cc|\n video\\.vny\\.fr|\n peervideo\\.club|\n tube\\.taker\\.fr|\n peertube\\.chantierlibre\\.org|\n tube\\.ipfixe\\.info|\n tube\\.kicou\\.info|\n tube\\.dodsorf\\.as|\n videobit\\.cc|\n video\\.yukari\\.moe|\n videos\\.elbinario\\.net|\n hkvideo\\.live|\n pt\\.tux\\.tf|\n www\\.hkvideo\\.live|\n FIGHTFORINFO\\.com|\n pt\\.765racing\\.com|\n peertube\\.gnumeria\\.eu\\.org|\n nordenmedia\\.com|\n peertube\\.co\\.uk|\n tube\\.darfweb\\.eu|\n tube\\.kalah-france\\.org|\n 0ch\\.in|\n vod\\.mochi\\.academy|\n film\\.node9\\.org|\n peertube\\.hatthieves\\.es|\n video\\.fitchfamily\\.org|\n peertube\\.ddns\\.net|\n video\\.ifuncle\\.kr|\n video\\.fdlibre\\.eu|\n tube\\.22decembre\\.eu|\n peertube\\.harmoniescreatives\\.com|\n tube\\.fabrigli\\.fr|\n video\\.thedwyers\\.co|\n video\\.bruitbruit\\.com|\n peertube\\.foxfam\\.club|\n peer\\.philoxweb\\.be|\n videos\\.bugs\\.social|\n peertube\\.malbert\\.xyz|\n peertube\\.bilange\\.ca|\n libretube\\.net|\n diytelevision\\.com|\n peertube\\.fedilab\\.app|\n libre\\.video|\n video\\.mstddntfdn\\.online|\n us\\.tv|\n peertube\\.sl-network\\.fr|\n peertube\\.dynlinux\\.io|\n peertube\\.david\\.durieux\\.family|\n peertube\\.linuxrocks\\.online|\n peerwatch\\.xyz|\n v\\.kretschmann\\.social|\n tube\\.otter\\.sh|\n yt\\.is\\.nota\\.live|\n tube\\.dragonpsi\\.xyz|\n peertube\\.boneheadmedia\\.com|\n videos\\.funkwhale\\.audio|\n watch\\.44con\\.com|\n peertube\\.gcaillaut\\.fr|\n peertube\\.icu|\n pony\\.tube|\n spacepub\\.space|\n tube\\.stbr\\.io|\n v\\.mom-gay\\.faith|\n tube\\.port0\\.xyz|\n peertube\\.simounet\\.net|\n play\\.jergefelt\\.se|\n peertube\\.zeteo\\.me|\n tube\\.danq\\.me|\n peertube\\.kerenon\\.com|\n tube\\.fab-l3\\.org|\n tube\\.calculate\\.social|\n peertube\\.mckillop\\.org|\n tube\\.netzspielplatz\\.de|\n vod\\.ksite\\.de|\n peertube\\.laas\\.fr|\n tube\\.govital\\.net|\n peertube\\.stephenson\\.cc|\n bistule\\.nohost\\.me|\n peertube\\.kajalinifi\\.de|\n video\\.ploud\\.jp|\n video\\.omniatv\\.com|\n peertube\\.ffs2play\\.fr|\n peertube\\.leboulaire\\.ovh|\n peertube\\.tronic-studio\\.com|\n peertube\\.public\\.cat|\n peertube\\.metalbanana\\.net|\n video\\.1000i100\\.fr|\n peertube\\.alter-nativ-voll\\.de|\n tube\\.pasa\\.tf|\n tube\\.worldofhauru\\.xyz|\n pt\\.kamp\\.site|\n peertube\\.teleassist\\.fr|\n videos\\.mleduc\\.xyz|\n conf\\.tube|\n media\\.privacyinternational\\.org|\n pt\\.forty-two\\.nl|\n video\\.halle-leaks\\.de|\n video\\.grosskopfgames\\.de|\n peertube\\.schaeferit\\.de|\n peertube\\.jackbot\\.fr|\n tube\\.extinctionrebellion\\.fr|\n peertube\\.f-si\\.org|\n video\\.subak\\.ovh|\n videos\\.koweb\\.fr|\n peertube\\.zergy\\.net|\n peertube\\.roflcopter\\.fr|\n peertube\\.floss-marketing-school\\.com|\n vloggers\\.social|\n peertube\\.iriseden\\.eu|\n videos\\.ubuntu-paris\\.org|\n peertube\\.mastodon\\.host|\n armstube\\.com|\n peertube\\.s2s\\.video|\n peertube\\.lol|\n tube\\.open-plug\\.eu|\n open\\.tube|\n peertube\\.ch|\n peertube\\.normandie-libre\\.fr|\n peertube\\.slat\\.org|\n video\\.lacaveatonton\\.ovh|\n peertube\\.uno|\n peertube\\.servebeer\\.com|\n peertube\\.fedi\\.quebec|\n tube\\.h3z\\.jp|\n tube\\.plus200\\.com|\n peertube\\.eric\\.ovh|\n tube\\.metadocs\\.cc|\n tube\\.unmondemeilleur\\.eu|\n gouttedeau\\.space|\n video\\.antirep\\.net|\n nrop\\.cant\\.at|\n tube\\.ksl-bmx\\.de|\n tube\\.plaf\\.fr|\n tube\\.tchncs\\.de|\n video\\.devinberg\\.com|\n hitchtube\\.fr|\n peertube\\.kosebamse\\.com|\n yunopeertube\\.myddns\\.me|\n peertube\\.varney\\.fr|\n peertube\\.anon-kenkai\\.com|\n tube\\.maiti\\.info|\n tubee\\.fr|\n videos\\.dinofly\\.com|\n toobnix\\.org|\n videotape\\.me|\n voca\\.tube|\n video\\.heromuster\\.com|\n video\\.lemediatv\\.fr|\n video\\.up\\.edu\\.ph|\n balafon\\.video|\n video\\.ivel\\.fr|\n thickrips\\.cloud|\n pt\\.laurentkruger\\.fr|\n video\\.monarch-pass\\.net|\n peertube\\.artica\\.center|\n video\\.alternanet\\.fr|\n indymotion\\.fr|\n fanvid\\.stopthatimp\\.net|\n video\\.farci\\.org|\n v\\.lesterpig\\.com|\n video\\.okaris\\.de|\n tube\\.pawelko\\.net|\n peertube\\.mablr\\.org|\n tube\\.fede\\.re|\n pytu\\.be|\n evertron\\.tv|\n devtube\\.dev-wiki\\.de|\n raptube\\.antipub\\.org|\n video\\.selea\\.se|\n peertube\\.mygaia\\.org|\n video\\.oh14\\.de|\n peertube\\.livingutopia\\.org|\n peertube\\.the-penguin\\.de|\n tube\\.thechangebook\\.org|\n tube\\.anjara\\.eu|\n pt\\.pube\\.tk|\n video\\.samedi\\.pm|\n mplayer\\.demouliere\\.eu|\n widemus\\.de|\n peertube\\.me|\n peertube\\.zapashcanon\\.fr|\n video\\.latavernedejohnjohn\\.fr|\n peertube\\.pcservice46\\.fr|\n peertube\\.mazzonetto\\.eu|\n video\\.irem\\.univ-paris-diderot\\.fr|\n video\\.livecchi\\.cloud|\n alttube\\.fr|\n video\\.coop\\.tools|\n video\\.cabane-libre\\.org|\n peertube\\.openstreetmap\\.fr|\n videos\\.alolise\\.org|\n irrsinn\\.video|\n video\\.antopie\\.org|\n scitech\\.video|\n tube2\\.nemsia\\.org|\n video\\.amic37\\.fr|\n peertube\\.freeforge\\.eu|\n video\\.arbitrarion\\.com|\n video\\.datsemultimedia\\.com|\n stoptrackingus\\.tv|\n peertube\\.ricostrongxxx\\.com|\n docker\\.videos\\.lecygnenoir\\.info|\n peertube\\.togart\\.de|\n tube\\.postblue\\.info|\n videos\\.domainepublic\\.net|\n peertube\\.cyber-tribal\\.com|\n video\\.gresille\\.org|\n peertube\\.dsmouse\\.net|\n cinema\\.yunohost\\.support|\n tube\\.theocevaer\\.fr|\n repro\\.video|\n tube\\.4aem\\.com|\n quaziinc\\.com|\n peertube\\.metawurst\\.space|\n videos\\.wakapo\\.com|\n video\\.ploud\\.fr|\n video\\.freeradical\\.zone|\n tube\\.valinor\\.fr|\n refuznik\\.video|\n pt\\.kircheneuenburg\\.de|\n peertube\\.asrun\\.eu|\n peertube\\.lagob\\.fr|\n videos\\.side-ways\\.net|\n 91video\\.online|\n video\\.valme\\.io|\n video\\.taboulisme\\.com|\n videos-libr\\.es|\n tv\\.mooh\\.fr|\n nuage\\.acostey\\.fr|\n video\\.monsieur-a\\.fr|\n peertube\\.librelois\\.fr|\n videos\\.pair2jeux\\.tube|\n videos\\.pueseso\\.club|\n peer\\.mathdacloud\\.ovh|\n media\\.assassinate-you\\.net|\n vidcommons\\.org|\n ptube\\.rousset\\.nom\\.fr|\n tube\\.cyano\\.at|\n videos\\.squat\\.net|\n video\\.iphodase\\.fr|\n peertube\\.makotoworkshop\\.org|\n peertube\\.serveur\\.slv-valbonne\\.fr|\n vault\\.mle\\.party|\n hostyour\\.tv|\n videos\\.hack2g2\\.fr|\n libre\\.tube|\n pire\\.artisanlogiciel\\.net|\n videos\\.numerique-en-commun\\.fr|\n video\\.netsyms\\.com|\n video\\.die-partei\\.social|\n video\\.writeas\\.org|\n peertube\\.swarm\\.solvingmaz\\.es|\n tube\\.pericoloso\\.ovh|\n watching\\.cypherpunk\\.observer|\n videos\\.adhocmusic\\.com|\n tube\\.rfc1149\\.net|\n peertube\\.librelabucm\\.org|\n videos\\.numericoop\\.fr|\n peertube\\.koehn\\.com|\n peertube\\.anarchmusicall\\.net|\n tube\\.kampftoast\\.de|\n vid\\.y-y\\.li|\n peertube\\.xtenz\\.xyz|\n diode\\.zone|\n tube\\.egf\\.mn|\n peertube\\.nomagic\\.uk|\n visionon\\.tv|\n videos\\.koumoul\\.com|\n video\\.rastapuls\\.com|\n video\\.mantlepro\\.com|\n video\\.deadsuperhero\\.com|\n peertube\\.musicstudio\\.pro|\n peertube\\.we-keys\\.fr|\n artitube\\.artifaille\\.fr|\n peertube\\.ethernia\\.net|\n tube\\.midov\\.pl|\n peertube\\.fr|\n watch\\.snoot\\.tube|\n peertube\\.donnadieu\\.fr|\n argos\\.aquilenet\\.fr|\n tube\\.nemsia\\.org|\n tube\\.bruniau\\.net|\n videos\\.darckoune\\.moe|\n tube\\.traydent\\.info|\n dev\\.videos\\.lecygnenoir\\.info|\n peertube\\.nayya\\.org|\n peertube\\.live|\n peertube\\.mofgao\\.space|\n video\\.lequerrec\\.eu|\n peertube\\.amicale\\.net|\n aperi\\.tube|\n tube\\.ac-lyon\\.fr|\n video\\.lw1\\.at|\n www\\.yiny\\.org|\n videos\\.pofilo\\.fr|\n tube\\.lou\\.lt|\n choob\\.h\\.etbus\\.ch|\n tube\\.hoga\\.fr|\n peertube\\.heberge\\.fr|\n video\\.obermui\\.de|\n videos\\.cloudfrancois\\.fr|\n betamax\\.video|\n video\\.typica\\.us|\n tube\\.piweb\\.be|\n video\\.blender\\.org|\n peertube\\.cat|\n tube\\.kdy\\.ch|\n pe\\.ertu\\.be|\n peertube\\.social|\n videos\\.lescommuns\\.org|\n tv\\.datamol\\.org|\n videonaute\\.fr|\n dialup\\.express|\n peertube\\.nogafa\\.org|\n megatube\\.lilomoino\\.fr|\n peertube\\.tamanoir\\.foucry\\.net|\n peertube\\.devosi\\.org|\n peertube\\.1312\\.media|\n tube\\.bootlicker\\.party|\n skeptikon\\.fr|\n video\\.blueline\\.mg|\n tube\\.homecomputing\\.fr|\n tube\\.ouahpiti\\.info|\n video\\.tedomum\\.net|\n video\\.g3l\\.org|\n fontube\\.fr|\n peertube\\.gaialabs\\.ch|\n tube\\.kher\\.nl|\n peertube\\.qtg\\.fr|\n video\\.migennes\\.net|\n tube\\.p2p\\.legal|\n troll\\.tv|\n videos\\.iut-orsay\\.fr|\n peertube\\.solidev\\.net|\n videos\\.cemea\\.org|\n video\\.passageenseine\\.fr|\n videos\\.festivalparminous\\.org|\n peertube\\.touhoppai\\.moe|\n sikke\\.fi|\n peer\\.hostux\\.social|\n share\\.tube|\n peertube\\.walkingmountains\\.fr|\n videos\\.benpro\\.fr|\n peertube\\.parleur\\.net|\n peertube\\.heraut\\.eu|\n tube\\.aquilenet\\.fr|\n peertube\\.gegeweb\\.eu|\n framatube\\.org|\n thinkerview\\.video|\n tube\\.conferences-gesticulees\\.net|\n peertube\\.datagueule\\.tv|\n video\\.lqdn\\.fr|\n tube\\.mochi\\.academy|\n media\\.zat\\.im|\n video\\.colibris-outilslibres\\.org|\n tube\\.svnet\\.fr|\n peertube\\.video|\n peertube2\\.cpy\\.re|\n peertube3\\.cpy\\.re|\n videos\\.tcit\\.fr|\n peertube\\.cpy\\.re|\n canard\\.tube\n ))/(?:videos/(?:watch|embed)|api/v\\d/videos|w)/\n )\n (?P<id>[\\da-zA-Z]{22}|[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12})\n '
class PeerTubePlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.peertube'
_VALID_URL = '(?x)\n https?://(?P<host>(?:\n # Taken from https://instances.joinpeertube.org/instances\n 40two\\.tube|\n a\\.metube\\.ch|\n advtv\\.ml|\n algorithmic\\.tv|\n alimulama\\.com|\n arcana\\.fun|\n archive\\.vidicon\\.org|\n artefac-paris\\.tv|\n auf1\\.eu|\n battlepenguin\\.video|\n beertube\\.epgn\\.ch|\n befree\\.nohost\\.me|\n bideoak\\.argia\\.eus|\n birkeundnymphe\\.de|\n bitcointv\\.com|\n cattube\\.org|\n clap\\.nerv-project\\.eu|\n climatejustice\\.video|\n comf\\.tube|\n conspiracydistillery\\.com|\n darkvapor\\.nohost\\.me|\n daschauher\\.aksel\\.rocks|\n digitalcourage\\.video|\n dreiecksnebel\\.alex-detsch\\.de|\n eduvid\\.org|\n evangelisch\\.video|\n exo\\.tube|\n fair\\.tube|\n fediverse\\.tv|\n film\\.k-prod\\.fr|\n flim\\.txmn\\.tk|\n fotogramas\\.politicaconciencia\\.org|\n ftsi\\.ru|\n gary\\.vger\\.cloud|\n graeber\\.video|\n greatview\\.video|\n grypstube\\.uni-greifswald\\.de|\n highvoltage\\.tv|\n hpstube\\.fr|\n htp\\.live|\n hyperreal\\.tube|\n juggling\\.digital|\n kino\\.kompot\\.si|\n kino\\.schuerz\\.at|\n kinowolnosc\\.pl|\n kirche\\.peertube-host\\.de|\n kodcast\\.com|\n kolektiva\\.media|\n kraut\\.zone|\n kumi\\.tube|\n lastbreach\\.tv|\n lepetitmayennais\\.fr\\.nf|\n lexx\\.impa\\.me|\n libertynode\\.tv|\n libra\\.syntazia\\.org|\n libremedia\\.video|\n live\\.libratoi\\.org|\n live\\.nanao\\.moe|\n live\\.toobnix\\.org|\n livegram\\.net|\n lolitube\\.freedomchan\\.moe|\n lucarne\\.balsamine\\.be|\n maindreieck-tv\\.de|\n mani\\.tube|\n manicphase\\.me|\n media\\.gzevd\\.de|\n media\\.inno3\\.cricket|\n media\\.kaitaia\\.life|\n media\\.krashboyz\\.org|\n media\\.over-world\\.org|\n media\\.skewed\\.de|\n media\\.undeadnetwork\\.de|\n medias\\.pingbase\\.net|\n melsungen\\.peertube-host\\.de|\n mirametube\\.fr|\n mojotube\\.net|\n monplaisirtube\\.ddns\\.net|\n mountaintown\\.video|\n my\\.bunny\\.cafe|\n myfreetube\\.de|\n mytube\\.kn-cloud\\.de|\n mytube\\.madzel\\.de|\n myworkoutarenapeertube\\.cf|\n nanawel-peertube\\.dyndns\\.org|\n nastub\\.cz|\n offenes\\.tv|\n orgdup\\.media|\n ovaltube\\.codinglab\\.ch|\n p2ptv\\.ru|\n p\\.eertu\\.be|\n p\\.lu|\n peer\\.azurs\\.fr|\n peertube1\\.zeteo\\.me|\n peertube\\.020\\.pl|\n peertube\\.0x5e\\.eu|\n peertube\\.alpharius\\.io|\n peertube\\.am-networks\\.fr|\n peertube\\.anduin\\.net|\n peertube\\.anzui\\.dev|\n peertube\\.arbleizez\\.bzh|\n peertube\\.art3mis\\.de|\n peertube\\.atilla\\.org|\n peertube\\.atsuchan\\.page|\n peertube\\.aukfood\\.net|\n peertube\\.aventer\\.biz|\n peertube\\.b38\\.rural-it\\.org|\n peertube\\.beeldengeluid\\.nl|\n peertube\\.be|\n peertube\\.bgzashtita\\.es|\n peertube\\.bitsandlinux\\.com|\n peertube\\.biz|\n peertube\\.boba\\.best|\n peertube\\.br0\\.fr|\n peertube\\.bridaahost\\.ynh\\.fr|\n peertube\\.bubbletea\\.dev|\n peertube\\.bubuit\\.net|\n peertube\\.cabaal\\.net|\n peertube\\.cats-home\\.net|\n peertube\\.chemnitz\\.freifunk\\.net|\n peertube\\.chevro\\.fr|\n peertube\\.chrisspiegl\\.com|\n peertube\\.chtisurel\\.net|\n peertube\\.cipherbliss\\.com|\n peertube\\.cloud\\.sans\\.pub|\n peertube\\.cpge-brizeux\\.fr|\n peertube\\.ctseuro\\.com|\n peertube\\.cuatrolibertades\\.org|\n peertube\\.cybercirujas\\.club|\n peertube\\.cythin\\.com|\n peertube\\.davigge\\.com|\n peertube\\.dc\\.pini\\.fr|\n peertube\\.debian\\.social|\n peertube\\.demonix\\.fr|\n peertube\\.designersethiques\\.org|\n peertube\\.desmu\\.fr|\n peertube\\.devloprog\\.org|\n peertube\\.devol\\.it|\n peertube\\.dtmf\\.ca|\n peertube\\.ecologie\\.bzh|\n peertube\\.eu\\.org|\n peertube\\.european-pirates\\.eu|\n peertube\\.euskarabildua\\.eus|\n peertube\\.fenarinarsa\\.com|\n peertube\\.fomin\\.site|\n peertube\\.forsud\\.be|\n peertube\\.francoispelletier\\.org|\n peertube\\.freenet\\.ru|\n peertube\\.freetalklive\\.com|\n peertube\\.functional\\.cafe|\n peertube\\.gardeludwig\\.fr|\n peertube\\.gargantia\\.fr|\n peertube\\.gcfamily\\.fr|\n peertube\\.genma\\.fr|\n peertube\\.get-racing\\.de|\n peertube\\.gidikroon\\.eu|\n peertube\\.gruezishop\\.ch|\n peertube\\.habets\\.house|\n peertube\\.hackerfraternity\\.org|\n peertube\\.ichigo\\.everydayimshuflin\\.com|\n peertube\\.ignifi\\.me|\n peertube\\.inapurna\\.org|\n peertube\\.informaction\\.info|\n peertube\\.interhop\\.org|\n peertube\\.iselfhost\\.com|\n peertube\\.it|\n peertube\\.jensdiemer\\.de|\n peertube\\.joffreyverd\\.fr|\n peertube\\.kalua\\.im|\n peertube\\.kathryl\\.fr|\n peertube\\.keazilla\\.net|\n peertube\\.klaewyss\\.fr|\n peertube\\.kodcast\\.com|\n peertube\\.kx\\.studio|\n peertube\\.lagvoid\\.com|\n peertube\\.lavallee\\.tech|\n peertube\\.le5emeaxe\\.fr|\n peertube\\.lestutosdeprocessus\\.fr|\n peertube\\.librenet\\.co\\.za|\n peertube\\.logilab\\.fr|\n peertube\\.louisematic\\.site|\n peertube\\.luckow\\.org|\n peertube\\.luga\\.at|\n peertube\\.lyceeconnecte\\.fr|\n peertube\\.manalejandro\\.com|\n peertube\\.marud\\.fr|\n peertube\\.mattone\\.net|\n peertube\\.maxweiss\\.io|\n peertube\\.monlycee\\.net|\n peertube\\.mxinfo\\.fr|\n peertube\\.myrasp\\.eu|\n peertube\\.nebelcloud\\.de|\n peertube\\.netzbegruenung\\.de|\n peertube\\.newsocial\\.tech|\n peertube\\.nicolastissot\\.fr|\n peertube\\.nz|\n peertube\\.offerman\\.com|\n peertube\\.opencloud\\.lu|\n peertube\\.orthus\\.link|\n peertube\\.patapouf\\.xyz|\n peertube\\.pi2\\.dev|\n peertube\\.plataformess\\.org|\n peertube\\.pl|\n peertube\\.portaesgnos\\.org|\n peertube\\.r2\\.enst\\.fr|\n peertube\\.r5c3\\.fr|\n peertube\\.radres\\.xyz|\n peertube\\.red|\n peertube\\.robonomics\\.network|\n peertube\\.rtnkv\\.cloud|\n peertube\\.runfox\\.tk|\n peertube\\.satoshishop\\.de|\n peertube\\.scic-tetris\\.org|\n peertube\\.securitymadein\\.lu|\n peertube\\.semweb\\.pro|\n peertube\\.social\\.my-wan\\.de|\n peertube\\.soykaf\\.org|\n peertube\\.stefofficiel\\.me|\n peertube\\.stream|\n peertube\\.su|\n peertube\\.swrs\\.net|\n peertube\\.takeko\\.cyou|\n peertube\\.tangentfox\\.com|\n peertube\\.taxinachtegel\\.de|\n peertube\\.thenewoil\\.xyz|\n peertube\\.ti-fr\\.com|\n peertube\\.tiennot\\.net|\n peertube\\.troback\\.com|\n peertube\\.tspu\\.edu\\.ru|\n peertube\\.tux\\.ovh|\n peertube\\.tv|\n peertube\\.tweb\\.tv|\n peertube\\.ucy\\.de|\n peertube\\.underworld\\.fr|\n peertube\\.us\\.to|\n peertube\\.ventresmous\\.fr|\n peertube\\.vlaki\\.cz|\n peertube\\.w\\.utnw\\.de|\n peertube\\.westring\\.digital|\n peertube\\.xwiki\\.com|\n peertube\\.zoz-serv\\.org|\n peervideo\\.ru|\n periscope\\.numenaute\\.org|\n perron-tube\\.de|\n petitlutinartube\\.fr|\n phijkchu\\.com|\n pierre\\.tube|\n piraten\\.space|\n play\\.rosano\\.ca|\n player\\.ojamajo\\.moe|\n plextube\\.nl|\n pocketnetpeertube1\\.nohost\\.me|\n pocketnetpeertube3\\.nohost\\.me|\n pocketnetpeertube4\\.nohost\\.me|\n pocketnetpeertube5\\.nohost\\.me|\n pocketnetpeertube6\\.nohost\\.me|\n pt\\.24-7\\.ro|\n pt\\.apathy\\.top|\n pt\\.diaspodon\\.fr|\n pt\\.fedi\\.tech|\n pt\\.maciej\\.website|\n ptb\\.lunarviews\\.net|\n ptmir1\\.inter21\\.net|\n ptmir2\\.inter21\\.net|\n ptmir3\\.inter21\\.net|\n ptmir4\\.inter21\\.net|\n ptmir5\\.inter21\\.net|\n ptube\\.horsentiers\\.fr|\n ptube\\.xmanifesto\\.club|\n queermotion\\.org|\n re-wizja\\.re-medium\\.com|\n regarder\\.sans\\.pub|\n ruraletv\\.ovh|\n s1\\.gegenstimme\\.tv|\n s2\\.veezee\\.tube|\n sdmtube\\.fr|\n sender-fm\\.veezee\\.tube|\n serv1\\.wiki-tube\\.de|\n serv3\\.wiki-tube\\.de|\n sickstream\\.net|\n sleepy\\.tube|\n sovran\\.video|\n spectra\\.video|\n stream\\.elven\\.pw|\n stream\\.k-prod\\.fr|\n stream\\.shahab\\.nohost\\.me|\n streamsource\\.video|\n studios\\.racer159\\.com|\n testtube\\.florimond\\.eu|\n tgi\\.hosted\\.spacebear\\.ee|\n thaitube\\.in\\.th|\n the\\.jokertv\\.eu|\n theater\\.ethernia\\.net|\n thecool\\.tube|\n tilvids\\.com|\n toob\\.bub\\.org|\n tpaw\\.video|\n truetube\\.media|\n tuba\\.lhub\\.pl|\n tube-aix-marseille\\.beta\\.education\\.fr|\n tube-amiens\\.beta\\.education\\.fr|\n tube-besancon\\.beta\\.education\\.fr|\n tube-bordeaux\\.beta\\.education\\.fr|\n tube-clermont-ferrand\\.beta\\.education\\.fr|\n tube-corse\\.beta\\.education\\.fr|\n tube-creteil\\.beta\\.education\\.fr|\n tube-dijon\\.beta\\.education\\.fr|\n tube-education\\.beta\\.education\\.fr|\n tube-grenoble\\.beta\\.education\\.fr|\n tube-lille\\.beta\\.education\\.fr|\n tube-limoges\\.beta\\.education\\.fr|\n tube-montpellier\\.beta\\.education\\.fr|\n tube-nancy\\.beta\\.education\\.fr|\n tube-nantes\\.beta\\.education\\.fr|\n tube-nice\\.beta\\.education\\.fr|\n tube-normandie\\.beta\\.education\\.fr|\n tube-orleans-tours\\.beta\\.education\\.fr|\n tube-outremer\\.beta\\.education\\.fr|\n tube-paris\\.beta\\.education\\.fr|\n tube-poitiers\\.beta\\.education\\.fr|\n tube-reims\\.beta\\.education\\.fr|\n tube-rennes\\.beta\\.education\\.fr|\n tube-strasbourg\\.beta\\.education\\.fr|\n tube-toulouse\\.beta\\.education\\.fr|\n tube-versailles\\.beta\\.education\\.fr|\n tube1\\.it\\.tuwien\\.ac\\.at|\n tube\\.abolivier\\.bzh|\n tube\\.ac-amiens\\.fr|\n tube\\.aerztefueraufklaerung\\.de|\n tube\\.alexx\\.ml|\n tube\\.amic37\\.fr|\n tube\\.anufrij\\.de|\n tube\\.apolut\\.net|\n tube\\.arkhalabs\\.io|\n tube\\.arthack\\.nz|\n tube\\.as211696\\.net|\n tube\\.avensio\\.de|\n tube\\.azbyka\\.ru|\n tube\\.azkware\\.net|\n tube\\.bachaner\\.fr|\n tube\\.bmesh\\.org|\n tube\\.borked\\.host|\n tube\\.bstly\\.de|\n tube\\.chaoszone\\.tv|\n tube\\.chatelet\\.ovh|\n tube\\.cloud-libre\\.eu|\n tube\\.cms\\.garden|\n tube\\.cowfee\\.moe|\n tube\\.cryptography\\.dog|\n tube\\.darknight-coffee\\.org|\n tube\\.dev\\.lhub\\.pl|\n tube\\.distrilab\\.fr|\n tube\\.dsocialize\\.net|\n tube\\.ebin\\.club|\n tube\\.fdn\\.fr|\n tube\\.florimond\\.eu|\n tube\\.foxarmy\\.ml|\n tube\\.foxden\\.party|\n tube\\.frischesicht\\.de|\n tube\\.futuretic\\.fr|\n tube\\.gnous\\.eu|\n tube\\.grap\\.coop|\n tube\\.graz\\.social|\n tube\\.grin\\.hu|\n tube\\.hackerscop\\.org|\n tube\\.hordearii\\.fr|\n tube\\.jeena\\.net|\n tube\\.kai-stuht\\.com|\n tube\\.kockatoo\\.org|\n tube\\.kotur\\.org|\n tube\\.lacaveatonton\\.ovh|\n tube\\.linkse\\.media|\n tube\\.lokad\\.com|\n tube\\.lucie-philou\\.com|\n tube\\.melonbread\\.xyz|\n tube\\.mfraters\\.net|\n tube\\.motuhake\\.xyz|\n tube\\.mrbesen\\.de|\n tube\\.nah\\.re|\n tube\\.nchoco\\.net|\n tube\\.novg\\.net|\n tube\\.nox-rhea\\.org|\n tube\\.nuagelibre\\.fr|\n tube\\.nx12\\.net|\n tube\\.octaplex\\.net|\n tube\\.odat\\.xyz|\n tube\\.oisux\\.org|\n tube\\.opportunis\\.me|\n tube\\.org\\.il|\n tube\\.ortion\\.xyz|\n tube\\.others\\.social|\n tube\\.picasoft\\.net|\n tube\\.plomlompom\\.com|\n tube\\.pmj\\.rocks|\n tube\\.portes-imaginaire\\.org|\n tube\\.pyngu\\.com|\n tube\\.rebellion\\.global|\n tube\\.rhythms-of-resistance\\.org|\n tube\\.rita\\.moe|\n tube\\.rsi\\.cnr\\.it|\n tube\\.s1gm4\\.eu|\n tube\\.saumon\\.io|\n tube\\.schleuss\\.online|\n tube\\.schule\\.social|\n tube\\.seditio\\.fr|\n tube\\.shanti\\.cafe|\n tube\\.shela\\.nu|\n tube\\.skrep\\.in|\n tube\\.sp-codes\\.de|\n tube\\.sp4ke\\.com|\n tube\\.superseriousbusiness\\.org|\n tube\\.systest\\.eu|\n tube\\.tappret\\.fr|\n tube\\.tardis\\.world|\n tube\\.toontoet\\.nl|\n tube\\.tpshd\\.de|\n tube\\.troopers\\.agency|\n tube\\.tylerdavis\\.xyz|\n tube\\.undernet\\.uy|\n tube\\.vigilian-consulting\\.nl|\n tube\\.vraphim\\.com|\n tube\\.wehost\\.lgbt|\n tube\\.wien\\.rocks|\n tube\\.wolfe\\.casa|\n tube\\.xd0\\.de|\n tube\\.xy-space\\.de|\n tube\\.yapbreak\\.fr|\n tubedu\\.org|\n tubes\\.jodh\\.us|\n tuktube\\.com|\n turkum\\.me|\n tututu\\.tube|\n tuvideo\\.encanarias\\.info|\n tv1\\.cocu\\.cc|\n tv1\\.gomntu\\.space|\n tv2\\.cocu\\.cc|\n tv\\.adn\\.life|\n tv\\.atmx\\.ca|\n tv\\.bitma\\.st|\n tv\\.generallyrubbish\\.net\\.au|\n tv\\.lumbung\\.space|\n tv\\.mattchristiansenmedia\\.com|\n tv\\.netwhood\\.online|\n tv\\.neue\\.city|\n tv\\.piejacker\\.net|\n tv\\.pirateradio\\.social|\n tv\\.undersco\\.re|\n tvox\\.ru|\n twctube\\.twc-zone\\.eu|\n unfilter\\.tube|\n v\\.basspistol\\.org|\n v\\.kisombrella\\.top|\n v\\.lastorder\\.xyz|\n v\\.lor\\.sh|\n v\\.phreedom\\.club|\n v\\.sil\\.sh|\n v\\.szy\\.io|\n v\\.xxxapex\\.com|\n veezee\\.tube|\n vid\\.dascoyote\\.xyz|\n vid\\.garwood\\.io|\n vid\\.ncrypt\\.at|\n vid\\.pravdastalina\\.info|\n vid\\.qorg11\\.net|\n vid\\.rajeshtaylor\\.com|\n vid\\.samtripoli\\.com|\n vid\\.werefox\\.dev|\n vid\\.wildeboer\\.net|\n video-cave-v2\\.de|\n video\\.076\\.ne\\.jp|\n video\\.1146\\.nohost\\.me|\n video\\.altertek\\.org|\n video\\.anartist\\.org|\n video\\.apps\\.thedoodleproject\\.net|\n video\\.artist\\.cx|\n video\\.asgardius\\.company|\n video\\.balsillie\\.net|\n video\\.bards\\.online|\n video\\.binarydad\\.com|\n video\\.blast-info\\.fr|\n video\\.catgirl\\.biz|\n video\\.cigliola\\.com|\n video\\.cm-en-transition\\.fr|\n video\\.cnt\\.social|\n video\\.coales\\.co|\n video\\.codingfield\\.com|\n video\\.comptoir\\.net|\n video\\.comune\\.trento\\.it|\n video\\.cpn\\.so|\n video\\.csc49\\.fr|\n video\\.cybre\\.town|\n video\\.demokratischer-sommer\\.de|\n video\\.discord-insoumis\\.fr|\n video\\.dolphincastle\\.com|\n video\\.dresden\\.network|\n video\\.ecole-89\\.com|\n video\\.elgrillolibertario\\.org|\n video\\.emergeheart\\.info|\n video\\.eradicatinglove\\.xyz|\n video\\.ethantheenigma\\.me|\n video\\.exodus-privacy\\.eu\\.org|\n video\\.fbxl\\.net|\n video\\.fhtagn\\.org|\n video\\.greenmycity\\.eu|\n video\\.guerredeclasse\\.fr|\n video\\.gyt\\.is|\n video\\.hackers\\.town|\n video\\.hardlimit\\.com|\n video\\.hooli\\.co|\n video\\.igem\\.org|\n video\\.internet-czas-dzialac\\.pl|\n video\\.islameye\\.com|\n video\\.kicik\\.fr|\n video\\.kuba-orlik\\.name|\n video\\.kyushojitsu\\.ca|\n video\\.lavolte\\.net|\n video\\.lespoesiesdheloise\\.fr|\n video\\.liberta\\.vip|\n video\\.liege\\.bike|\n video\\.linc\\.systems|\n video\\.linux\\.it|\n video\\.linuxtrent\\.it|\n video\\.lokal\\.social|\n video\\.lono\\.space|\n video\\.lunasqu\\.ee|\n video\\.lundi\\.am|\n video\\.marcorennmaus\\.de|\n video\\.mass-trespass\\.uk|\n video\\.mugoreve\\.fr|\n video\\.mundodesconocido\\.com|\n video\\.mycrowd\\.ca|\n video\\.nogafam\\.es|\n video\\.odayacres\\.farm|\n video\\.ozgurkon\\.org|\n video\\.p1ng0ut\\.social|\n video\\.p3x\\.de|\n video\\.pcf\\.fr|\n video\\.pony\\.gallery|\n video\\.potate\\.space|\n video\\.pourpenser\\.pro|\n video\\.progressiv\\.dev|\n video\\.resolutions\\.it|\n video\\.rw501\\.de|\n video\\.screamer\\.wiki|\n video\\.sdm-tools\\.net|\n video\\.sftblw\\.moe|\n video\\.shitposter\\.club|\n video\\.skyn3t\\.in|\n video\\.soi\\.ch|\n video\\.stuartbrand\\.co\\.uk|\n video\\.thinkof\\.name|\n video\\.toot\\.pt|\n video\\.triplea\\.fr|\n video\\.turbo\\.chat|\n video\\.vaku\\.org\\.ua|\n video\\.veloma\\.org|\n video\\.violoncello\\.ch|\n video\\.wilkie\\.how|\n video\\.wsf2021\\.info|\n videorelay\\.co|\n videos-passages\\.huma-num\\.fr|\n videos\\.3d-wolf\\.com|\n videos\\.ahp-numerique\\.fr|\n videos\\.alexandrebadalo\\.pt|\n videos\\.archigny\\.net|\n videos\\.benjaminbrady\\.ie|\n videos\\.buceoluegoexisto\\.com|\n videos\\.capas\\.se|\n videos\\.casually\\.cat|\n videos\\.cloudron\\.io|\n videos\\.coletivos\\.org|\n videos\\.danksquad\\.org|\n videos\\.denshi\\.live|\n videos\\.fromouter\\.space|\n videos\\.fsci\\.in|\n videos\\.globenet\\.org|\n videos\\.hauspie\\.fr|\n videos\\.hush\\.is|\n videos\\.john-livingston\\.fr|\n videos\\.jordanwarne\\.xyz|\n videos\\.lavoixdessansvoix\\.org|\n videos\\.leslionsfloorball\\.fr|\n videos\\.lucero\\.top|\n videos\\.martyn\\.berlin|\n videos\\.mastodont\\.cat|\n videos\\.monstro1\\.com|\n videos\\.npo\\.city|\n videos\\.optoutpod\\.com|\n videos\\.petch\\.rocks|\n videos\\.pzelawski\\.xyz|\n videos\\.rampin\\.org|\n videos\\.scanlines\\.xyz|\n videos\\.shmalls\\.pw|\n videos\\.sibear\\.fr|\n videos\\.stadtfabrikanten\\.org|\n videos\\.tankernn\\.eu|\n videos\\.testimonia\\.org|\n videos\\.thisishowidontdisappear\\.com|\n videos\\.traumaheilung\\.net|\n videos\\.trom\\.tf|\n videos\\.wakkerewereld\\.nu|\n videos\\.weblib\\.re|\n videos\\.yesil\\.club|\n vids\\.roshless\\.me|\n vids\\.tekdmn\\.me|\n vidz\\.dou\\.bet|\n vod\\.lumikko\\.dev|\n vs\\.uniter\\.network|\n vulgarisation-informatique\\.fr|\n watch\\.breadtube\\.tv|\n watch\\.deranalyst\\.ch|\n watch\\.ignorance\\.eu|\n watch\\.krazy\\.party|\n watch\\.libertaria\\.space|\n watch\\.rt4mn\\.org|\n watch\\.softinio\\.com|\n watch\\.tubelab\\.video|\n web-fellow\\.de|\n webtv\\.vandoeuvre\\.net|\n wechill\\.space|\n wikileaks\\.video|\n wiwi\\.video|\n worldofvids\\.com|\n wwtube\\.net|\n www4\\.mir\\.inter21\\.net|\n www\\.birkeundnymphe\\.de|\n www\\.captain-german\\.com|\n www\\.wiki-tube\\.de|\n xxivproduction\\.video|\n xxx\\.noho\\.st|\n\n # from youtube-dl\n peertube\\.rainbowswingers\\.net|\n tube\\.stanisic\\.nl|\n peer\\.suiri\\.us|\n medias\\.libox\\.fr|\n videomensoif\\.ynh\\.fr|\n peertube\\.travelpandas\\.eu|\n peertube\\.rachetjay\\.fr|\n peertube\\.montecsys\\.fr|\n tube\\.eskuero\\.me|\n peer\\.tube|\n peertube\\.umeahackerspace\\.se|\n tube\\.nx-pod\\.de|\n video\\.monsieurbidouille\\.fr|\n tube\\.openalgeria\\.org|\n vid\\.lelux\\.fi|\n video\\.anormallostpod\\.ovh|\n tube\\.crapaud-fou\\.org|\n peertube\\.stemy\\.me|\n lostpod\\.space|\n exode\\.me|\n peertube\\.snargol\\.com|\n vis\\.ion\\.ovh|\n videosdulib\\.re|\n v\\.mbius\\.io|\n videos\\.judrey\\.eu|\n peertube\\.osureplayviewer\\.xyz|\n peertube\\.mathieufamily\\.ovh|\n www\\.videos-libr\\.es|\n fightforinfo\\.com|\n peertube\\.fediverse\\.ru|\n peertube\\.oiseauroch\\.fr|\n video\\.nesven\\.eu|\n v\\.bearvideo\\.win|\n video\\.qoto\\.org|\n justporn\\.cc|\n video\\.vny\\.fr|\n peervideo\\.club|\n tube\\.taker\\.fr|\n peertube\\.chantierlibre\\.org|\n tube\\.ipfixe\\.info|\n tube\\.kicou\\.info|\n tube\\.dodsorf\\.as|\n videobit\\.cc|\n video\\.yukari\\.moe|\n videos\\.elbinario\\.net|\n hkvideo\\.live|\n pt\\.tux\\.tf|\n www\\.hkvideo\\.live|\n FIGHTFORINFO\\.com|\n pt\\.765racing\\.com|\n peertube\\.gnumeria\\.eu\\.org|\n nordenmedia\\.com|\n peertube\\.co\\.uk|\n tube\\.darfweb\\.eu|\n tube\\.kalah-france\\.org|\n 0ch\\.in|\n vod\\.mochi\\.academy|\n film\\.node9\\.org|\n peertube\\.hatthieves\\.es|\n video\\.fitchfamily\\.org|\n peertube\\.ddns\\.net|\n video\\.ifuncle\\.kr|\n video\\.fdlibre\\.eu|\n tube\\.22decembre\\.eu|\n peertube\\.harmoniescreatives\\.com|\n tube\\.fabrigli\\.fr|\n video\\.thedwyers\\.co|\n video\\.bruitbruit\\.com|\n peertube\\.foxfam\\.club|\n peer\\.philoxweb\\.be|\n videos\\.bugs\\.social|\n peertube\\.malbert\\.xyz|\n peertube\\.bilange\\.ca|\n libretube\\.net|\n diytelevision\\.com|\n peertube\\.fedilab\\.app|\n libre\\.video|\n video\\.mstddntfdn\\.online|\n us\\.tv|\n peertube\\.sl-network\\.fr|\n peertube\\.dynlinux\\.io|\n peertube\\.david\\.durieux\\.family|\n peertube\\.linuxrocks\\.online|\n peerwatch\\.xyz|\n v\\.kretschmann\\.social|\n tube\\.otter\\.sh|\n yt\\.is\\.nota\\.live|\n tube\\.dragonpsi\\.xyz|\n peertube\\.boneheadmedia\\.com|\n videos\\.funkwhale\\.audio|\n watch\\.44con\\.com|\n peertube\\.gcaillaut\\.fr|\n peertube\\.icu|\n pony\\.tube|\n spacepub\\.space|\n tube\\.stbr\\.io|\n v\\.mom-gay\\.faith|\n tube\\.port0\\.xyz|\n peertube\\.simounet\\.net|\n play\\.jergefelt\\.se|\n peertube\\.zeteo\\.me|\n tube\\.danq\\.me|\n peertube\\.kerenon\\.com|\n tube\\.fab-l3\\.org|\n tube\\.calculate\\.social|\n peertube\\.mckillop\\.org|\n tube\\.netzspielplatz\\.de|\n vod\\.ksite\\.de|\n peertube\\.laas\\.fr|\n tube\\.govital\\.net|\n peertube\\.stephenson\\.cc|\n bistule\\.nohost\\.me|\n peertube\\.kajalinifi\\.de|\n video\\.ploud\\.jp|\n video\\.omniatv\\.com|\n peertube\\.ffs2play\\.fr|\n peertube\\.leboulaire\\.ovh|\n peertube\\.tronic-studio\\.com|\n peertube\\.public\\.cat|\n peertube\\.metalbanana\\.net|\n video\\.1000i100\\.fr|\n peertube\\.alter-nativ-voll\\.de|\n tube\\.pasa\\.tf|\n tube\\.worldofhauru\\.xyz|\n pt\\.kamp\\.site|\n peertube\\.teleassist\\.fr|\n videos\\.mleduc\\.xyz|\n conf\\.tube|\n media\\.privacyinternational\\.org|\n pt\\.forty-two\\.nl|\n video\\.halle-leaks\\.de|\n video\\.grosskopfgames\\.de|\n peertube\\.schaeferit\\.de|\n peertube\\.jackbot\\.fr|\n tube\\.extinctionrebellion\\.fr|\n peertube\\.f-si\\.org|\n video\\.subak\\.ovh|\n videos\\.koweb\\.fr|\n peertube\\.zergy\\.net|\n peertube\\.roflcopter\\.fr|\n peertube\\.floss-marketing-school\\.com|\n vloggers\\.social|\n peertube\\.iriseden\\.eu|\n videos\\.ubuntu-paris\\.org|\n peertube\\.mastodon\\.host|\n armstube\\.com|\n peertube\\.s2s\\.video|\n peertube\\.lol|\n tube\\.open-plug\\.eu|\n open\\.tube|\n peertube\\.ch|\n peertube\\.normandie-libre\\.fr|\n peertube\\.slat\\.org|\n video\\.lacaveatonton\\.ovh|\n peertube\\.uno|\n peertube\\.servebeer\\.com|\n peertube\\.fedi\\.quebec|\n tube\\.h3z\\.jp|\n tube\\.plus200\\.com|\n peertube\\.eric\\.ovh|\n tube\\.metadocs\\.cc|\n tube\\.unmondemeilleur\\.eu|\n gouttedeau\\.space|\n video\\.antirep\\.net|\n nrop\\.cant\\.at|\n tube\\.ksl-bmx\\.de|\n tube\\.plaf\\.fr|\n tube\\.tchncs\\.de|\n video\\.devinberg\\.com|\n hitchtube\\.fr|\n peertube\\.kosebamse\\.com|\n yunopeertube\\.myddns\\.me|\n peertube\\.varney\\.fr|\n peertube\\.anon-kenkai\\.com|\n tube\\.maiti\\.info|\n tubee\\.fr|\n videos\\.dinofly\\.com|\n toobnix\\.org|\n videotape\\.me|\n voca\\.tube|\n video\\.heromuster\\.com|\n video\\.lemediatv\\.fr|\n video\\.up\\.edu\\.ph|\n balafon\\.video|\n video\\.ivel\\.fr|\n thickrips\\.cloud|\n pt\\.laurentkruger\\.fr|\n video\\.monarch-pass\\.net|\n peertube\\.artica\\.center|\n video\\.alternanet\\.fr|\n indymotion\\.fr|\n fanvid\\.stopthatimp\\.net|\n video\\.farci\\.org|\n v\\.lesterpig\\.com|\n video\\.okaris\\.de|\n tube\\.pawelko\\.net|\n peertube\\.mablr\\.org|\n tube\\.fede\\.re|\n pytu\\.be|\n evertron\\.tv|\n devtube\\.dev-wiki\\.de|\n raptube\\.antipub\\.org|\n video\\.selea\\.se|\n peertube\\.mygaia\\.org|\n video\\.oh14\\.de|\n peertube\\.livingutopia\\.org|\n peertube\\.the-penguin\\.de|\n tube\\.thechangebook\\.org|\n tube\\.anjara\\.eu|\n pt\\.pube\\.tk|\n video\\.samedi\\.pm|\n mplayer\\.demouliere\\.eu|\n widemus\\.de|\n peertube\\.me|\n peertube\\.zapashcanon\\.fr|\n video\\.latavernedejohnjohn\\.fr|\n peertube\\.pcservice46\\.fr|\n peertube\\.mazzonetto\\.eu|\n video\\.irem\\.univ-paris-diderot\\.fr|\n video\\.livecchi\\.cloud|\n alttube\\.fr|\n video\\.coop\\.tools|\n video\\.cabane-libre\\.org|\n peertube\\.openstreetmap\\.fr|\n videos\\.alolise\\.org|\n irrsinn\\.video|\n video\\.antopie\\.org|\n scitech\\.video|\n tube2\\.nemsia\\.org|\n video\\.amic37\\.fr|\n peertube\\.freeforge\\.eu|\n video\\.arbitrarion\\.com|\n video\\.datsemultimedia\\.com|\n stoptrackingus\\.tv|\n peertube\\.ricostrongxxx\\.com|\n docker\\.videos\\.lecygnenoir\\.info|\n peertube\\.togart\\.de|\n tube\\.postblue\\.info|\n videos\\.domainepublic\\.net|\n peertube\\.cyber-tribal\\.com|\n video\\.gresille\\.org|\n peertube\\.dsmouse\\.net|\n cinema\\.yunohost\\.support|\n tube\\.theocevaer\\.fr|\n repro\\.video|\n tube\\.4aem\\.com|\n quaziinc\\.com|\n peertube\\.metawurst\\.space|\n videos\\.wakapo\\.com|\n video\\.ploud\\.fr|\n video\\.freeradical\\.zone|\n tube\\.valinor\\.fr|\n refuznik\\.video|\n pt\\.kircheneuenburg\\.de|\n peertube\\.asrun\\.eu|\n peertube\\.lagob\\.fr|\n videos\\.side-ways\\.net|\n 91video\\.online|\n video\\.valme\\.io|\n video\\.taboulisme\\.com|\n videos-libr\\.es|\n tv\\.mooh\\.fr|\n nuage\\.acostey\\.fr|\n video\\.monsieur-a\\.fr|\n peertube\\.librelois\\.fr|\n videos\\.pair2jeux\\.tube|\n videos\\.pueseso\\.club|\n peer\\.mathdacloud\\.ovh|\n media\\.assassinate-you\\.net|\n vidcommons\\.org|\n ptube\\.rousset\\.nom\\.fr|\n tube\\.cyano\\.at|\n videos\\.squat\\.net|\n video\\.iphodase\\.fr|\n peertube\\.makotoworkshop\\.org|\n peertube\\.serveur\\.slv-valbonne\\.fr|\n vault\\.mle\\.party|\n hostyour\\.tv|\n videos\\.hack2g2\\.fr|\n libre\\.tube|\n pire\\.artisanlogiciel\\.net|\n videos\\.numerique-en-commun\\.fr|\n video\\.netsyms\\.com|\n video\\.die-partei\\.social|\n video\\.writeas\\.org|\n peertube\\.swarm\\.solvingmaz\\.es|\n tube\\.pericoloso\\.ovh|\n watching\\.cypherpunk\\.observer|\n videos\\.adhocmusic\\.com|\n tube\\.rfc1149\\.net|\n peertube\\.librelabucm\\.org|\n videos\\.numericoop\\.fr|\n peertube\\.koehn\\.com|\n peertube\\.anarchmusicall\\.net|\n tube\\.kampftoast\\.de|\n vid\\.y-y\\.li|\n peertube\\.xtenz\\.xyz|\n diode\\.zone|\n tube\\.egf\\.mn|\n peertube\\.nomagic\\.uk|\n visionon\\.tv|\n videos\\.koumoul\\.com|\n video\\.rastapuls\\.com|\n video\\.mantlepro\\.com|\n video\\.deadsuperhero\\.com|\n peertube\\.musicstudio\\.pro|\n peertube\\.we-keys\\.fr|\n artitube\\.artifaille\\.fr|\n peertube\\.ethernia\\.net|\n tube\\.midov\\.pl|\n peertube\\.fr|\n watch\\.snoot\\.tube|\n peertube\\.donnadieu\\.fr|\n argos\\.aquilenet\\.fr|\n tube\\.nemsia\\.org|\n tube\\.bruniau\\.net|\n videos\\.darckoune\\.moe|\n tube\\.traydent\\.info|\n dev\\.videos\\.lecygnenoir\\.info|\n peertube\\.nayya\\.org|\n peertube\\.live|\n peertube\\.mofgao\\.space|\n video\\.lequerrec\\.eu|\n peertube\\.amicale\\.net|\n aperi\\.tube|\n tube\\.ac-lyon\\.fr|\n video\\.lw1\\.at|\n www\\.yiny\\.org|\n videos\\.pofilo\\.fr|\n tube\\.lou\\.lt|\n choob\\.h\\.etbus\\.ch|\n tube\\.hoga\\.fr|\n peertube\\.heberge\\.fr|\n video\\.obermui\\.de|\n videos\\.cloudfrancois\\.fr|\n betamax\\.video|\n video\\.typica\\.us|\n tube\\.piweb\\.be|\n video\\.blender\\.org|\n peertube\\.cat|\n tube\\.kdy\\.ch|\n pe\\.ertu\\.be|\n peertube\\.social|\n videos\\.lescommuns\\.org|\n tv\\.datamol\\.org|\n videonaute\\.fr|\n dialup\\.express|\n peertube\\.nogafa\\.org|\n megatube\\.lilomoino\\.fr|\n peertube\\.tamanoir\\.foucry\\.net|\n peertube\\.devosi\\.org|\n peertube\\.1312\\.media|\n tube\\.bootlicker\\.party|\n skeptikon\\.fr|\n video\\.blueline\\.mg|\n tube\\.homecomputing\\.fr|\n tube\\.ouahpiti\\.info|\n video\\.tedomum\\.net|\n video\\.g3l\\.org|\n fontube\\.fr|\n peertube\\.gaialabs\\.ch|\n tube\\.kher\\.nl|\n peertube\\.qtg\\.fr|\n video\\.migennes\\.net|\n tube\\.p2p\\.legal|\n troll\\.tv|\n videos\\.iut-orsay\\.fr|\n peertube\\.solidev\\.net|\n videos\\.cemea\\.org|\n video\\.passageenseine\\.fr|\n videos\\.festivalparminous\\.org|\n peertube\\.touhoppai\\.moe|\n sikke\\.fi|\n peer\\.hostux\\.social|\n share\\.tube|\n peertube\\.walkingmountains\\.fr|\n videos\\.benpro\\.fr|\n peertube\\.parleur\\.net|\n peertube\\.heraut\\.eu|\n tube\\.aquilenet\\.fr|\n peertube\\.gegeweb\\.eu|\n framatube\\.org|\n thinkerview\\.video|\n tube\\.conferences-gesticulees\\.net|\n peertube\\.datagueule\\.tv|\n video\\.lqdn\\.fr|\n tube\\.mochi\\.academy|\n media\\.zat\\.im|\n video\\.colibris-outilslibres\\.org|\n tube\\.svnet\\.fr|\n peertube\\.video|\n peertube2\\.cpy\\.re|\n peertube3\\.cpy\\.re|\n videos\\.tcit\\.fr|\n peertube\\.cpy\\.re|\n canard\\.tube\n ))/(?P<type>(?:a|c|w/p))/\n (?P<id>[^/]+)\n '
class PeerTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.peertv'
_VALID_URL = 'https?://(?:www\\.)?peer\\.tv/(?:de|it|en)/(?P<id>\\d+)'
class PelotonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.peloton'
_VALID_URL = 'https?://members\\.onepeloton\\.com/classes/player/(?P<id>[a-f0-9]+)'
class PelotonLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.peloton'
_VALID_URL = 'https?://members\\.onepeloton\\.com/player/live/(?P<id>[a-f0-9]+)'
class PeopleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.people'
_VALID_URL = 'https?://(?:www\\.)?people\\.com/people/videos/0,,(?P<id>\\d+),00\\.html'
class PerformGroupIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.performgroup'
_VALID_URL = 'https?://player\\.performgroup\\.com/eplayer(?:/eplayer\\.html|\\.js)#/?(?P<id>[0-9a-f]{26})\\.(?P<auth_token>[0-9a-z]{26})'
class PeriscopeBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.periscope'
class PeriscopeIE(PeriscopeBaseIE):
_module = 'yt_dlp.extractor.periscope'
_VALID_URL = 'https?://(?:www\\.)?(?:periscope|pscp)\\.tv/[^/]+/(?P<id>[^/?#]+)'
class PeriscopeUserIE(PeriscopeBaseIE):
_module = 'yt_dlp.extractor.periscope'
_VALID_URL = 'https?://(?:www\\.)?(?:periscope|pscp)\\.tv/(?P<id>[^/]+)/?$'
class PhilharmonieDeParisIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.philharmoniedeparis'
_VALID_URL = '(?x)\n https?://\n (?:\n live\\.philharmoniedeparis\\.fr/(?:[Cc]oncert/|embed(?:app)?/|misc/Playlist\\.ashx\\?id=)|\n pad\\.philharmoniedeparis\\.fr/doc/CIMU/\n )\n (?P<id>\\d+)\n '
class ZDFBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zdf'
class PhoenixIE(ZDFBaseIE):
_module = 'yt_dlp.extractor.phoenix'
_VALID_URL = 'https?://(?:www\\.)?phoenix\\.de/(?:[^/]+/)*[^/?#&]*-a-(?P<id>\\d+)\\.html'
class PhotobucketIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.photobucket'
_VALID_URL = 'https?://(?:[a-z0-9]+\\.)?photobucket\\.com/.*(([\\?\\&]current=)|_)(?P<id>.*)\\.(?P<ext>(flv)|(mp4))'
class PicartoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.picarto'
_VALID_URL = 'https?://(?:www.)?picarto\\.tv/(?P<id>[a-zA-Z0-9]+)'
@classmethod
def suitable(cls, url):
return False if PicartoVodIE.suitable(url) else super(PicartoIE, cls).suitable(url)
class PicartoVodIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.picarto'
_VALID_URL = 'https?://(?:www.)?picarto\\.tv/videopopout/(?P<id>[^/?#&]+)'
class PikselIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.piksel'
_VALID_URL = '(?x)https?://\n (?:\n (?:\n player\\.\n (?:\n olympusattelecom|\n vibebyvista\n )|\n (?:api|player)\\.multicastmedia|\n (?:api-ovp|player)\\.piksel\n )\\.com|\n (?:\n mz-edge\\.stream\\.co|\n movie-s\\.nhk\\.or\n )\\.jp|\n vidego\\.baltimorecity\\.gov\n )/v/(?:refid/(?P<refid>[^/]+)/prefid/)?(?P<id>[\\w-]+)'
class PinkbikeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pinkbike'
_VALID_URL = 'https?://(?:(?:www\\.)?pinkbike\\.com/video/|es\\.pinkbike\\.org/i/kvid/kvid-y5\\.swf\\?id=)(?P<id>[0-9]+)'
class PinterestBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pinterest'
class PinterestIE(PinterestBaseIE):
_module = 'yt_dlp.extractor.pinterest'
_VALID_URL = 'https?://(?:[^/]+\\.)?pinterest\\.(?:com|fr|de|ch|jp|cl|ca|it|co\\.uk|nz|ru|com\\.au|at|pt|co\\.kr|es|com\\.mx|dk|ph|th|com\\.uy|co|nl|info|kr|ie|vn|com\\.vn|ec|mx|in|pe|co\\.at|hu|co\\.in|co\\.nz|id|com\\.ec|com\\.py|tw|be|uk|com\\.bo|com\\.pe)/pin/(?P<id>\\d+)'
class PinterestCollectionIE(PinterestBaseIE):
_module = 'yt_dlp.extractor.pinterest'
_VALID_URL = 'https?://(?:[^/]+\\.)?pinterest\\.(?:com|fr|de|ch|jp|cl|ca|it|co\\.uk|nz|ru|com\\.au|at|pt|co\\.kr|es|com\\.mx|dk|ph|th|com\\.uy|co|nl|info|kr|ie|vn|com\\.vn|ec|mx|in|pe|co\\.at|hu|co\\.in|co\\.nz|id|com\\.ec|com\\.py|tw|be|uk|com\\.bo|com\\.pe)/(?P<username>[^/]+)/(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return False if PinterestIE.suitable(url) else super(
PinterestCollectionIE, cls).suitable(url)
class PixivSketchBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pixivsketch'
class PixivSketchIE(PixivSketchBaseIE):
_module = 'yt_dlp.extractor.pixivsketch'
_VALID_URL = 'https?://sketch\\.pixiv\\.net/@(?P<uploader_id>[a-zA-Z0-9_-]+)/lives/(?P<id>\\d+)/?'
class PixivSketchUserIE(PixivSketchBaseIE):
_module = 'yt_dlp.extractor.pixivsketch'
_VALID_URL = 'https?://sketch\\.pixiv\\.net/@(?P<id>[a-zA-Z0-9_-]+)/?'
@classmethod
def suitable(cls, url):
return super(PixivSketchUserIE, cls).suitable(url) and not PixivSketchIE.suitable(url)
class PladformIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pladform'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:\n out\\.pladform\\.ru/player|\n static\\.pladform\\.ru/player\\.swf\n )\n \\?.*\\bvideoid=|\n video\\.pladform\\.ru/catalog/video/videoid/\n )\n (?P<id>\\d+)\n '
class PlanetMarathiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.planetmarathi'
_VALID_URL = 'https?://(?:www\\.)?planetmarathi\\.com/titles/(?P<id>[^/#&?$]+)'
class PlatziBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.platzi'
class PlatziIE(PlatziBaseIE):
_module = 'yt_dlp.extractor.platzi'
_VALID_URL = '(?x)\n https?://\n (?:\n platzi\\.com/clases| # es version\n courses\\.platzi\\.com/classes # en version\n )/[^/]+/(?P<id>\\d+)-[^/?\\#&]+\n '
class PlatziCourseIE(PlatziBaseIE):
_module = 'yt_dlp.extractor.platzi'
_VALID_URL = '(?x)\n https?://\n (?:\n platzi\\.com/clases| # es version\n courses\\.platzi\\.com/classes # en version\n )/(?P<id>[^/?\\#&]+)\n '
@classmethod
def suitable(cls, url):
return False if PlatziIE.suitable(url) else super(PlatziCourseIE, cls).suitable(url)
class PlayFMIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playfm'
_VALID_URL = 'https?://(?:www\\.)?play\\.fm/(?P<slug>(?:[^/]+/)+(?P<id>[^/]+))/?(?:$|[?#])'
class PlayPlusTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playplustv'
_VALID_URL = 'https?://(?:www\\.)?playplus\\.(?:com|tv)/VOD/(?P<project_id>[0-9]+)/(?P<id>[0-9a-f]{32})'
class PlaysTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.plays'
_VALID_URL = 'https?://(?:www\\.)?plays\\.tv/(?:video|embeds)/(?P<id>[0-9a-f]{18})'
class PlayStuffIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playstuff'
_VALID_URL = 'https?://(?:www\\.)?play\\.stuff\\.co\\.nz/details/(?P<id>[^/?#&]+)'
class PlaytvakIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playtvak'
_VALID_URL = 'https?://(?:.+?\\.)?(?:playtvak|idnes|lidovky|metro)\\.cz/.*\\?(?:c|idvideo)=(?P<id>[^&]+)'
class PlayvidIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playvid'
_VALID_URL = 'https?://(?:www\\.)?playvid\\.com/watch(\\?v=|/)(?P<id>.+?)(?:#|$)'
class PlaywireIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.playwire'
_VALID_URL = 'https?://(?:config|cdn)\\.playwire\\.com(?:/v2)?/(?P<publisher_id>\\d+)/(?:videos/v2|embed|config)/(?P<id>\\d+)'
class PlutoTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.plutotv'
_VALID_URL = '(?x)\n https?://(?:www\\.)?pluto\\.tv(?:/[^/]+)?/on-demand\n /(?P<video_type>movies|series)\n /(?P<series_or_movie_slug>[^/]+)\n (?:\n (?:/seasons?/(?P<season_no>\\d+))?\n (?:/episode/(?P<episode_slug>[^/]+))?\n )?\n /?(?:$|[#?])'
class PluralsightBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pluralsight'
class PluralsightIE(PluralsightBaseIE):
_module = 'yt_dlp.extractor.pluralsight'
_VALID_URL = 'https?://(?:(?:www|app)\\.)?pluralsight\\.com/(?:training/)?player\\?'
class PluralsightCourseIE(PluralsightBaseIE):
_module = 'yt_dlp.extractor.pluralsight'
_VALID_URL = 'https?://(?:(?:www|app)\\.)?pluralsight\\.com/(?:library/)?courses/(?P<id>[^/]+)'
class PodomaticIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.podomatic'
_VALID_URL = '(?x)\n (?P<proto>https?)://\n (?:\n (?P<channel>[^.]+)\\.podomatic\\.com/entry|\n (?:www\\.)?podomatic\\.com/podcasts/(?P<channel_2>[^/]+)/episodes\n )/\n (?P<id>[^/?#&]+)\n '
class PokemonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pokemon'
_VALID_URL = 'https?://(?:www\\.)?pokemon\\.com/[a-z]{2}(?:.*?play=(?P<id>[a-z0-9]{32})|/(?:[^/]+/)+(?P<display_id>[^/?#&]+))'
class PokemonWatchIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pokemon'
_VALID_URL = 'https?://watch\\.pokemon\\.com/[a-z]{2}-[a-z]{2}/(?:#/)?player(?:\\.html)?\\?id=(?P<id>[a-z0-9]{32})'
class PokerGoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pokergo'
class PokerGoIE(PokerGoBaseIE):
_module = 'yt_dlp.extractor.pokergo'
_VALID_URL = 'https?://(?:www\\.)?pokergo\\.com/videos/(?P<id>[^&$#/?]+)'
class PokerGoCollectionIE(PokerGoBaseIE):
_module = 'yt_dlp.extractor.pokergo'
_VALID_URL = 'https?://(?:www\\.)?pokergo\\.com/collections/(?P<id>[^&$#/?]+)'
class PolsatGoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.polsatgo'
_VALID_URL = 'https?://(?:www\\.)?polsat(?:box)?go\\.pl/.+/(?P<id>[0-9a-fA-F]+)(?:[/#?]|$)'
class PolskieRadioBaseExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.polskieradio'
class PolskieRadioIE(PolskieRadioBaseExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://(?:www\\.)?polskieradio(?:24)?\\.pl/\\d+/\\d+/Artykul/(?P<id>[0-9]+)'
class PolskieRadioCategoryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://(?:www\\.)?polskieradio\\.pl/\\d+(?:,[^/]+)?/(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if PolskieRadioIE.suitable(url) else super(PolskieRadioCategoryIE, cls).suitable(url)
class PolskieRadioPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://player\\.polskieradio\\.pl/anteny/(?P<id>[^/]+)'
class PolskieRadioPodcastBaseExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.polskieradio'
class PolskieRadioPodcastIE(PolskieRadioPodcastBaseExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://podcasty\\.polskieradio\\.pl/track/(?P<id>[a-f\\d]{8}(?:-[a-f\\d]{4}){4}[a-f\\d]{8})'
class PolskieRadioPodcastListIE(PolskieRadioPodcastBaseExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://podcasty\\.polskieradio\\.pl/podcast/(?P<id>\\d+)'
class PolskieRadioRadioKierowcowIE(PolskieRadioBaseExtractor):
_module = 'yt_dlp.extractor.polskieradio'
_VALID_URL = 'https?://(?:www\\.)?radiokierowcow\\.pl/artykul/(?P<id>[0-9]+)'
class PopcorntimesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.popcorntimes'
_VALID_URL = 'https?://popcorntimes\\.tv/[^/]+/m/(?P<id>[^/]+)/(?P<display_id>[^/?#&]+)'
class PopcornTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.popcorntv'
_VALID_URL = 'https?://[^/]+\\.popcorntv\\.it/guarda/(?P<display_id>[^/]+)/(?P<id>\\d+)'
class Porn91IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.porn91'
_VALID_URL = '(?:https?://)(?:www\\.|)91porn\\.com/.+?\\?viewkey=(?P<id>[\\w\\d]+)'
class PornComIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.porncom'
_VALID_URL = 'https?://(?:[a-zA-Z]+\\.)?porn\\.com/videos/(?:(?P<display_id>[^/]+)-)?(?P<id>\\d+)'
class PornFlipIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornflip'
_VALID_URL = 'https?://(?:www\\.)?pornflip\\.com/(?:(embed|sv|v)/)?(?P<id>[^/]+)'
class PornHdIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornhd'
_VALID_URL = 'https?://(?:www\\.)?pornhd\\.com/(?:[a-z]{2,4}/)?videos/(?P<id>\\d+)(?:/(?P<display_id>.+))?'
class PornHubBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornhub'
class PornHubIE(PornHubBaseIE):
_module = 'yt_dlp.extractor.pornhub'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:[^/]+\\.)?\n (?:(?P<host>pornhub(?:premium)?\\.(?:com|net|org))|pornhubvybmsymdol4iibwgwtkpwmeyd6luq2gxajgjzfjvotyt5zhyd\\.onion)\n /(?:(?:view_video\\.php|video/show)\\?viewkey=|embed/)|\n (?:www\\.)?thumbzilla\\.com/video/\n )\n (?P<id>[\\da-z]+)\n '
class PornHubPlaylistBaseIE(PornHubBaseIE):
_module = 'yt_dlp.extractor.pornhub'
class PornHubUserIE(PornHubPlaylistBaseIE):
_module = 'yt_dlp.extractor.pornhub'
_VALID_URL = '(?P<url>https?://(?:[^/]+\\.)?(?:(?P<host>pornhub(?:premium)?\\.(?:com|net|org))|pornhubvybmsymdol4iibwgwtkpwmeyd6luq2gxajgjzfjvotyt5zhyd\\.onion)/(?:(?:user|channel)s|model|pornstar)/(?P<id>[^/?#&]+))(?:[?#&]|/(?!videos)|$)'
class PornHubPlaylistIE(PornHubPlaylistBaseIE):
_module = 'yt_dlp.extractor.pornhub'
_VALID_URL = '(?P<url>https?://(?:[^/]+\\.)?(?:(?P<host>pornhub(?:premium)?\\.(?:com|net|org))|pornhubvybmsymdol4iibwgwtkpwmeyd6luq2gxajgjzfjvotyt5zhyd\\.onion)/playlist/(?P<id>[^/?#&]+))'
class PornHubPagedPlaylistBaseIE(PornHubPlaylistBaseIE):
_module = 'yt_dlp.extractor.pornhub'
class PornHubPagedVideoListIE(PornHubPagedPlaylistBaseIE):
_module = 'yt_dlp.extractor.pornhub'
_VALID_URL = 'https?://(?:[^/]+\\.)?(?:(?P<host>pornhub(?:premium)?\\.(?:com|net|org))|pornhubvybmsymdol4iibwgwtkpwmeyd6luq2gxajgjzfjvotyt5zhyd\\.onion)/(?!playlist/)(?P<id>(?:[^/]+/)*[^/?#&]+)'
@classmethod
def suitable(cls, url):
return (False
if PornHubIE.suitable(url) or PornHubUserIE.suitable(url) or PornHubUserVideosUploadIE.suitable(url)
else super(PornHubPagedVideoListIE, cls).suitable(url))
class PornHubUserVideosUploadIE(PornHubPagedPlaylistBaseIE):
_module = 'yt_dlp.extractor.pornhub'
_VALID_URL = '(?P<url>https?://(?:[^/]+\\.)?(?:(?P<host>pornhub(?:premium)?\\.(?:com|net|org))|pornhubvybmsymdol4iibwgwtkpwmeyd6luq2gxajgjzfjvotyt5zhyd\\.onion)/(?:(?:user|channel)s|model|pornstar)/(?P<id>[^/]+)/videos/upload)'
class PornotubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornotube'
_VALID_URL = 'https?://(?:\\w+\\.)?pornotube\\.com/(?:[^?#]*?)/video/(?P<id>[0-9]+)'
class PornoVoisinesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornovoisines'
_VALID_URL = 'https?://(?:www\\.)?pornovoisines\\.com/videos/show/(?P<id>\\d+)/(?P<display_id>[^/.]+)'
class PornoXOIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornoxo'
_VALID_URL = 'https?://(?:www\\.)?pornoxo\\.com/videos/(?P<id>\\d+)/(?P<display_id>[^/]+)\\.html'
class PornezIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pornez'
_VALID_URL = 'https?://(?:www\\.)?pornez\\.net/video(?P<id>[0-9]+)/'
class PuhuTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.puhutv'
_VALID_URL = 'https?://(?:www\\.)?puhutv\\.com/(?P<id>[^/?#&]+)-izle'
class PuhuTVSerieIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.puhutv'
_VALID_URL = 'https?://(?:www\\.)?puhutv\\.com/(?P<id>[^/?#&]+)-detay'
class PressTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.presstv'
_VALID_URL = 'https?://(?:www\\.)?presstv\\.ir/[^/]+/(?P<y>\\d+)/(?P<m>\\d+)/(?P<d>\\d+)/(?P<id>\\d+)/(?P<display_id>[^/]+)?'
class ProjectVeritasIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.projectveritas'
_VALID_URL = 'https?://(?:www\\.)?projectveritas\\.com/(?P<type>news|video)/(?P<id>[^/?#]+)'
class ProSiebenSat1BaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.prosiebensat1'
class ProSiebenSat1IE(ProSiebenSat1BaseIE):
_module = 'yt_dlp.extractor.prosiebensat1'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n (?:\n (?:beta\\.)?\n (?:\n prosieben(?:maxx)?|sixx|sat1(?:gold)?|kabeleins(?:doku)?|the-voice-of-germany|advopedia\n )\\.(?:de|at|ch)|\n ran\\.de|fem\\.com|advopedia\\.de|galileo\\.tv/video\n )\n /(?P<id>.+)\n '
class PRXBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.prx'
class PRXStoryIE(PRXBaseIE):
_module = 'yt_dlp.extractor.prx'
_VALID_URL = 'https?://(?:(?:beta|listen)\\.)?prx.org/stories/(?P<id>\\d+)'
class PRXSeriesIE(PRXBaseIE):
_module = 'yt_dlp.extractor.prx'
_VALID_URL = 'https?://(?:(?:beta|listen)\\.)?prx.org/series/(?P<id>\\d+)'
class PRXAccountIE(PRXBaseIE):
_module = 'yt_dlp.extractor.prx'
_VALID_URL = 'https?://(?:(?:beta|listen)\\.)?prx.org/accounts/(?P<id>\\d+)'
class PRXStoriesSearchIE(PRXBaseIE, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.prx'
_VALID_URL = 'prxstories(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class PRXSeriesSearchIE(PRXBaseIE, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.prx'
_VALID_URL = 'prxseries(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class Puls4IE(ProSiebenSat1BaseIE):
_module = 'yt_dlp.extractor.puls4'
_VALID_URL = 'https?://(?:www\\.)?puls4\\.com/(?P<id>[^?#&]+)'
class PyvideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.pyvideo'
_VALID_URL = 'https?://(?:www\\.)?pyvideo\\.org/(?P<category>[^/]+)/(?P<id>[^/?#&.]+)'
class QQMusicIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.qqmusic'
_VALID_URL = 'https?://y\\.qq\\.com/n/yqq/song/(?P<id>[0-9A-Za-z]+)\\.html'
class QQPlaylistBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.qqmusic'
class QQMusicSingerIE(QQPlaylistBaseIE):
_module = 'yt_dlp.extractor.qqmusic'
_VALID_URL = 'https?://y\\.qq\\.com/n/yqq/singer/(?P<id>[0-9A-Za-z]+)\\.html'
class QQMusicAlbumIE(QQPlaylistBaseIE):
_module = 'yt_dlp.extractor.qqmusic'
_VALID_URL = 'https?://y\\.qq\\.com/n/yqq/album/(?P<id>[0-9A-Za-z]+)\\.html'
class QQMusicToplistIE(QQPlaylistBaseIE):
_module = 'yt_dlp.extractor.qqmusic'
_VALID_URL = 'https?://y\\.qq\\.com/n/yqq/toplist/(?P<id>[0-9]+)\\.html'
class QQMusicPlaylistIE(QQPlaylistBaseIE):
_module = 'yt_dlp.extractor.qqmusic'
_VALID_URL = 'https?://y\\.qq\\.com/n/yqq/playlist/(?P<id>[0-9]+)\\.html'
class R7IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.r7'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:[a-zA-Z]+)\\.r7\\.com(?:/[^/]+)+/idmedia/|\n noticias\\.r7\\.com(?:/[^/]+)+/[^/]+-|\n player\\.r7\\.com/video/i/\n )\n (?P<id>[\\da-f]{24})\n '
class R7ArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.r7'
_VALID_URL = 'https?://(?:[a-zA-Z]+)\\.r7\\.com/(?:[^/]+/)+[^/?#&]+-(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if R7IE.suitable(url) else super(R7ArticleIE, cls).suitable(url)
class RadikoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiko'
class RadikoIE(RadikoBaseIE):
_module = 'yt_dlp.extractor.radiko'
_VALID_URL = 'https?://(?:www\\.)?radiko\\.jp/#!/ts/(?P<station>[A-Z0-9-]+)/(?P<id>\\d+)'
class RadikoRadioIE(RadikoBaseIE):
_module = 'yt_dlp.extractor.radiko'
_VALID_URL = 'https?://(?:www\\.)?radiko\\.jp/#!/live/(?P<id>[A-Z0-9-]+)'
class RadioCanadaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiocanada'
_VALID_URL = '(?:radiocanada:|https?://ici\\.radio-canada\\.ca/widgets/mediaconsole/)(?P<app_code>[^:/]+)[:/](?P<id>[0-9]+)'
class RadioCanadaAudioVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiocanada'
_VALID_URL = 'https?://ici\\.radio-canada\\.ca/([^/]+/)*media-(?P<id>[0-9]+)'
class RadioDeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiode'
_VALID_URL = 'https?://(?P<id>.+?)\\.(?:radio\\.(?:de|at|fr|pt|es|pl|it)|rad\\.io)'
class RadioJavanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiojavan'
_VALID_URL = 'https?://(?:www\\.)?radiojavan\\.com/videos/video/(?P<id>[^/]+)/?'
class RadioBremenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiobremen'
_VALID_URL = 'http?://(?:www\\.)?radiobremen\\.de/mediathek/(?:index\\.html)?\\?id=(?P<id>[0-9]+)'
class RadioFranceIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiofrance'
_VALID_URL = '^https?://maison\\.radiofrance\\.fr/radiovisions/(?P<id>[^?#]+)'
class RadioZetPodcastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiozet'
_VALID_URL = 'https?://player\\.radiozet\\.pl\\/Podcasty/.*?/(?P<id>.+)'
class RadioKapitalBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radiokapital'
class RadioKapitalIE(RadioKapitalBaseIE):
_module = 'yt_dlp.extractor.radiokapital'
_VALID_URL = 'https?://(?:www\\.)?radiokapital\\.pl/shows/[a-z\\d-]+/(?P<id>[a-z\\d-]+)'
class RadioKapitalShowIE(RadioKapitalBaseIE):
_module = 'yt_dlp.extractor.radiokapital'
_VALID_URL = 'https?://(?:www\\.)?radiokapital\\.pl/shows/(?P<id>[a-z\\d-]+)/?(?:$|[?#])'
class RadLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.radlive'
_VALID_URL = 'https?://(?:www\\.)?rad\\.live/content/(?P<content_type>feature|episode)/(?P<id>[a-f0-9-]+)'
class RadLiveChannelIE(RadLiveIE):
_module = 'yt_dlp.extractor.radlive'
_VALID_URL = 'https?://(?:www\\.)?rad\\.live/content/channel/(?P<id>[a-f0-9-]+)'
@classmethod
def suitable(cls, url):
return False if RadLiveIE.suitable(url) else super(RadLiveChannelIE, cls).suitable(url)
class RadLiveSeasonIE(RadLiveIE):
_module = 'yt_dlp.extractor.radlive'
_VALID_URL = 'https?://(?:www\\.)?rad\\.live/content/season/(?P<id>[a-f0-9-]+)'
@classmethod
def suitable(cls, url):
return False if RadLiveIE.suitable(url) else super(RadLiveSeasonIE, cls).suitable(url)
class RaiBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rai'
class RaiPlayIE(RaiBaseIE):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplay\\.it/.+?-(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}))\\.(?:html|json)'
class RaiPlayLiveIE(RaiPlayIE):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplay\\.it/dirette/(?P<id>[^/?#&]+))'
class RaiPlayPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplay\\.it/programmi/(?P<id>[^/?#&]+))(?:/(?P<extra_id>[^?#&]+))?'
class RaiPlaySoundIE(RaiBaseIE):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplaysound\\.it/.+?-(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}))\\.(?:html|json)'
class RaiPlaySoundLiveIE(RaiPlaySoundIE):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplaysound\\.it/(?P<id>[^/?#&]+)$)'
class RaiPlaySoundPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = '(?P<base>https?://(?:www\\.)?raiplaysound\\.it/(?:programmi|playlist|audiolibri)/(?P<id>[^/?#&]+))(?:/(?P<extra_id>[^?#&]+))?'
class RaiIE(RaiBaseIE):
_module = 'yt_dlp.extractor.rai'
_VALID_URL = 'https?://[^/]+\\.(?:rai\\.(?:it|tv)|rainews\\.it)/.+?-(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})(?:-.+?)?\\.html'
class RayWenderlichIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.raywenderlich'
_VALID_URL = '(?x)\n https?://\n (?:\n videos\\.raywenderlich\\.com/courses|\n (?:www\\.)?raywenderlich\\.com\n )/\n (?P<course_id>[^/]+)/lessons/(?P<id>\\d+)\n '
class RayWenderlichCourseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.raywenderlich'
_VALID_URL = '(?x)\n https?://\n (?:\n videos\\.raywenderlich\\.com/courses|\n (?:www\\.)?raywenderlich\\.com\n )/\n (?P<id>[^/]+)\n '
@classmethod
def suitable(cls, url):
return False if RayWenderlichIE.suitable(url) else super(
RayWenderlichCourseIE, cls).suitable(url)
class RBMARadioIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rbmaradio'
_VALID_URL = 'https?://(?:www\\.)?(?:rbmaradio|redbullradio)\\.com/shows/(?P<show_id>[^/]+)/episodes/(?P<id>[^/?#&]+)'
class RCSBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rcs'
class RCSIE(RCSBaseIE):
_module = 'yt_dlp.extractor.rcs'
_VALID_URL = '(?x)https?://(?P<vid>video|viaggi)\\.\n (?P<cdn>\n (?:\n corrieredelmezzogiorno\\.\n |corrieredelveneto\\.\n |corrieredibologna\\.\n |corrierefiorentino\\.\n )?corriere\\.it\n |(?:gazzanet\\.)?gazzetta\\.it)\n /(?!video-embed/).+?/(?P<id>[^/\\?]+)(?=\\?|/$|$)'
class RCSEmbedsIE(RCSBaseIE):
_module = 'yt_dlp.extractor.rcs'
_VALID_URL = '(?x)\n https?://(?P<vid>video)\\.\n (?P<cdn>\n (?:\n rcs|\n (?:corriere\\w+\\.)?corriere|\n (?:gazzanet\\.)?gazzetta\n )\\.it)\n /video-embed/(?P<id>[^/=&\\?]+?)(?:$|\\?)'
class RCSVariousIE(RCSBaseIE):
_module = 'yt_dlp.extractor.rcs'
_VALID_URL = '(?x)https?://www\\.\n (?P<cdn>\n leitv\\.it|\n youreporter\\.it\n )/(?:[^/]+/)?(?P<id>[^/]+?)(?:$|\\?|/)'
class RCTIPlusBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rcti'
class RCTIPlusIE(RCTIPlusBaseIE):
_module = 'yt_dlp.extractor.rcti'
_VALID_URL = 'https://www\\.rctiplus\\.com/(?:programs/\\d+?/.*?/)?(?P<type>episode|clip|extra|live-event|missed-event)/(?P<id>\\d+)/(?P<display_id>[^/?#&]+)'
class RCTIPlusSeriesIE(RCTIPlusBaseIE):
_module = 'yt_dlp.extractor.rcti'
_VALID_URL = 'https://www\\.rctiplus\\.com/programs/(?P<id>\\d+)/(?P<display_id>[^/?#&]+)(?:/(?P<type>episodes|extras|clips))?'
@classmethod
def suitable(cls, url):
return False if RCTIPlusIE.suitable(url) else super(RCTIPlusSeriesIE, cls).suitable(url)
class RCTIPlusTVIE(RCTIPlusBaseIE):
_module = 'yt_dlp.extractor.rcti'
_VALID_URL = 'https://www\\.rctiplus\\.com/((tv/(?P<tvname>\\w+))|(?P<eventname>live-event|missed-event))'
@classmethod
def suitable(cls, url):
return False if RCTIPlusIE.suitable(url) else super(RCTIPlusTVIE, cls).suitable(url)
class RDSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rds'
_VALID_URL = 'https?://(?:www\\.)?rds\\.ca/vid(?:[eé]|%C3%A9)os/(?:[^/]+/)*(?P<id>[^/]+)-\\d+\\.\\d+'
class RedBullTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.redbulltv'
_VALID_URL = 'https?://(?:www\\.)?redbull(?:\\.tv|\\.com(?:/[^/]+)?(?:/tv)?)(?:/events/[^/]+)?/(?:videos?|live|(?:film|episode)s)/(?P<id>AP-\\w+)'
class RedBullEmbedIE(RedBullTVIE):
_module = 'yt_dlp.extractor.redbulltv'
_VALID_URL = 'https?://(?:www\\.)?redbull\\.com/embed/(?P<id>rrn:content:[^:]+:[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}:[a-z]{2}-[A-Z]{2,3})'
class RedBullTVRrnContentIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.redbulltv'
_VALID_URL = 'https?://(?:www\\.)?redbull\\.com/(?P<region>[a-z]{2,3})-(?P<lang>[a-z]{2})/tv/(?:video|live|film)/(?P<id>rrn:content:[^:]+:[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class RedBullIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.redbulltv'
_VALID_URL = 'https?://(?:www\\.)?redbull\\.com/(?P<region>[a-z]{2,3})-(?P<lang>[a-z]{2})/(?P<type>(?:episode|film|(?:(?:recap|trailer)-)?video)s|live)/(?!AP-|rrn:content:)(?P<id>[^/?#&]+)'
class RedditIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.reddit'
_VALID_URL = 'https?://(?P<subdomain>[^/]+\\.)?reddit(?:media)?\\.com/r/(?P<slug>[^/]+/comments/(?P<id>[^/?#&]+))'
class RedGifsBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.redgifs'
class RedGifsIE(RedGifsBaseInfoExtractor):
_module = 'yt_dlp.extractor.redgifs'
_VALID_URL = 'https?://(?:(?:www\\.)?redgifs\\.com/watch/|thumbs2\\.redgifs\\.com/)(?P<id>[^-/?#\\.]+)'
class RedGifsSearchIE(RedGifsBaseInfoExtractor):
_module = 'yt_dlp.extractor.redgifs'
_VALID_URL = 'https?://(?:www\\.)?redgifs\\.com/browse\\?(?P<query>[^#]+)'
class RedGifsUserIE(RedGifsBaseInfoExtractor):
_module = 'yt_dlp.extractor.redgifs'
_VALID_URL = 'https?://(?:www\\.)?redgifs\\.com/users/(?P<username>[^/?#]+)(?:\\?(?P<query>[^#]+))?'
class RedTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.redtube'
_VALID_URL = 'https?://(?:(?:\\w+\\.)?redtube\\.com/|embed\\.redtube\\.com/\\?.*?\\bid=)(?P<id>[0-9]+)'
class RegioTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.regiotv'
_VALID_URL = 'https?://(?:www\\.)?regio-tv\\.de/video/(?P<id>[0-9]+)'
class RENTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rentv'
_VALID_URL = '(?:rentv:|https?://(?:www\\.)?ren\\.tv/(?:player|video/epizod)/)(?P<id>\\d+)'
class RENTVArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rentv'
_VALID_URL = 'https?://(?:www\\.)?ren\\.tv/novosti/\\d{4}-\\d{2}-\\d{2}/(?P<id>[^/?#]+)'
class RestudyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.restudy'
_VALID_URL = 'https?://(?:(?:www|portal)\\.)?restudy\\.dk/video/[^/]+/id/(?P<id>[0-9]+)'
class ReutersIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.reuters'
_VALID_URL = 'https?://(?:www\\.)?reuters\\.com/.*?\\?.*?videoId=(?P<id>[0-9]+)'
class ReverbNationIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.reverbnation'
_VALID_URL = '^https?://(?:www\\.)?reverbnation\\.com/.*?/song/(?P<id>\\d+).*?$'
class RICEIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rice'
_VALID_URL = 'https?://mediahub\\.rice\\.edu/app/[Pp]ortal/video\\.aspx\\?(?P<query>.+)'
class RMCDecouverteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rmcdecouverte'
_VALID_URL = 'https?://rmcdecouverte\\.bfmtv\\.com/(?:[^?#]*_(?P<id>\\d+)|mediaplayer-direct)/?(?:[#?]|$)'
class Ro220IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ro220'
_VALID_URL = '(?x)(?:https?://)?(?:www\\.)?220\\.ro/(?P<category>[^/]+)/(?P<shorttitle>[^/]+)/(?P<id>[^/]+)'
class RockstarGamesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rockstargames'
_VALID_URL = 'https?://(?:www\\.)?rockstargames\\.com/videos(?:/video/|#?/?\\?.*\\bvideo=)(?P<id>\\d+)'
class RoosterTeethBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.roosterteeth'
class RoosterTeethIE(RoosterTeethBaseIE):
_module = 'yt_dlp.extractor.roosterteeth'
_VALID_URL = 'https?://(?:.+?\\.)?roosterteeth\\.com/(?:episode|watch)/(?P<id>[^/?#&]+)'
class RoosterTeethSeriesIE(RoosterTeethBaseIE):
_module = 'yt_dlp.extractor.roosterteeth'
_VALID_URL = 'https?://(?:.+?\\.)?roosterteeth\\.com/series/(?P<id>[^/?#&]+)'
class RottenTomatoesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rottentomatoes'
_VALID_URL = 'https?://(?:www\\.)?rottentomatoes\\.com/m/[^/]+/trailers/(?P<id>\\d+)'
class RoxwelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.roxwel'
_VALID_URL = 'https?://(?:www\\.)?roxwel\\.com/player/(?P<filename>.+?)(\\.|\\?|$)'
class RozhlasIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rozhlas'
_VALID_URL = 'https?://(?:www\\.)?prehravac\\.rozhlas\\.cz/audio/(?P<id>[0-9]+)'
class RTBFIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtbf'
_VALID_URL = '(?x)\n https?://(?:www\\.)?rtbf\\.be/\n (?:\n video/[^?]+\\?.*\\bid=|\n ouftivi/(?:[^/]+/)*[^?]+\\?.*\\bvideoId=|\n auvio/[^/]+\\?.*\\b(?P<live>l)?id=\n )(?P<id>\\d+)'
class RteBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rte'
class RteIE(RteBaseIE):
_module = 'yt_dlp.extractor.rte'
_VALID_URL = 'https?://(?:www\\.)?rte\\.ie/player/[^/]{2,3}/show/[^/]+/(?P<id>[0-9]+)'
class RteRadioIE(RteBaseIE):
_module = 'yt_dlp.extractor.rte'
_VALID_URL = 'https?://(?:www\\.)?rte\\.ie/radio/utils/radioplayer/rteradioweb\\.html#!rii=(?:b?[0-9]*)(?:%3A|:|%5F|_)(?P<id>[0-9]+)'
class RtlNlIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtlnl'
_VALID_URL = '(?x)\n https?://(?:(?:www|static)\\.)?\n (?:\n rtlxl\\.nl/(?:[^\\#]*\\#!|programma)/[^/]+/|\n rtl\\.nl/(?:(?:system/videoplayer/(?:[^/]+/)+(?:video_)?embed\\.html|embed)\\b.+?\\buuid=|video/)|\n embed\\.rtl\\.nl/\\#uuid=\n )\n (?P<id>[0-9a-f-]+)'
class RTL2IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtl2'
_VALID_URL = 'https?://(?:www\\.)?rtl2\\.de/sendung/[^/]+/(?:video/(?P<vico_id>\\d+)[^/]+/(?P<vivi_id>\\d+)-|folge/)(?P<id>[^/?#]+)'
class RTL2YouBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtl2'
class RTL2YouIE(RTL2YouBaseIE):
_module = 'yt_dlp.extractor.rtl2'
_VALID_URL = 'http?://you\\.rtl2\\.de/(?:video/\\d+/|youplayer/index\\.html\\?.*?\\bvid=)(?P<id>\\d+)'
class RTL2YouSeriesIE(RTL2YouBaseIE):
_module = 'yt_dlp.extractor.rtl2'
_VALID_URL = 'http?://you\\.rtl2\\.de/videos/(?P<id>\\d+)'
class RTNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtnews'
_VALID_URL = 'https?://(?:www\\.)?rt\\.com/[^/]+/(?:[^/]+/)?(?P<id>\\d+)'
class RTDocumentryIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtnews'
_VALID_URL = 'https?://rtd\\.rt\\.com/(?:(?:series|shows)/[^/]+|films)/(?P<id>[^/?$&#]+)'
class RTDocumentryPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtnews'
_VALID_URL = 'https?://rtd\\.rt\\.com/(?:series|shows)/(?P<id>[^/]+)/$'
class RuptlyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtnews'
_VALID_URL = 'https?://(?:www\\.)?ruptly\\.tv/[a-z]{2}/videos/(?P<id>\\d+-\\d+)'
class RTPIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtp'
_VALID_URL = 'https?://(?:www\\.)?rtp\\.pt/play/p(?P<program_id>[0-9]+)/(?P<id>[^/?#]+)/?'
class RTRFMIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtrfm'
_VALID_URL = 'https?://(?:www\\.)?rtrfm\\.com\\.au/(?:shows|show-episode)/(?P<id>[^/?\\#&]+)'
class RTVEALaCartaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtve'
_VALID_URL = 'https?://(?:www\\.)?rtve\\.es/(m/)?(alacarta/videos|filmoteca)/[^/]+/[^/]+/(?P<id>\\d+)'
class RTVEAudioIE(RTVEALaCartaIE):
_module = 'yt_dlp.extractor.rtve'
_VALID_URL = 'https?://(?:www\\.)?rtve\\.es/(alacarta|play)/audios/[^/]+/[^/]+/(?P<id>[0-9]+)'
class RTVELiveIE(RTVEALaCartaIE):
_module = 'yt_dlp.extractor.rtve'
_VALID_URL = 'https?://(?:www\\.)?rtve\\.es/directo/(?P<id>[a-zA-Z0-9-]+)'
class RTVEInfantilIE(RTVEALaCartaIE):
_module = 'yt_dlp.extractor.rtve'
_VALID_URL = 'https?://(?:www\\.)?rtve\\.es/infantil/serie/[^/]+/video/[^/]+/(?P<id>[0-9]+)/'
class RTVETelevisionIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtve'
_VALID_URL = 'https?://(?:www\\.)?rtve\\.es/television/[^/]+/[^/]+/(?P<id>\\d+).shtml'
class RTVNHIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtvnh'
_VALID_URL = 'https?://(?:www\\.)?rtvnh\\.nl/video/(?P<id>[0-9]+)'
class RTVSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rtvs'
_VALID_URL = 'https?://(?:www\\.)?rtvs\\.sk/(?:radio|televizia)/archiv/\\d+/(?P<id>\\d+)'
class RUHDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ruhd'
_VALID_URL = 'https?://(?:www\\.)?ruhd\\.ru/play\\.php\\?vid=(?P<id>\\d+)'
class Rule34VideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rule34video'
_VALID_URL = 'https?://(?:www\\.)?rule34video\\.com/videos/(?P<id>\\d+)'
class RumbleEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rumble'
_VALID_URL = 'https?://(?:www\\.)?rumble\\.com/embed/(?:[0-9a-z]+\\.)?(?P<id>[0-9a-z]+)'
class RumbleChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rumble'
_VALID_URL = '(?P<url>https?://(?:www\\.)?rumble\\.com/(?:c|user)/(?P<id>[^&?#$/]+))'
class RutubeBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rutube'
class RutubeIE(RutubeBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/(?:video|(?:play/)?embed)/(?P<id>[\\da-z]{32})'
@classmethod
def suitable(cls, url):
return False if RutubePlaylistIE.suitable(url) else super(RutubeIE, cls).suitable(url)
class RutubePlaylistBaseIE(RutubeBaseIE):
_module = 'yt_dlp.extractor.rutube'
class RutubeChannelIE(RutubePlaylistBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/channel/(?P<id>\\d+)/videos'
class RutubeEmbedIE(RutubeBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/(?:video|play)/embed/(?P<id>[0-9]+)'
class RutubeMovieIE(RutubePlaylistBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/metainfo/tv/(?P<id>\\d+)'
class RutubePersonIE(RutubePlaylistBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/video/person/(?P<id>\\d+)'
class RutubePlaylistIE(RutubePlaylistBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/(?:video|(?:play/)?embed)/[\\da-z]{32}/\\?.*?\\bpl_id=(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
from ..utils import int_or_none, parse_qs
if not super(RutubePlaylistIE, cls).suitable(url):
return False
params = parse_qs(url)
return params.get('pl_type', [None])[0] and int_or_none(params.get('pl_id', [None])[0])
class RutubeTagsIE(RutubePlaylistBaseIE):
_module = 'yt_dlp.extractor.rutube'
_VALID_URL = 'https?://rutube\\.ru/tags/video/(?P<id>\\d+)'
class GlomexBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.glomex'
class GlomexIE(GlomexBaseIE):
_module = 'yt_dlp.extractor.glomex'
_VALID_URL = 'https?://video\\.glomex\\.com/[^/]+/(?P<id>v-[^-]+)'
class GlomexEmbedIE(GlomexBaseIE):
_module = 'yt_dlp.extractor.glomex'
_VALID_URL = 'https?://player\\.glomex\\.com/integration/[^/]/iframe\\-player\\.html\\?([^#]+&)?playlistId=(?P<id>[^#&]+)'
class MegaTVComBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.megatvcom'
class MegaTVComIE(MegaTVComBaseIE):
_module = 'yt_dlp.extractor.megatvcom'
_VALID_URL = 'https?://(?:www\\.)?megatv\\.com/(?:\\d{4}/\\d{2}/\\d{2}|[^/]+/(?P<id>\\d+))/(?P<slug>[^/]+)'
class MegaTVComEmbedIE(MegaTVComBaseIE):
_module = 'yt_dlp.extractor.megatvcom'
_VALID_URL = '(?:https?:)?//(?:www\\.)?megatv\\.com/embed/?\\?p=(?P<id>\\d+)'
class RUTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.rutv'
_VALID_URL = '(?x)\n https?://\n (?:test)?player\\.(?:rutv\\.ru|vgtrk\\.com)/\n (?P<path>\n flash\\d+v/container\\.swf\\?id=|\n iframe/(?P<type>swf|video|live)/id/|\n index/iframe/cast_id/\n )\n (?P<id>\\d+)\n '
class RuutuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ruutu'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?(?:ruutu|supla)\\.fi/(?:video|supla|audio)/|\n static\\.nelonenmedia\\.fi/player/misc/embed_player\\.html\\?.*?\\bnid=\n )\n (?P<id>\\d+)\n '
class RuvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ruv'
_VALID_URL = 'https?://(?:www\\.)?ruv\\.is/(?:sarpurinn/[^/]+|node)/(?P<id>[^/]+(?:/\\d+)?)'
class SafariBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.safari'
class SafariIE(SafariBaseIE):
_module = 'yt_dlp.extractor.safari'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?(?:safaribooksonline|(?:learning\\.)?oreilly)\\.com/\n (?:\n library/view/[^/]+/(?P<course_id>[^/]+)/(?P<part>[^/?\\#&]+)\\.html|\n videos/[^/]+/[^/]+/(?P<reference_id>[^-]+-[^/?\\#&]+)\n )\n '
class SafariApiIE(SafariBaseIE):
_module = 'yt_dlp.extractor.safari'
_VALID_URL = 'https?://(?:www\\.)?(?:safaribooksonline|(?:learning\\.)?oreilly)\\.com/api/v1/book/(?P<course_id>[^/]+)/chapter(?:-content)?/(?P<part>[^/?#&]+)\\.html'
class SafariCourseIE(SafariBaseIE):
_module = 'yt_dlp.extractor.safari'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?(?:safaribooksonline|(?:learning\\.)?oreilly)\\.com/\n (?:\n library/view/[^/]+|\n api/v1/book|\n videos/[^/]+\n )|\n techbus\\.safaribooksonline\\.com\n )\n /(?P<id>[^/]+)\n '
@classmethod
def suitable(cls, url):
return (False if SafariIE.suitable(url) or SafariApiIE.suitable(url)
else super(SafariCourseIE, cls).suitable(url))
class SaitosanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.saitosan'
_VALID_URL = 'https?://(?:www\\.)?saitosan\\.net/bview.html\\?id=(?P<id>[0-9]+)'
class SampleFocusIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.samplefocus'
_VALID_URL = 'https?://(?:www\\.)?samplefocus\\.com/samples/(?P<id>[^/?&#]+)'
class SapoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sapo'
_VALID_URL = 'https?://(?:(?:v2|www)\\.)?videos\\.sapo\\.(?:pt|cv|ao|mz|tl)/(?P<id>[\\da-zA-Z]{20})'
class SaveFromIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.savefrom'
_VALID_URL = 'https?://[^.]+\\.savefrom\\.net/\\#url=(?P<url>.*)$'
class SBSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sbs'
_VALID_URL = '(?x)\n https?://(?:www\\.)?sbs\\.com\\.au/(?:\n ondemand(?:\n /video/(?:single/)?|\n /movie/[^/]+/|\n .*?\\bplay=|/watch/\n )|news/(?:embeds/)?video/\n )(?P<id>[0-9]+)'
class ScreencastIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.screencast'
_VALID_URL = 'https?://(?:www\\.)?screencast\\.com/t/(?P<id>[a-zA-Z0-9]+)'
class ScreencastOMaticIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.screencastomatic'
_VALID_URL = 'https?://screencast-o-matic\\.com/(?:(?:watch|player)/|embed\\?.*?\\bsc=)(?P<id>[0-9a-zA-Z]+)'
class AWSIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.aws'
class ScrippsNetworksWatchIE(AWSIE):
_module = 'yt_dlp.extractor.scrippsnetworks'
_VALID_URL = '(?x)\n https?://\n watch\\.\n (?P<site>geniuskitchen)\\.com/\n (?:\n player\\.[A-Z0-9]+\\.html\\#|\n show/(?:[^/]+/){2}|\n player/\n )\n (?P<id>\\d+)\n '
class ScrippsNetworksIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.scrippsnetworks'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>cookingchanneltv|discovery|(?:diy|food)network|hgtv|travelchannel)\\.com/videos/[0-9a-z-]+-(?P<id>\\d+)'
class SCTEBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.scte'
class SCTEIE(SCTEBaseIE):
_module = 'yt_dlp.extractor.scte'
_VALID_URL = 'https?://learning\\.scte\\.org/mod/scorm/view\\.php?.*?\\bid=(?P<id>\\d+)'
class SCTECourseIE(SCTEBaseIE):
_module = 'yt_dlp.extractor.scte'
_VALID_URL = 'https?://learning\\.scte\\.org/(?:mod/sub)?course/view\\.php?.*?\\bid=(?P<id>\\d+)'
class SeekerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.seeker'
_VALID_URL = 'https?://(?:www\\.)?seeker\\.com/(?P<display_id>.*)-(?P<article_id>\\d+)\\.html'
class SenateISVPIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.senategov'
_VALID_URL = 'https?://(?:www\\.)?senate\\.gov/isvp/?\\?(?P<qs>.+)'
class SenateGovIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.senategov'
_VALID_URL = 'https?:\\/\\/(?:www\\.)?(help|appropriations|judiciary|banking|armed-services|finance)\\.senate\\.gov'
class SendtoNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sendtonews'
_VALID_URL = 'https?://embed\\.sendtonews\\.com/player2/embedplayer\\.php\\?.*\\bSC=(?P<id>[0-9A-Za-z-]+)'
class ServusIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.servus'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n (?:\n servus\\.com/(?:(?:at|de)/p/[^/]+|tv/videos)|\n (?:servustv|pm-wissen)\\.com/videos\n )\n /(?P<id>[aA]{2}-\\w+|\\d+-\\d+)\n '
class SevenPlusIE(BrightcoveNewIE):
_module = 'yt_dlp.extractor.sevenplus'
_VALID_URL = 'https?://(?:www\\.)?7plus\\.com\\.au/(?P<path>[^?]+\\?.*?\\bepisode-id=(?P<id>[^&#]+))'
class SexuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sexu'
_VALID_URL = 'https?://(?:www\\.)?sexu\\.com/(?P<id>\\d+)'
class SeznamZpravyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.seznamzpravy'
_VALID_URL = 'https?://(?:www\\.)?seznamzpravy\\.cz/iframe/player\\?.*\\bsrc='
class SeznamZpravyArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.seznamzpravy'
_VALID_URL = 'https?://(?:www\\.)?(?:seznam\\.cz/zpravy|seznamzpravy\\.cz)/clanek/(?:[^/?#&]+)-(?P<id>\\d+)'
class ShahidBaseIE(AWSIE):
_module = 'yt_dlp.extractor.shahid'
class ShahidIE(ShahidBaseIE):
_module = 'yt_dlp.extractor.shahid'
_VALID_URL = 'https?://shahid\\.mbc\\.net/[a-z]{2}/(?:serie|show|movie)s/[^/]+/(?P<type>episode|clip|movie)-(?P<id>\\d+)'
class ShahidShowIE(ShahidBaseIE):
_module = 'yt_dlp.extractor.shahid'
_VALID_URL = 'https?://shahid\\.mbc\\.net/[a-z]{2}/(?:show|serie)s/[^/]+/(?:show|series)-(?P<id>\\d+)'
class SharedBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.shared'
class SharedIE(SharedBaseIE):
_module = 'yt_dlp.extractor.shared'
_VALID_URL = 'https?://shared\\.sx/(?P<id>[\\da-z]{10})'
class VivoIE(SharedBaseIE):
_module = 'yt_dlp.extractor.shared'
_VALID_URL = 'https?://vivo\\.s[xt]/(?P<id>[\\da-z]{10})'
class ShemarooMeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.shemaroome'
_VALID_URL = 'https?://(?:www\\.)?shemaroome\\.com/(?:movies|shows)/(?P<id>[^?#]+)'
class ShowRoomLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.showroomlive'
_VALID_URL = 'https?://(?:www\\.)?showroom-live\\.com/(?!onlive|timetable|event|campaign|news|ranking|room)(?P<id>[^/?#&]+)'
class SimplecastBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.simplecast'
class SimplecastIE(SimplecastBaseIE):
_module = 'yt_dlp.extractor.simplecast'
_VALID_URL = 'https?://(?:api\\.simplecast\\.com/episodes|player\\.simplecast\\.com)/(?P<id>[\\da-f]{8}-(?:[\\da-f]{4}-){3}[\\da-f]{12})'
class SimplecastEpisodeIE(SimplecastBaseIE):
_module = 'yt_dlp.extractor.simplecast'
_VALID_URL = 'https?://(?!api\\.)[^/]+\\.simplecast\\.com/episodes/(?P<id>[^/?&#]+)'
class SimplecastPodcastIE(SimplecastBaseIE):
_module = 'yt_dlp.extractor.simplecast'
_VALID_URL = 'https?://(?!(?:api|cdn|embed|feeds|player)\\.)(?P<id>[^/]+)\\.simplecast\\.com(?!/episodes/[^/?&#]+)'
class SinaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sina'
_VALID_URL = '(?x)https?://(?:.*?\\.)?video\\.sina\\.com\\.cn/\n (?:\n (?:view/|.*\\#)(?P<id>\\d+)|\n .+?/(?P<pseudo_id>[^/?#]+)(?:\\.s?html)|\n # This is used by external sites like Weibo\n api/sinawebApi/outplay.php/(?P<token>.+?)\\.swf\n )\n '
class SixPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sixplay'
_VALID_URL = '(?:6play:|https?://(?:www\\.)?(?P<domain>6play\\.fr|rtlplay\\.be|play\\.rtl\\.hr|rtlmost\\.hu)/.+?-c_)(?P<id>[0-9]+)'
class SkebIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.skeb'
_VALID_URL = 'https?://skeb\\.jp/@[^/]+/works/(?P<id>\\d+)'
class SkyItPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://player\\.sky\\.it/player/(?:external|social)\\.html\\?.*?\\bid=(?P<id>\\d+)'
class SkyItVideoIE(SkyItPlayerIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://(?:masterchef|video|xfactor)\\.sky\\.it(?:/[^/]+)*/video/[0-9a-z-]+-(?P<id>\\d+)'
class SkyItVideoLiveIE(SkyItPlayerIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://video\\.sky\\.it/diretta/(?P<id>[^/?&#]+)'
class SkyItIE(SkyItPlayerIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://(?:sport|tg24)\\.sky\\.it(?:/[^/]+)*/\\d{4}/\\d{2}/\\d{2}/(?P<id>[^/?&#]+)'
class SkyItAcademyIE(SkyItIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://(?:www\\.)?skyacademy\\.it(?:/[^/]+)*/\\d{4}/\\d{2}/\\d{2}/(?P<id>[^/?&#]+)'
class SkyItArteIE(SkyItIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://arte\\.sky\\.it/video/(?P<id>[^/?&#]+)'
class CieloTVItIE(SkyItIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://(?:www\\.)?cielotv\\.it/video/(?P<id>[^.]+)\\.html'
class TV8ItIE(SkyItVideoIE):
_module = 'yt_dlp.extractor.skyit'
_VALID_URL = 'https?://tv8\\.it/showvideo/(?P<id>\\d+)'
class SkylineWebcamsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.skylinewebcams'
_VALID_URL = 'https?://(?:www\\.)?skylinewebcams\\.com/[^/]+/webcam/(?:[^/]+/)+(?P<id>[^/]+)\\.html'
class SkyNewsArabiaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.skynewsarabia'
class SkyNewsArabiaIE(SkyNewsArabiaBaseIE):
_module = 'yt_dlp.extractor.skynewsarabia'
_VALID_URL = 'https?://(?:www\\.)?skynewsarabia\\.com/web/video/(?P<id>[0-9]+)'
class SkyNewsArabiaArticleIE(SkyNewsArabiaBaseIE):
_module = 'yt_dlp.extractor.skynewsarabia'
_VALID_URL = 'https?://(?:www\\.)?skynewsarabia\\.com/web/article/(?P<id>[0-9]+)'
class SkyNewsAUIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.skynewsau'
_VALID_URL = 'https?://(?:www\\.)?skynews\\.com\\.au/[^/]+/[^/]+/[^/]+/video/(?P<id>[a-z0-9]+)'
class SkyBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sky'
class SkyNewsIE(SkyBaseIE):
_module = 'yt_dlp.extractor.sky'
_VALID_URL = 'https?://news\\.sky\\.com/video/[0-9a-z-]+-(?P<id>[0-9]+)'
class SkyNewsStoryIE(SkyBaseIE):
_module = 'yt_dlp.extractor.sky'
_VALID_URL = 'https?://news\\.sky\\.com/story/[0-9a-z-]+-(?P<id>[0-9]+)'
class SkySportsIE(SkyBaseIE):
_module = 'yt_dlp.extractor.sky'
_VALID_URL = 'https?://(?:www\\.)?skysports\\.com/watch/video/([^/]+/)*(?P<id>[0-9]+)'
class SkySportsNewsIE(SkyBaseIE):
_module = 'yt_dlp.extractor.sky'
_VALID_URL = 'https?://(?:www\\.)?skysports\\.com/([^/]+/)*news/\\d+/(?P<id>\\d+)'
class SlideshareIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.slideshare'
_VALID_URL = 'https?://(?:www\\.)?slideshare\\.net/[^/]+?/(?P<title>.+?)($|\\?)'
class SlidesLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.slideslive'
_VALID_URL = 'https?://slideslive\\.com/(?P<id>[0-9]+)'
class SlutloadIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.slutload'
_VALID_URL = 'https?://(?:\\w+\\.)?slutload\\.com/(?:video/[^/]+|embed_player|watch)/(?P<id>[^/]+)'
class SnotrIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.snotr'
_VALID_URL = 'http?://(?:www\\.)?snotr\\.com/video/(?P<id>\\d+)/([\\w]+)'
class SohuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sohu'
_VALID_URL = 'https?://(?P<mytv>my\\.)?tv\\.sohu\\.com/.+?/(?(mytv)|n)(?P<id>\\d+)\\.shtml.*?'
class SonyLIVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sonyliv'
_VALID_URL = '(?x)\n (?:\n sonyliv:|\n https?://(?:www\\.)?sonyliv\\.com/(?:s(?:how|port)s/[^/]+|movies|clip|trailer|music-videos)/[^/?#&]+-\n )\n (?P<id>\\d+)\n '
class SonyLIVSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sonyliv'
_VALID_URL = 'https?://(?:www\\.)?sonyliv\\.com/shows/[^/?#&]+-(?P<id>\\d{10})$'
class SoundcloudEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'https?://(?:w|player|p)\\.soundcloud\\.com/player/?.*?\\burl=(?P<id>.+)'
class SoundcloudBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.soundcloud'
class SoundcloudIE(SoundcloudBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = '(?x)^(?:https?://)?\n (?:(?:(?:www\\.|m\\.)?soundcloud\\.com/\n (?!stations/track)\n (?P<uploader>[\\w\\d-]+)/\n (?!(?:tracks|albums|sets(?:/.+?)?|reposts|likes|spotlight)/?(?:$|[?#]))\n (?P<title>[\\w\\d-]+)\n (?:/(?P<token>(?!(?:albums|sets|recommended))[^?]+?))?\n (?:[?].*)?$)\n |(?:api(?:-v2)?\\.soundcloud\\.com/tracks/(?P<track_id>\\d+)\n (?:/?\\?secret_token=(?P<secret_token>[^&]+))?)\n )\n '
class SoundcloudPlaylistBaseIE(SoundcloudBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?soundcloud\\.com/(?P<uploader>[\\w\\d-]+)/sets/(?P<slug_title>[:\\w\\d-]+)(?:/(?P<token>[^?/]+))?'
class SoundcloudPagedPlaylistBaseIE(SoundcloudBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
class SoundcloudRelatedIE(SoundcloudPagedPlaylistBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?soundcloud\\.com/(?P<slug>[\\w\\d-]+/[\\w\\d-]+)/(?P<relation>albums|sets|recommended)'
class SoundcloudUserIE(SoundcloudPagedPlaylistBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = '(?x)\n https?://\n (?:(?:www|m)\\.)?soundcloud\\.com/\n (?P<user>[^/]+)\n (?:/\n (?P<rsrc>tracks|albums|sets|reposts|likes|spotlight)\n )?\n /?(?:[?#].*)?$\n '
class SoundcloudTrackStationIE(SoundcloudPagedPlaylistBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?soundcloud\\.com/stations/track/[^/]+/(?P<id>[^/?#&]+)'
class SoundcloudPlaylistIE(SoundcloudPlaylistBaseIE):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'https?://api(?:-v2)?\\.soundcloud\\.com/playlists/(?P<id>[0-9]+)(?:/?\\?secret_token=(?P<token>[^&]+?))?$'
class SoundcloudSearchIE(SoundcloudBaseIE, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.soundcloud'
_VALID_URL = 'scsearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class SoundgasmIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.soundgasm'
_VALID_URL = 'https?://(?:www\\.)?soundgasm\\.net/u/(?P<user>[0-9a-zA-Z_-]+)/(?P<display_id>[0-9a-zA-Z_-]+)'
class SoundgasmProfileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.soundgasm'
_VALID_URL = 'https?://(?:www\\.)?soundgasm\\.net/u/(?P<id>[^/]+)/?(?:\\#.*)?$'
class SouthParkIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.southpark'
_VALID_URL = 'https?://(?:www\\.)?(?P<url>southpark(?:\\.cc|studios)\\.com/((?:video-)?clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\\?|#|$))'
class SouthParkDeIE(SouthParkIE):
_module = 'yt_dlp.extractor.southpark'
_VALID_URL = 'https?://(?:www\\.)?(?P<url>southpark\\.de/(?:(en/(videoclip|collections|episodes|video-clips))|(videoclip|collections|folgen))/(?P<id>(?P<unique_id>.+?)/.+?)(?:\\?|#|$))'
class SouthParkDkIE(SouthParkIE):
_module = 'yt_dlp.extractor.southpark'
_VALID_URL = 'https?://(?:www\\.)?(?P<url>southparkstudios\\.(?:dk|nu)/(?:clips|full-episodes|collections)/(?P<id>.+?)(\\?|#|$))'
class SouthParkEsIE(SouthParkIE):
_module = 'yt_dlp.extractor.southpark'
_VALID_URL = 'https?://(?:www\\.)?(?P<url>southpark\\.cc\\.com/es/episodios/(?P<id>.+?)(\\?|#|$))'
class SouthParkNlIE(SouthParkIE):
_module = 'yt_dlp.extractor.southpark'
_VALID_URL = 'https?://(?:www\\.)?(?P<url>southpark\\.nl/(?:clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\\?|#|$))'
class SovietsClosetBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sovietscloset'
class SovietsClosetIE(SovietsClosetBaseIE):
_module = 'yt_dlp.extractor.sovietscloset'
_VALID_URL = 'https?://(?:www\\.)?sovietscloset\\.com/video/(?P<id>[0-9]+)/?'
class SovietsClosetPlaylistIE(SovietsClosetBaseIE):
_module = 'yt_dlp.extractor.sovietscloset'
_VALID_URL = 'https?://(?:www\\.)?sovietscloset\\.com/(?!video)(?P<id>[^#?]+)'
class SpankBangIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spankbang'
_VALID_URL = '(?x)\n https?://\n (?:[^/]+\\.)?spankbang\\.com/\n (?:\n (?P<id>[\\da-z]+)/(?:video|play|embed)\\b|\n [\\da-z]+-(?P<id_2>[\\da-z]+)/playlist/[^/?#&]+\n )\n '
class SpankBangPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spankbang'
_VALID_URL = 'https?://(?:[^/]+\\.)?spankbang\\.com/(?P<id>[\\da-z]+)/playlist/(?P<display_id>[^/]+)'
class SpankwireIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spankwire'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?spankwire\\.com/\n (?:\n [^/]+/video|\n EmbedPlayer\\.aspx/?\\?.*?\\bArticleId=\n )\n (?P<id>\\d+)\n '
class SpiegelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spiegel'
_VALID_URL = 'https?://(?:www\\.)?(?:spiegel|manager-magazin)\\.de(?:/[^/]+)+/[^/]*-(?P<id>[0-9]+|[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})(?:-embed|-iframe)?(?:\\.html)?(?:#.*)?$'
class BellatorIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.spike'
_VALID_URL = 'https?://(?:www\\.)?bellator\\.com/[^/]+/[\\da-z]{6}(?:[/?#&]|$)'
class ParamountNetworkIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.spike'
_VALID_URL = 'https?://(?:www\\.)?paramountnetwork\\.com/[^/]+/[\\da-z]{6}(?:[/?#&]|$)'
class StitcherBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.stitcher'
class StitcherIE(StitcherBaseIE):
_module = 'yt_dlp.extractor.stitcher'
_VALID_URL = 'https?://(?:www\\.)?stitcher\\.com/(?:podcast|show)/(?:[^/]+/)+e(?:pisode)?/(?:[^/#?&]+-)?(?P<id>\\d+)'
class StitcherShowIE(StitcherBaseIE):
_module = 'yt_dlp.extractor.stitcher'
_VALID_URL = 'https?://(?:www\\.)?stitcher\\.com/(?:podcast|show)/(?P<id>[^/#?&]+)/?(?:[?#&]|$)'
class Sport5IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sport5'
_VALID_URL = 'https?://(?:www|vod)?\\.sport5\\.co\\.il/.*\\b(?:Vi|docID)=(?P<id>\\d+)'
class SportBoxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sportbox'
_VALID_URL = 'https?://(?:news\\.sportbox|matchtv)\\.ru/vdl/player(?:/[^/]+/|\\?.*?\\bn?id=)(?P<id>\\d+)'
class SportDeutschlandIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sportdeutschland'
_VALID_URL = 'https?://sportdeutschland\\.tv/(?P<id>(?:[^/]+/)?[^?#/&]+)'
class SpotifyBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spotify'
class SpotifyIE(SpotifyBaseIE):
_module = 'yt_dlp.extractor.spotify'
_VALID_URL = 'https?://open\\.spotify\\.com/episode/(?P<id>[^/?&#]+)'
class SpotifyShowIE(SpotifyBaseIE):
_module = 'yt_dlp.extractor.spotify'
_VALID_URL = 'https?://open\\.spotify\\.com/show/(?P<id>[^/?&#]+)'
class SpreakerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spreaker'
_VALID_URL = '(?x)\n https?://\n api\\.spreaker\\.com/\n (?:\n (?:download/)?episode|\n v2/episodes\n )/\n (?P<id>\\d+)\n '
class SpreakerPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spreaker'
_VALID_URL = 'https?://(?:www\\.)?spreaker\\.com/user/[^/]+/(?P<id>[^/?#&]+)'
class SpreakerShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spreaker'
_VALID_URL = 'https?://api\\.spreaker\\.com/show/(?P<id>\\d+)'
class SpreakerShowPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.spreaker'
_VALID_URL = 'https?://(?:www\\.)?spreaker\\.com/show/(?P<id>[^/?#&]+)'
class SpringboardPlatformIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.springboardplatform'
_VALID_URL = '(?x)\n https?://\n cms\\.springboardplatform\\.com/\n (?:\n (?:previews|embed_iframe)/(?P<index>\\d+)/video/(?P<id>\\d+)|\n xml_feeds_advanced/index/(?P<index_2>\\d+)/rss3/(?P<id_2>\\d+)\n )\n '
class SproutIE(AdobePassIE):
_module = 'yt_dlp.extractor.sprout'
_VALID_URL = 'https?://(?:www\\.)?(?:sproutonline|universalkids)\\.com/(?:watch|(?:[^/]+/)*videos)/(?P<id>[^/?#]+)'
class SRGSSRIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.srgssr'
_VALID_URL = '(?x)\n (?:\n https?://tp\\.srgssr\\.ch/p(?:/[^/]+)+\\?urn=urn|\n srgssr\n ):\n (?P<bu>\n srf|rts|rsi|rtr|swi\n ):(?:[^:]+:)?\n (?P<type>\n video|audio\n ):\n (?P<id>\n [0-9a-f\\-]{36}|\\d+\n )\n '
class RTSIE(SRGSSRIE):
_module = 'yt_dlp.extractor.rts'
_VALID_URL = 'rts:(?P<rts_id>\\d+)|https?://(?:.+?\\.)?rts\\.ch/(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\\.html'
class SRGSSRPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.srgssr'
_VALID_URL = '(?x)\n https?://\n (?:(?:www|play)\\.)?\n (?P<bu>srf|rts|rsi|rtr|swissinfo)\\.ch/play/(?:tv|radio)/\n (?:\n [^/]+/(?P<type>video|audio)/[^?]+|\n popup(?P<type_2>video|audio)player\n )\n \\?.*?\\b(?:id=|urn=urn:[^:]+:video:)(?P<id>[0-9a-f\\-]{36}|\\d+)\n '
class SRMediathekIE(ARDMediathekBaseIE):
_module = 'yt_dlp.extractor.srmediathek'
_VALID_URL = 'https?://sr-mediathek(?:\\.sr-online)?\\.de/index\\.php\\?.*?&id=(?P<id>[0-9]+)'
class StanfordOpenClassroomIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.stanfordoc'
_VALID_URL = 'https?://openclassroom\\.stanford\\.edu(?P<path>/?|(/MainFolder/(?:HomePage|CoursePage|VideoPage)\\.php([?]course=(?P<course>[^&]+)(&video=(?P<video>[^&]+))?(&.*)?)?))$'
class StarTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.startv'
_VALID_URL = '(?x)\n https?://(?:www\\.)?startv\\.com\\.tr/\n (?:\n (?:dizi|program)/(?:[^/?#&]+)/(?:bolumler|fragmanlar|ekstralar)|\n video/arsiv/(?:dizi|program)/(?:[^/?#&]+)\n )/\n (?P<id>[^/?#&]+)\n '
class SteamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.steam'
_VALID_URL = '(?x)\n https?://(?:store\\.steampowered|steamcommunity)\\.com/\n (?:agecheck/)?\n (?P<urltype>video|app)/ #If the page is only for videos or for a game\n (?P<gameID>\\d+)/?\n (?P<videoID>\\d*)(?P<extra>\\??) # For urltype == video we sometimes get the videoID\n |\n https?://(?:www\\.)?steamcommunity\\.com/sharedfiles/filedetails/\\?id=(?P<fileID>[0-9]+)\n '
class StoryFireBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.storyfire'
class StoryFireIE(StoryFireBaseIE):
_module = 'yt_dlp.extractor.storyfire'
_VALID_URL = 'https?://(?:www\\.)?storyfire\\.com/video-details/(?P<id>[0-9a-f]{24})'
class StoryFireUserIE(StoryFireBaseIE):
_module = 'yt_dlp.extractor.storyfire'
_VALID_URL = 'https?://(?:www\\.)?storyfire\\.com/user/(?P<id>[^/]+)/video'
class StoryFireSeriesIE(StoryFireBaseIE):
_module = 'yt_dlp.extractor.storyfire'
_VALID_URL = 'https?://(?:www\\.)?storyfire\\.com/write/series/stories/(?P<id>[^/?&#]+)'
class StreamableIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streamable'
_VALID_URL = 'https?://streamable\\.com/(?:[es]/)?(?P<id>\\w+)'
class StreamanityIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streamanity'
_VALID_URL = 'https?://(?:www\\.)?streamanity\\.com/video/(?P<id>[A-Za-z0-9]+)'
class StreamcloudIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streamcloud'
_VALID_URL = 'https?://streamcloud\\.eu/(?P<id>[a-zA-Z0-9_-]+)(?:/(?P<fname>[^#?]*)\\.html)?'
class StreamCZIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streamcz'
_VALID_URL = 'https?://(?:www\\.)?(?:stream|televizeseznam)\\.cz/[^?#]+/(?P<display_id>[^?#]+)-(?P<id>[0-9]+)'
class StreamFFIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streamff'
_VALID_URL = 'https?://(?:www\\.)?streamff\\.com/v/(?P<id>[a-zA-Z0-9]+)'
class StreetVoiceIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.streetvoice'
_VALID_URL = 'https?://(?:.+?\\.)?streetvoice\\.com/[^/]+/songs/(?P<id>[0-9]+)'
class StretchInternetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.stretchinternet'
_VALID_URL = 'https?://portal\\.stretchinternet\\.com/[^/]+/(?:portal|full)\\.htm\\?.*?\\beventId=(?P<id>\\d+)'
class StripchatIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.stripchat'
_VALID_URL = 'https?://stripchat\\.com/(?P<id>[0-9A-Za-z-_]+)'
class STVPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.stv'
_VALID_URL = 'https?://player\\.stv\\.tv/(?P<type>episode|video)/(?P<id>[a-z0-9]{4})'
class SunPornoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sunporno'
_VALID_URL = 'https?://(?:(?:www\\.)?sunporno\\.com/videos|embeds\\.sunporno\\.com/embed)/(?P<id>\\d+)'
class SverigesRadioBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sverigesradio'
class SverigesRadioEpisodeIE(SverigesRadioBaseIE):
_module = 'yt_dlp.extractor.sverigesradio'
_VALID_URL = 'https?://(?:www\\.)?sverigesradio\\.se/(?:sida/)?avsnitt/(?P<id>[0-9]+)'
class SverigesRadioPublicationIE(SverigesRadioBaseIE):
_module = 'yt_dlp.extractor.sverigesradio'
_VALID_URL = 'https?://(?:www\\.)?sverigesradio\\.se/sida/(?:artikel|gruppsida)\\.aspx\\?.*?\\bartikel=(?P<id>[0-9]+)'
class SVTBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.svt'
class SVTIE(SVTBaseIE):
_module = 'yt_dlp.extractor.svt'
_VALID_URL = 'https?://(?:www\\.)?svt\\.se/wd\\?(?:.*?&)?widgetId=(?P<widget_id>\\d+)&.*?\\barticleId=(?P<id>\\d+)'
class SVTPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.svt'
_VALID_URL = 'https?://(?:www\\.)?svt\\.se/(?P<path>(?:[^/]+/)*(?P<id>[^/?&#]+))'
@classmethod
def suitable(cls, url):
return False if SVTIE.suitable(url) or SVTPlayIE.suitable(url) else super(SVTPageIE, cls).suitable(url)
class SVTPlayBaseIE(SVTBaseIE):
_module = 'yt_dlp.extractor.svt'
class SVTPlayIE(SVTPlayBaseIE):
_module = 'yt_dlp.extractor.svt'
_VALID_URL = '(?x)\n (?:\n (?:\n svt:|\n https?://(?:www\\.)?svt\\.se/barnkanalen/barnplay/[^/]+/\n )\n (?P<svt_id>[^/?#&]+)|\n https?://(?:www\\.)?(?:svtplay|oppetarkiv)\\.se/(?:video|klipp|kanaler)/(?P<id>[^/?#&]+)\n (?:.*?(?:modalId|id)=(?P<modal_id>[\\da-zA-Z-]+))?\n )\n '
class SVTSeriesIE(SVTPlayBaseIE):
_module = 'yt_dlp.extractor.svt'
_VALID_URL = 'https?://(?:www\\.)?svtplay\\.se/(?P<id>[^/?&#]+)(?:.+?\\btab=(?P<season_slug>[^&#]+))?'
@classmethod
def suitable(cls, url):
return False if SVTIE.suitable(url) or SVTPlayIE.suitable(url) else super(SVTSeriesIE, cls).suitable(url)
class SWRMediathekIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.swrmediathek'
_VALID_URL = 'https?://(?:www\\.)?swrmediathek\\.de/(?:content/)?player\\.htm\\?show=(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class SyfyIE(AdobePassIE):
_module = 'yt_dlp.extractor.syfy'
_VALID_URL = 'https?://(?:www\\.)?syfy\\.com/(?:[^/]+/)?videos/(?P<id>[^/?#]+)'
class SztvHuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.sztvhu'
_VALID_URL = 'https?://(?:(?:www\\.)?sztv\\.hu|www\\.tvszombathely\\.hu)/(?:[^/]+)/.+-(?P<id>[0-9]+)'
class TagesschauIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tagesschau'
_VALID_URL = 'https?://(?:www\\.)?tagesschau\\.de/(?P<path>[^/]+/(?:[^/]+/)*?(?P<id>[^/#?]+?(?:-?[0-9]+)?))(?:~_?[^/#?]+?)?\\.html'
class TassIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tass'
_VALID_URL = 'https?://(?:tass\\.ru|itar-tass\\.com)/[^/]+/(?P<id>\\d+)'
class TBSIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.tbs'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>tbs|tntdrama)\\.com(?P<path>/(?:movies|watchtnt|watchtbs|shows/[^/]+/(?:clips|season-\\d+/episode-\\d+))/(?P<id>[^/?#]+))'
class TDSLifewayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tdslifeway'
_VALID_URL = 'https?://tds\\.lifeway\\.com/v1/trainingdeliverysystem/courses/(?P<id>\\d+)/index\\.html'
class TeachableBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teachable'
class TeachableIE(TeachableBaseIE):
_module = 'yt_dlp.extractor.teachable'
_VALID_URL = '(?x)\n (?:\n teachable:https?://(?P<site_t>[^/]+)|\n https?://(?:www\\.)?(?P<site>v1\\.upskillcourses\\.com|gns3\\.teachable\\.com|academyhacker\\.com|stackskills\\.com|market\\.saleshacker\\.com|learnability\\.org|edurila\\.com|courses\\.workitdaily\\.com)\n )\n /courses/[^/]+/lectures/(?P<id>\\d+)\n '
class TeachableCourseIE(TeachableBaseIE):
_module = 'yt_dlp.extractor.teachable'
_VALID_URL = '(?x)\n (?:\n teachable:https?://(?P<site_t>[^/]+)|\n https?://(?:www\\.)?(?P<site>v1\\.upskillcourses\\.com|gns3\\.teachable\\.com|academyhacker\\.com|stackskills\\.com|market\\.saleshacker\\.com|learnability\\.org|edurila\\.com|courses\\.workitdaily\\.com)\n )\n /(?:courses|p)/(?:enrolled/)?(?P<id>[^/?#&]+)\n '
@classmethod
def suitable(cls, url):
return False if TeachableIE.suitable(url) else super(
TeachableCourseIE, cls).suitable(url)
class TeacherTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teachertube'
_VALID_URL = 'https?://(?:www\\.)?teachertube\\.com/(viewVideo\\.php\\?video_id=|music\\.php\\?music_id=|video/(?:[\\da-z-]+-)?|audio/)(?P<id>\\d+)'
class TeacherTubeUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teachertube'
_VALID_URL = 'https?://(?:www\\.)?teachertube\\.com/(user/profile|collection)/(?P<user>[0-9a-zA-Z]+)/?'
class TeachingChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teachingchannel'
_VALID_URL = 'https?://(?:www\\.)?teachingchannel\\.org/videos?/(?P<id>[^/?&#]+)'
class TeamcocoIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.teamcoco'
_VALID_URL = 'https?://(?:\\w+\\.)?teamcoco\\.com/(?P<id>([^/]+/)*[^/?#]+)'
class TeamTreeHouseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teamtreehouse'
_VALID_URL = 'https?://(?:www\\.)?teamtreehouse\\.com/library/(?P<id>[^/]+)'
class TechTalksIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.techtalks'
_VALID_URL = 'https?://techtalks\\.tv/talks/(?:[^/]+/)?(?P<id>\\d+)'
class TedEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ted'
_VALID_URL = 'https?://embed(?:-ssl)?\\.ted\\.com/'
class TedBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ted'
class TedPlaylistIE(TedBaseIE):
_module = 'yt_dlp.extractor.ted'
_VALID_URL = 'https?://www\\.ted\\.com/(?:playlists(?:/\\d+)?)(?:/lang/[^/#?]+)?/(?P<id>[\\w-]+)'
class TedSeriesIE(TedBaseIE):
_module = 'yt_dlp.extractor.ted'
_VALID_URL = 'https?://www\\.ted\\.com/(?:series)(?:/lang/[^/#?]+)?/(?P<id>[\\w-]+)(?:#season_(?P<season>\\d+))?'
class TedTalkIE(TedBaseIE):
_module = 'yt_dlp.extractor.ted'
_VALID_URL = 'https?://www\\.ted\\.com/(?:talks)(?:/lang/[^/#?]+)?/(?P<id>[\\w-]+)'
class Tele5IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tele5'
_VALID_URL = 'https?://(?:www\\.)?tele5\\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class Tele13IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tele13'
_VALID_URL = '^https?://(?:www\\.)?t13\\.cl/videos(?:/[^/]+)+/(?P<id>[\\w-]+)'
class TeleBruxellesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telebruxelles'
_VALID_URL = 'https?://(?:www\\.)?(?:telebruxelles|bx1)\\.be/(?:[^/]+/)*(?P<id>[^/#?]+)'
class TelecincoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telecinco'
_VALID_URL = 'https?://(?:www\\.)?(?:telecinco\\.es|cuatro\\.com|mediaset\\.es)/(?:[^/]+/)+(?P<id>.+?)\\.html'
class MiTeleIE(TelecincoIE):
_module = 'yt_dlp.extractor.mitele'
_VALID_URL = 'https?://(?:www\\.)?mitele\\.es/(?:[^/]+/)+(?P<id>[^/]+)/player'
class TelegraafIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telegraaf'
_VALID_URL = 'https?://(?:www\\.)?telegraaf\\.nl/video/(?P<id>\\d+)'
class TeleMBIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telemb'
_VALID_URL = 'https?://(?:www\\.)?telemb\\.be/(?P<display_id>.+?)_d_(?P<id>\\d+)\\.html'
class TelemundoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telemundo'
_VALID_URL = 'https?:\\/\\/(?:www\\.)?telemundo\\.com\\/.+?video\\/[^\\/]+(?P<id>tmvo\\d{7})'
class TeleQuebecBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telequebec'
class TeleQuebecIE(TeleQuebecBaseIE):
_module = 'yt_dlp.extractor.telequebec'
_VALID_URL = '(?x)\n https?://\n (?:\n zonevideo\\.telequebec\\.tv/media|\n coucou\\.telequebec\\.tv/videos\n )/(?P<id>\\d+)\n '
class TeleQuebecSquatIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telequebec'
_VALID_URL = 'https://squat\\.telequebec\\.tv/videos/(?P<id>\\d+)'
class TeleQuebecEmissionIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telequebec'
_VALID_URL = '(?x)\n https?://\n (?:\n [^/]+\\.telequebec\\.tv/emissions/|\n (?:www\\.)?telequebec\\.tv/\n )\n (?P<id>[^?#&]+)\n '
class TeleQuebecLiveIE(TeleQuebecBaseIE):
_module = 'yt_dlp.extractor.telequebec'
_VALID_URL = 'https?://zonevideo\\.telequebec\\.tv/(?P<id>endirect)'
class TeleQuebecVideoIE(TeleQuebecBaseIE):
_module = 'yt_dlp.extractor.telequebec'
_VALID_URL = 'https?://video\\.telequebec\\.tv/player(?:-live)?/(?P<id>\\d+)'
class TeleTaskIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.teletask'
_VALID_URL = 'https?://(?:www\\.)?tele-task\\.de/archive/video/html5/(?P<id>[0-9]+)'
class TelewebionIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.telewebion'
_VALID_URL = 'https?://(?:www\\.)?telewebion\\.com/#!/episode/(?P<id>\\d+)'
class TennisTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tennistv'
_VALID_URL = 'https?://(?:www\\.)?tennistv\\.com/videos/(?P<id>[-a-z0-9]+)'
class TenPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tenplay'
_VALID_URL = 'https?://(?:www\\.)?10play\\.com\\.au/(?:[^/]+/)+(?P<id>tpv\\d{6}[a-z]{5})'
class TestURLIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.testurl'
_VALID_URL = 'test(?:url)?:(?P<id>(?P<extractor>.+?)(?:_(?P<num>[0-9]+))?)$'
class TF1IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tf1'
_VALID_URL = 'https?://(?:www\\.)?tf1\\.fr/[^/]+/(?P<program_slug>[^/]+)/videos/(?P<id>[^/?&#]+)\\.html'
class TFOIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tfo'
_VALID_URL = 'https?://(?:www\\.)?tfo\\.org/(?:en|fr)/(?:[^/]+/){2}(?P<id>\\d+)'
class TheInterceptIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.theintercept'
_VALID_URL = 'https?://theintercept\\.com/fieldofvision/(?P<id>[^/?#]+)'
class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
_module = 'yt_dlp.extractor.theplatform'
_VALID_URL = '(?x)\n (?:https?://(?:link|player)\\.theplatform\\.com/[sp]/(?P<provider_id>[^/]+)/\n (?:(?:(?:[^/]+/)+select/)?(?P<media>media/(?:guid/\\d+/)?)?|(?P<config>(?:[^/\\?]+/(?:swf|config)|onsite)/select/))?\n |theplatform:)(?P<id>[^/\\?&]+)'
class AENetworksBaseIE(ThePlatformIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = '(?x)\n (?:https?://(?:link|player)\\.theplatform\\.com/[sp]/(?P<provider_id>[^/]+)/\n (?:(?:(?:[^/]+/)+select/)?(?P<media>media/(?:guid/\\d+/)?)?|(?P<config>(?:[^/\\?]+/(?:swf|config)|onsite)/select/))?\n |theplatform:)(?P<id>[^/\\?&]+)'
class AENetworksListBaseIE(AENetworksBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = '(?x)\n (?:https?://(?:link|player)\\.theplatform\\.com/[sp]/(?P<provider_id>[^/]+)/\n (?:(?:(?:[^/]+/)+select/)?(?P<media>media/(?:guid/\\d+/)?)?|(?P<config>(?:[^/\\?]+/(?:swf|config)|onsite)/select/))?\n |theplatform:)(?P<id>[^/\\?&]+)'
class AENetworksIE(AENetworksBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = '(?x)https?://\n (?:(?:www|play|watch)\\.)?\n (?P<domain>\n (?:history(?:vault)?|aetv|mylifetime|lifetimemovieclub)\\.com|\n fyi\\.tv\n )/(?P<id>\n shows/[^/]+/season-\\d+/episode-\\d+|\n (?:\n (?:movie|special)s/[^/]+|\n (?:shows/[^/]+/)?videos\n )/[^/?#&]+\n )'
class AENetworksCollectionIE(AENetworksListBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = '(?x)https?://\n (?:(?:www|play|watch)\\.)?\n (?P<domain>\n (?:history(?:vault)?|aetv|mylifetime|lifetimemovieclub)\\.com|\n fyi\\.tv\n )/(?:[^/]+/)*(?:list|collections)/(?P<id>[^/?#&]+)/?(?:[?#&]|$)'
class AENetworksShowIE(AENetworksListBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = '(?x)https?://\n (?:(?:www|play|watch)\\.)?\n (?P<domain>\n (?:history(?:vault)?|aetv|mylifetime|lifetimemovieclub)\\.com|\n fyi\\.tv\n )/shows/(?P<id>[^/?#&]+)/?(?:[?#&]|$)'
class HistoryTopicIE(AENetworksBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = 'https?://(?:www\\.)?history\\.com/topics/[^/]+/(?P<id>[\\w+-]+?)-video'
class HistoryPlayerIE(AENetworksBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = 'https?://(?:www\\.)?(?P<domain>(?:history|biography)\\.com)/player/(?P<id>\\d+)'
class BiographyIE(AENetworksBaseIE):
_module = 'yt_dlp.extractor.aenetworks'
_VALID_URL = 'https?://(?:www\\.)?biography\\.com/video/(?P<id>[^/?#&]+)'
class AMCNetworksIE(ThePlatformIE):
_module = 'yt_dlp.extractor.amcnetworks'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>amc|bbcamerica|ifc|(?:we|sundance)tv)\\.com/(?P<id>(?:movies|shows(?:/[^/]+)+)/[^/?#&]+)'
class NBCIE(ThePlatformIE):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = 'https?(?P<permalink>://(?:www\\.)?nbc\\.com/(?:classic-tv/)?[^/]+/video/[^/]+/(?P<id>n?\\d+))'
class NBCNewsIE(ThePlatformIE):
_module = 'yt_dlp.extractor.nbc'
_VALID_URL = '(?x)https?://(?:www\\.)?(?:nbcnews|today|msnbc)\\.com/([^/]+/)*(?:.*-)?(?P<id>[^/?]+)'
class ThePlatformFeedIE(ThePlatformBaseIE):
_module = 'yt_dlp.extractor.theplatform'
_VALID_URL = 'https?://feed\\.theplatform\\.com/f/(?P<provider_id>[^/]+)/(?P<feed_id>[^?/]+)\\?(?:[^&]+&)*(?P<filter>by(?:Gui|I)d=(?P<id>[^&]+))'
class CBSBaseIE(ThePlatformFeedIE):
_module = 'yt_dlp.extractor.cbs'
_VALID_URL = 'https?://feed\\.theplatform\\.com/f/(?P<provider_id>[^/]+)/(?P<feed_id>[^?/]+)\\?(?:[^&]+&)*(?P<filter>by(?:Gui|I)d=(?P<id>[^&]+))'
class CBSIE(CBSBaseIE):
_module = 'yt_dlp.extractor.cbs'
_VALID_URL = '(?x)\n (?:\n cbs:|\n https?://(?:www\\.)?(?:\n cbs\\.com/(?:shows/[^/]+/video|movies/[^/]+)/|\n colbertlateshow\\.com/(?:video|podcasts)/)\n )(?P<id>[\\w-]+)'
class CBSInteractiveIE(CBSIE):
_module = 'yt_dlp.extractor.cbsinteractive'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>cnet|zdnet)\\.com/(?:videos|video(?:/share)?)/(?P<id>[^/?]+)'
class CBSNewsEmbedIE(CBSIE):
_module = 'yt_dlp.extractor.cbsnews'
_VALID_URL = 'https?://(?:www\\.)?cbsnews\\.com/embed/video[^#]*#(?P<id>.+)'
class CBSNewsIE(CBSIE):
_module = 'yt_dlp.extractor.cbsnews'
_VALID_URL = 'https?://(?:www\\.)?cbsnews\\.com/(?:news|video)/(?P<id>[\\da-z_-]+)'
class CorusIE(ThePlatformFeedIE):
_module = 'yt_dlp.extractor.corus'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n (?P<domain>\n (?:\n globaltv|\n etcanada|\n seriesplus|\n wnetwork|\n ytv\n )\\.com|\n (?:\n hgtv|\n foodnetwork|\n slice|\n history|\n showcase|\n bigbrothercanada|\n abcspark|\n disney(?:channel|lachaine)\n )\\.ca\n )\n /(?:[^/]+/)*\n (?:\n video\\.html\\?.*?\\bv=|\n videos?/(?:[^/]+/)*(?:[a-z0-9-]+-)?\n )\n (?P<id>\n [\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}|\n (?:[A-Z]{4})?\\d{12,20}\n )\n '
class ParamountPlusIE(CBSBaseIE):
_module = 'yt_dlp.extractor.paramountplus'
_VALID_URL = '(?x)\n (?:\n paramountplus:|\n https?://(?:www\\.)?(?:\n paramountplus\\.com/(?:shows/[^/]+/video|movies/[^/]+)/\n )(?P<id>[\\w-]+))'
class TheSceneIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thescene'
_VALID_URL = 'https?://thescene\\.com/watch/[^/]+/(?P<id>[^/#?]+)'
class TheStarIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thestar'
_VALID_URL = 'https?://(?:www\\.)?thestar\\.com/(?:[^/]+/)*(?P<id>.+)\\.html'
class TheSunIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thesun'
_VALID_URL = 'https://(?:www\\.)?thesun\\.co\\.uk/[^/]+/(?P<id>\\d+)'
class ThetaVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.theta'
_VALID_URL = 'https?://(?:www\\.)?theta\\.tv/video/(?P<id>vid[a-z0-9]+)'
class ThetaStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.theta'
_VALID_URL = 'https?://(?:www\\.)?theta\\.tv/(?!video/)(?P<id>[a-z0-9-]+)'
class TheWeatherChannelIE(ThePlatformIE):
_module = 'yt_dlp.extractor.theweatherchannel'
_VALID_URL = 'https?://(?:www\\.)?weather\\.com(?P<asset_name>(?:/(?P<locale>[a-z]{2}-[A-Z]{2}))?/(?:[^/]+/)*video/(?P<id>[^/?#]+))'
class ThisAmericanLifeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thisamericanlife'
_VALID_URL = 'https?://(?:www\\.)?thisamericanlife\\.org/(?:radio-archives/episode/|play_full\\.php\\?play=)(?P<id>\\d+)'
class ThisAVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thisav'
_VALID_URL = 'https?://(?:www\\.)?thisav\\.com/video/(?P<id>[0-9]+)/.*'
class ThisOldHouseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.thisoldhouse'
_VALID_URL = 'https?://(?:www\\.)?thisoldhouse\\.com/(?:watch|how-to|tv-episode|(?:[^/]+/)?\\d+)/(?P<id>[^/?#]+)'
class ThreeSpeakIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.threespeak'
_VALID_URL = 'https?://(?:www\\.)?3speak\\.tv/watch\\?v\\=[^/]+/(?P<id>[^/$&#?]+)'
class ThreeSpeakUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.threespeak'
_VALID_URL = 'https?://(?:www\\.)?3speak\\.tv/user/(?P<id>[^/$&?#]+)'
class ThreeQSDNIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.threeqsdn'
_VALID_URL = 'https?://playout\\.3qsdn\\.com/(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class TikTokBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tiktok'
class TikTokIE(TikTokBaseIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://www\\.tiktok\\.com/@[\\w\\.-]+/video/(?P<id>\\d+)'
class TikTokUserIE(TikTokBaseIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://(?:www\\.)?tiktok\\.com/@(?P<id>[\\w\\.-]+)/?(?:$|[#?])'
class TikTokBaseListIE(TikTokBaseIE):
_module = 'yt_dlp.extractor.tiktok'
class TikTokSoundIE(TikTokBaseListIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://(?:www\\.)?tiktok\\.com/music/[\\w\\.-]+-(?P<id>[\\d]+)[/?#&]?'
class TikTokEffectIE(TikTokBaseListIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://(?:www\\.)?tiktok\\.com/sticker/[\\w\\.-]+-(?P<id>[\\d]+)[/?#&]?'
class TikTokTagIE(TikTokBaseListIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://(?:www\\.)?tiktok\\.com/tag/(?P<id>[^/?#&]+)'
class DouyinIE(TikTokIE):
_module = 'yt_dlp.extractor.tiktok'
_VALID_URL = 'https?://(?:www\\.)?douyin\\.com/video/(?P<id>[0-9]+)'
class TinyPicIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tinypic'
_VALID_URL = 'https?://(?:.+?\\.)?tinypic\\.com/player\\.php\\?v=(?P<id>[^&]+)&s=\\d+'
class TMZIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tmz'
_VALID_URL = 'https?://(?:www\\.)?tmz\\.com/.*'
class TNAFlixNetworkBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tnaflix'
class TNAFlixNetworkEmbedIE(TNAFlixNetworkBaseIE):
_module = 'yt_dlp.extractor.tnaflix'
_VALID_URL = 'https?://player\\.(?:tna|emp)flix\\.com/video/(?P<id>\\d+)'
class TNAEMPFlixBaseIE(TNAFlixNetworkBaseIE):
_module = 'yt_dlp.extractor.tnaflix'
class TNAFlixIE(TNAEMPFlixBaseIE):
_module = 'yt_dlp.extractor.tnaflix'
_VALID_URL = 'https?://(?:www\\.)?tnaflix\\.com/[^/]+/(?P<display_id>[^/]+)/video(?P<id>\\d+)'
class EMPFlixIE(TNAEMPFlixBaseIE):
_module = 'yt_dlp.extractor.tnaflix'
_VALID_URL = 'https?://(?:www\\.)?empflix\\.com/(?:videos/(?P<display_id>.+?)-|[^/]+/(?P<display_id_2>[^/]+)/video)(?P<id>[0-9]+)'
class MovieFapIE(TNAFlixNetworkBaseIE):
_module = 'yt_dlp.extractor.tnaflix'
_VALID_URL = 'https?://(?:www\\.)?moviefap\\.com/videos/(?P<id>[0-9a-f]+)/(?P<display_id>[^/]+)\\.html'
class ToggleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toggle'
_VALID_URL = '(?:https?://(?:(?:www\\.)?mewatch|video\\.toggle)\\.sg/(?:en|zh)/(?:[^/]+/){2,}|toggle:)(?P<id>[0-9]+)'
class MeWatchIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toggle'
_VALID_URL = 'https?://(?:(?:www|live)\\.)?mewatch\\.sg/watch/[^/?#&]+-(?P<id>[0-9]+)'
class ToggoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toggo'
_VALID_URL = 'https?://(?:www\\.)?toggo\\.de/[\\w-]+/folge/(?P<id>[\\w-]+)'
class TokentubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tokentube'
_VALID_URL = 'https?://(?:www\\.)?tokentube\\.net/(?:view\\?[vl]=|[vl]/)(?P<id>\\d+)'
class TokentubeChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tokentube'
_VALID_URL = 'https?://(?:www\\.)?tokentube\\.net/channel/(?P<id>\\d+)/[^/]+(?:/videos)?'
class TOnlineIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tonline'
_VALID_URL = 'https?://(?:www\\.)?t-online\\.de/tv/(?:[^/]+/)*id_(?P<id>\\d+)'
class ToonGogglesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toongoggles'
_VALID_URL = 'https?://(?:www\\.)?toongoggles\\.com/shows/(?P<show_id>\\d+)(?:/[^/]+/episodes/(?P<episode_id>\\d+))?'
class TouTvIE(RadioCanadaIE):
_module = 'yt_dlp.extractor.toutv'
_VALID_URL = 'https?://ici\\.tou\\.tv/(?P<id>[a-zA-Z0-9_-]+(?:/S[0-9]+[EC][0-9]+)?)'
class ToypicsUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toypics'
_VALID_URL = 'https?://videos\\.toypics\\.net/(?!view)(?P<id>[^/?#&]+)'
class ToypicsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.toypics'
_VALID_URL = 'https?://videos\\.toypics\\.net/view/(?P<id>[0-9]+)'
class TrailerAddictIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.traileraddict'
_VALID_URL = '(?:https?://)?(?:www\\.)?traileraddict\\.com/(?:trailer|clip)/(?P<movie>.+?)/(?P<trailer_name>.+)'
_WORKING = False
class TriluliluIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.trilulilu'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?trilulilu\\.ro/(?:[^/]+/)?(?P<id>[^/#\\?]+)'
class TrovoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.trovo'
class TrovoIE(TrovoBaseIE):
_module = 'yt_dlp.extractor.trovo'
_VALID_URL = 'https?://(?:www\\.)?trovo\\.live/(?!(?:clip|video)/)(?P<id>[^/?&#]+)'
class TrovoVodIE(TrovoBaseIE):
_module = 'yt_dlp.extractor.trovo'
_VALID_URL = 'https?://(?:www\\.)?trovo\\.live/(?:clip|video)/(?P<id>[^/?&#]+)'
class TrovoChannelBaseIE(TrovoBaseIE):
_module = 'yt_dlp.extractor.trovo'
class TrovoChannelVodIE(TrovoChannelBaseIE):
_module = 'yt_dlp.extractor.trovo'
_VALID_URL = 'trovovod:(?P<id>[^\\s]+)'
class TrovoChannelClipIE(TrovoChannelBaseIE):
_module = 'yt_dlp.extractor.trovo'
_VALID_URL = 'trovoclip:(?P<id>[^\\s]+)'
class TrueIDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.trueid'
_VALID_URL = 'https?://(?P<domain>vn\\.trueid\\.net|trueid\\.(?:id|ph))/(?:movie|series/[^/]+)/(?P<id>[^/?#&]+)'
class TruNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.trunews'
_VALID_URL = 'https?://(?:www\\.)?trunews\\.com/stream/(?P<id>[^/?#&]+)'
class TruTVIE(TurnerBaseIE):
_module = 'yt_dlp.extractor.trutv'
_VALID_URL = 'https?://(?:www\\.)?trutv\\.com/(?:shows|full-episodes)/(?P<series_slug>[0-9A-Za-z-]+)/(?:videos/(?P<clip_slug>[0-9A-Za-z-]+)|(?P<id>\\d+))'
class Tube8IE(KeezMoviesIE):
_module = 'yt_dlp.extractor.tube8'
_VALID_URL = 'https?://(?:www\\.)?tube8\\.com/(?:[^/]+/)+(?P<display_id>[^/]+)/(?P<id>\\d+)'
class TubiTvIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tubitv'
_VALID_URL = '(?x)\n (?:\n tubitv:|\n https?://(?:www\\.)?tubitv\\.com/(?:video|movies|tv-shows)/\n )\n (?P<id>[0-9]+)'
class TubiTvShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tubitv'
_VALID_URL = 'https?://(?:www\\.)?tubitv\\.com/series/[0-9]+/(?P<show_name>[^/?#]+)'
class TumblrIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tumblr'
_VALID_URL = 'https?://(?P<blog_name>[^/?#&]+)\\.tumblr\\.com/(?:post|video)/(?P<id>[0-9]+)(?:$|[/?#])'
class TuneInBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tunein'
class TuneInClipIE(TuneInBaseIE):
_module = 'yt_dlp.extractor.tunein'
_VALID_URL = 'https?://(?:www\\.)?tunein\\.com/station/.*?audioClipId\\=(?P<id>\\d+)'
class TuneInStationIE(TuneInBaseIE):
_module = 'yt_dlp.extractor.tunein'
_VALID_URL = 'https?://(?:www\\.)?tunein\\.com/(?:radio/.*?-s|station/.*?StationId=|embed/player/s)(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if TuneInClipIE.suitable(url) else super(TuneInStationIE, cls).suitable(url)
class TuneInProgramIE(TuneInBaseIE):
_module = 'yt_dlp.extractor.tunein'
_VALID_URL = 'https?://(?:www\\.)?tunein\\.com/(?:radio/.*?-p|program/.*?ProgramId=|embed/player/p)(?P<id>\\d+)'
class TuneInTopicIE(TuneInBaseIE):
_module = 'yt_dlp.extractor.tunein'
_VALID_URL = 'https?://(?:www\\.)?tunein\\.com/(?:topic/.*?TopicId=|embed/player/t)(?P<id>\\d+)'
class TuneInShortenerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tunein'
_VALID_URL = 'https?://tun\\.in/(?P<id>[A-Za-z0-9]+)'
class TunePkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tunepk'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:www\\.)?tune\\.pk/(?:video/|player/embed_player.php?.*?\\bvid=)|\n embed\\.tune\\.pk/play/\n )\n (?P<id>\\d+)\n '
class TurboIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.turbo'
_VALID_URL = 'https?://(?:www\\.)?turbo\\.fr/videos-voiture/(?P<id>[0-9]+)-'
class TV2IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2'
_VALID_URL = 'https?://(?:www\\.)?tv2\\.no/v\\d*/(?P<id>\\d+)'
class TV2ArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2'
_VALID_URL = 'https?://(?:www\\.)?tv2\\.no/(?:a|\\d{4}/\\d{2}/\\d{2}(/[^/]+)+)/(?P<id>\\d+)'
class KatsomoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2'
_VALID_URL = 'https?://(?:www\\.)?(?:katsomo|mtv(uutiset)?)\\.fi/(?:sarja/[0-9a-z-]+-\\d+/[0-9a-z-]+-|(?:#!/)?jakso/(?:\\d+/[^/]+/)?|video/prog)(?P<id>\\d+)'
class MTVUutisetArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2'
_VALID_URL = 'https?://(?:www\\.)mtvuutiset\\.fi/artikkeli/[^/]+/(?P<id>\\d+)'
class TV2DKIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2dk'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n (?:\n tvsyd|\n tv2ostjylland|\n tvmidtvest|\n tv2fyn|\n tv2east|\n tv2lorry|\n tv2nord\n )\\.dk/\n (:[^/]+/)*\n (?P<id>[^/?\\#&]+)\n '
class TV2DKBornholmPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2dk'
_VALID_URL = 'https?://play\\.tv2bornholm\\.dk/\\?.*?\\bid=(?P<id>\\d+)'
class TV2HuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2hu'
_VALID_URL = 'https?://(?:www\\.)?tv2play\\.hu/(?!szalag/)(?P<id>[^#&?]+)'
class TV2HuSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv2hu'
_VALID_URL = 'https?://(?:www\\.)?tv2play\\.hu/szalag/(?P<id>[^#&?]+)'
class TV4IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv4'
_VALID_URL = '(?x)https?://(?:www\\.)?\n (?:\n tv4\\.se/(?:[^/]+)/klipp/(?:.*)-|\n tv4play\\.se/\n (?:\n (?:program|barn)/(?:(?:[^/]+/){1,2}|(?:[^\\?]+)\\?video_id=)|\n iframe/video/|\n film/|\n sport/|\n )\n )(?P<id>[0-9]+)'
class TV5MondePlusIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv5mondeplus'
_VALID_URL = 'https?://(?:www\\.)?(?:tv5mondeplus|revoir\\.tv5monde)\\.com/toutes-les-videos/[^/]+/(?P<id>[^/?#]+)'
class TV5UnisBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tv5unis'
class TV5UnisVideoIE(TV5UnisBaseIE):
_module = 'yt_dlp.extractor.tv5unis'
_VALID_URL = 'https?://(?:www\\.)?tv5unis\\.ca/videos/[^/]+/(?P<id>\\d+)'
class TV5UnisIE(TV5UnisBaseIE):
_module = 'yt_dlp.extractor.tv5unis'
_VALID_URL = 'https?://(?:www\\.)?tv5unis\\.ca/videos/(?P<id>[^/]+)(?:/saisons/(?P<season_number>\\d+)/episodes/(?P<episode_number>\\d+))?/?(?:[?#&]|$)'
class TVAIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tva'
_VALID_URL = 'https?://videos?\\.tva\\.ca/details/_(?P<id>\\d+)'
class QubIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tva'
_VALID_URL = 'https?://(?:www\\.)?qub\\.ca/(?:[^/]+/)*[0-9a-z-]+-(?P<id>\\d+)'
class TVANouvellesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvanouvelles'
_VALID_URL = 'https?://(?:www\\.)?tvanouvelles\\.ca/videos/(?P<id>\\d+)'
class TVANouvellesArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvanouvelles'
_VALID_URL = 'https?://(?:www\\.)?tvanouvelles\\.ca/(?:[^/]+/)+(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return False if TVANouvellesIE.suitable(url) else super(TVANouvellesArticleIE, cls).suitable(url)
class TVCIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvc'
_VALID_URL = 'https?://(?:www\\.)?tvc\\.ru/video/iframe/id/(?P<id>\\d+)'
class TVCArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvc'
_VALID_URL = 'https?://(?:www\\.)?tvc\\.ru/(?!video/iframe/id/)(?P<id>[^?#]+)'
class TVerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tver'
_VALID_URL = 'https?://(?:www\\.)?tver\\.jp/(?P<path>(?:corner|episode|feature)/(?P<id>f?\\d+))'
class TvigleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvigle'
_VALID_URL = 'https?://(?:www\\.)?(?:tvigle\\.ru/(?:[^/]+/)+(?P<display_id>[^/]+)/$|cloud\\.tvigle\\.ru/video/(?P<id>\\d+))'
class TVLandIE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.tvland'
_VALID_URL = 'https?://(?:www\\.)?tvland\\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
class TVN24IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvn24'
_VALID_URL = 'https?://(?:(?:[^/]+)\\.)?tvn24(?:bis)?\\.pl/(?:[^/]+/)*(?P<id>[^/]+)'
class TVNetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvnet'
_VALID_URL = 'https?://(?:[^/]+)\\.tvnet\\.gov\\.vn/[^/]+/(?:\\d+/)?(?P<id>\\d+)(?:/|$)'
class TVNoeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvnoe'
_VALID_URL = 'https?://(?:www\\.)?tvnoe\\.cz/video/(?P<id>[0-9]+)'
class TVNowBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvnow'
class TVNowIE(TVNowBaseIE):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/(?P<station>[^/]+)/\n (?P<show_id>[^/]+)/\n (?!(?:list|jahr)(?:/|$))(?P<id>[^/?\\#&]+)\n '
@classmethod
def suitable(cls, url):
return (False if TVNowNewIE.suitable(url) or TVNowSeasonIE.suitable(url) or TVNowAnnualIE.suitable(url) or TVNowShowIE.suitable(url)
else super(TVNowIE, cls).suitable(url))
class TVNowFilmIE(TVNowBaseIE):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n (?P<base_url>https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/\n (?:filme))/\n (?P<title>[^/?$&]+)-(?P<id>\\d+)\n '
class TVNowNewIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n (?P<base_url>https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/\n (?:shows|serien))/\n (?P<show>[^/]+)-\\d+/\n [^/]+/\n episode-\\d+-(?P<episode>[^/?$&]+)-(?P<id>\\d+)\n '
class TVNowNewBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvnow'
class TVNowListBaseIE(TVNowNewBaseIE):
_module = 'yt_dlp.extractor.tvnow'
@classmethod
def suitable(cls, url):
return (False if TVNowNewIE.suitable(url)
else super(TVNowListBaseIE, cls).suitable(url))
class TVNowSeasonIE(TVNowListBaseIE):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n (?P<base_url>\n https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/(?:shows|serien)/\n [^/?#&]+-(?P<show_id>\\d+)\n )\n /staffel-(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return (False if TVNowNewIE.suitable(url)
else super(TVNowListBaseIE, cls).suitable(url))
class TVNowAnnualIE(TVNowListBaseIE):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n (?P<base_url>\n https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/(?:shows|serien)/\n [^/?#&]+-(?P<show_id>\\d+)\n )\n /(?P<year>\\d{4})-(?P<month>\\d{2})'
@classmethod
def suitable(cls, url):
return (False if TVNowNewIE.suitable(url)
else super(TVNowListBaseIE, cls).suitable(url))
class TVNowShowIE(TVNowListBaseIE):
_module = 'yt_dlp.extractor.tvnow'
_VALID_URL = '(?x)\n (?P<base_url>\n https?://\n (?:www\\.)?tvnow\\.(?:de|at|ch)/(?:shows|serien)/\n [^/?#&]+-(?P<show_id>\\d+)\n )\n '
@classmethod
def suitable(cls, url):
return (False if TVNowNewIE.suitable(url) or TVNowSeasonIE.suitable(url) or TVNowAnnualIE.suitable(url)
else super(TVNowShowIE, cls).suitable(url))
class TVOpenGrBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvopengr'
class TVOpenGrWatchIE(TVOpenGrBaseIE):
_module = 'yt_dlp.extractor.tvopengr'
_VALID_URL = 'https?://(?P<netloc>(?:www\\.)?(?:tvopen|ethnos)\\.gr)/watch/(?P<id>\\d+)/(?P<slug>[^/]+)'
class TVOpenGrEmbedIE(TVOpenGrBaseIE):
_module = 'yt_dlp.extractor.tvopengr'
_VALID_URL = '(?:https?:)?//(?:www\\.|cdn\\.|)(?:tvopen|ethnos).gr/embed/(?P<id>\\d+)'
class TVPEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvp'
_VALID_URL = '(?x)\n (?:\n tvp:\n |https?://\n (?:[^/]+\\.)?\n (?:tvp(?:parlament)?\\.pl|tvp\\.info|polandin\\.com)/\n (?:sess/\n (?:tvplayer\\.php\\?.*?object_id\n |TVPlayer2/(?:embed|api)\\.php\\?.*[Ii][Dd])\n |shared/details\\.php\\?.*?object_id)\n =)\n (?P<id>\\d+)\n '
class TVPIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvp'
_VALID_URL = 'https?://(?:[^/]+\\.)?(?:tvp(?:parlament)?\\.(?:pl|info)|polandin\\.com)/(?:video/(?:[^,\\s]*,)*|(?:(?!\\d+/)[^/]+/)*)(?P<id>\\d+)'
class TVPStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvp'
_VALID_URL = '(?:tvpstream:|https?://tvpstream\\.vod\\.tvp\\.pl/(?:\\?(?:[^&]+[&;])*channel_id=)?)(?P<id>\\d*)'
class TVPWebsiteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvp'
_VALID_URL = 'https?://vod\\.tvp\\.pl/website/(?P<display_id>[^,]+),(?P<id>\\d+)'
class TVPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvplay'
_VALID_URL = '(?x)\n (?:\n mtg:|\n https?://\n (?:www\\.)?\n (?:\n tvplay(?:\\.skaties)?\\.lv(?:/parraides)?|\n (?:tv3play|play\\.tv3)\\.lt(?:/programos)?|\n tv3play(?:\\.tv3)?\\.ee/sisu|\n (?:tv(?:3|6|8|10)play)\\.se/program|\n (?:(?:tv3play|viasat4play|tv6play)\\.no|(?:tv3play)\\.dk)/programmer|\n play\\.nova(?:tv)?\\.bg/programi\n )\n /(?:[^/]+/)+\n )\n (?P<id>\\d+)\n '
class ViafreeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvplay'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?\n viafree\\.(?P<country>dk|no|se|fi)\n /(?P<id>(?:program(?:mer)?|ohjelmat)?/(?:[^/]+/)+[^/?#&]+)\n '
class TVPlayHomeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvplay'
_VALID_URL = '(?x)\n https?://\n (?:tv3?)?\n play\\.(?:tv3|skaties)\\.(?P<country>lv|lt|ee)/\n (?P<live>lives/)?\n [^?#&]+(?:episode|programme|clip)-(?P<id>\\d+)\n '
class TVPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tvplayer'
_VALID_URL = 'https?://(?:www\\.)?tvplayer\\.com/watch/(?P<id>[^/?#]+)'
class TweakersIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.tweakers'
_VALID_URL = 'https?://tweakers\\.net/video/(?P<id>\\d+)'
class TwentyFourVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twentyfourvideo'
_VALID_URL = '(?x)\n https?://\n (?P<host>\n (?:(?:www|porno?)\\.)?24video\\.\n (?:net|me|xxx|sexy?|tube|adult|site|vip)\n )/\n (?:\n video/(?:(?:view|xml)/)?|\n player/new24_play\\.swf\\?id=\n )\n (?P<id>\\d+)\n '
class TwentyMinutenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twentymin'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?20min\\.ch/\n (?:\n videotv/*\\?.*?\\bvid=|\n videoplayer/videoplayer\\.html\\?.*?\\bvideoId@\n )\n (?P<id>\\d+)\n '
class TwentyThreeVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twentythreevideo'
_VALID_URL = 'https?://(?P<domain>[^.]+\\.(?:twentythree\\.net|23video\\.com|filmweb\\.no))/v\\.ihtml/player\\.html\\?(?P<query>.*?\\bphoto(?:_|%5f)id=(?P<id>\\d+).*)'
class TwitCastingIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitcasting'
_VALID_URL = 'https?://(?:[^/]+\\.)?twitcasting\\.tv/(?P<uploader_id>[^/]+)/(?:movie|twplayer)/(?P<id>\\d+)'
class TwitCastingLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitcasting'
_VALID_URL = 'https?://(?:[^/]+\\.)?twitcasting\\.tv/(?P<id>[^/]+)/?(?:[#?]|$)'
class TwitCastingUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitcasting'
_VALID_URL = 'https?://(?:[^/]+\\.)?twitcasting\\.tv/(?P<id>[^/]+)/show/?(?:[#?]|$)'
class TwitchBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitch'
class TwitchVodIE(TwitchBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:(?:www|go|m)\\.)?twitch\\.tv/(?:[^/]+/v(?:ideo)?|videos)/|\n player\\.twitch\\.tv/\\?.*?\\bvideo=v?\n )\n (?P<id>\\d+)\n '
class TwitchCollectionIE(TwitchBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = 'https?://(?:(?:www|go|m)\\.)?twitch\\.tv/collections/(?P<id>[^/]+)'
class TwitchPlaylistBaseIE(TwitchBaseIE):
_module = 'yt_dlp.extractor.twitch'
class TwitchVideosIE(TwitchPlaylistBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = 'https?://(?:(?:www|go|m)\\.)?twitch\\.tv/(?P<id>[^/]+)/(?:videos|profile)'
@classmethod
def suitable(cls, url):
return (False
if any(ie.suitable(url) for ie in (
TwitchVideosClipsIE,
TwitchVideosCollectionsIE))
else super(TwitchVideosIE, cls).suitable(url))
class TwitchVideosClipsIE(TwitchPlaylistBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = 'https?://(?:(?:www|go|m)\\.)?twitch\\.tv/(?P<id>[^/]+)/(?:clips|videos/*?\\?.*?\\bfilter=clips)'
class TwitchVideosCollectionsIE(TwitchPlaylistBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = 'https?://(?:(?:www|go|m)\\.)?twitch\\.tv/(?P<id>[^/]+)/videos/*?\\?.*?\\bfilter=collections'
class TwitchStreamIE(TwitchBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:(?:www|go|m)\\.)?twitch\\.tv/|\n player\\.twitch\\.tv/\\?.*?\\bchannel=\n )\n (?P<id>[^/#?]+)\n '
@classmethod
def suitable(cls, url):
return (False
if any(ie.suitable(url) for ie in (
TwitchVodIE,
TwitchCollectionIE,
TwitchVideosIE,
TwitchVideosClipsIE,
TwitchVideosCollectionsIE,
TwitchClipsIE))
else super(TwitchStreamIE, cls).suitable(url))
class TwitchClipsIE(TwitchBaseIE):
_module = 'yt_dlp.extractor.twitch'
_VALID_URL = '(?x)\n https?://\n (?:\n clips\\.twitch\\.tv/(?:embed\\?.*?\\bclip=|(?:[^/]+/)*)|\n (?:(?:www|go|m)\\.)?twitch\\.tv/[^/]+/clip/\n )\n (?P<id>[^/?#&]+)\n '
class TwitterCardIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitter'
_VALID_URL = 'https?://(?:(?:www|m(?:obile)?)\\.)?twitter\\.com/i/(?:cards/tfw/v1|videos(?:/tweet)?)/(?P<id>\\d+)'
class TwitterBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.twitter'
class TwitterIE(TwitterBaseIE):
_module = 'yt_dlp.extractor.twitter'
_VALID_URL = 'https?://(?:(?:www|m(?:obile)?)\\.)?twitter\\.com/(?:(?:i/web|[^/]+)/status|statuses)/(?P<id>\\d+)'
class TwitterAmplifyIE(TwitterBaseIE):
_module = 'yt_dlp.extractor.twitter'
_VALID_URL = 'https?://amp\\.twimg\\.com/v/(?P<id>[0-9a-f\\-]{36})'
class TwitterBroadcastIE(TwitterBaseIE, PeriscopeBaseIE):
_module = 'yt_dlp.extractor.twitter'
_VALID_URL = 'https?://(?:(?:www|m(?:obile)?)\\.)?twitter\\.com/i/broadcasts/(?P<id>[0-9a-zA-Z]{13})'
class TwitterShortenerIE(TwitterBaseIE):
_module = 'yt_dlp.extractor.twitter'
_VALID_URL = 'https?://t.co/(?P<id>[^?]+)|tco:(?P<eid>[^?]+)'
class UdemyIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.udemy'
_VALID_URL = '(?x)\n https?://\n (?:[^/]+\\.)?udemy\\.com/\n (?:\n [^#]+\\#/lecture/|\n lecture/view/?\\?lectureId=|\n [^/]+/learn/v4/t/lecture/\n )\n (?P<id>\\d+)\n '
class UdemyCourseIE(UdemyIE):
_module = 'yt_dlp.extractor.udemy'
_VALID_URL = 'https?://(?:[^/]+\\.)?udemy\\.com/(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return False if UdemyIE.suitable(url) else super(UdemyCourseIE, cls).suitable(url)
class UDNEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.udn'
_VALID_URL = 'https?://video\\.udn\\.com/(?:embed|play)/news/(?P<id>\\d+)'
class ImgGamingBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.imggaming'
class UFCTVIE(ImgGamingBaseIE):
_module = 'yt_dlp.extractor.ufctv'
_VALID_URL = 'https?://(?P<domain>(?:(?:app|www)\\.)?(?:ufc\\.tv|(?:ufc)?fightpass\\.com)|ufcfightpass\\.img(?:dge|gaming)\\.com)/(?P<type>live|playlist|video)/(?P<id>\\d+)(?:\\?.*?\\bplaylistId=(?P<playlist_id>\\d+))?'
class UFCArabiaIE(ImgGamingBaseIE):
_module = 'yt_dlp.extractor.ufctv'
_VALID_URL = 'https?://(?P<domain>(?:(?:app|www)\\.)?ufcarabia\\.(?:ae|com))/(?P<type>live|playlist|video)/(?P<id>\\d+)(?:\\?.*?\\bplaylistId=(?P<playlist_id>\\d+))?'
class UkColumnIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ukcolumn'
_VALID_URL = '(?i)https?://(?:www\\.)?ukcolumn\\.org(/index\\.php)?/(?:video|ukcolumn-news)/(?P<id>[-a-z0-9]+)'
class UKTVPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.uktvplay'
_VALID_URL = 'https?://uktvplay\\.uktv\\.co\\.uk/(?:.+?\\?.*?\\bvideo=|([^/]+/)*watch-online/)(?P<id>\\d+)'
class DigitekaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.digiteka'
_VALID_URL = '(?x)\n https?://(?:www\\.)?(?:digiteka\\.net|ultimedia\\.com)/\n (?:\n deliver/\n (?P<embed_type>\n generic|\n musique\n )\n (?:/[^/]+)*/\n (?:\n src|\n article\n )|\n default/index/video\n (?P<site_type>\n generic|\n music\n )\n /id\n )/(?P<id>[\\d+a-z]+)'
class DLiveVODIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dlive'
_VALID_URL = 'https?://(?:www\\.)?dlive\\.tv/p/(?P<uploader_id>.+?)\\+(?P<id>[^/?#&]+)'
class DLiveStreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.dlive'
_VALID_URL = 'https?://(?:www\\.)?dlive\\.tv/(?!p/)(?P<id>[\\w.-]+)'
class DroobleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.drooble'
_VALID_URL = '(?x)https?://drooble\\.com/(?:\n (?:(?P<user>[^/]+)/)?(?P<kind>song|videos|music/albums)/(?P<id>\\d+)|\n (?P<user_2>[^/]+)/(?P<kind_2>videos|music))\n '
class UMGDeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.umg'
_VALID_URL = 'https?://(?:www\\.)?universal-music\\.de/[^/]+/videos/[^/?#]+-(?P<id>\\d+)'
class UnistraIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.unistra'
_VALID_URL = 'https?://utv\\.unistra\\.fr/(?:index|video)\\.php\\?id_video\\=(?P<id>\\d+)'
class UnityIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.unity'
_VALID_URL = 'https?://(?:www\\.)?unity3d\\.com/learn/tutorials/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class UOLIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.uol'
_VALID_URL = 'https?://(?:.+?\\.)?uol\\.com\\.br/.*?(?:(?:mediaId|v)=|view/(?:[a-z0-9]+/)?|video(?:=|/(?:\\d{4}/\\d{2}/\\d{2}/)?))(?P<id>\\d+|[\\w-]+-[A-Z0-9]+)'
class UplynkIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.uplynk'
_VALID_URL = 'https?://.*?\\.uplynk\\.com/(?P<path>ext/[0-9a-f]{32}/(?P<external_id>[^/?&]+)|(?P<id>[0-9a-f]{32}))\\.(?:m3u8|json)(?:.*?\\bpbs=(?P<session_id>[^&]+))?'
class UplynkPreplayIE(UplynkIE):
_module = 'yt_dlp.extractor.uplynk'
_VALID_URL = 'https?://.*?\\.uplynk\\.com/preplay2?/(?P<path>ext/[0-9a-f]{32}/(?P<external_id>[^/?&]+)|(?P<id>[0-9a-f]{32}))\\.json'
class UrortIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.urort'
_VALID_URL = 'https?://(?:www\\.)?urort\\.p3\\.no/#!/Band/(?P<id>[^/]+)$'
class URPlayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.urplay'
_VALID_URL = 'https?://(?:www\\.)?ur(?:play|skola)\\.se/(?:program|Produkter)/(?P<id>[0-9]+)'
class USANetworkIE(NBCIE):
_module = 'yt_dlp.extractor.usanetwork'
_VALID_URL = 'https?(?P<permalink>://(?:www\\.)?usanetwork\\.com/(?:[^/]+/videos?|movies?)/(?:[^/]+/)?(?P<id>\\d+))'
class USATodayIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.usatoday'
_VALID_URL = 'https?://(?:www\\.)?usatoday\\.com/(?:[^/]+/)*(?P<id>[^?/#]+)'
class UstreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ustream'
_VALID_URL = 'https?://(?:www\\.)?(?:ustream\\.tv|video\\.ibm\\.com)/(?P<type>recorded|embed|embed/recorded)/(?P<id>\\d+)'
class UstreamChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ustream'
_VALID_URL = 'https?://(?:www\\.)?ustream\\.tv/channel/(?P<slug>.+)'
class UstudioIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ustudio'
_VALID_URL = 'https?://(?:(?:www|v1)\\.)?ustudio\\.com/video/(?P<id>[^/]+)/(?P<display_id>[^/?#&]+)'
class UstudioEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ustudio'
_VALID_URL = 'https?://(?:(?:app|embed)\\.)?ustudio\\.com/embed/(?P<uid>[^/]+)/(?P<id>[^/]+)'
class UtreonIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.utreon'
_VALID_URL = 'https?://(?:www\\.)?utreon.com/v/(?P<id>[a-zA-Z0-9_-]+)'
class Varzesh3IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.varzesh3'
_VALID_URL = 'https?://(?:www\\.)?video\\.varzesh3\\.com/(?:[^/]+/)+(?P<id>[^/]+)/?'
class Vbox7IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vbox7'
_VALID_URL = '(?x)\n https?://\n (?:[^/]+\\.)?vbox7\\.com/\n (?:\n play:|\n (?:\n emb/external\\.php|\n player/ext\\.swf\n )\\?.*?\\bvid=\n )\n (?P<id>[\\da-fA-F]+)\n '
class VeeHDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.veehd'
_VALID_URL = 'https?://veehd\\.com/video/(?P<id>\\d+)'
class VeoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.veo'
_VALID_URL = 'https?://app\\.veo\\.co/matches/(?P<id>[0-9A-Za-z-]+)'
class VeohIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.veoh'
_VALID_URL = 'https?://(?:www\\.)?veoh\\.com/(?:watch|videos|embed|iphone/#_Watch)/(?P<id>(?:v|e|yapi-)[\\da-zA-Z]+)'
class VestiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vesti'
_VALID_URL = 'https?://(?:.+?\\.)?vesti\\.ru/(?P<id>.+)'
class VevoBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vevo'
class VevoIE(VevoBaseIE):
_module = 'yt_dlp.extractor.vevo'
_VALID_URL = '(?x)\n (?:https?://(?:www\\.)?vevo\\.com/watch/(?!playlist|genre)(?:[^/]+/(?:[^/]+/)?)?|\n https?://cache\\.vevo\\.com/m/html/embed\\.html\\?video=|\n https?://videoplayer\\.vevo\\.com/embed/embedded\\?videoId=|\n https?://embed\\.vevo\\.com/.*?[?&]isrc=|\n vevo:)\n (?P<id>[^&?#]+)'
class VevoPlaylistIE(VevoBaseIE):
_module = 'yt_dlp.extractor.vevo'
_VALID_URL = 'https?://(?:www\\.)?vevo\\.com/watch/(?P<kind>playlist|genre)/(?P<id>[^/?#&]+)'
class BTArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vgtv'
_VALID_URL = 'https?://(?:www\\.)?bt\\.no/(?:[^/]+/)+(?P<id>[^/]+)-\\d+\\.html'
class BTVestlendingenIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vgtv'
_VALID_URL = 'https?://(?:www\\.)?bt\\.no/spesial/vestlendingen/#!/(?P<id>\\d+)'
class VH1IE(MTVServicesInfoExtractor):
_module = 'yt_dlp.extractor.vh1'
_VALID_URL = 'https?://(?:www\\.)?vh1\\.com/(?:video-clips|episodes)/(?P<id>[^/?#.]+)'
class ViceBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vice'
class ViceIE(ViceBaseIE, AdobePassIE):
_module = 'yt_dlp.extractor.vice'
_VALID_URL = 'https?://(?:(?:video|vms)\\.vice|(?:www\\.)?vice(?:land|tv))\\.com/(?P<locale>[^/]+)/(?:video/[^/]+|embed)/(?P<id>[\\da-f]{24})'
class ViceArticleIE(ViceBaseIE):
_module = 'yt_dlp.extractor.vice'
_VALID_URL = 'https://(?:www\\.)?vice\\.com/(?P<locale>[^/]+)/article/(?:[0-9a-z]{6}/)?(?P<id>[^?#]+)'
class ViceShowIE(ViceBaseIE):
_module = 'yt_dlp.extractor.vice'
_VALID_URL = 'https?://(?:video\\.vice|(?:www\\.)?vice(?:land|tv))\\.com/(?P<locale>[^/]+)/show/(?P<id>[^/?#&]+)'
class VidbitIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vidbit'
_VALID_URL = 'https?://(?:www\\.)?vidbit\\.co/(?:watch|embed)\\?.*?\\bv=(?P<id>[\\da-zA-Z]+)'
class ViddlerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viddler'
_VALID_URL = 'https?://(?:www\\.)?viddler\\.com/(?:v|embed|player)/(?P<id>[a-z0-9]+)(?:.+?\\bsecret=(\\d+))?'
class VideaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videa'
_VALID_URL = '(?x)\n https?://\n videa(?:kid)?\\.hu/\n (?:\n videok/(?:[^/]+/)*[^?#&]+-|\n (?:videojs_)?player\\?.*?\\bv=|\n player/v/\n )\n (?P<id>[^?#&]+)\n '
class VideoDetectiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videodetective'
_VALID_URL = 'https?://(?:www\\.)?videodetective\\.com/[^/]+/[^/]+/(?P<id>\\d+)'
class VideofyMeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videofyme'
_VALID_URL = 'https?://(?:www\\.videofy\\.me/.+?|p\\.videofy\\.me/v)/(?P<id>\\d+)(&|#|$)'
class VideomoreIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videomore'
_VALID_URL = '(?x)\n videomore:(?P<sid>\\d+)$|\n https?://\n (?:\n videomore\\.ru/\n (?:\n embed|\n [^/]+/[^/]+\n )/|\n (?:\n (?:player\\.)?videomore\\.ru|\n siren\\.more\\.tv/player\n )/[^/]*\\?.*?\\btrack_id=|\n odysseus\\.more.tv/player/(?P<partner_id>\\d+)/\n )\n (?P<id>\\d+)\n (?:[/?#&]|\\.(?:xml|json)|$)\n '
class VideomoreBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videomore'
class VideomoreVideoIE(VideomoreBaseIE):
_module = 'yt_dlp.extractor.videomore'
_VALID_URL = 'https?://(?:videomore\\.ru|more\\.tv)/(?P<id>(?:(?:[^/]+/){2})?[^/?#&]+)(?:/*|[?#&].*?)$'
@classmethod
def suitable(cls, url):
return False if VideomoreIE.suitable(url) else super(VideomoreVideoIE, cls).suitable(url)
class VideomoreSeasonIE(VideomoreBaseIE):
_module = 'yt_dlp.extractor.videomore'
_VALID_URL = 'https?://(?:videomore\\.ru|more\\.tv)/(?!embed)(?P<id>[^/]+/[^/?#&]+)(?:/*|[?#&].*?)$'
@classmethod
def suitable(cls, url):
return (False if (VideomoreIE.suitable(url) or VideomoreVideoIE.suitable(url))
else super(VideomoreSeasonIE, cls).suitable(url))
class VideoPressIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.videopress'
_VALID_URL = 'https?://video(?:\\.word)?press\\.com/embed/(?P<id>[\\da-zA-Z]{8})'
class VidioBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vidio'
class VidioIE(VidioBaseIE):
_module = 'yt_dlp.extractor.vidio'
_VALID_URL = 'https?://(?:www\\.)?vidio\\.com/watch/(?P<id>\\d+)-(?P<display_id>[^/?#&]+)'
class VidioPremierIE(VidioBaseIE):
_module = 'yt_dlp.extractor.vidio'
_VALID_URL = 'https?://(?:www\\.)?vidio\\.com/premier/(?P<id>\\d+)/(?P<display_id>[^/?#&]+)'
class VidioLiveIE(VidioBaseIE):
_module = 'yt_dlp.extractor.vidio'
_VALID_URL = 'https?://(?:www\\.)?vidio\\.com/live/(?P<id>\\d+)-(?P<display_id>[^/?#&]+)'
class VidLiiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vidlii'
_VALID_URL = 'https?://(?:www\\.)?vidlii\\.com/(?:watch|embed)\\?.*?\\bv=(?P<id>[0-9A-Za-z_-]{11})'
class VierIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vier'
_VALID_URL = '(?x)\n https?://\n (?:www\\.)?(?P<site>vier|vijf)\\.be/\n (?:\n (?:\n [^/]+/videos|\n video(?:/[^/]+)*\n )/\n (?P<display_id>[^/]+)(?:/(?P<id>\\d+))?|\n (?:\n video/v3/embed|\n embed/video/public\n )/(?P<embed_id>\\d+)\n )\n '
class VierVideosIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vier'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>vier|vijf)\\.be/(?P<program>[^/]+)/videos(?:\\?.*\\bpage=(?P<page>\\d+)|$)'
class ViewLiftBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viewlift'
class ViewLiftIE(ViewLiftBaseIE):
_module = 'yt_dlp.extractor.viewlift'
_VALID_URL = 'https?://(?:www\\.)?(?P<domain>(?:(?:main\\.)?snagfilms|snagxtreme|funnyforfree|kiddovid|winnersview|(?:monumental|lax)sportsnetwork|vayafilm|failarmy|ftfnext|lnppass\\.legapallacanestro|moviespree|app\\.myoutdoortv|neoufitness|pflmma|theidentitytb)\\.com|(?:hoichoi|app\\.horseandcountry|kronon|marquee|supercrosslive)\\.tv)(?P<path>(?:/(?:films/title|show|(?:news/)?videos?|watch))?/(?P<id>[^?#]+))'
@classmethod
def suitable(cls, url):
return False if ViewLiftEmbedIE.suitable(url) else super(ViewLiftIE, cls).suitable(url)
class ViewLiftEmbedIE(ViewLiftBaseIE):
_module = 'yt_dlp.extractor.viewlift'
_VALID_URL = 'https?://(?:(?:www|embed)\\.)?(?P<domain>(?:(?:main\\.)?snagfilms|snagxtreme|funnyforfree|kiddovid|winnersview|(?:monumental|lax)sportsnetwork|vayafilm|failarmy|ftfnext|lnppass\\.legapallacanestro|moviespree|app\\.myoutdoortv|neoufitness|pflmma|theidentitytb)\\.com|(?:hoichoi|app\\.horseandcountry|kronon|marquee|supercrosslive)\\.tv)/embed/player\\?.*\\bfilmId=(?P<id>[\\da-f]{8}-(?:[\\da-f]{4}-){3}[\\da-f]{12})'
class ViideaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viidea'
_VALID_URL = '(?x)https?://(?:www\\.)?(?:\n videolectures\\.net|\n flexilearn\\.viidea\\.net|\n presentations\\.ocwconsortium\\.org|\n video\\.travel-zoom\\.si|\n video\\.pomp-forum\\.si|\n tv\\.nil\\.si|\n video\\.hekovnik.com|\n video\\.szko\\.si|\n kpk\\.viidea\\.com|\n inside\\.viidea\\.net|\n video\\.kiberpipa\\.org|\n bvvideo\\.si|\n kongres\\.viidea\\.net|\n edemokracija\\.viidea\\.com\n )(?:/lecture)?/(?P<id>[^/]+)(?:/video/(?P<part>\\d+))?/*(?:[#?].*)?$'
class VimeoBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vimeo'
class VimeoIE(VimeoBaseInfoExtractor):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:\n www|\n player\n )\n \\.\n )?\n vimeo(?:pro)?\\.com/\n (?!(?:channels|album|showcase)/[^/?#]+/?(?:$|[?#])|[^/]+/review/|ondemand/)\n (?:[^/]+/)*?\n (?:\n (?:\n play_redirect_hls|\n moogaloop\\.swf)\\?clip_id=\n )?\n (?:videos?/)?\n (?P<id>[0-9]+)\n (?:/(?P<unlisted_hash>[\\da-f]{10}))?\n /?(?:[?&].*)?(?:[#].*)?$\n '
class VimeoAlbumIE(VimeoBaseInfoExtractor):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://vimeo\\.com/(?:album|showcase)/(?P<id>\\d+)(?:$|[?#]|/(?!video))'
class VimeoChannelIE(VimeoBaseInfoExtractor):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://vimeo\\.com/channels/(?P<id>[^/?#]+)/?(?:$|[?#])'
class VimeoGroupsIE(VimeoChannelIE):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://vimeo\\.com/groups/(?P<id>[^/]+)(?:/(?!videos?/\\d+)|$)'
class VimeoLikesIE(VimeoChannelIE):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://(?:www\\.)?vimeo\\.com/(?P<id>[^/]+)/likes/?(?:$|[?#]|sort:)'
class VimeoOndemandIE(VimeoIE):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https?://(?:www\\.)?vimeo\\.com/ondemand/(?:[^/]+/)?(?P<id>[^/?#&]+)'
class VimeoReviewIE(VimeoBaseInfoExtractor):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = '(?P<url>https://vimeo\\.com/[^/]+/review/(?P<id>[^/]+)/[0-9a-f]{10})'
class VimeoUserIE(VimeoChannelIE):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://vimeo\\.com/(?!(?:[0-9]+|watchlater)(?:$|[?#/]))(?P<id>[^/]+)(?:/videos|[#?]|$)'
class VimeoWatchLaterIE(VimeoChannelIE):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https://vimeo\\.com/(?:home/)?watchlater|:vimeowatchlater'
class VHXEmbedIE(VimeoBaseInfoExtractor):
_module = 'yt_dlp.extractor.vimeo'
_VALID_URL = 'https?://embed\\.vhx\\.tv/videos/(?P<id>\\d+)'
class VimmIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vimm'
_VALID_URL = 'https?://(?:www\\.)?vimm\\.tv/(?:c/)?(?P<id>[0-9a-z-]+)$'
class VimmRecordingIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vimm'
_VALID_URL = 'https?://(?:www\\.)?vimm\\.tv/c/(?P<channel_id>[0-9a-z-]+)\\?v=(?P<video_id>[0-9A-Za-z]+)'
class VimpleIE(SprutoBaseIE):
_module = 'yt_dlp.extractor.vimple'
_VALID_URL = 'https?://(?:player\\.vimple\\.(?:ru|co)/iframe|vimple\\.(?:ru|co))/(?P<id>[\\da-f-]{32,36})'
class VineIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vine'
_VALID_URL = 'https?://(?:www\\.)?vine\\.co/(?:v|oembed)/(?P<id>\\w+)'
class VineUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vine'
_VALID_URL = 'https?://vine\\.co/(?P<u>u/)?(?P<user>[^/]+)'
@classmethod
def suitable(cls, url):
return False if VineIE.suitable(url) else super(VineUserIE, cls).suitable(url)
class VikiBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viki'
class VikiIE(VikiBaseIE):
_module = 'yt_dlp.extractor.viki'
_VALID_URL = 'https?://(?:www\\.)?viki\\.(?:com|net|mx|jp|fr)/(?:videos|player)/(?P<id>[0-9]+v)'
class VikiChannelIE(VikiBaseIE):
_module = 'yt_dlp.extractor.viki'
_VALID_URL = 'https?://(?:www\\.)?viki\\.(?:com|net|mx|jp|fr)/(?:tv|news|movies|artists)/(?P<id>[0-9]+c)'
class ViqeoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viqeo'
_VALID_URL = '(?x)\n (?:\n viqeo:|\n https?://cdn\\.viqeo\\.tv/embed/*\\?.*?\\bvid=|\n https?://api\\.viqeo\\.tv/v\\d+/data/startup?.*?\\bvideo(?:%5B%5D|\\[\\])=\n )\n (?P<id>[\\da-f]+)\n '
class ViuBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viu'
class ViuIE(ViuBaseIE):
_module = 'yt_dlp.extractor.viu'
_VALID_URL = '(?:viu:|https?://[^/]+\\.viu\\.com/[a-z]{2}/media/)(?P<id>\\d+)'
class ViuPlaylistIE(ViuBaseIE):
_module = 'yt_dlp.extractor.viu'
_VALID_URL = 'https?://www\\.viu\\.com/[^/]+/listing/playlist-(?P<id>\\d+)'
class ViuOTTIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.viu'
_VALID_URL = 'https?://(?:www\\.)?viu\\.com/ott/(?P<country_code>[a-z]{2})/(?P<lang_code>[a-z]{2}-[a-z]{2})/vod/(?P<id>\\d+)'
class VKBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vk'
class VKIE(VKBaseIE):
_module = 'yt_dlp.extractor.vk'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:\n (?:(?:m|new)\\.)?vk\\.com/video_|\n (?:www\\.)?daxab.com/\n )\n ext\\.php\\?(?P<embed_query>.*?\\boid=(?P<oid>-?\\d+).*?\\bid=(?P<id>\\d+).*)|\n (?:\n (?:(?:m|new)\\.)?vk\\.com/(?:.+?\\?.*?z=)?(?:video|clip)|\n (?:www\\.)?daxab.com/embed/\n )\n (?P<videoid>-?\\d+_\\d+)(?:.*\\blist=(?P<list_id>([\\da-f]+)|(ln-[\\da-zA-Z]+)))?\n )\n '
class VKUserVideosIE(VKBaseIE):
_module = 'yt_dlp.extractor.vk'
_VALID_URL = 'https?://(?:(?:m|new)\\.)?vk\\.com/video/@(?P<id>[^?$#/&]+)(?!\\?.*\\bz=video)(?:[/?#&](?:.*?\\bsection=(?P<section>\\w+))?|$)'
class VKWallPostIE(VKBaseIE):
_module = 'yt_dlp.extractor.vk'
_VALID_URL = 'https?://(?:(?:(?:(?:m|new)\\.)?vk\\.com/(?:[^?]+\\?.*\\bw=)?wall(?P<id>-?\\d+_\\d+)))'
class VLiveBaseIE(NaverBaseIE):
_module = 'yt_dlp.extractor.vlive'
class VLiveIE(VLiveBaseIE):
_module = 'yt_dlp.extractor.vlive'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?vlive\\.tv/(?:video|embed)/(?P<id>[0-9]+)'
class VLivePostIE(VLiveBaseIE):
_module = 'yt_dlp.extractor.vlive'
_VALID_URL = 'https?://(?:(?:www|m)\\.)?vlive\\.tv/post/(?P<id>\\d-\\d+)'
class VLiveChannelIE(VLiveBaseIE):
_module = 'yt_dlp.extractor.vlive'
_VALID_URL = 'https?://(?:channels\\.vlive\\.tv|(?:(?:www|m)\\.)?vlive\\.tv/channel)/(?P<channel_id>[0-9A-Z]+)(?:/board/(?P<posts_id>\\d+))?'
class VodlockerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vodlocker'
_VALID_URL = 'https?://(?:www\\.)?vodlocker\\.(?:com|city)/(?:embed-)?(?P<id>[0-9a-zA-Z]+)(?:\\..*?)?'
class VODPlIE(OnetBaseIE):
_module = 'yt_dlp.extractor.vodpl'
_VALID_URL = 'https?://vod\\.pl/(?:[^/]+/)+(?P<id>[0-9a-zA-Z]+)'
class VODPlatformIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vodplatform'
_VALID_URL = 'https?://(?:(?:www\\.)?vod-platform\\.net|embed\\.kwikmotion\\.com)/[eE]mbed/(?P<id>[^/?#]+)'
class VoiceRepublicIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.voicerepublic'
_VALID_URL = 'https?://voicerepublic\\.com/(?:talks|embed)/(?P<id>[0-9a-z-]+)'
class VoicyBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.voicy'
class VoicyIE(VoicyBaseIE):
_module = 'yt_dlp.extractor.voicy'
_VALID_URL = 'https?://voicy\\.jp/channel/(?P<channel_id>\\d+)/(?P<id>\\d+)'
class VoicyChannelIE(VoicyBaseIE):
_module = 'yt_dlp.extractor.voicy'
_VALID_URL = 'https?://voicy\\.jp/channel/(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return not VoicyIE.suitable(url) and super(VoicyChannelIE, cls).suitable(url)
class VootIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.voot'
_VALID_URL = '(?x)\n (?:\n voot:|\n https?://(?:www\\.)?voot\\.com/?\n (?:\n movies/[^/]+/|\n (?:shows|kids)/(?:[^/]+/){4}\n )\n )\n (?P<id>\\d{3,})\n '
class VootSeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.voot'
_VALID_URL = 'https?://(?:www\\.)?voot\\.com/shows/[^/]+/(?P<id>\\d{3,})'
class VoxMediaVolumeIE(OnceIE):
_module = 'yt_dlp.extractor.voxmedia'
_VALID_URL = 'https?://volume\\.vox-cdn\\.com/embed/(?P<id>[0-9a-f]{9})'
class VoxMediaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.voxmedia'
_VALID_URL = 'https?://(?:www\\.)?(?:(?:theverge|vox|sbnation|eater|polygon|curbed|racked|funnyordie)\\.com|recode\\.net)/(?:[^/]+/)*(?P<id>[^/?]+)'
class VRTIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vrt'
_VALID_URL = 'https?://(?:www\\.)?(?P<site>vrt\\.be/vrtnws|sporza\\.be)/[a-z]{2}/\\d{4}/\\d{2}/\\d{2}/(?P<id>[^/?&#]+)'
class VrakIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vrak'
_VALID_URL = 'https?://(?:www\\.)?vrak\\.tv/videos\\?.*?\\btarget=(?P<id>[\\d.]+)'
class VRVBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vrv'
class VRVIE(VRVBaseIE):
_module = 'yt_dlp.extractor.vrv'
_VALID_URL = 'https?://(?:www\\.)?vrv\\.co/watch/(?P<id>[A-Z0-9]+)'
class CrunchyrollIE(CrunchyrollBaseIE, VRVIE):
_module = 'yt_dlp.extractor.crunchyroll'
_VALID_URL = 'https?://(?:(?P<prefix>www|m)\\.)?(?P<url>crunchyroll\\.(?:com|fr)/(?:media(?:-|/\\?id=)|(?:[^/]*/){1,2}[^/?&]*?)(?P<id>[0-9]+))(?:[/?&]|$)'
class VRVSeriesIE(VRVBaseIE):
_module = 'yt_dlp.extractor.vrv'
_VALID_URL = 'https?://(?:www\\.)?vrv\\.co/series/(?P<id>[A-Z0-9]+)'
class VShareIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vshare'
_VALID_URL = 'https?://(?:www\\.)?vshare\\.io/[dv]/(?P<id>[^/?#&]+)'
class VTMIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vtm'
_VALID_URL = 'https?://(?:www\\.)?vtm\\.be/([^/?&#]+)~v(?P<id>[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12})'
class MedialaanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.medialaan'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:embed\\.)?mychannels.video/embed/|\n embed\\.mychannels\\.video/(?:s(?:dk|cript)/)?production/|\n (?:www\\.)?(?:\n (?:\n 7sur7|\n demorgen|\n hln|\n joe|\n qmusic\n )\\.be|\n (?:\n [abe]d|\n bndestem|\n destentor|\n gelderlander|\n pzc|\n tubantia|\n volkskrant\n )\\.nl\n )/video/(?:[^/]+/)*[^/?&#]+~p\n )\n (?P<id>\\d+)\n '
class VubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vube'
_VALID_URL = 'https?://vube\\.com/(?:[^/]+/)+(?P<id>[\\da-zA-Z]{10})\\b'
class VuClipIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vuclip'
_VALID_URL = 'https?://(?:m\\.)?vuclip\\.com/w\\?.*?cid=(?P<id>[0-9]+)'
class VuploadIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vupload'
_VALID_URL = 'https://vupload\\.com/v/(?P<id>[a-z0-9]+)'
class VVVVIDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vvvvid'
_VALID_URL = 'https?://(?:www\\.)?vvvvid\\.it/(?:#!)?(?:show|anime|film|series)/(?P<show_id>\\d+)/[^/]+/(?P<season_id>\\d+)/(?P<id>[0-9]+)'
class VVVVIDShowIE(VVVVIDIE):
_module = 'yt_dlp.extractor.vvvvid'
_VALID_URL = '(?P<base_url>https?://(?:www\\.)?vvvvid\\.it/(?:#!)?(?:show|anime|film|series)/(?P<id>\\d+)(?:/(?P<show_title>[^/?&#]+))?)/?(?:[?#&]|$)'
class VyboryMosIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vyborymos'
_VALID_URL = 'https?://vybory\\.mos\\.ru/(?:#precinct/|account/channels\\?.*?\\bstation_id=)(?P<id>\\d+)'
class VzaarIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.vzaar'
_VALID_URL = 'https?://(?:(?:www|view)\\.)?vzaar\\.com/(?:videos/)?(?P<id>\\d+)'
class WakanimIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wakanim'
_VALID_URL = 'https://(?:www\\.)?wakanim\\.tv/[^/]+/v2/catalogue/episode/(?P<id>\\d+)'
class WallaIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.walla'
_VALID_URL = 'https?://vod\\.walla\\.co\\.il/[^/]+/(?P<id>\\d+)/(?P<display_id>.+)'
class WashingtonPostIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.washingtonpost'
_VALID_URL = '(?:washingtonpost:|https?://(?:www\\.)?washingtonpost\\.com/(?:video|posttv)/(?:[^/]+/)*)(?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class WashingtonPostArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.washingtonpost'
_VALID_URL = 'https?://(?:www\\.)?washingtonpost\\.com/(?:[^/]+/)*(?P<id>[^/?#]+)'
@classmethod
def suitable(cls, url):
return False if WashingtonPostIE.suitable(url) else super(WashingtonPostArticleIE, cls).suitable(url)
class WatIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wat'
_VALID_URL = '(?:wat:|https?://(?:www\\.)?wat\\.tv/video/.*-)(?P<id>[0-9a-z]+)'
class WatchBoxIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.watchbox'
_VALID_URL = 'https?://(?:www\\.)?watchbox\\.de/(?P<kind>serien|filme)/(?:[^/]+/)*[^/]+-(?P<id>\\d+)'
class WatchIndianPornIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.watchindianporn'
_VALID_URL = 'https?://(?:www\\.)?watchindianporn\\.net/(?:[^/]+/)*video/(?P<display_id>[^/]+)-(?P<id>[a-zA-Z0-9]+)\\.html'
class WDRIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wdr'
_VALID_URL = '(?x)https?://\n (?:deviceids-medp\\.wdr\\.de/ondemand/\\d+/|\n kinder\\.wdr\\.de/(?!mediathek/)[^#?]+-)\n (?P<id>\\d+)\\.(?:js|assetjsonp)\n '
class WDRPageIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wdr'
_VALID_URL = 'https?://(?:www\\d?\\.)?(?:(?:kinder\\.)?wdr\\d?|sportschau)\\.de/(?:mediathek/)?(?:[^/]+/)*(?P<display_id>[^/]+)\\.html|https?://(?:www\\.)wdrmaus.de/(?:[^/]+/){1,2}[^/?#]+\\.php5'
class WDRElefantIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wdr'
_VALID_URL = 'https?://(?:www\\.)wdrmaus\\.de/elefantenseite/#(?P<id>.+)'
class WDRMobileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wdr'
_VALID_URL = '(?x)\n https?://mobile-ondemand\\.wdr\\.de/\n .*?/fsk(?P<age_limit>[0-9]+)\n /[0-9]+/[0-9]+/\n (?P<id>[0-9]+)_(?P<title>[0-9]+)'
class WebcasterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.webcaster'
_VALID_URL = 'https?://bl\\.webcaster\\.pro/(?:quote|media)/start/free_(?P<id>[^/]+)'
class WebcasterFeedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.webcaster'
_VALID_URL = 'https?://bl\\.webcaster\\.pro/feed/start/free_(?P<id>[^/]+)'
class WebOfStoriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.webofstories'
_VALID_URL = 'https?://(?:www\\.)?webofstories\\.com/play/(?:[^/]+/)?(?P<id>[0-9]+)'
class WebOfStoriesPlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.webofstories'
_VALID_URL = 'https?://(?:www\\.)?webofstories\\.com/playAll/(?P<id>[^/]+)'
class WeiboIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.weibo'
_VALID_URL = 'https?://(?:www\\.)?weibo\\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)'
class WeiboMobileIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.weibo'
_VALID_URL = 'https?://m\\.weibo\\.cn/status/(?P<id>[0-9]+)(\\?.+)?'
class WeiqiTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.weiqitv'
_VALID_URL = 'https?://(?:www\\.)?weiqitv\\.com/index/video_play\\?videoId=(?P<id>[A-Za-z0-9]+)'
class WillowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.willow'
_VALID_URL = 'https?://(www\\.)?willow\\.tv/videos/(?P<id>[0-9a-z-_]+)'
class WimTVIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wimtv'
_VALID_URL = '(?x)\n https?://platform.wim.tv/\n (?:\n (?:embed/)?\\?\n |\\#/webtv/.+?/\n )\n (?P<type>vod|live|cast)[=/]\n (?P<id>[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}).*?'
class WhoWatchIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.whowatch'
_VALID_URL = 'https?://whowatch\\.tv/viewer/(?P<id>\\d+)'
class WistiaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wistia'
class WistiaIE(WistiaBaseIE):
_module = 'yt_dlp.extractor.wistia'
_VALID_URL = '(?:wistia:|https?://(?:fast\\.)?wistia\\.(?:net|com)/embed/(?:iframe|medias)/)(?P<id>[a-z0-9]{10})'
class WistiaPlaylistIE(WistiaBaseIE):
_module = 'yt_dlp.extractor.wistia'
_VALID_URL = 'https?://(?:fast\\.)?wistia\\.(?:net|com)/embed/playlists/(?P<id>[a-z0-9]{10})'
class WorldStarHipHopIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.worldstarhiphop'
_VALID_URL = 'https?://(?:www|m)\\.worldstar(?:candy|hiphop)\\.com/(?:videos|android)/video\\.php\\?.*?\\bv=(?P<id>[^&]+)'
class WPPilotBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wppilot'
class WPPilotIE(WPPilotBaseIE):
_module = 'yt_dlp.extractor.wppilot'
_VALID_URL = '(?:https?://pilot\\.wp\\.pl/tv/?#|wppilot:)(?P<id>[a-z\\d-]+)'
class WPPilotChannelsIE(WPPilotBaseIE):
_module = 'yt_dlp.extractor.wppilot'
_VALID_URL = '(?:https?://pilot\\.wp\\.pl/(?:tv/?)?(?:\\?[^#]*)?#?|wppilot:)$'
class WSJIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wsj'
_VALID_URL = '(?x)\n (?:\n https?://video-api\\.wsj\\.com/api-video/player/iframe\\.html\\?.*?\\bguid=|\n https?://(?:www\\.)?(?:wsj|barrons)\\.com/video/(?:[^/]+/)+|\n wsj:\n )\n (?P<id>[a-fA-F0-9-]{36})\n '
class WSJArticleIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wsj'
_VALID_URL = '(?i)https?://(?:www\\.)?wsj\\.com/articles/(?P<id>[^/?#&]+)'
class WWEBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.wwe'
class WWEIE(WWEBaseIE):
_module = 'yt_dlp.extractor.wwe'
_VALID_URL = 'https?://(?:[^/]+\\.)?wwe\\.com/(?:[^/]+/)*videos/(?P<id>[^/?#&]+)'
class XBefIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xbef'
_VALID_URL = 'https?://(?:www\\.)?xbef\\.com/video/(?P<id>[0-9]+)'
class XboxClipsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xboxclips'
_VALID_URL = 'https?://(?:www\\.)?(?:xboxclips\\.com|gameclips\\.io)/(?:video\\.php\\?.*vid=|[^/]+/)(?P<id>[\\da-f]{8}-(?:[\\da-f]{4}-){3}[\\da-f]{12})'
class XFileShareIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xfileshare'
_VALID_URL = 'https?://(?:www\\.)?(?P<host>aparat\\.cam|clipwatching\\.com|gounlimited\\.to|govid\\.me|holavid\\.com|streamty\\.com|thevideobee\\.to|uqload\\.com|vidbom\\.com|vidlo\\.us|vidlocker\\.xyz|vidshare\\.tv|vup\\.to|wolfstream\\.tv|xvideosharing\\.com)/(?:embed-)?(?P<id>[0-9a-zA-Z]+)'
class XHamsterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xhamster'
_VALID_URL = '(?x)\n https?://\n (?:.+?\\.)?(?:xhamster\\.(?:com|one|desi)|xhms\\.pro|xhamster\\d+\\.com)/\n (?:\n movies/(?P<id>[\\dA-Za-z]+)/(?P<display_id>[^/]*)\\.html|\n videos/(?P<display_id_2>[^/]*)-(?P<id_2>[\\dA-Za-z]+)\n )\n '
class XHamsterEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xhamster'
_VALID_URL = 'https?://(?:.+?\\.)?(?:xhamster\\.(?:com|one|desi)|xhms\\.pro|xhamster\\d+\\.com)/xembed\\.php\\?video=(?P<id>\\d+)'
class XHamsterUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xhamster'
_VALID_URL = 'https?://(?:.+?\\.)?(?:xhamster\\.(?:com|one|desi)|xhms\\.pro|xhamster\\d+\\.com)/users/(?P<id>[^/?#&]+)'
class XiamiBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xiami'
class XiamiSongIE(XiamiBaseIE):
_module = 'yt_dlp.extractor.xiami'
_VALID_URL = 'https?://(?:www\\.)?xiami\\.com/song/(?P<id>[^/?#&]+)'
class XiamiPlaylistBaseIE(XiamiBaseIE):
_module = 'yt_dlp.extractor.xiami'
class XiamiAlbumIE(XiamiPlaylistBaseIE):
_module = 'yt_dlp.extractor.xiami'
_VALID_URL = 'https?://(?:www\\.)?xiami\\.com/album/(?P<id>[^/?#&]+)'
class XiamiArtistIE(XiamiPlaylistBaseIE):
_module = 'yt_dlp.extractor.xiami'
_VALID_URL = 'https?://(?:www\\.)?xiami\\.com/artist/(?P<id>[^/?#&]+)'
class XiamiCollectionIE(XiamiPlaylistBaseIE):
_module = 'yt_dlp.extractor.xiami'
_VALID_URL = 'https?://(?:www\\.)?xiami\\.com/collect/(?P<id>[^/?#&]+)'
class XimalayaBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ximalaya'
class XimalayaIE(XimalayaBaseIE):
_module = 'yt_dlp.extractor.ximalaya'
_VALID_URL = 'https?://(?:www\\.|m\\.)?ximalaya\\.com/(?P<uid>[0-9]+)/sound/(?P<id>[0-9]+)'
class XimalayaAlbumIE(XimalayaBaseIE):
_module = 'yt_dlp.extractor.ximalaya'
_VALID_URL = 'https?://(?:www\\.|m\\.)?ximalaya\\.com/(?P<uid>[0-9]+)/album/(?P<id>[0-9]+)'
class XMinusIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xminus'
_VALID_URL = 'https?://(?:www\\.)?x-minus\\.org/track/(?P<id>[0-9]+)'
class XNXXIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xnxx'
_VALID_URL = 'https?://(?:video|www)\\.xnxx\\.com/video-?(?P<id>[0-9a-z]+)/'
class XstreamIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xstream'
_VALID_URL = '(?x)\n (?:\n xstream:|\n https?://frontend\\.xstream\\.(?:dk|net)/\n )\n (?P<partner_id>[^/]+)\n (?:\n :|\n /feed/video/\\?.*?\\bid=\n )\n (?P<id>\\d+)\n '
class VGTVIE(XstreamIE):
_module = 'yt_dlp.extractor.vgtv'
_VALID_URL = '(?x)\n (?:https?://(?:www\\.)?\n (?P<host>\n vgtv.no|bt.no/tv|aftenbladet.no/tv|fvn.no/fvntv|aftenposten.no/webtv|ap.vgtv.no/webtv|tv.aftonbladet.se|tv.aftonbladet.se/abtv|www.aftonbladet.se/tv\n )\n /?\n (?:\n (?:\\#!/)?(?:video|live)/|\n embed?.*id=|\n a(?:rticles)?/\n )|\n (?P<appname>\n vgtv|bttv|satv|fvntv|aptv|abtv\n ):)\n (?P<id>\\d+)\n '
class XTubeUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xtube'
_VALID_URL = 'https?://(?:www\\.)?xtube\\.com/profile/(?P<id>[^/]+-\\d+)'
class XTubeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xtube'
_VALID_URL = '(?x)\n (?:\n xtube:|\n https?://(?:www\\.)?xtube\\.com/(?:watch\\.php\\?.*\\bv=|video-watch/(?:embedded/)?(?P<display_id>[^/]+)-)\n )\n (?P<id>[^/?&#]+)\n '
class XuiteIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xuite'
_VALID_URL = 'https?://vlog\\.xuite\\.net/(?:play|embed)/(?P<id>(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)'
class XVideosIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xvideos'
_VALID_URL = '(?x)\n https?://\n (?:\n (?:[^/]+\\.)?xvideos2?\\.com/video|\n (?:www\\.)?xvideos\\.es/video|\n (?:www|flashservice)\\.xvideos\\.com/embedframe/|\n static-hw\\.xvideos\\.com/swf/xv-player\\.swf\\?.*?\\bid_video=\n )\n (?P<id>[0-9]+)\n '
class XXXYMoviesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.xxxymovies'
_VALID_URL = 'https?://(?:www\\.)?xxxymovies\\.com/videos/(?P<id>\\d+)/(?P<display_id>[^/]+)'
class YahooIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yahoo'
_VALID_URL = '(?P<url>https?://(?:(?P<country>[a-zA-Z]{2}(?:-[a-zA-Z]{2})?|malaysia)\\.)?(?:[\\da-zA-Z_-]+\\.)?yahoo\\.com/(?:[^/]+/)*(?P<id>[^?&#]*-[0-9]+(?:-[a-z]+)?)\\.html)'
class AolIE(YahooIE):
_module = 'yt_dlp.extractor.aol'
_VALID_URL = '(?:aol-video:|https?://(?:www\\.)?aol\\.(?:com|ca|co\\.uk|de|jp)/video/(?:[^/]+/)*)(?P<id>\\d{9}|[0-9a-f]{24}|[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12})'
class YahooSearchIE(LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.yahoo'
_VALID_URL = 'yvsearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class YahooGyaOPlayerIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yahoo'
_VALID_URL = 'https?://(?:gyao\\.yahoo\\.co\\.jp/(?:player|episode(?:/[^/]+)?)|streaming\\.yahoo\\.co\\.jp/c/y)/(?P<id>\\d+/v\\d+/v\\d+|[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class YahooGyaOIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yahoo'
_VALID_URL = 'https?://(?:gyao\\.yahoo\\.co\\.jp/(?:p|title(?:/[^/]+)?)|streaming\\.yahoo\\.co\\.jp/p/y)/(?P<id>\\d+/v\\d+|[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12})'
class YahooJapanNewsIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yahoo'
_VALID_URL = 'https?://(?P<host>(?:news|headlines)\\.yahoo\\.co\\.jp)[^\\d]*(?P<id>\\d[\\d-]*\\d)?'
class YandexDiskIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexdisk'
_VALID_URL = '(?x)https?://\n (?P<domain>\n yadi\\.sk|\n disk\\.yandex\\.\n (?:\n az|\n by|\n co(?:m(?:\\.(?:am|ge|tr))?|\\.il)|\n ee|\n fr|\n k[gz]|\n l[tv]|\n md|\n t[jm]|\n u[az]|\n ru\n )\n )/(?:[di]/|public.*?\\bhash=)(?P<id>[^/?#&]+)'
class YandexMusicBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexmusic'
class YandexMusicTrackIE(YandexMusicBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
_VALID_URL = 'https?://music\\.yandex\\.(?P<tld>ru|kz|ua|by|com)/album/(?P<album_id>\\d+)/track/(?P<id>\\d+)'
class YandexMusicPlaylistBaseIE(YandexMusicBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
class YandexMusicAlbumIE(YandexMusicPlaylistBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
_VALID_URL = 'https?://music\\.yandex\\.(?P<tld>ru|kz|ua|by|com)/album/(?P<id>\\d+)'
@classmethod
def suitable(cls, url):
return False if YandexMusicTrackIE.suitable(url) else super(YandexMusicAlbumIE, cls).suitable(url)
class YandexMusicPlaylistIE(YandexMusicPlaylistBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
_VALID_URL = 'https?://music\\.yandex\\.(?P<tld>ru|kz|ua|by|com)/users/(?P<user>[^/]+)/playlists/(?P<id>\\d+)'
class YandexMusicArtistBaseIE(YandexMusicPlaylistBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
class YandexMusicArtistTracksIE(YandexMusicArtistBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
_VALID_URL = 'https?://music\\.yandex\\.(?P<tld>ru|kz|ua|by|com)/artist/(?P<id>\\d+)/tracks'
class YandexMusicArtistAlbumsIE(YandexMusicArtistBaseIE):
_module = 'yt_dlp.extractor.yandexmusic'
_VALID_URL = 'https?://music\\.yandex\\.(?P<tld>ru|kz|ua|by|com)/artist/(?P<id>\\d+)/albums'
class YandexVideoIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexvideo'
_VALID_URL = '(?x)\n https?://\n (?:\n yandex\\.ru(?:/(?:portal/(?:video|efir)|efir))?/?\\?.*?stream_id=|\n frontend\\.vh\\.yandex\\.ru/player/\n )\n (?P<id>(?:[\\da-f]{32}|[\\w-]{12}))\n '
class YandexVideoPreviewIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexvideo'
_VALID_URL = 'https?://(?:www\\.)?yandex\\.ru/video/preview(?:/?\\?.*?filmId=|/)(?P<id>\\d+)'
class ZenYandexIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexvideo'
_VALID_URL = 'https?://zen\\.yandex\\.ru(?:/video)?/(media|watch)/(?:(?:id/[^/]+/|[^/]+/)(?:[a-z0-9-]+)-)?(?P<id>[a-z0-9-]+)'
class ZenYandexChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yandexvideo'
_VALID_URL = 'https?://zen\\.yandex\\.ru/(?!media|video)(?:id/)?(?P<id>[a-z0-9-_]+)'
class YapFilesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yapfiles'
_VALID_URL = 'https?://(?:(?:www|api)\\.)?yapfiles\\.ru/get_player/*\\?.*?\\bv=(?P<id>\\w+)'
class YesJapanIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yesjapan'
_VALID_URL = 'https?://(?:www\\.)?yesjapan\\.com/video/(?P<slug>[A-Za-z0-9\\-]*)_(?P<id>[A-Za-z0-9]+)\\.html'
class YinYueTaiIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yinyuetai'
_VALID_URL = 'https?://v\\.yinyuetai\\.com/video(?:/h5)?/(?P<id>[0-9]+)'
class YnetIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.ynet'
_VALID_URL = 'https?://(?:.+?\\.)?ynet\\.co\\.il/(?:.+?/)?0,7340,(?P<id>L(?:-[0-9]+)+),00\\.html'
class YouJizzIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youjizz'
_VALID_URL = 'https?://(?:\\w+\\.)?youjizz\\.com/videos/(?:[^/#?]*-(?P<id>\\d+)\\.html|embed/(?P<embed_id>\\d+))'
class YoukuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youku'
_VALID_URL = '(?x)\n (?:\n https?://(\n (?:v|player)\\.youku\\.com/(?:v_show/id_|player\\.php/sid/)|\n video\\.tudou\\.com/v/)|\n youku:)\n (?P<id>[A-Za-z0-9]+)(?:\\.html|/v\\.swf|)\n '
class YoukuShowIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youku'
_VALID_URL = 'https?://list\\.youku\\.com/show/id_(?P<id>[0-9a-z]+)\\.html'
class YouNowLiveIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.younow'
_VALID_URL = 'https?://(?:www\\.)?younow\\.com/(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return (False
if YouNowChannelIE.suitable(url) or YouNowMomentIE.suitable(url)
else super(YouNowLiveIE, cls).suitable(url))
class YouNowChannelIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.younow'
_VALID_URL = 'https?://(?:www\\.)?younow\\.com/(?P<id>[^/]+)/channel'
class YouNowMomentIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.younow'
_VALID_URL = 'https?://(?:www\\.)?younow\\.com/[^/]+/(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return (False
if YouNowChannelIE.suitable(url)
else super(YouNowMomentIE, cls).suitable(url))
class YouPornIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youporn'
_VALID_URL = 'https?://(?:www\\.)?youporn\\.com/(?:watch|embed)/(?P<id>\\d+)(?:/(?P<display_id>[^/?#&]+))?'
class YourPornIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yourporn'
_VALID_URL = 'https?://(?:www\\.)?sxyprn\\.com/post/(?P<id>[^/?#&.]+)'
class YourUploadIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.yourupload'
_VALID_URL = 'https?://(?:www\\.)?(?:yourupload\\.com/(?:watch|embed)|embed\\.yourupload\\.com)/(?P<id>[A-Za-z0-9]+)'
class YoutubeBaseInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
class YoutubeIE(YoutubeBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = '(?x)^\n (\n (?:https?://|//) # http(s):// or protocol-independent URL\n (?:(?:(?:(?:\\w+\\.)?[yY][oO][uU][tT][uU][bB][eE](?:-nocookie|kids)?\\.com|\n (?:www\\.)?deturl\\.com/www\\.youtube\\.com|\n (?:www\\.)?pwnyoutube\\.com|\n (?:www\\.)?hooktube\\.com|\n (?:www\\.)?yourepeat\\.com|\n tube\\.majestyc\\.net|\n (?:www\\.)?redirect\\.invidious\\.io|(?:(?:www|dev)\\.)?invidio\\.us|(?:www\\.)?invidious\\.pussthecat\\.org|(?:www\\.)?invidious\\.zee\\.li|(?:www\\.)?invidious\\.ethibox\\.fr|(?:www\\.)?invidious\\.3o7z6yfxhbw7n3za4rss6l434kmv55cgw2vuziwuigpwegswvwzqipyd\\.onion|(?:www\\.)?osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd\\.onion|(?:www\\.)?u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad\\.onion|(?:(?:www|no)\\.)?invidiou\\.sh|(?:(?:www|fi)\\.)?invidious\\.snopyta\\.org|(?:www\\.)?invidious\\.kabi\\.tk|(?:www\\.)?invidious\\.mastodon\\.host|(?:www\\.)?invidious\\.zapashcanon\\.fr|(?:www\\.)?(?:invidious(?:-us)?|piped)\\.kavin\\.rocks|(?:www\\.)?invidious\\.tinfoil-hat\\.net|(?:www\\.)?invidious\\.himiko\\.cloud|(?:www\\.)?invidious\\.reallyancient\\.tech|(?:www\\.)?invidious\\.tube|(?:www\\.)?invidiou\\.site|(?:www\\.)?invidious\\.site|(?:www\\.)?invidious\\.xyz|(?:www\\.)?invidious\\.nixnet\\.xyz|(?:www\\.)?invidious\\.048596\\.xyz|(?:www\\.)?invidious\\.drycat\\.fr|(?:www\\.)?inv\\.skyn3t\\.in|(?:www\\.)?tube\\.poal\\.co|(?:www\\.)?tube\\.connect\\.cafe|(?:www\\.)?vid\\.wxzm\\.sx|(?:www\\.)?vid\\.mint\\.lgbt|(?:www\\.)?vid\\.puffyan\\.us|(?:www\\.)?yewtu\\.be|(?:www\\.)?yt\\.elukerio\\.org|(?:www\\.)?yt\\.lelux\\.fi|(?:www\\.)?invidious\\.ggc-project\\.de|(?:www\\.)?yt\\.maisputain\\.ovh|(?:www\\.)?ytprivate\\.com|(?:www\\.)?invidious\\.13ad\\.de|(?:www\\.)?invidious\\.toot\\.koeln|(?:www\\.)?invidious\\.fdn\\.fr|(?:www\\.)?watch\\.nettohikari\\.com|(?:www\\.)?invidious\\.namazso\\.eu|(?:www\\.)?invidious\\.silkky\\.cloud|(?:www\\.)?invidious\\.exonip\\.de|(?:www\\.)?invidious\\.riverside\\.rocks|(?:www\\.)?invidious\\.blamefran\\.net|(?:www\\.)?invidious\\.moomoo\\.de|(?:www\\.)?ytb\\.trom\\.tf|(?:www\\.)?yt\\.cyberhost\\.uk|(?:www\\.)?kgg2m7yk5aybusll\\.onion|(?:www\\.)?qklhadlycap4cnod\\.onion|(?:www\\.)?axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid\\.onion|(?:www\\.)?c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid\\.onion|(?:www\\.)?fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad\\.onion|(?:www\\.)?invidious\\.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd\\.onion|(?:www\\.)?owxfohz4kjyv25fvlqilyxast7inivgiktls3th44jhk3ej3i7ya\\.b32\\.i2p|(?:www\\.)?4l2dgddgsrkf2ous66i6seeyi6etzfgrue332grh2n7madpwopotugyd\\.onion|(?:www\\.)?w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd\\.onion|(?:www\\.)?kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad\\.onion|(?:www\\.)?grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad\\.onion|(?:www\\.)?hpniueoejy4opn7bc4ftgazyqjoeqwlvh2uiku2xqku6zpoa4bf5ruid\\.onion|\n youtube\\.googleapis\\.com)/ # the various hostnames, with wildcard subdomains\n (?:.*?\\#/)? # handle anchor (#/) redirect urls\n (?: # the various things that can precede the ID:\n (?:(?:v|embed|e|shorts)/(?!videoseries|live_stream)) # v/ or embed/ or e/ or shorts/\n |(?: # or the v= param in all its forms\n (?:(?:watch|movie)(?:_popup)?(?:\\.php)?/?)? # preceding watch(_popup|.php) or nothing (like /?v=xxxx)\n (?:\\?|\\#!?) # the params delimiter ? or # or #!\n (?:.*?[&;])?? # any other preceding param (like /?s=tuff&v=xxxx or ?s=tuff&v=V36LpHqtcDY)\n v=\n )\n ))\n |(?:\n youtu\\.be| # just youtu.be/xxxx\n vid\\.plus| # or vid.plus/xxxx\n zwearz\\.com/watch| # or zwearz.com/watch/xxxx\n (?:www\\.)?redirect\\.invidious\\.io|(?:(?:www|dev)\\.)?invidio\\.us|(?:www\\.)?invidious\\.pussthecat\\.org|(?:www\\.)?invidious\\.zee\\.li|(?:www\\.)?invidious\\.ethibox\\.fr|(?:www\\.)?invidious\\.3o7z6yfxhbw7n3za4rss6l434kmv55cgw2vuziwuigpwegswvwzqipyd\\.onion|(?:www\\.)?osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd\\.onion|(?:www\\.)?u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad\\.onion|(?:(?:www|no)\\.)?invidiou\\.sh|(?:(?:www|fi)\\.)?invidious\\.snopyta\\.org|(?:www\\.)?invidious\\.kabi\\.tk|(?:www\\.)?invidious\\.mastodon\\.host|(?:www\\.)?invidious\\.zapashcanon\\.fr|(?:www\\.)?(?:invidious(?:-us)?|piped)\\.kavin\\.rocks|(?:www\\.)?invidious\\.tinfoil-hat\\.net|(?:www\\.)?invidious\\.himiko\\.cloud|(?:www\\.)?invidious\\.reallyancient\\.tech|(?:www\\.)?invidious\\.tube|(?:www\\.)?invidiou\\.site|(?:www\\.)?invidious\\.site|(?:www\\.)?invidious\\.xyz|(?:www\\.)?invidious\\.nixnet\\.xyz|(?:www\\.)?invidious\\.048596\\.xyz|(?:www\\.)?invidious\\.drycat\\.fr|(?:www\\.)?inv\\.skyn3t\\.in|(?:www\\.)?tube\\.poal\\.co|(?:www\\.)?tube\\.connect\\.cafe|(?:www\\.)?vid\\.wxzm\\.sx|(?:www\\.)?vid\\.mint\\.lgbt|(?:www\\.)?vid\\.puffyan\\.us|(?:www\\.)?yewtu\\.be|(?:www\\.)?yt\\.elukerio\\.org|(?:www\\.)?yt\\.lelux\\.fi|(?:www\\.)?invidious\\.ggc-project\\.de|(?:www\\.)?yt\\.maisputain\\.ovh|(?:www\\.)?ytprivate\\.com|(?:www\\.)?invidious\\.13ad\\.de|(?:www\\.)?invidious\\.toot\\.koeln|(?:www\\.)?invidious\\.fdn\\.fr|(?:www\\.)?watch\\.nettohikari\\.com|(?:www\\.)?invidious\\.namazso\\.eu|(?:www\\.)?invidious\\.silkky\\.cloud|(?:www\\.)?invidious\\.exonip\\.de|(?:www\\.)?invidious\\.riverside\\.rocks|(?:www\\.)?invidious\\.blamefran\\.net|(?:www\\.)?invidious\\.moomoo\\.de|(?:www\\.)?ytb\\.trom\\.tf|(?:www\\.)?yt\\.cyberhost\\.uk|(?:www\\.)?kgg2m7yk5aybusll\\.onion|(?:www\\.)?qklhadlycap4cnod\\.onion|(?:www\\.)?axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid\\.onion|(?:www\\.)?c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid\\.onion|(?:www\\.)?fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad\\.onion|(?:www\\.)?invidious\\.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd\\.onion|(?:www\\.)?owxfohz4kjyv25fvlqilyxast7inivgiktls3th44jhk3ej3i7ya\\.b32\\.i2p|(?:www\\.)?4l2dgddgsrkf2ous66i6seeyi6etzfgrue332grh2n7madpwopotugyd\\.onion|(?:www\\.)?w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd\\.onion|(?:www\\.)?kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad\\.onion|(?:www\\.)?grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad\\.onion|(?:www\\.)?hpniueoejy4opn7bc4ftgazyqjoeqwlvh2uiku2xqku6zpoa4bf5ruid\\.onion\n )/\n |(?:www\\.)?cleanvideosearch\\.com/media/action/yt/watch\\?videoId=\n )\n )? # all until now is optional -> you can pass the naked ID\n (?P<id>[0-9A-Za-z_-]{11}) # here is it! the YouTube video ID\n (?(1).+)? # if we found the ID, everything can follow\n (?:\\#|$)'
@classmethod
def suitable(cls, url):
from ..utils import parse_qs
qs = parse_qs(url)
if qs.get('list', [None])[0]:
return False
return super(YoutubeIE, cls).suitable(url)
class YoutubeClipIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://(?:www\\.)?youtube\\.com/clip/'
class YoutubeFavouritesIE(YoutubeBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = ':ytfav(?:ou?rite)?s?'
class YoutubeFeedsInfoExtractor(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
class YoutubeHistoryIE(YoutubeFeedsInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = ':ythis(?:tory)?'
class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = '(?x:\n https?://\n (?:\\w+\\.)?\n (?:\n youtube(?:kids)?\\.com|\n (?:www\\.)?redirect\\.invidious\\.io|(?:(?:www|dev)\\.)?invidio\\.us|(?:www\\.)?invidious\\.pussthecat\\.org|(?:www\\.)?invidious\\.zee\\.li|(?:www\\.)?invidious\\.ethibox\\.fr|(?:www\\.)?invidious\\.3o7z6yfxhbw7n3za4rss6l434kmv55cgw2vuziwuigpwegswvwzqipyd\\.onion|(?:www\\.)?osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd\\.onion|(?:www\\.)?u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad\\.onion|(?:(?:www|no)\\.)?invidiou\\.sh|(?:(?:www|fi)\\.)?invidious\\.snopyta\\.org|(?:www\\.)?invidious\\.kabi\\.tk|(?:www\\.)?invidious\\.mastodon\\.host|(?:www\\.)?invidious\\.zapashcanon\\.fr|(?:www\\.)?(?:invidious(?:-us)?|piped)\\.kavin\\.rocks|(?:www\\.)?invidious\\.tinfoil-hat\\.net|(?:www\\.)?invidious\\.himiko\\.cloud|(?:www\\.)?invidious\\.reallyancient\\.tech|(?:www\\.)?invidious\\.tube|(?:www\\.)?invidiou\\.site|(?:www\\.)?invidious\\.site|(?:www\\.)?invidious\\.xyz|(?:www\\.)?invidious\\.nixnet\\.xyz|(?:www\\.)?invidious\\.048596\\.xyz|(?:www\\.)?invidious\\.drycat\\.fr|(?:www\\.)?inv\\.skyn3t\\.in|(?:www\\.)?tube\\.poal\\.co|(?:www\\.)?tube\\.connect\\.cafe|(?:www\\.)?vid\\.wxzm\\.sx|(?:www\\.)?vid\\.mint\\.lgbt|(?:www\\.)?vid\\.puffyan\\.us|(?:www\\.)?yewtu\\.be|(?:www\\.)?yt\\.elukerio\\.org|(?:www\\.)?yt\\.lelux\\.fi|(?:www\\.)?invidious\\.ggc-project\\.de|(?:www\\.)?yt\\.maisputain\\.ovh|(?:www\\.)?ytprivate\\.com|(?:www\\.)?invidious\\.13ad\\.de|(?:www\\.)?invidious\\.toot\\.koeln|(?:www\\.)?invidious\\.fdn\\.fr|(?:www\\.)?watch\\.nettohikari\\.com|(?:www\\.)?invidious\\.namazso\\.eu|(?:www\\.)?invidious\\.silkky\\.cloud|(?:www\\.)?invidious\\.exonip\\.de|(?:www\\.)?invidious\\.riverside\\.rocks|(?:www\\.)?invidious\\.blamefran\\.net|(?:www\\.)?invidious\\.moomoo\\.de|(?:www\\.)?ytb\\.trom\\.tf|(?:www\\.)?yt\\.cyberhost\\.uk|(?:www\\.)?kgg2m7yk5aybusll\\.onion|(?:www\\.)?qklhadlycap4cnod\\.onion|(?:www\\.)?axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid\\.onion|(?:www\\.)?c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid\\.onion|(?:www\\.)?fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad\\.onion|(?:www\\.)?invidious\\.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd\\.onion|(?:www\\.)?owxfohz4kjyv25fvlqilyxast7inivgiktls3th44jhk3ej3i7ya\\.b32\\.i2p|(?:www\\.)?4l2dgddgsrkf2ous66i6seeyi6etzfgrue332grh2n7madpwopotugyd\\.onion|(?:www\\.)?w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd\\.onion|(?:www\\.)?kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad\\.onion|(?:www\\.)?grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad\\.onion|(?:www\\.)?hpniueoejy4opn7bc4ftgazyqjoeqwlvh2uiku2xqku6zpoa4bf5ruid\\.onion\n )/\n (?:\n (?P<channel_type>channel|c|user|browse)/|\n (?P<not_channel>\n feed/|hashtag/|\n (?:playlist|watch)\\?.*?\\blist=\n )|\n (?!(?:channel|c|user|playlist|watch|w|v|embed|e|watch_popup|clip|shorts|movies|results|search|shared|hashtag|trending|explore|feed|feeds|browse|oembed|get_video_info|iframe_api|s/player|storefront|oops|index|account|reporthistory|t/terms|about|upload|signin|logout)\\b) # Direct URLs\n )\n (?P<id>[^/?\\#&]+)\n )'
@classmethod
def suitable(cls, url):
return False if YoutubeIE.suitable(url) else super(
YoutubeTabIE, cls).suitable(url)
class YoutubeLivestreamEmbedIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://(?:\\w+\\.)?youtube\\.com/embed/live_stream/?\\?(?:[^#]+&)?channel=(?P<id>[^&#]+)'
class YoutubePlaylistIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = '(?x)(?:\n (?:https?://)?\n (?:\\w+\\.)?\n (?:\n (?:\n youtube(?:kids)?\\.com|\n (?:www\\.)?redirect\\.invidious\\.io|(?:(?:www|dev)\\.)?invidio\\.us|(?:www\\.)?invidious\\.pussthecat\\.org|(?:www\\.)?invidious\\.zee\\.li|(?:www\\.)?invidious\\.ethibox\\.fr|(?:www\\.)?invidious\\.3o7z6yfxhbw7n3za4rss6l434kmv55cgw2vuziwuigpwegswvwzqipyd\\.onion|(?:www\\.)?osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd\\.onion|(?:www\\.)?u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad\\.onion|(?:(?:www|no)\\.)?invidiou\\.sh|(?:(?:www|fi)\\.)?invidious\\.snopyta\\.org|(?:www\\.)?invidious\\.kabi\\.tk|(?:www\\.)?invidious\\.mastodon\\.host|(?:www\\.)?invidious\\.zapashcanon\\.fr|(?:www\\.)?(?:invidious(?:-us)?|piped)\\.kavin\\.rocks|(?:www\\.)?invidious\\.tinfoil-hat\\.net|(?:www\\.)?invidious\\.himiko\\.cloud|(?:www\\.)?invidious\\.reallyancient\\.tech|(?:www\\.)?invidious\\.tube|(?:www\\.)?invidiou\\.site|(?:www\\.)?invidious\\.site|(?:www\\.)?invidious\\.xyz|(?:www\\.)?invidious\\.nixnet\\.xyz|(?:www\\.)?invidious\\.048596\\.xyz|(?:www\\.)?invidious\\.drycat\\.fr|(?:www\\.)?inv\\.skyn3t\\.in|(?:www\\.)?tube\\.poal\\.co|(?:www\\.)?tube\\.connect\\.cafe|(?:www\\.)?vid\\.wxzm\\.sx|(?:www\\.)?vid\\.mint\\.lgbt|(?:www\\.)?vid\\.puffyan\\.us|(?:www\\.)?yewtu\\.be|(?:www\\.)?yt\\.elukerio\\.org|(?:www\\.)?yt\\.lelux\\.fi|(?:www\\.)?invidious\\.ggc-project\\.de|(?:www\\.)?yt\\.maisputain\\.ovh|(?:www\\.)?ytprivate\\.com|(?:www\\.)?invidious\\.13ad\\.de|(?:www\\.)?invidious\\.toot\\.koeln|(?:www\\.)?invidious\\.fdn\\.fr|(?:www\\.)?watch\\.nettohikari\\.com|(?:www\\.)?invidious\\.namazso\\.eu|(?:www\\.)?invidious\\.silkky\\.cloud|(?:www\\.)?invidious\\.exonip\\.de|(?:www\\.)?invidious\\.riverside\\.rocks|(?:www\\.)?invidious\\.blamefran\\.net|(?:www\\.)?invidious\\.moomoo\\.de|(?:www\\.)?ytb\\.trom\\.tf|(?:www\\.)?yt\\.cyberhost\\.uk|(?:www\\.)?kgg2m7yk5aybusll\\.onion|(?:www\\.)?qklhadlycap4cnod\\.onion|(?:www\\.)?axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid\\.onion|(?:www\\.)?c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid\\.onion|(?:www\\.)?fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad\\.onion|(?:www\\.)?invidious\\.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd\\.onion|(?:www\\.)?owxfohz4kjyv25fvlqilyxast7inivgiktls3th44jhk3ej3i7ya\\.b32\\.i2p|(?:www\\.)?4l2dgddgsrkf2ous66i6seeyi6etzfgrue332grh2n7madpwopotugyd\\.onion|(?:www\\.)?w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd\\.onion|(?:www\\.)?kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad\\.onion|(?:www\\.)?grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad\\.onion|(?:www\\.)?hpniueoejy4opn7bc4ftgazyqjoeqwlvh2uiku2xqku6zpoa4bf5ruid\\.onion\n )\n /.*?\\?.*?\\blist=\n )?\n (?P<id>(?:(?:PL|LL|EC|UU|FL|RD|UL|TL|PU|OLAK5uy_)[0-9A-Za-z-_]{10,}|RDMM|WL|LL|LM))\n )'
@classmethod
def suitable(cls, url):
if YoutubeTabIE.suitable(url):
return False
from ..utils import parse_qs
qs = parse_qs(url)
if qs.get('v', [None])[0]:
return False
return super(YoutubePlaylistIE, cls).suitable(url)
class YoutubeRecommendedIE(YoutubeFeedsInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://(?:www\\.)?youtube\\.com/?(?:[?#]|$)|:ytrec(?:ommended)?'
class YoutubeSearchDateIE(YoutubeTabBaseInfoExtractor, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'ytsearchdate(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class YoutubeSearchIE(YoutubeTabBaseInfoExtractor, LazyLoadSearchExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'ytsearch(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\\s\\S]+)'
class YoutubeSearchURLIE(YoutubeTabBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://(?:www\\.)?youtube\\.com/(?:results|search)\\?([^#]+&)?(?:search_query|q)=(?:[^&]+)(?:[&#]|$)'
class YoutubeMusicSearchURLIE(YoutubeTabBaseInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://music\\.youtube\\.com/search\\?([^#]+&)?(?:search_query|q)=(?:[^&]+)(?:[&#]|$)'
class YoutubeSubscriptionsIE(YoutubeFeedsInfoExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = ':ytsub(?:scription)?s?'
class YoutubeTruncatedIDIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://(?:www\\.)?youtube\\.com/watch\\?v=(?P<id>[0-9A-Za-z_-]{1,10})$'
class YoutubeTruncatedURLIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = '(?x)\n (?:https?://)?\n (?:\\w+\\.)?[yY][oO][uU][tT][uU][bB][eE](?:-nocookie)?\\.com/\n (?:watch\\?(?:\n feature=[a-z_]+|\n annotation_id=annotation_[^&]+|\n x-yt-cl=[0-9]+|\n hl=[^&]*|\n t=[0-9]+\n )?\n |\n attribution_link\\?a=[^&]+\n )\n $\n '
class YoutubeYtBeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'https?://youtu\\.be/(?P<id>[0-9A-Za-z_-]{11})/*?.*?\\blist=(?P<playlist_id>(?:(?:PL|LL|EC|UU|FL|RD|UL|TL|PU|OLAK5uy_)[0-9A-Za-z-_]{10,}|RDMM|WL|LL|LM))'
class YoutubeYtUserIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = 'ytuser:(?P<id>.+)'
class YoutubeWatchLaterIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.youtube'
_VALID_URL = ':ytwatchlater'
class ZapiksIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zapiks'
_VALID_URL = 'https?://(?:www\\.)?zapiks\\.(?:fr|com)/(?:(?:[a-z]{2}/)?(?P<display_id>.+?)\\.html|index\\.php\\?.*\\bmedia_id=(?P<id>\\d+))'
class ZattooPlatformBaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zattoo'
class QuicklineBaseIE(ZattooPlatformBaseIE):
_module = 'yt_dlp.extractor.zattoo'
class QuicklineIE(QuicklineBaseIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?mobiltv\\.quickline\\.com/watch/(?P<channel>[^/]+)/(?P<id>[0-9]+)'
class QuicklineLiveIE(QuicklineBaseIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?mobiltv\\.quickline\\.com/watch/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if QuicklineIE.suitable(url) else super(QuicklineLiveIE, cls).suitable(url)
class ZattooBaseIE(ZattooPlatformBaseIE):
_module = 'yt_dlp.extractor.zattoo'
class ZattooIE(ZattooBaseIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?zattoo\\.com/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class BBVTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?bbv\\-tv\\.net/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class EinsUndEinsTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?1und1\\.tv/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class EWETVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?tvonline\\.ewe\\.de/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class GlattvisionTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?iptv\\.glattvision\\.ch/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class MNetTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?tvplus\\.m\\-net\\.de/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class MyVisionTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?myvisiontv\\.ch/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class NetPlusIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?netplus\\.tv/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class OsnatelTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?tvonline\\.osnatel\\.de/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class QuantumTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?quantum\\-tv\\.com/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class SaltTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?tv\\.salt\\.ch/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class SAKTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?saktv\\.ch/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class VTXTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?vtxtv\\.ch/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class WalyTVIE(ZattooIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?player\\.waly\\.tv/watch/(?P<channel>[^/]+?)/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
class ZattooLiveIE(ZattooBaseIE):
_module = 'yt_dlp.extractor.zattoo'
_VALID_URL = 'https?://(?:www\\.)?zattoo\\.com/watch/(?P<id>[^/]+)'
@classmethod
def suitable(cls, url):
return False if ZattooIE.suitable(url) else super(ZattooLiveIE, cls).suitable(url)
class ZDFIE(ZDFBaseIE):
_module = 'yt_dlp.extractor.zdf'
_VALID_URL = 'https?://www\\.zdf\\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)\\.html'
class DreiSatIE(ZDFIE):
_module = 'yt_dlp.extractor.dreisat'
_VALID_URL = 'https?://(?:www\\.)?3sat\\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)\\.html'
class ZDFChannelIE(ZDFBaseIE):
_module = 'yt_dlp.extractor.zdf'
_VALID_URL = 'https?://www\\.zdf\\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)'
@classmethod
def suitable(cls, url):
return False if ZDFIE.suitable(url) else super(ZDFChannelIE, cls).suitable(url)
class Zee5IE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zee5'
_VALID_URL = '(?x)\n (?:\n zee5:|\n https?://(?:www\\.)?zee5\\.com/(?:[^#?]+/)?\n (?:\n (?:tv-shows|kids|zee5originals)(?:/[^#/?]+){3}\n |movies/[^#/?]+\n )/(?P<display_id>[^#/?]+)/\n )\n (?P<id>[^#/?]+)/?(?:$|[?#])\n '
class Zee5SeriesIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zee5'
_VALID_URL = '(?x)\n (?:\n zee5:series:|\n https?://(?:www\\.)?zee5\\.com/(?:[^#?]+/)?\n (?:tv-shows|kids|zee5originals)(?:/[^#/?]+){2}/\n )\n (?P<id>[^#/?]+)(?:/episodes)?/?(?:$|[?#])\n '
class ZhihuIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zhihu'
_VALID_URL = 'https?://(?:www\\.)?zhihu\\.com/zvideo/(?P<id>[0-9]+)'
class ZingMp3BaseIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zingmp3'
class ZingMp3IE(ZingMp3BaseIE):
_module = 'yt_dlp.extractor.zingmp3'
_VALID_URL = 'https?://(?:mp3\\.zing|zingmp3)\\.vn/(?:bai-hat|video-clip)/[^/]+/(?P<id>\\w+)\\.html'
class ZingMp3AlbumIE(ZingMp3BaseIE):
_module = 'yt_dlp.extractor.zingmp3'
_VALID_URL = 'https?://(?:mp3\\.zing|zingmp3)\\.vn/(?:album|playlist)/[^/]+/(?P<id>\\w+)\\.html'
class ZoomIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zoom'
_VALID_URL = '(?P<base_url>https?://(?:[^.]+\\.)?zoom.us/)rec(?:ording)?/(?:play|share)/(?P<id>[A-Za-z0-9_.-]+)'
class ZypeIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.zype'
_VALID_URL = 'https?://player\\.zype\\.com/embed/(?P<id>[\\da-fA-F]+)\\.(?:js|json|html)\\?.*?(?:access_token|(?:ap[ip]|player)_key)=[^&]+'
class GenericIE(LazyLoadExtractor):
_module = 'yt_dlp.extractor.generic'
_VALID_URL = '.*'
_ALL_CLASSES = [ABCIE, ABCIViewIE, ABCIViewShowSeriesIE, AbcNewsIE, AbcNewsVideoIE, ABCOTVSIE, ABCOTVSClipsIE, AcademicEarthCourseIE, ACastIE, ACastChannelIE, ADNIE, AdobeConnectIE, AdobeTVEmbedIE, AdobeTVIE, AdobeTVShowIE, AdobeTVChannelIE, AdobeTVVideoIE, AdultSwimIE, AfreecaTVIE, AfreecaTVLiveIE, AirMozillaIE, AlJazeeraIE, AlphaPornoIE, AmaraIE, AluraIE, AluraCourseIE, AnimeLabIE, AnimeLabShowsIE, AmazonStoreIE, AmericasTestKitchenIE, AmericasTestKitchenSeasonIE, AnimeOnDemandIE, AnvatoIE, AllocineIE, AliExpressLiveIE, APAIE, AparatIE, AppleConnectIE, AppleTrailersIE, AppleTrailersSectionIE, ApplePodcastsIE, ArchiveOrgIE, YoutubeWebArchiveIE, ArcPublishingIE, ArkenaIE, ARDBetaMediathekIE, ARDIE, ARDMediathekIE, ArteTVIE, ArteTVEmbedIE, ArteTVPlaylistIE, ArnesIE, AsianCrushIE, AsianCrushPlaylistIE, AtresPlayerIE, ATTTechChannelIE, ATVAtIE, AudiMediaIE, AudioBoomIE, AudiomackIE, AudiomackAlbumIE, AudiusIE, AudiusTrackIE, AudiusPlaylistIE, AudiusProfileIE, AWAANIE, AWAANVideoIE, AWAANLiveIE, AWAANSeasonIE, AZMedienIE, BaiduVideoIE, BandcampIE, BandcampAlbumIE, BandcampWeeklyIE, BandcampMusicIE, BannedVideoIE, BBCCoUkIE, BBCCoUkArticleIE, BBCCoUkIPlayerEpisodesIE, BBCCoUkIPlayerGroupIE, BBCCoUkPlaylistIE, BBCIE, BeegIE, BehindKinkIE, BellMediaIE, BeatportIE, BetIE, BFIPlayerIE, BFMTVIE, BFMTVLiveIE, BFMTVArticleIE, BibelTVIE, BigflixIE, BildIE, BiliBiliIE, BiliBiliSearchIE, BilibiliCategoryIE, BiliBiliBangumiIE, BilibiliAudioIE, BilibiliAudioAlbumIE, BiliBiliPlayerIE, BilibiliChannelIE, BiliIntlIE, BiliIntlSeriesIE, BioBioChileTVIE, BitChuteIE, BitChuteChannelIE, BitwaveReplayIE, BitwaveStreamIE, BIQLEIE, BlackboardCollaborateIE, BleacherReportIE, BleacherReportCMSIE, BloggerIE, BloombergIE, BokeCCIE, BongaCamsIE, BostonGlobeIE, BoxIE, BpbIE, BRIE, BRMediathekIE, BravoTVIE, BreakIE, BreitBartIE, BrightcoveLegacyIE, BrightcoveNewIE, BandaiChannelIE, BusinessInsiderIE, BuzzFeedIE, BYUtvIE, C56IE, CableAVIE, CallinIE, CAM4IE, CamdemyIE, CamdemyFolderIE, CamModelsIE, CamWithHerIE, CanalAlphaIE, CanalplusIE, Canalc2IE, CanvasIE, CanvasEenIE, VrtNUIE, DagelijkseKostIE, CarambaTVIE, CarambaTVPageIE, CartoonNetworkIE, CBCIE, CBCPlayerIE, CBCGemIE, CBCGemPlaylistIE, CBCGemLiveIE, CBSLocalIE, CBSLocalArticleIE, CBSNewsLiveVideoIE, CBSSportsEmbedIE, CBSSportsIE, TwentyFourSevenSportsIE, CCCIE, CCCPlaylistIE, CCMAIE, CCTVIE, CDAIE, CeskaTelevizeIE, CGTNIE, Channel9IE, CharlieRoseIE, ChaturbateIE, ChilloutzoneIE, ChingariIE, ChingariUserIE, ChirbitIE, ChirbitProfileIE, CinchcastIE, CinemaxIE, CiscoLiveSessionIE, CiscoLiveSearchIE, CiscoWebexIE, CJSWIE, CliphunterIE, ClippitIE, ClipRsIE, ClipsyndicateIE, CloserToTruthIE, CloudflareStreamIE, CloudyIE, ClubicIE, ClypIE, CNBCIE, CNBCVideoIE, CNNIE, CNNBlogsIE, CNNArticleIE, CoubIE, ComedyCentralIE, ComedyCentralTVIE, CommonMistakesIE, UnicodeBOMIE, MmsIE, RtmpIE, ViewSourceIE, CondeNastIE, CONtvIE, CozyTVIE, CrackedIE, CrackleIE, CrooksAndLiarsIE, CrowdBunkerIE, CrowdBunkerChannelIE, CrunchyrollShowPlaylistIE, CrunchyrollBetaIE, CrunchyrollBetaShowIE, CSpanIE, CtsNewsIE, CTVIE, CTVNewsIE, CultureUnpluggedIE, CuriosityStreamIE, CuriosityStreamCollectionsIE, CuriosityStreamSeriesIE, CWTVIE, DaftsexIE, DailyMailIE, DailymotionIE, DailymotionPlaylistIE, DailymotionUserIE, DamtomoRecordIE, DamtomoVideoIE, DaumIE, DaumClipIE, DaumPlaylistIE, DaumUserIE, DBTVIE, DctpTvIE, DeezerPlaylistIE, DeezerAlbumIE, DemocracynowIE, DFBIE, DHMIE, DiggIE, DotsubIE, DouyuShowIE, DouyuTVIE, DPlayIE, DiscoveryPlusIE, HGTVDeIE, GoDiscoveryIE, TravelChannelIE, CookingChannelIE, HGTVUsaIE, FoodNetworkIE, InvestigationDiscoveryIE, DestinationAmericaIE, AmHistoryChannelIE, ScienceChannelIE, DIYNetworkIE, DiscoveryLifeIE, AnimalPlanetIE, TLCIE, DiscoveryPlusIndiaIE, DiscoveryNetworksDeIE, DiscoveryPlusItalyIE, DiscoveryPlusItalyShowIE, DiscoveryPlusIndiaShowIE, DRBonanzaIE, DrTuberIE, DRTVIE, DRTVLiveIE, DTubeIE, DVTVIE, DubokuIE, DubokuPlaylistIE, DumpertIE, DefenseGouvFrIE, DigitalConcertHallIE, DiscoveryIE, DisneyIE, DigitallySpeakingIE, DoodStreamIE, DropboxIE, DropoutSeasonIE, DropoutIE, DWIE, DWArticleIE, EaglePlatformIE, EbaumsWorldIE, EchoMskIE, EggheadCourseIE, EggheadLessonIE, EHowIE, EightTracksIE, EinthusanIE, EitbIE, EllenTubeIE, EllenTubeVideoIE, EllenTubePlaylistIE, ElonetIE, ElPaisIE, EmbedlyIE, EngadgetIE, EpiconIE, EpiconSeriesIE, EpornerIE, EroProfileIE, EroProfileAlbumIE, ERTFlixCodenameIE, ERTFlixIE, ERTWebtvEmbedIE, EscapistIE, ESPNIE, ESPNArticleIE, FiveThirtyEightIE, ESPNCricInfoIE, EsriVideoIE, EuropaIE, EuropeanTourIE, EUScreenIE, ExpoTVIE, ExpressenIE, EyedoTVIE, FacebookIE, FacebookPluginsVideoIE, FacebookRedirectURLIE, FancodeVodIE, FancodeLiveIE, FazIE, FC2IE, FC2EmbedIE, FczenitIE, FilmmoduIE, FilmOnIE, FilmOnChannelIE, FilmwebIE, FirstTVIE, FiveMinIE, FiveTVIE, FlickrIE, FolketingetIE, FootyRoomIE, Formula1IE, FourTubeIE, PornTubeIE, PornerBrosIE, FuxIE, FOXIE, FOX9IE, FOX9NewsIE, FoxgayIE, FoxNewsIE, FoxNewsArticleIE, FoxSportsIE, FranceCultureIE, FranceInterIE, FranceTVIE, FranceTVSiteIE, FranceTVInfoIE, FreesoundIE, FreespeechIE, FreshLiveIE, FrontendMastersIE, FrontendMastersLessonIE, FrontendMastersCourseIE, FujiTVFODPlus7IE, FunimationIE, FunimationPageIE, FunimationShowIE, FunkIE, FusionIE, GabTVIE, GabIE, GaiaIE, GameInformerIE, GameJoltIE, GameJoltUserIE, GameJoltGameIE, GameJoltGameSoundtrackIE, GameJoltCommunityIE, GameJoltSearchIE, GameSpotIE, GameStarIE, GaskrankIE, GazetaIE, GDCVaultIE, GediDigitalIE, GettrIE, GfycatIE, GiantBombIE, GigaIE, GlideIE, GloboIE, GloboArticleIE, GoIE, GodTubeIE, GofileIE, GolemIE, GoogleDriveIE, GooglePodcastsIE, GooglePodcastsFeedIE, GoogleSearchIE, GoProIE, GoshgayIE, GoToStageIE, GPUTechConfIE, GronkhIE, GrouponIE, HBOIE, HearThisAtIE, HeiseIE, HellPornoIE, HelsinkiIE, HentaiStigmaIE, HGTVComShowIE, HKETVIE, HiDiveIE, HistoricFilmsIE, HitboxIE, HitboxLiveIE, HitRecordIE, HornBunnyIE, HotNewHipHopIE, HotStarIE, HotStarPlaylistIE, HotStarSeriesIE, HowcastIE, HowStuffWorksIE, HRFernsehenIE, HRTiIE, HRTiPlaylistIE, HSEShowIE, HSEProductIE, HuajiaoIE, HuffPostIE, HungamaIE, HungamaSongIE, HungamaAlbumPlaylistIE, HypemIE, IchinanaLiveIE, IchinanaLiveClipIE, IGNIE, IGNVideoIE, IGNArticleIE, IHeartRadioIE, IHeartRadioPodcastIE, ImdbIE, ImdbListIE, ImgurIE, ImgurGalleryIE, ImgurAlbumIE, InaIE, IncIE, IndavideoEmbedIE, InfoQIE, InstagramIE, InstagramIOSIE, InstagramUserIE, InstagramTagIE, InstagramStoryIE, InternazionaleIE, InternetVideoArchiveIE, IPrimaIE, IPrimaCNNIE, IqiyiIE, IqIE, IqAlbumIE, Ir90TvIE, ITVIE, ITVBTCCIE, IviIE, IviCompilationIE, IvideonIE, IwaraIE, IzleseneIE, JamendoIE, JamendoAlbumIE, JeuxVideoIE, JoveIE, JojIE, JWPlatformIE, KakaoIE, KalturaIE, KankanIE, KaraoketvIE, KarriereVideosIE, KeezMoviesIE, ExtremeTubeIE, KelbyOneIE, KetnetIE, KhanAcademyIE, KhanAcademyUnitIE, KickStarterIE, KinjaEmbedIE, KinoPoiskIE, KonserthusetPlayIE, KooIE, KrasViewIE, Ku6IE, KUSIIE, KuwoIE, KuwoAlbumIE, KuwoChartIE, KuwoSingerIE, KuwoCategoryIE, KuwoMvIE, LA7IE, LA7PodcastEpisodeIE, LA7PodcastIE, Laola1TvEmbedIE, Laola1TvIE, EHFTVIE, ITTFIE, LBRYIE, LBRYChannelIE, LCIIE, LcpPlayIE, LcpIE, Lecture2GoIE, LecturioIE, LecturioCourseIE, LecturioDeCourseIE, LeIE, LePlaylistIE, LetvCloudIE, LEGOIE, LemondeIE, LentaIE, LibraryOfCongressIE, LibsynIE, LifeNewsIE, LifeEmbedIE, LimelightMediaIE, LimelightChannelIE, LimelightChannelListIE, LineLiveIE, LineLiveChannelIE, LinkedInIE, LinkedInLearningIE, LinkedInLearningCourseIE, LinuxAcademyIE, LiTVIE, LiveJournalIE, LivestreamIE, LivestreamOriginalIE, LivestreamShortenerIE, LnkGoIE, LnkIE, LocalNews8IE, LoveHomePornIE, LRTIE, LyndaIE, LyndaCourseIE, M6IE, MagentaMusik360IE, MailRuIE, MailRuMusicIE, MailRuMusicSearchIE, MainStreamingIE, MallTVIE, MangomoloVideoIE, MangomoloLiveIE, ManotoTVIE, ManotoTVShowIE, ManotoTVLiveIE, ManyVidsIE, MaoriTVIE, MarkizaIE, MarkizaPageIE, MassengeschmackTVIE, MatchTVIE, MDRIE, MedalTVIE, MediaiteIE, MediaKlikkIE, MediasetIE, MediasetShowIE, MediasiteIE, MediasiteCatalogIE, MediasiteNamedCatalogIE, MediciIE, MegaphoneIE, MeipaiIE, MelonVODIE, METAIE, MetacafeIE, MetacriticIE, MgoonIE, MGTVIE, MiaoPaiIE, MicrosoftStreamIE, MicrosoftVirtualAcademyIE, MicrosoftVirtualAcademyCourseIE, MildomIE, MildomVodIE, MildomUserVodIE, MindsIE, MindsChannelIE, MindsGroupIE, MinistryGridIE, MinotoIE, MioMioIE, MirrativIE, MirrativUserIE, TechTVMITIE, OCWMITIE, MixchIE, MixchArchiveIE, MixcloudIE, MixcloudUserIE, MixcloudPlaylistIE, MLBIE, MLBVideoIE, MLSSoccerIE, MnetIE, MoeVideoIE, MofosexIE, MofosexEmbedIE, MojvideoIE, MorningstarIE, MotherlessIE, MotherlessGroupIE, MotorsportIE, MovieClipsIE, MoviezineIE, MovingImageIE, MSNIE, MTVIE, CMTIE, MTVVideoIE, MTVServicesEmbeddedIE, MTVDEIE, MTVJapanIE, MTVItaliaIE, MTVItaliaProgrammaIE, MuenchenTVIE, MuseScoreIE, MusicdexSongIE, MusicdexAlbumIE, MusicdexArtistIE, MusicdexPlaylistIE, MwaveIE, MwaveMeetGreetIE, MxplayerIE, MxplayerShowIE, MyChannelsIE, MySpaceIE, MySpaceAlbumIE, MySpassIE, MyviIE, MyviEmbedIE, MyVideoGeIE, MyVidsterIE, N1InfoAssetIE, N1InfoIIE, NateIE, NateProgramIE, NationalGeographicVideoIE, NationalGeographicTVIE, NaverIE, NaverLiveIE, NBAWatchEmbedIE, NBAWatchIE, NBAWatchCollectionIE, NBAEmbedIE, NBAIE, NBAChannelIE, NBCOlympicsIE, NBCOlympicsStreamIE, NBCSportsIE, NBCSportsStreamIE, NBCSportsVPlayerIE, NDRIE, NJoyIE, NDREmbedBaseIE, NDREmbedIE, NJoyEmbedIE, NDTVIE, NebulaIE, NebulaCollectionIE, NerdCubedFeedIE, NetzkinoIE, NetEaseMusicIE, NetEaseMusicAlbumIE, NetEaseMusicSingerIE, NetEaseMusicListIE, NetEaseMusicMvIE, NetEaseMusicProgramIE, NetEaseMusicDjRadioIE, NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, NewstubeIE, NewsyIE, NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, NexxIE, NexxEmbedIE, NFHSNetworkIE, NFLIE, NFLArticleIE, NhkVodIE, NhkVodProgramIE, NHLIE, NickIE, NickBrIE, NickDeIE, NickNightIE, NickRuIE, NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE, NicovideoSearchDateIE, NicovideoSearchIE, NicovideoSearchURLIE, NineCNineMediaIE, CPTwentyFourIE, NineGagIE, NineNowIE, NintendoIE, NitterIE, NJPWWorldIE, NobelPrizeIE, NonkTubeIE, NoodleMagazineIE, NoovoIE, NormalbootsIE, NosVideoIE, NovaEmbedIE, NovaIE, NovaPlayIE, NownessIE, NownessPlaylistIE, NownessSeriesIE, NozIE, NPOIE, AndereTijdenIE, NPOLiveIE, NPORadioIE, NPORadioFragmentIE, SchoolTVIE, HetKlokhuisIE, VPROIE, WNLIE, NprIE, NRKIE, NRKPlaylistIE, NRKSkoleIE, NRKTVIE, NRKTVDirekteIE, NRKRadioPodkastIE, NRKTVEpisodeIE, NRKTVEpisodesIE, NRKTVSeasonIE, NRKTVSeriesIE, NRLTVIE, NTVCoJpCUIE, NTVDeIE, NTVRuIE, NYTimesIE, NYTimesArticleIE, NYTimesCookingIE, NuvidIE, NZHeraldIE, NZZIE, OdaTVIE, OdnoklassnikiIE, OktoberfestTVIE, OlympicsReplayIE, On24IE, OnDemandKoreaIE, OneFootballIE, OnetIE, OnetChannelIE, OnetMVPIE, OnetPlIE, OnionStudiosIE, OoyalaIE, OoyalaExternalIE, OpencastIE, OpencastPlaylistIE, OpenRecIE, OpenRecCaptureIE, OpenRecMovieIE, OraTVIE, ORFTVthekIE, ORFFM4IE, ORFFM4StoryIE, ORFOE1IE, ORFOE3IE, ORFNOEIE, ORFWIEIE, ORFBGLIE, ORFOOEIE, ORFSTMIE, ORFKTNIE, ORFSBGIE, ORFTIRIE, ORFVBGIE, ORFIPTVIE, OutsideTVIE, PacktPubIE, PacktPubCourseIE, PalcoMP3IE, PalcoMP3ArtistIE, PalcoMP3VideoIE, PandoraTVIE, ParamountPlusSeriesIE, ParliamentLiveUKIE, ParlviewIE, PatreonIE, PatreonUserIE, PBSIE, PearVideoIE, PeerTubeIE, PeerTubePlaylistIE, PeerTVIE, PelotonIE, PelotonLiveIE, PeopleIE, PerformGroupIE, PeriscopeIE, PeriscopeUserIE, PhilharmonieDeParisIE, PhoenixIE, PhotobucketIE, PicartoIE, PicartoVodIE, PikselIE, PinkbikeIE, PinterestIE, PinterestCollectionIE, PixivSketchIE, PixivSketchUserIE, PladformIE, PlanetMarathiIE, PlatziIE, PlatziCourseIE, PlayFMIE, PlayPlusTVIE, PlaysTVIE, PlayStuffIE, PlaytvakIE, PlayvidIE, PlaywireIE, PlutoTVIE, PluralsightIE, PluralsightCourseIE, PodomaticIE, PokemonIE, PokemonWatchIE, PokerGoIE, PokerGoCollectionIE, PolsatGoIE, PolskieRadioIE, PolskieRadioCategoryIE, PolskieRadioPlayerIE, PolskieRadioPodcastIE, PolskieRadioPodcastListIE, PolskieRadioRadioKierowcowIE, PopcorntimesIE, PopcornTVIE, Porn91IE, PornComIE, PornFlipIE, PornHdIE, PornHubIE, PornHubUserIE, PornHubPlaylistIE, PornHubPagedVideoListIE, PornHubUserVideosUploadIE, PornotubeIE, PornoVoisinesIE, PornoXOIE, PornezIE, PuhuTVIE, PuhuTVSerieIE, PressTVIE, ProjectVeritasIE, ProSiebenSat1IE, PRXStoryIE, PRXSeriesIE, PRXAccountIE, PRXStoriesSearchIE, PRXSeriesSearchIE, Puls4IE, PyvideoIE, QQMusicIE, QQMusicSingerIE, QQMusicAlbumIE, QQMusicToplistIE, QQMusicPlaylistIE, R7IE, R7ArticleIE, RadikoIE, RadikoRadioIE, RadioCanadaIE, RadioCanadaAudioVideoIE, RadioDeIE, RadioJavanIE, RadioBremenIE, RadioFranceIE, RadioZetPodcastIE, RadioKapitalIE, RadioKapitalShowIE, RadLiveIE, RadLiveChannelIE, RadLiveSeasonIE, RaiPlayIE, RaiPlayLiveIE, RaiPlayPlaylistIE, RaiPlaySoundIE, RaiPlaySoundLiveIE, RaiPlaySoundPlaylistIE, RaiIE, RayWenderlichIE, RayWenderlichCourseIE, RBMARadioIE, RCSIE, RCSEmbedsIE, RCSVariousIE, RCTIPlusIE, RCTIPlusSeriesIE, RCTIPlusTVIE, RDSIE, RedBullTVIE, RedBullEmbedIE, RedBullTVRrnContentIE, RedBullIE, RedditIE, RedGifsIE, RedGifsSearchIE, RedGifsUserIE, RedTubeIE, RegioTVIE, RENTVIE, RENTVArticleIE, RestudyIE, ReutersIE, ReverbNationIE, RICEIE, RMCDecouverteIE, Ro220IE, RockstarGamesIE, RoosterTeethIE, RoosterTeethSeriesIE, RottenTomatoesIE, RoxwelIE, RozhlasIE, RTBFIE, RteIE, RteRadioIE, RtlNlIE, RTL2IE, RTL2YouIE, RTL2YouSeriesIE, RTNewsIE, RTDocumentryIE, RTDocumentryPlaylistIE, RuptlyIE, RTPIE, RTRFMIE, RTVEALaCartaIE, RTVEAudioIE, RTVELiveIE, RTVEInfantilIE, RTVETelevisionIE, RTVNHIE, RTVSIE, RUHDIE, Rule34VideoIE, RumbleEmbedIE, RumbleChannelIE, RutubeIE, RutubeChannelIE, RutubeEmbedIE, RutubeMovieIE, RutubePersonIE, RutubePlaylistIE, RutubeTagsIE, GlomexIE, GlomexEmbedIE, MegaTVComIE, MegaTVComEmbedIE, RUTVIE, RuutuIE, RuvIE, SafariIE, SafariApiIE, SafariCourseIE, SaitosanIE, SampleFocusIE, SapoIE, SaveFromIE, SBSIE, ScreencastIE, ScreencastOMaticIE, ScrippsNetworksWatchIE, ScrippsNetworksIE, SCTEIE, SCTECourseIE, SeekerIE, SenateISVPIE, SenateGovIE, SendtoNewsIE, ServusIE, SevenPlusIE, SexuIE, SeznamZpravyIE, SeznamZpravyArticleIE, ShahidIE, ShahidShowIE, SharedIE, VivoIE, ShemarooMeIE, ShowRoomLiveIE, SimplecastIE, SimplecastEpisodeIE, SimplecastPodcastIE, SinaIE, SixPlayIE, SkebIE, SkyItPlayerIE, SkyItVideoIE, SkyItVideoLiveIE, SkyItIE, SkyItAcademyIE, SkyItArteIE, CieloTVItIE, TV8ItIE, SkylineWebcamsIE, SkyNewsArabiaIE, SkyNewsArabiaArticleIE, SkyNewsAUIE, SkyNewsIE, SkyNewsStoryIE, SkySportsIE, SkySportsNewsIE, SlideshareIE, SlidesLiveIE, SlutloadIE, SnotrIE, SohuIE, SonyLIVIE, SonyLIVSeriesIE, SoundcloudEmbedIE, SoundcloudIE, SoundcloudSetIE, SoundcloudRelatedIE, SoundcloudUserIE, SoundcloudTrackStationIE, SoundcloudPlaylistIE, SoundcloudSearchIE, SoundgasmIE, SoundgasmProfileIE, SouthParkIE, SouthParkDeIE, SouthParkDkIE, SouthParkEsIE, SouthParkNlIE, SovietsClosetIE, SovietsClosetPlaylistIE, SpankBangIE, SpankBangPlaylistIE, SpankwireIE, SpiegelIE, BellatorIE, ParamountNetworkIE, StitcherIE, StitcherShowIE, Sport5IE, SportBoxIE, SportDeutschlandIE, SpotifyIE, SpotifyShowIE, SpreakerIE, SpreakerPageIE, SpreakerShowIE, SpreakerShowPageIE, SpringboardPlatformIE, SproutIE, SRGSSRIE, RTSIE, SRGSSRPlayIE, SRMediathekIE, StanfordOpenClassroomIE, StarTVIE, SteamIE, StoryFireIE, StoryFireUserIE, StoryFireSeriesIE, StreamableIE, StreamanityIE, StreamcloudIE, StreamCZIE, StreamFFIE, StreetVoiceIE, StretchInternetIE, StripchatIE, STVPlayerIE, SunPornoIE, SverigesRadioEpisodeIE, SverigesRadioPublicationIE, SVTIE, SVTPageIE, SVTPlayIE, SVTSeriesIE, SWRMediathekIE, SyfyIE, SztvHuIE, TagesschauIE, TassIE, TBSIE, TDSLifewayIE, TeachableIE, TeachableCourseIE, TeacherTubeIE, TeacherTubeUserIE, TeachingChannelIE, TeamcocoIE, TeamTreeHouseIE, TechTalksIE, TedEmbedIE, TedPlaylistIE, TedSeriesIE, TedTalkIE, Tele5IE, Tele13IE, TeleBruxellesIE, TelecincoIE, MiTeleIE, TelegraafIE, TeleMBIE, TelemundoIE, TeleQuebecIE, TeleQuebecSquatIE, TeleQuebecEmissionIE, TeleQuebecLiveIE, TeleQuebecVideoIE, TeleTaskIE, TelewebionIE, TennisTVIE, TenPlayIE, TestURLIE, TF1IE, TFOIE, TheInterceptIE, ThePlatformIE, AENetworksIE, AENetworksCollectionIE, AENetworksShowIE, HistoryTopicIE, HistoryPlayerIE, BiographyIE, AMCNetworksIE, NBCIE, NBCNewsIE, ThePlatformFeedIE, CBSIE, CBSInteractiveIE, CBSNewsEmbedIE, CBSNewsIE, CorusIE, ParamountPlusIE, TheSceneIE, TheStarIE, TheSunIE, ThetaVideoIE, ThetaStreamIE, TheWeatherChannelIE, ThisAmericanLifeIE, ThisAVIE, ThisOldHouseIE, ThreeSpeakIE, ThreeSpeakUserIE, ThreeQSDNIE, TikTokIE, TikTokUserIE, TikTokSoundIE, TikTokEffectIE, TikTokTagIE, DouyinIE, TinyPicIE, TMZIE, TNAFlixNetworkEmbedIE, TNAFlixIE, EMPFlixIE, MovieFapIE, ToggleIE, MeWatchIE, ToggoIE, TokentubeIE, TokentubeChannelIE, TOnlineIE, ToonGogglesIE, TouTvIE, ToypicsUserIE, ToypicsIE, TrailerAddictIE, TriluliluIE, TrovoIE, TrovoVodIE, TrovoChannelVodIE, TrovoChannelClipIE, TrueIDIE, TruNewsIE, TruTVIE, Tube8IE, TubiTvIE, TubiTvShowIE, TumblrIE, TuneInClipIE, TuneInStationIE, TuneInProgramIE, TuneInTopicIE, TuneInShortenerIE, TunePkIE, TurboIE, TV2IE, TV2ArticleIE, KatsomoIE, MTVUutisetArticleIE, TV2DKIE, TV2DKBornholmPlayIE, TV2HuIE, TV2HuSeriesIE, TV4IE, TV5MondePlusIE, TV5UnisVideoIE, TV5UnisIE, TVAIE, QubIE, TVANouvellesIE, TVANouvellesArticleIE, TVCIE, TVCArticleIE, TVerIE, TvigleIE, TVLandIE, TVN24IE, TVNetIE, TVNoeIE, TVNowIE, TVNowFilmIE, TVNowNewIE, TVNowSeasonIE, TVNowAnnualIE, TVNowShowIE, TVOpenGrWatchIE, TVOpenGrEmbedIE, TVPEmbedIE, TVPIE, TVPStreamIE, TVPWebsiteIE, TVPlayIE, ViafreeIE, TVPlayHomeIE, TVPlayerIE, TweakersIE, TwentyFourVideoIE, TwentyMinutenIE, TwentyThreeVideoIE, TwitCastingIE, TwitCastingLiveIE, TwitCastingUserIE, TwitchVodIE, TwitchCollectionIE, TwitchVideosIE, TwitchVideosClipsIE, TwitchVideosCollectionsIE, TwitchStreamIE, TwitchClipsIE, TwitterCardIE, TwitterIE, TwitterAmplifyIE, TwitterBroadcastIE, TwitterShortenerIE, UdemyIE, UdemyCourseIE, UDNEmbedIE, UFCTVIE, UFCArabiaIE, UkColumnIE, UKTVPlayIE, DigitekaIE, DLiveVODIE, DLiveStreamIE, DroobleIE, UMGDeIE, UnistraIE, UnityIE, UOLIE, UplynkIE, UplynkPreplayIE, UrortIE, URPlayIE, USANetworkIE, USATodayIE, UstreamIE, UstreamChannelIE, UstudioIE, UstudioEmbedIE, UtreonIE, Varzesh3IE, Vbox7IE, VeeHDIE, VeoIE, VeohIE, VestiIE, VevoIE, VevoPlaylistIE, BTArticleIE, BTVestlendingenIE, VH1IE, ViceIE, ViceArticleIE, ViceShowIE, VidbitIE, ViddlerIE, VideaIE, VideoDetectiveIE, VideofyMeIE, VideomoreIE, VideomoreVideoIE, VideomoreSeasonIE, VideoPressIE, VidioIE, VidioPremierIE, VidioLiveIE, VidLiiIE, VierIE, VierVideosIE, ViewLiftIE, ViewLiftEmbedIE, ViideaIE, VimeoIE, VimeoAlbumIE, VimeoChannelIE, VimeoGroupsIE, VimeoLikesIE, VimeoOndemandIE, VimeoReviewIE, VimeoUserIE, VimeoWatchLaterIE, VHXEmbedIE, VimmIE, VimmRecordingIE, VimpleIE, VineIE, VineUserIE, VikiIE, VikiChannelIE, ViqeoIE, ViuIE, ViuPlaylistIE, ViuOTTIE, VKIE, VKUserVideosIE, VKWallPostIE, VLiveIE, VLivePostIE, VLiveChannelIE, VodlockerIE, VODPlIE, VODPlatformIE, VoiceRepublicIE, VoicyIE, VoicyChannelIE, VootIE, VootSeriesIE, VoxMediaVolumeIE, VoxMediaIE, VRTIE, VrakIE, VRVIE, CrunchyrollIE, VRVSeriesIE, VShareIE, VTMIE, MedialaanIE, VubeIE, VuClipIE, VuploadIE, VVVVIDIE, VVVVIDShowIE, VyboryMosIE, VzaarIE, WakanimIE, WallaIE, WashingtonPostIE, WashingtonPostArticleIE, WatIE, WatchBoxIE, WatchIndianPornIE, WDRIE, WDRPageIE, WDRElefantIE, WDRMobileIE, WebcasterIE, WebcasterFeedIE, WebOfStoriesIE, WebOfStoriesPlaylistIE, WeiboIE, WeiboMobileIE, WeiqiTVIE, WillowIE, WimTVIE, WhoWatchIE, WistiaIE, WistiaPlaylistIE, WorldStarHipHopIE, WPPilotIE, WPPilotChannelsIE, WSJIE, WSJArticleIE, WWEIE, XBefIE, XboxClipsIE, XFileShareIE, XHamsterIE, XHamsterEmbedIE, XHamsterUserIE, XiamiSongIE, XiamiAlbumIE, XiamiArtistIE, XiamiCollectionIE, XimalayaIE, XimalayaAlbumIE, XMinusIE, XNXXIE, XstreamIE, VGTVIE, XTubeUserIE, XTubeIE, XuiteIE, XVideosIE, XXXYMoviesIE, YahooIE, AolIE, YahooSearchIE, YahooGyaOPlayerIE, YahooGyaOIE, YahooJapanNewsIE, YandexDiskIE, YandexMusicTrackIE, YandexMusicAlbumIE, YandexMusicPlaylistIE, YandexMusicArtistTracksIE, YandexMusicArtistAlbumsIE, YandexVideoIE, YandexVideoPreviewIE, ZenYandexIE, ZenYandexChannelIE, YapFilesIE, YesJapanIE, YinYueTaiIE, YnetIE, YouJizzIE, YoukuIE, YoukuShowIE, YouNowLiveIE, YouNowChannelIE, YouNowMomentIE, YouPornIE, YourPornIE, YourUploadIE, YoutubeIE, YoutubeClipIE, YoutubeFavouritesIE, YoutubeHistoryIE, YoutubeTabIE, YoutubeLivestreamEmbedIE, YoutubePlaylistIE, YoutubeRecommendedIE, YoutubeSearchDateIE, YoutubeSearchIE, YoutubeSearchURLIE, YoutubeMusicSearchURLIE, YoutubeSubscriptionsIE, YoutubeTruncatedIDIE, YoutubeTruncatedURLIE, YoutubeYtBeIE, YoutubeYtUserIE, YoutubeWatchLaterIE, ZapiksIE, QuicklineIE, QuicklineLiveIE, ZattooIE, BBVTVIE, EinsUndEinsTVIE, EWETVIE, GlattvisionTVIE, MNetTVIE, MyVisionTVIE, NetPlusIE, OsnatelTVIE, QuantumTVIE, SaltTVIE, SAKTVIE, VTXTVIE, WalyTVIE, ZattooLiveIE, ZDFIE, DreiSatIE, ZDFChannelIE, Zee5IE, Zee5SeriesIE, ZhihuIE, ZingMp3IE, ZingMp3AlbumIE, ZoomIE, ZypeIE, GenericIE]
| 58.466312
| 54,751
| 0.519673
| 51,732
| 517,193
| 5.058069
| 0.120119
| 0.052495
| 0.07218
| 0.131237
| 0.616619
| 0.486414
| 0.456165
| 0.4369
| 0.403697
| 0.37346
| 0
| 0.008694
| 0.259394
| 517,193
| 8,845
| 54,752
| 58.472923
| 0.674438
| 0.000845
| 0
| 0.251979
| 0
| 0.035997
| 0.680974
| 0.436945
| 0
| 0
| 0.000015
| 0
| 0
| 1
| 0.016208
| false
| 0.004335
| 0.001131
| 0.013946
| 0.970034
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0ee49c4eb33132fe73a52aa8b4e04e678ae22d4d
| 426
|
py
|
Python
|
plotly/graph_objs/scatterpolar/__init__.py
|
gnestor/plotly.py
|
a8ae062795ddbf9867b8578fe6d9e244948c15ff
|
[
"MIT"
] | 12
|
2020-04-18T18:10:22.000Z
|
2021-12-06T10:11:15.000Z
|
plotly/graph_objs/scatterpolar/__init__.py
|
Vesauza/plotly.py
|
e53e626d59495d440341751f60aeff73ff365c28
|
[
"MIT"
] | 27
|
2020-04-28T21:23:12.000Z
|
2021-06-25T15:36:38.000Z
|
plotly/graph_objs/scatterpolar/__init__.py
|
Vesauza/plotly.py
|
e53e626d59495d440341751f60aeff73ff365c28
|
[
"MIT"
] | 6
|
2020-04-18T23:07:08.000Z
|
2021-11-18T07:53:06.000Z
|
from ._unselected import Unselected
from plotly.graph_objs.scatterpolar import unselected
from ._textfont import Textfont
from ._stream import Stream
from ._selected import Selected
from plotly.graph_objs.scatterpolar import selected
from ._marker import Marker
from plotly.graph_objs.scatterpolar import marker
from ._line import Line
from ._hoverlabel import Hoverlabel
from plotly.graph_objs.scatterpolar import hoverlabel
| 35.5
| 53
| 0.861502
| 56
| 426
| 6.357143
| 0.232143
| 0.11236
| 0.168539
| 0.213483
| 0.41573
| 0.41573
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103286
| 426
| 11
| 54
| 38.727273
| 0.931937
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
160f149faf8dca2b404ff13b4aef2af4c1ecd817
| 653
|
py
|
Python
|
build/iai_kinect2/kinect2_registration/catkin_generated/pkg.installspace.context.pc.py
|
i10/3DTrackingViaKinect
|
04121488e87a40306e5f466f744bf5683e64bf63
|
[
"BSD-3-Clause"
] | 1
|
2021-04-13T05:49:57.000Z
|
2021-04-13T05:49:57.000Z
|
build/iai_kinect2/kinect2_registration/catkin_generated/pkg.installspace.context.pc.py
|
i10/3DTrackingViaKinect
|
04121488e87a40306e5f466f744bf5683e64bf63
|
[
"BSD-3-Clause"
] | null | null | null |
build/iai_kinect2/kinect2_registration/catkin_generated/pkg.installspace.context.pc.py
|
i10/3DTrackingViaKinect
|
04121488e87a40306e5f466f744bf5683e64bf63
|
[
"BSD-3-Clause"
] | null | null | null |
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/shams3049/catkin_ws/install/include;/usr/local/cuda-9.0/include".split(';') if "/home/shams3049/catkin_ws/install/include;/usr/local/cuda-9.0/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lkinect2_registration;-l:/usr/lib/x86_64-linux-gnu/libOpenCL.so".split(';') if "-lkinect2_registration;-l:/usr/lib/x86_64-linux-gnu/libOpenCL.so" != "" else []
PROJECT_NAME = "kinect2_registration"
PROJECT_SPACE_DIR = "/home/shams3049/catkin_ws/install"
PROJECT_VERSION = "0.0.1"
| 72.555556
| 205
| 0.761103
| 95
| 653
| 4.978947
| 0.494737
| 0.082452
| 0.120507
| 0.133192
| 0.511628
| 0.452431
| 0.452431
| 0.452431
| 0.452431
| 0.452431
| 0
| 0.04886
| 0.059724
| 653
| 8
| 206
| 81.625
| 0.721498
| 0.082695
| 0
| 0
| 1
| 0.285714
| 0.549414
| 0.500838
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
161e2888ffe1fcbae6fe8b9e549fe8c8f47f2aa0
| 24
|
py
|
Python
|
Data/Packages/backrefs/st3/backrefs/__init__.py
|
koery/win-sublime
|
1b16cbe9858eced52567971286109250df787d36
|
[
"MIT"
] | 2
|
2018-04-24T10:02:26.000Z
|
2019-06-02T13:53:31.000Z
|
Data/Packages/backrefs/st3/backrefs/__init__.py
|
koery/win-sublime
|
1b16cbe9858eced52567971286109250df787d36
|
[
"MIT"
] | null | null | null |
Data/Packages/backrefs/st3/backrefs/__init__.py
|
koery/win-sublime
|
1b16cbe9858eced52567971286109250df787d36
|
[
"MIT"
] | 2
|
2019-04-11T04:13:02.000Z
|
2019-06-02T13:53:33.000Z
|
"""Backrefs package."""
| 12
| 23
| 0.625
| 2
| 24
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 24
| 1
| 24
| 24
| 0.681818
| 0.708333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1625b4514c04b9d7fc51429b34eca6747cff024d
| 178
|
py
|
Python
|
packages/foo/solar.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
packages/foo/solar.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
packages/foo/solar.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
from .alpha import sun
from .beta.moon import the_moon
SOLAR_PUBLIC = 'SOLAR_PUBLIC'
_SOLAR_PRIVATE = '_SOLAR_PRIVATE'
def the_solar():
return sun.the_sun(), the_moon()
| 16.181818
| 36
| 0.741573
| 27
| 178
| 4.518519
| 0.444444
| 0.114754
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157303
| 178
| 10
| 37
| 17.8
| 0.813333
| 0
| 0
| 0
| 0
| 0
| 0.146893
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 4
|
163c7120a594e198fb6ea18de16bfecdd63bd318
| 20
|
py
|
Python
|
submission/python/burungBeo.py
|
ainarrasyid/toki-pemrogramanDasar
|
3109efef300fdf3501f87ea7d8cf04bc0d9a9318
|
[
"MIT"
] | null | null | null |
submission/python/burungBeo.py
|
ainarrasyid/toki-pemrogramanDasar
|
3109efef300fdf3501f87ea7d8cf04bc0d9a9318
|
[
"MIT"
] | null | null | null |
submission/python/burungBeo.py
|
ainarrasyid/toki-pemrogramanDasar
|
3109efef300fdf3501f87ea7d8cf04bc0d9a9318
|
[
"MIT"
] | null | null | null |
A = input()
print(A)
| 10
| 11
| 0.6
| 4
| 20
| 3
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 20
| 2
| 12
| 10
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
165aee01207ff901766319a65002a2dafa8ab911
| 1,027
|
py
|
Python
|
tests/test_get_nearest_line.py
|
dnikolayev/botstat-seo
|
8193bb804cac789087130a6c9e9d0ad988bad0ac
|
[
"MIT"
] | 4
|
2018-07-05T16:05:00.000Z
|
2021-06-19T09:24:11.000Z
|
tests/test_get_nearest_line.py
|
dnikolayev/botstat-seo
|
8193bb804cac789087130a6c9e9d0ad988bad0ac
|
[
"MIT"
] | null | null | null |
tests/test_get_nearest_line.py
|
dnikolayev/botstat-seo
|
8193bb804cac789087130a6c9e9d0ad988bad0ac
|
[
"MIT"
] | 1
|
2021-12-30T08:02:40.000Z
|
2021-12-30T08:02:40.000Z
|
from io import StringIO
from botstat.botstat import get_nearest_line
def test_first():
stream = StringIO(u"123\n"
u"456\n"
u"789\n")
assert get_nearest_line(stream, 0) == u"123\n"
def test_first_in_the_middle():
stream = StringIO(u"123\n"
u"456\n"
u"789\n")
stream.seek(2)
assert get_nearest_line(stream, 0) == u"123\n"
def test_second_in_the_middle():
stream = StringIO(u"123\n"
u"456\n"
u"789\n")
stream.seek(5)
assert get_nearest_line(stream, 0) == u"456\n"
def test_second_in_the_less_start():
stream = StringIO(u"123\n"
u"456\n"
u"789\n")
stream.seek(5)
assert get_nearest_line(stream, 6) is None
def test_last_in_the_middle():
stream = StringIO(u"123\n"
u"456\n"
u"789\n")
stream.seek(10)
assert get_nearest_line(stream, 0) == u"789\n"
| 25.04878
| 50
| 0.532619
| 150
| 1,027
| 3.446667
| 0.22
| 0.038685
| 0.067698
| 0.174081
| 0.783366
| 0.783366
| 0.73501
| 0.676983
| 0.676983
| 0.676983
| 0
| 0.1
| 0.347614
| 1,027
| 41
| 51
| 25.04878
| 0.671642
| 0
| 0
| 0.612903
| 0
| 0
| 0.092412
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 1
| 0.16129
| false
| 0
| 0.064516
| 0
| 0.225806
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
16611cfc150ad2c28b3f1bc0ee3baf9e94fc8471
| 188
|
py
|
Python
|
src/src2/routes1/application.py
|
chang-ngeno/ibook-cs050
|
ce545ae6d00bf5adfa2a1b7d263876136c1f570c
|
[
"MIT"
] | null | null | null |
src/src2/routes1/application.py
|
chang-ngeno/ibook-cs050
|
ce545ae6d00bf5adfa2a1b7d263876136c1f570c
|
[
"MIT"
] | 4
|
2020-06-06T01:26:20.000Z
|
2021-06-10T22:35:19.000Z
|
CS50_web_dev/src/src2/routes1/application.py
|
ChuaCheowHuan/web_app_DPTH
|
dd901e6359fe76f15b69701c53f76666c3219173
|
[
"MIT"
] | 1
|
2020-05-09T15:21:34.000Z
|
2020-05-09T15:21:34.000Z
|
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello, world!"
@app.route("/<string:name>")
def hello(name):
return "Hello, {}!".format(name)
| 15.666667
| 36
| 0.632979
| 25
| 188
| 4.6
| 0.52
| 0.13913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 188
| 11
| 37
| 17.090909
| 0.727848
| 0
| 0
| 0
| 0
| 0
| 0.202128
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
167f6c087cdcc3a614e7b6a686c583424df29b46
| 179
|
py
|
Python
|
app/__init__.py
|
washiz99/python-flask-hello
|
9d602d53c85c38fd1f5fb191630df096f9cef88d
|
[
"MIT"
] | null | null | null |
app/__init__.py
|
washiz99/python-flask-hello
|
9d602d53c85c38fd1f5fb191630df096f9cef88d
|
[
"MIT"
] | null | null | null |
app/__init__.py
|
washiz99/python-flask-hello
|
9d602d53c85c38fd1f5fb191630df096f9cef88d
|
[
"MIT"
] | null | null | null |
from flask import Flask
def create_app():
app = Flask(__name__)
from .hello import hello as hello_blueprint
app.register_blueprint(hello_blueprint)
return app
| 16.272727
| 47
| 0.731844
| 24
| 179
| 5.125
| 0.5
| 0.227642
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212291
| 179
| 10
| 48
| 17.9
| 0.87234
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1697c015b3f52bd8fe80579f58a728273a8aff1a
| 347
|
py
|
Python
|
acq4/analysis/scripts/atlasAnalysis.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 47
|
2015-01-05T16:18:10.000Z
|
2022-03-16T13:09:30.000Z
|
acq4/analysis/scripts/atlasAnalysis.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 48
|
2015-04-19T16:51:41.000Z
|
2022-03-31T14:48:16.000Z
|
acq4/analysis/scripts/atlasAnalysis.py
|
sensapex/acq4
|
9561ba73caff42c609bd02270527858433862ad8
|
[
"MIT"
] | 32
|
2015-01-15T14:11:49.000Z
|
2021-07-15T13:44:52.000Z
|
from __future__ import print_function
##
## Atlas Analyzer
##
## Basic function: yield information about circuit connectivity by combining maps together into
## a 3D atlas space.
##
## - Measure ellipsoids representing input area
## - Ask whether any variable associated with a cell is correlated with its position within the atlas
## -
##
| 31.545455
| 102
| 0.746398
| 44
| 347
| 5.772727
| 0.886364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003521
| 0.181556
| 347
| 11
| 103
| 31.545455
| 0.890845
| 0.795389
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 4
|
16a0239036ea48c65f4679caee304092ae0c7d54
| 185
|
py
|
Python
|
sparnn/optimizers/__init__.py
|
QUVA-Lab/VideoLSTM
|
fcacf9be37cff634652ff4e08c694de91627900f
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
sparnn/optimizers/__init__.py
|
QUVA-Lab/VideoLSTM
|
fcacf9be37cff634652ff4e08c694de91627900f
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
sparnn/optimizers/__init__.py
|
QUVA-Lab/VideoLSTM
|
fcacf9be37cff634652ff4e08c694de91627900f
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
__author__ = 'zhenyang'
from optimizer import Optimizer
from sgd import SGD
from adadelta import AdaDelta
from rmsprop import RMSProp
from adam import Adam
from adamopt import AdamOpt
| 20.555556
| 31
| 0.832432
| 26
| 185
| 5.769231
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151351
| 185
| 8
| 32
| 23.125
| 0.955414
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.857143
| 0
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
16aa19b73b245c95549d06a825e8c8833dbc8d2a
| 130
|
py
|
Python
|
networking_nsxv3/tests/datasets/__init__.py
|
sapcc/networking-nsx-t
|
b701ad2056443b8855d86bb47c31832f06b3d1e1
|
[
"Apache-2.0"
] | 10
|
2019-08-14T13:29:35.000Z
|
2022-03-11T08:04:50.000Z
|
networking_nsxv3/tests/datasets/__init__.py
|
sapcc/networking-nsx-t
|
b701ad2056443b8855d86bb47c31832f06b3d1e1
|
[
"Apache-2.0"
] | 29
|
2019-02-20T13:29:01.000Z
|
2022-03-31T14:01:54.000Z
|
networking_nsxv3/tests/datasets/__init__.py
|
sapcc/networking-nsx-t
|
b701ad2056443b8855d86bb47c31832f06b3d1e1
|
[
"Apache-2.0"
] | 4
|
2019-04-02T11:51:17.000Z
|
2021-05-05T23:47:09.000Z
|
# This module contains various OpenStack inventories against which will be
# performed validation with unit and functional tests
| 43.333333
| 75
| 0.830769
| 17
| 130
| 6.352941
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 130
| 2
| 76
| 65
| 0.981818
| 0.961538
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
16ae4e3e6bf44d82858b338c81843fd3bc1767cf
| 57
|
py
|
Python
|
AtCoder/ABC/B/page-11/048B.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
AtCoder/ABC/B/page-11/048B.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
AtCoder/ABC/B/page-11/048B.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
a, b, c = map(int, input().split())
print(b//c-(a-1)//c)
| 19
| 35
| 0.508772
| 13
| 57
| 2.230769
| 0.692308
| 0.137931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02
| 0.122807
| 57
| 2
| 36
| 28.5
| 0.56
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
16dc99ba56fab977935dc76e9b239f1ac1811a18
| 136
|
py
|
Python
|
config/development.py
|
anthon-alindada/sanic_messaging
|
2afbc601790b4a3dbe17e0a95c589412250d8bee
|
[
"MIT"
] | 1
|
2019-06-21T08:51:01.000Z
|
2019-06-21T08:51:01.000Z
|
config/development.py
|
anthon-alindada/sanic_messaging
|
2afbc601790b4a3dbe17e0a95c589412250d8bee
|
[
"MIT"
] | 6
|
2021-03-09T07:47:26.000Z
|
2022-02-26T11:33:25.000Z
|
config/development.py
|
anthon-alindada/sanic_messaging
|
2afbc601790b4a3dbe17e0a95c589412250d8bee
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8
from .base import BaseConfig
class DevelopmentConfig(BaseConfig):
# Cookie settings
SECURE_COOKIE = False
| 17
| 36
| 0.720588
| 15
| 136
| 6.466667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009091
| 0.191176
| 136
| 7
| 37
| 19.428571
| 0.872727
| 0.242647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bc4cae90871191d5e642817fc5ba62f4f47ab652
| 87
|
py
|
Python
|
flex/django/ussd/exc.py
|
centergy/flex_ussd
|
ddc0ccd192e3a0a82e8b7705f088862d59656c28
|
[
"MIT"
] | null | null | null |
flex/django/ussd/exc.py
|
centergy/flex_ussd
|
ddc0ccd192e3a0a82e8b7705f088862d59656c28
|
[
"MIT"
] | null | null | null |
flex/django/ussd/exc.py
|
centergy/flex_ussd
|
ddc0ccd192e3a0a82e8b7705f088862d59656c28
|
[
"MIT"
] | null | null | null |
class ScreenIdError(ValueError):
pass
class UssdNamespaceError(RuntimeError):
pass
| 12.428571
| 39
| 0.816092
| 8
| 87
| 8.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114943
| 87
| 7
| 40
| 12.428571
| 0.922078
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
bcb6efc4b40e621d7ee06446fdb3d33554ba2f6c
| 1,255
|
py
|
Python
|
adsk/__init__.py
|
DannoPeters/adsk
|
3b328ebbc8ea0292ccfa33327f93c978e10cf88d
|
[
"MIT"
] | 1
|
2022-03-16T01:01:57.000Z
|
2022-03-16T01:01:57.000Z
|
adsk/__init__.py
|
DannoPeters/adsk
|
3b328ebbc8ea0292ccfa33327f93c978e10cf88d
|
[
"MIT"
] | null | null | null |
adsk/__init__.py
|
DannoPeters/adsk
|
3b328ebbc8ea0292ccfa33327f93c978e10cf88d
|
[
"MIT"
] | null | null | null |
def terminate():
"""Terminate this script. If defined, the module's 'stop' function will be called. If this module is debugging, the debugger is stopped. The script's module and any modules imported relative to this module are removed from sys.modules and released."""
pass
def autoTerminate(value):
"""Get or set the autoTerminate flag for this module. The current value is returned when called with no arguments. Call with a single Boolean value to set this current value. When set to True (the default), the script will automatically terminate when code execution returns from the module's main block. When set to False, the script's module will remain loaded until 'terminate' is called or the script is externally stopped. Typically, a script that subscribes to events would set this to False after attaching event handlers to events before returning from it's 'run' function."""
return bool()
def doEvents():
"""Process any pending system events or messages. This allows the Fusion UI to update and perform any event or message driven operations. This may be useful to avoid blocking UI updates while performing a long operation, or while waiting for asynchronous operations to be processed."""
pass
| 96.538462
| 594
| 0.76255
| 194
| 1,255
| 4.93299
| 0.515464
| 0.037618
| 0.020899
| 0.033438
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188048
| 1,255
| 12
| 595
| 104.583333
| 0.939156
| 0.887649
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
bcc6904f2ee2e200dca776ed3aea6443f1c3b572
| 208
|
py
|
Python
|
web/impact/impact/graphql/types/industry_type.py
|
masschallenge/impact-api
|
81075ced8fcc95de9390dd83c15e523e67fc48c0
|
[
"MIT"
] | 5
|
2017-10-19T15:11:52.000Z
|
2020-03-08T07:16:21.000Z
|
web/impact/impact/graphql/types/industry_type.py
|
masschallenge/impact-api
|
81075ced8fcc95de9390dd83c15e523e67fc48c0
|
[
"MIT"
] | 182
|
2017-06-21T19:32:13.000Z
|
2021-03-22T13:38:16.000Z
|
web/impact/impact/graphql/types/industry_type.py
|
masschallenge/impact-api
|
81075ced8fcc95de9390dd83c15e523e67fc48c0
|
[
"MIT"
] | 1
|
2018-06-23T11:53:18.000Z
|
2018-06-23T11:53:18.000Z
|
from graphene_django import DjangoObjectType
from accelerator.models.industry import Industry
class IndustryType(DjangoObjectType):
class Meta:
model = Industry
only_fields = ('name',)
| 20.8
| 48
| 0.740385
| 21
| 208
| 7.238095
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197115
| 208
| 9
| 49
| 23.111111
| 0.91018
| 0
| 0
| 0
| 0
| 0
| 0.019231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bccf19cb33310be73d09bf8be110dd1714f5226f
| 2,387
|
py
|
Python
|
templatealchemy_driver/stream.py
|
cadithealth/templatealchemy
|
a098aff22a6bcdd693e5ebea51155b96356d3178
|
[
"MIT"
] | 1
|
2019-10-06T23:49:58.000Z
|
2019-10-06T23:49:58.000Z
|
templatealchemy_driver/stream.py
|
cadithealth/templatealchemy
|
a098aff22a6bcdd693e5ebea51155b96356d3178
|
[
"MIT"
] | null | null | null |
templatealchemy_driver/stream.py
|
cadithealth/templatealchemy
|
a098aff22a6bcdd693e5ebea51155b96356d3178
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# lib: templatealchemy_driver.stream
# auth: Philip J Grabner <grabner@cadit.com>
# date: 2013/07/05
# copy: (C) Copyright 2013 Cadit Health Inc., All Rights Reserved.
#------------------------------------------------------------------------------
'''
A TemplateAlchemy source that gets the template source from a
file-like object. Note that the file is by default buffered into
memory (so that it can be served multiple times) -- see the
`replayable` constructor parameter (but be aware that setting this to
False could break applications that depend on loading the same
template multiple times with different parameters for discovery
purposes).
'''
# todo: really, any system that expects to be able to call a template
# multiple times should do the buffering itself... perhaps
# provide a helper routine to make this easier somehow?...
from StringIO import StringIO
from templatealchemy import api, util
#------------------------------------------------------------------------------
def loadSource(spec=None):
return StreamSource(spec)
#------------------------------------------------------------------------------
class StreamSource(api.Source):
#----------------------------------------------------------------------------
def __init__(self, spec, replayable=True, *args, **kw):
super(StreamSource, self).__init__(repr(spec), *args, **kw)
self.stream = spec
self._buffer = replayable
#----------------------------------------------------------------------------
def getSource(self, name):
return self
#----------------------------------------------------------------------------
def getFormats(self):
return ['data']
#----------------------------------------------------------------------------
def get(self, format):
if self._buffer is False:
return self.stream
if self._buffer is None or self._buffer is True:
self._buffer = self.stream.read()
return StringIO(self._buffer)
#----------------------------------------------------------------------------
def getRelated(self, name):
return None
#------------------------------------------------------------------------------
# end of $Id$
#------------------------------------------------------------------------------
| 37.888889
| 79
| 0.454545
| 215
| 2,387
| 4.976744
| 0.567442
| 0.056075
| 0.033645
| 0.026168
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006244
| 0.127775
| 2,387
| 62
| 80
| 38.5
| 0.507685
| 0.688312
| 0
| 0
| 0
| 0
| 0.005587
| 0
| 0
| 0
| 0
| 0.016129
| 0
| 1
| 0.285714
| false
| 0
| 0.095238
| 0.190476
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
bce323a6b4ea98bde017b4a5bb0d4748f4307bcb
| 226
|
py
|
Python
|
cowait/network/__init__.py
|
backtick-se/cowa
|
760ddb3ded1b3995bc68f4b74cf28af0c094481f
|
[
"Apache-2.0"
] | 51
|
2020-06-04T06:08:14.000Z
|
2022-03-28T06:59:53.000Z
|
cowait/network/__init__.py
|
backtick-se/cowa
|
760ddb3ded1b3995bc68f4b74cf28af0c094481f
|
[
"Apache-2.0"
] | 121
|
2020-06-01T12:09:32.000Z
|
2022-03-31T20:47:57.000Z
|
cowait/network/__init__.py
|
backtick-se/cowa
|
760ddb3ded1b3995bc68f4b74cf28af0c094481f
|
[
"Apache-2.0"
] | 6
|
2020-06-11T16:05:20.000Z
|
2022-03-23T06:30:17.000Z
|
# flake8: noqa: F401
from .const import *
from .errors import SocketError, AuthError
from .utils import get_local_url, get_remote_url, get_local_ip
from .client import Client
from .server import Server
from .conn import Conn
| 25.111111
| 62
| 0.800885
| 35
| 226
| 5
| 0.514286
| 0.091429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020619
| 0.141593
| 226
| 8
| 63
| 28.25
| 0.881443
| 0.079646
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bceaf92c813767fc947a7eb68d929d24eee00050
| 18
|
py
|
Python
|
motorway/__init__.py
|
burakozdemir32/motorway
|
79b1fdf8a351478ab52572905d16d97b3d617343
|
[
"Apache-2.0"
] | 1
|
2016-09-16T14:51:59.000Z
|
2016-09-16T14:51:59.000Z
|
motorway/__init__.py
|
burakozdemir32/motorway
|
79b1fdf8a351478ab52572905d16d97b3d617343
|
[
"Apache-2.0"
] | null | null | null |
motorway/__init__.py
|
burakozdemir32/motorway
|
79b1fdf8a351478ab52572905d16d97b3d617343
|
[
"Apache-2.0"
] | 1
|
2020-12-12T17:35:55.000Z
|
2020-12-12T17:35:55.000Z
|
version = "2.0.5"
| 9
| 17
| 0.555556
| 4
| 18
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.166667
| 18
| 1
| 18
| 18
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bcf3a9ddcb29630d55f396ce10581b2fde1d4edf
| 810
|
py
|
Python
|
build/lib/SciDataTool/__init__.py
|
enjoyneer87/SciDataTool
|
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
|
[
"Apache-2.0"
] | null | null | null |
build/lib/SciDataTool/__init__.py
|
enjoyneer87/SciDataTool
|
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
|
[
"Apache-2.0"
] | null | null | null |
build/lib/SciDataTool/__init__.py
|
enjoyneer87/SciDataTool
|
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
|
[
"Apache-2.0"
] | null | null | null |
from SciDataTool.Classes.Data import Data
from SciDataTool.Classes.Data1D import Data1D
from SciDataTool.Classes.DataFreq import DataFreq
from SciDataTool.Classes.DataTime import DataTime
from SciDataTool.Classes.DataLinspace import DataLinspace
from SciDataTool.Classes.DataND import DataND
from SciDataTool.Classes.DataDual import DataDual
from SciDataTool.Classes.RequestedAxis import RequestedAxis
from SciDataTool.Classes.VectorField import VectorField
from SciDataTool.Classes.DataPattern import DataPattern
from SciDataTool.Classes.Norm_affine import Norm_affine
from SciDataTool.Classes.Norm_func import Norm_func
from SciDataTool.Classes.Norm_vector import Norm_vector
from SciDataTool.Classes.Norm_indices import Norm_indices
from SciDataTool.Classes.Norm_ref import Norm_ref
__version__ = "1.4.24"
| 45
| 59
| 0.877778
| 104
| 810
| 6.701923
| 0.230769
| 0.322812
| 0.473458
| 0.186514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008043
| 0.079012
| 810
| 17
| 60
| 47.647059
| 0.926273
| 0
| 0
| 0
| 0
| 0
| 0.007407
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.9375
| 0
| 0.9375
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
bcfc2af685b5c31570bdd45254f3438e5e0741b6
| 277
|
py
|
Python
|
mumbletemps/app_settings.py
|
wengole/allianceauth-mumble-temp
|
5d79dfb966335e0471b2844fd553d6b922ab3dff
|
[
"MIT"
] | null | null | null |
mumbletemps/app_settings.py
|
wengole/allianceauth-mumble-temp
|
5d79dfb966335e0471b2844fd553d6b922ab3dff
|
[
"MIT"
] | null | null | null |
mumbletemps/app_settings.py
|
wengole/allianceauth-mumble-temp
|
5d79dfb966335e0471b2844fd553d6b922ab3dff
|
[
"MIT"
] | null | null | null |
from django.conf import settings
MUMBLE_TEMPS_FORCE_SSO = getattr(settings, "MUMBLE_TEMPS_FORCE_SSO", False)
MUMBLE_TEMPS_SSO_PREFIX = getattr(settings, "MUMBLE_TEMPS_SSO_PREFIX", "[TEMP]")
MUMBLE_TEMPS_LOGIN_PREFIX = getattr(settings, "MUMBLE_TEMPS_LOGIN_PREFIX", "[*TEMP]")
| 46.166667
| 85
| 0.815884
| 38
| 277
| 5.473684
| 0.368421
| 0.317308
| 0.365385
| 0.375
| 0.567308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072202
| 277
| 5
| 86
| 55.4
| 0.809339
| 0
| 0
| 0
| 0
| 0
| 0.299639
| 0.252708
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bcfe66dfa18396efa11de84e659518b418e28ad1
| 337
|
py
|
Python
|
clipper_admin/clipper_admin/__init__.py
|
dbczumar/clipper
|
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
|
[
"Apache-2.0"
] | null | null | null |
clipper_admin/clipper_admin/__init__.py
|
dbczumar/clipper
|
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
|
[
"Apache-2.0"
] | 7
|
2018-06-20T22:06:09.000Z
|
2019-01-07T04:01:22.000Z
|
clipper_admin/clipper_admin/__init__.py
|
dbczumar/clipper
|
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
|
[
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import
from .docker.docker_container_manager import DockerContainerManager
from .kubernetes.kubernetes_container_manager import KubernetesContainerManager
from .clipper_admin import *
from . import deployers
from .version import __version__
from .exceptions import ClipperException, UnconnectedException
| 37.444444
| 79
| 0.881306
| 35
| 337
| 8.085714
| 0.485714
| 0.070671
| 0.155477
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089021
| 337
| 8
| 80
| 42.125
| 0.921824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c09721ddbba1e8038bb6dd4f98d838ac9c0aece
| 785
|
py
|
Python
|
setup.py
|
shahbazn/tgc
|
4f5dce6aa09f822c0dd5ad9f73eb579490147867
|
[
"MIT"
] | null | null | null |
setup.py
|
shahbazn/tgc
|
4f5dce6aa09f822c0dd5ad9f73eb579490147867
|
[
"MIT"
] | null | null | null |
setup.py
|
shahbazn/tgc
|
4f5dce6aa09f822c0dd5ad9f73eb579490147867
|
[
"MIT"
] | null | null | null |
from setuptools import setup
setup(
name='tgc',
description='The Great Calculation',
author='Shahbaz Nazir',
author_email='shahbaznazir1992@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Neotech Code Task',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
packages = ['tgc'],
)
| 27.068966
| 55
| 0.591083
| 78
| 785
| 5.935897
| 0.628205
| 0.24622
| 0.323974
| 0.224622
| 0.116631
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026316
| 0.273885
| 785
| 28
| 56
| 28.035714
| 0.785965
| 0.052229
| 0
| 0
| 0
| 0
| 0.590297
| 0.03504
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.047619
| 0
| 0.047619
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4c2b1a40bc46536128d3013da449d4ffe028f748
| 23,716
|
py
|
Python
|
dfttk/input_sets.py
|
ShuangLin212/dfttk
|
3be059051424b3eee53e749e9b6064ee8293eff9
|
[
"MIT"
] | 14
|
2019-02-27T19:11:35.000Z
|
2021-08-14T13:42:26.000Z
|
dfttk/input_sets.py
|
ShuangLin212/dfttk
|
3be059051424b3eee53e749e9b6064ee8293eff9
|
[
"MIT"
] | 24
|
2018-08-28T23:42:14.000Z
|
2021-09-24T14:27:38.000Z
|
dfttk/input_sets.py
|
yiwang62/dfttk
|
7f57cf0b72fb56859da04b0b08671c7f37aa52ef
|
[
"MIT"
] | 16
|
2019-03-06T21:27:09.000Z
|
2021-11-06T09:52:42.000Z
|
import six
import os
import subprocess
import copy
from pymatgen.io.vasp.inputs import Kpoints, Incar
from pymatgen.io.vasp.sets import DictSet, get_vasprun_outcar, get_structure_from_prev_run, _load_yaml_config
'''
# We set potentials back to the VASP recommended, since we primarily don't work on oxides.
POTCAR_UPDATES = {
'Be': 'Be', # 2 electrons, default was Be_sv (4 electrons)
'Cu': 'Cu', # 11 electrons, default was Cu_pv (17 electrons)
'Fe': 'Fe', # 8 electrons, default was Fe_pv (14 electrons)
'Mg': 'Mg', # 2 electrons, default was Mg_pv (8 electrons)
'Ni': 'Ni', # 10 electrons, default was Ni_pv (16 electrons)
'Mo': 'Mo_sv', # 14 electrons, default was Mo_pv (12 electrons)
'Nb': 'Nb_sv', # 13 electrons, default was Nb_pv (11 electrons)
'Os': 'Os', # 8 electrons, default was Os_pv (14 electrons)
'Re': 'Re', # 7 electrons, default was Re_pv (13 electrons)
'Ti': 'Ti_sv', # 12 electrons, default Ti_pv (10 electrons)
'V': 'V_sv', # 13 electrons, default V_pv (11 electrons)
}
'''
#Reset the POTCAR
POTCAR_UPDATES = {
'Cu': 'Cu', # 11 electrons, default was Cu_pv (17 electrons)
'Mo': 'Mo_sv', # 14 electrons, default was Mo_pv (12 electrons)
'Nb': 'Nb_sv', # 13 electrons, default was Nb_pv (11 electrons)
'Ti': 'Ti_sv', # 12 electrons, default Ti_pv (10 electrons)
'V': 'V_sv', # 13 electrons, default V_pv (11 electrons)
}
def magnetic_check(structure):
'''
If the structure contain any magnetic elements, return True, otherwise return False
magnetic elements:
V(23)-Ni(28), Ru(44)-Pd(46), Ce(58)-Lu(71), Pa(91)-118
Suggested by Yi Wang, Aug. 24, 2020
'''
magnetic_elements = list(range(23, 29))
magnetic_elements.extend(list(range(44, 47)))
magnetic_elements.extend(list(range(58, 72)))
magnetic_elements.extend(list(range(91, 119)))
return any(ele.Z in magnetic_elements for ele in structure.species)
def metal_check(structure):
'''
If the structure contain any metal elements, return True, otherwise return False
metal elements:
Li(3)-Be(4), Na(11)-Al(13), K(19)-Ga(31), Rb(37)-Sn(50), Cs(55)-At(85), Ra(87)-118
Suggested by Yi Wang, Aug. 24, 2020
'''
metal_elements = list(range(3, 5))
metal_elements.extend(list(range(11, 14)))
metal_elements.extend(list(range(19, 32)))
metal_elements.extend(list(range(37, 51)))
metal_elements.extend(list(range(55, 86)))
metal_elements.extend(list(range(87, 119)))
return all(ele.Z in metal_elements for ele in structure.species)
class RelaxSet(DictSet):
"""
Set for performing relaxations.
The smearing must be set to give the correct forces.
The default is tuned for metal relaxations.
Kpoints have a 8000 kpoints per reciprocal atom default.
"""
CONFIG = _load_yaml_config("MPRelaxSet")
# we never are comparing relaxations, only using them for optimizing structures.
CONFIG['INCAR'].pop('ENCUT') # use the ENCUT set by PREC
CONFIG['KPOINTS'].update({
'grid_density': 8000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].update({
'EDIFF_PER_ATOM': 1e-7,
'ISMEAR': 1,
'SIGMA': 0.2,
'LREAL': False,
'PREC': 'Accurate',
'ALGO': 'NORMAL',
"LORBIT": 11,
'LWAVE': False,
'LCHARG': False,
'ISIF': 3,
"ICHARG": 2,
'ENCUT': 520,
})
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, volume_relax=False, isif=None, **kwargs):
"""If volume relax is True, will do volume only, ISIF 7"""
self.kwargs = copy.deepcopy(kwargs)
self.volume_relax = volume_relax
self.isif = isif
uis = copy.deepcopy(self.kwargs.get('user_incar_settings', {}))
new_config = copy.deepcopy(RelaxSet.CONFIG)
if self.volume_relax and self.isif is not None:
raise ValueError("isif cannot have a value while volume_relax is True.")
if self.volume_relax:
uis.update({'ISIF': 7})
#uis['ISIF'] = 7
if self.isif is not None:
uis.update({'ISIF': self.isif})
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
if 'Relax_settings' in uis:
relax = uis['Relax_settings']
for ff in relax:
if ff.lower()=='prec':
if 'ENCUT' in new_config['INCAR']:
new_config['INCAR'].pop('ENCUT')
new_config['INCAR'].update({ff:relax.get(ff)})
elif ff=='KPAR':
new_config['INCAR'].update({ff:relax.get(ff)})
elif ff=='grid_density':
new_config['KPOINTS'].update({ff:relax.get(ff)})
elif ff=='k_mesh':
kpoints = Kpoints(kpts=relax.get(ff))
new_config['KPOINTS'] = kpoints
#print (new_config)
new_config['INCAR'].update(uis)
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(RelaxSet, self).__init__(structure, new_config, sort_structure=False, **self.kwargs)
class PreStaticSet(DictSet):
"""Set tuned for metal relaxations (correct smearing).
Add `isif` parameter to the set to easily allow for overriding ISIF setting.
Kpoints have a 6000 reciprocal density default.
"""
CONFIG = _load_yaml_config("MPRelaxSet")
CONFIG['KPOINTS'].update({
'grid_density': 1000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].update({
'EDIFF_PER_ATOM': 1e-5,
'ENCUT': 520, # MP compatibility
'ISMEAR': 1,
"NSW": 0,
"IBRION": -1,
'LREAL': False,
'ALGO': 'NORMAL',
# other settings from MPStaticSet
"LAECHG": True,
"LCHARG": False,
"LWAVE": False,
"LORBIT": 11,
"LVHAR": True,
"ICHARG": 2,
"NEDOS": 5001,
})
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, **kwargs):
# pop the old kwargs, backwards compatibility from the complex StaticSet
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol']
for k in old_kwargs:
try:
kwargs.pop(k)
except KeyError:
pass
self.kwargs = copy.deepcopy(kwargs)
uis = copy.deepcopy(self.kwargs.get('user_incar_settings', {}))
new_config = copy.deepcopy(PreStaticSet.CONFIG)
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
new_config['INCAR'].update(uis)
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(PreStaticSet, self).__init__(structure, new_config, sort_structure=False, **self.kwargs)
class ForceConstantsSet(DictSet):
"""
Set for calculating force constants calculations.
Force constants are calculated by the finite difference method with symmetry considered.
The smearing must be set to give the correct forces.
The default is tuned for metals.
Kpoints have a 8000 kpoints per reciprocal atom default.
"""
CONFIG = _load_yaml_config("MPRelaxSet")
# we never are comparing relaxations, only using them for optimizing structures.
CONFIG['KPOINTS'].update({
'grid_density': 8000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].pop('ENCUT') # use the ENCUT set by PREC
CONFIG['INCAR'].update({
'EDIFF': 5e-7,
'ISMEAR': 1,
'SIGMA': 0.2,
'LREAL': False,
"LORBIT": 11,
'ISIF': 2, # only calculate the forces, stress tensor is not needed
'IBRION': 6, # calculate force constants by finite differences with symmetry
'POTIM': 0.015, # displacement distance
'NFREE': 2, # how many displacments to do. 2 gives +POTIM and -POTIM
'NSW': 1, # backwards compatibility setting
'PREC': 'Accurate',
'ALGO': 'Fast',
'SYMPREC': 1e-4, # some supercells seem to have issues with primcel VASP algorithm
"ICHARG": 2,
})
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, **kwargs):
self.kwargs = copy.deepcopy(kwargs)
uis = copy.deepcopy(self.kwargs.get('user_incar_settings', {}))
new_config = copy.deepcopy(ForceConstantsSet.CONFIG)
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
new_config['INCAR'].update(uis)
from pymatgen.io.vasp.inputs import Kpoints
user_kpoints_settings = kwargs.get('user_kpoints_settings', {})
grid_density = user_kpoints_settings.get('grid_density') or None
if grid_density is not None:
#new_config['KPOINTS'].update({'grid_density': grid_density})
new_config['INCAR'].update({'PREC': 'High'})
kpoints = Kpoints.automatic_gamma_density(structure, grid_density)
new_config['KPOINTS'] = kpoints
else:
kpoints = Kpoints(kpts=[[3,3,3],])
new_config['KPOINTS'] = kpoints
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(ForceConstantsSet, self).__init__(
structure, new_config, sort_structure=False, **self.kwargs)
class StaticSet(DictSet):
"""Set tuned for metal relaxations (correct smearing).
Add `isif` parameter to the set to easily allow for overriding ISIF setting.
Kpoints have a 6000 reciprocal density default.
"""
CONFIG = _load_yaml_config("MPRelaxSet")
CONFIG['KPOINTS'].update({
'grid_density': 8000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].update({
'EDIFF_PER_ATOM': 1e-6,
'ENCUT': 520, # MP compatibility
'ISMEAR': -5,
"NSW": 0,
"IBRION": -1,
'LREAL': False,
'ALGO': 'NORMAL',
# other settings from MPStaticSet
"LAECHG": True,
"LCHARG": True,
"LWAVE": False,
"LORBIT": 11,
"LVHAR": True,
"ICHARG": 2,
"NEDOS": 5001,
})
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, isif=2, **kwargs):
# pop the old kwargs, backwards compatibility from the complex StaticSet
self.isif = isif
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol']
for k in old_kwargs:
try:
kwargs.pop(k)
except KeyError:
pass
self.kwargs = copy.deepcopy(kwargs)
uis = copy.deepcopy(self.kwargs.get('user_incar_settings', {}))
uis['ISIF'] = isif
new_config = copy.deepcopy(StaticSet.CONFIG)
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
new_config['INCAR'].update(uis)
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(StaticSet, self).__init__(structure, new_config, sort_structure=False, **self.kwargs)
self.config = new_config
class ATATIDSet():
"""Set tuned for Inflection Detection runs using ATAT with correct smearing for metals.
Kpoints have a 8000 reciprocal density default.
Overrides write_input to write the INCAR, KPPRA, USEPOT and DOSTATIC to the vasp.wrap instead.
"""
def __init__(self, structure, grid_density=8000):
self.structure = structure
self.grid_density = grid_density
def write_input(self, output_dir):
"""Write vasp.wrap and generate the other commands with robustrelax_vasp -mk"""
# TODO: handle magmoms
EDIFF_PER_ATOM = 1e-6
EDIFF = len(self.structure)*EDIFF_PER_ATOM
vasp_wrap = """[INCAR]
EDIFF = {0}
PREC = Accurate
ALGO = Fast
ENCUT = 520
ISMEAR = 1
SIGMA = 0.2
IBRION = -1
NSW = 1
ISPIN = 2
NELMIN = 4
ISIF = 2
LREAL = False
ISYM = 0
ICHARG = 1
ISTART = 2
USEPOT = PAWPBE
KPPRA = {1}
""".format(EDIFF, self.grid_density)
with open(os.path.join(output_dir, 'vaspid.wrap'), 'w') as fp:
fp.write(vasp_wrap)
class ForcesSet(DictSet):
"""Set tuned for generic force calculations (Gaussian smearing).
"""
CONFIG = _load_yaml_config("MPRelaxSet")
CONFIG['KPOINTS'].update({
'grid_density': 8000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].pop('ENCUT',None)
CONFIG['INCAR'].update({
'EDIFF_PER_ATOM': 1e-8,
'ISMEAR': 0,
'SIGMA': 0.05,
"NSW": 0,
"IBRION": -1,
'LREAL': False,
'ALGO': 'NORMAL',
# other settings from MPStaticSet
"LCHARG": False,
"LORBIT": 11,
"LVHAR": True,
"LWAVE": False,
"ICHARG": 2,
"NEDOS": 5001,
})
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, **kwargs):
# pop the old kwargs, backwards compatibility from the complex StaticSet
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol']
for k in old_kwargs:
try:
kwargs.pop(k)
except KeyError:
pass
self.kwargs = copy.deepcopy(kwargs)
super(ForcesSet, self).__init__(structure, ForcesSet.CONFIG, sort_structure=False, **self.kwargs)
class BornChargeSet(DictSet):
"""Set tuned for metal relaxations (correct smearing).
Add `isif` parameter to the set to easily allow for overriding ISIF setting.
Kpoints have a 6000 reciprocal density default.
Provide by Yi Wang, Aug. 24, 2020
"""
CONFIG = _load_yaml_config("MPRelaxSet")
CONFIG['KPOINTS'].update({
'grid_density': 8000,
})
CONFIG['KPOINTS'].pop('reciprocal_density') # to be explicit
CONFIG['INCAR'].update({
"LEPSILON": True, #For Born Effective Charge
"NCORE": 1,
#"NPAR": 1,
#"LCALCEPS": True, #For Born Effective Charge
"LRPA": False,
'EDIFF_PER_ATOM': 1e-6,
'ENCUT': 520, # MP compatibility
'ISMEAR': 0,
"NSW": 0,
"LORBIT": 11,
"IBRION": -1,
'LREAL': False,
'ALGO': 'NORMAL',
# other settings from MPStaticSet
"LCHARG": False,
"LWAVE": False,
"ICHARG": 2,
})
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, isif=2, **kwargs):
# pop the old kwargs, backwards compatibility from the complex StaticSet
self.isif = isif
uis = copy.deepcopy(kwargs.get('user_incar_settings', {}))
new_config = copy.deepcopy(BornChargeSet.CONFIG)
"""
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol', \
'user_potcar_functional', 'user_incar_settings']
"""
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol']
for k in old_kwargs:
try:
kwargs.pop(k)
except KeyError:
pass
self.kwargs = copy.deepcopy(kwargs)
if 'LCALCEPS' in uis:
if 'LEPSILON' in new_config['INCAR']:
new_config['INCAR'].pop('LEPSILON')
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
for key in uis.keys():
if key not in new_config['INCAR']:
if key in {'NELM', 'EDIFF', 'NEDOS', 'KPOINT_BSE'} : continue
new_config['INCAR'][key] = uis[key]
elif key == 'ISPIN':
new_config['INCAR'][key] = uis[key]
elif key == 'ISMEAR':
new_config['INCAR'][key] = uis[key]
elif key == 'SIGMA':
new_config['INCAR'][key] = uis[key]
if 'SIGMA' in new_config['INCAR'] and 'ISMEAR' in new_config['INCAR'] :
if new_config['INCAR']['ISMEAR'] == -5:
new_config['INCAR'].pop('SIGMA')
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(BornChargeSet, self).__init__(structure, new_config, sort_structure=False, **self.kwargs)
class ElasticSet(DictSet):
"""Set tuned for metal relaxations (correct smearing).
Add `isif` parameter to the set to easily allow for overriding ISIF setting.
Kpoints have a 6000 reciprocal density default.
"""
CONFIG = _load_yaml_config("MPRelaxSet")
# 'EDIFF_PER_ATOM': 1e-6,
CONFIG['INCAR'] = {
'EDIFF': 1e-6,
'ENCUT': 520, # MP compatibility
'ISMEAR': -5,
"IBRION": 2,
'LREAL': False,
'ALGO': 'NORMAL',
# other settings from MPStaticSet
"LAECHG": True,
"LCHARG": True,
"LWAVE": False,
"LORBIT": 11,
"LVHAR": True,
"ICHARG": 0,
"NSW": 99,
#"MAGMOM": CONFIG['INCAR']['MAGMOM'],
"ISPIN": 2,
"ISIF": 2,
"PREC": "High"
}
# now we reset the potentials
CONFIG['POTCAR_FUNCTIONAL'] = 'PBE'
CONFIG['POTCAR'].update(POTCAR_UPDATES)
def __init__(self, structure, **kwargs):
# pop the old kwargs, backwards compatibility from the complex StaticSet
uis = copy.deepcopy(kwargs.get('user_incar_settings', {}))
new_config = copy.deepcopy(ElasticSet.CONFIG)
if metal_check(structure): grid_density = 15625
else: grid_density = 8000
user_kpoints_settings = kwargs.get('user_kpoints_settings', {})
grid_density = user_kpoints_settings.get('grid_density') or grid_density
"""
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol', \
'user_potcar_functional', 'user_incar_settings']
"""
old_kwargs = ['prev_incar', 'prev_kpoints', 'grid_density', 'lepsilon', 'lcalcpol', \
'user_incar_settings', 'user_kpoints_settings']
for k in old_kwargs:
try:
kwargs.pop(k)
except KeyError:
pass
self.kwargs = copy.deepcopy(kwargs)
if 'ISPIN' not in uis:
if magnetic_check(structure):
uis.update({'ISPIN': 2})
else:
uis.update({'ISPIN': 1})
if 'magmom' in uis:
if 'MAGMOM' in new_config['INCAR']:
new_config['INCAR'].pop('MAGMOM')
elif uis['ISPIN']==1:
if 'MAGMON' in uis.keys(): uis.pop['MAGMOM']
if 'MAGMON' in new_config['INCAR']: new_config['INCAR'].pop['MAGMOM']
for key in uis.keys():
if key not in new_config['INCAR']:
if key in {'NELM', 'EDIFF', 'NEDOS', 'KPOINT_BSE'} : continue
new_config['INCAR'][key] = uis[key]
elif key == 'ISPIN':
new_config['INCAR'][key] = uis[key]
elif key == 'ISMEAR':
new_config['INCAR'][key] = uis[key]
elif key == 'SIGMA':
new_config['INCAR'][key] = uis[key]
elif key == 'ENCUT':
new_config['INCAR'][key] = uis[key]
#avoid conflict betwwen HIHG and ENCUT
for key in uis.keys():
if key == 'PREC':
new_config['INCAR'][key] = uis[key]
if 'ENCUT' in new_config['INCAR'] : new_config['INCAR'].pop('ENCUT')
if 'SIGMA' in new_config['INCAR'] and 'ISMEAR' in new_config['INCAR'] :
if new_config['INCAR']['ISMEAR'] == -5:
new_config['INCAR'].pop('SIGMA')
from pymatgen.io.vasp.inputs import Kpoints
kpoints = Kpoints(kpts=[[31,31,31],])
new_config['KPOINTS'] = kpoints
if 'Relax_settings' in uis:
relax = uis['Relax_settings']
for ff in relax:
if ff.lower()=='prec':
if 'ENCUT' in new_config['INCAR']:
new_config['INCAR'].pop('ENCUT')
new_config['INCAR'].update({ff:relax.get(ff)})
elif ff=='KPAR':
new_config['INCAR'].update({ff:relax.get(ff)})
elif ff=='grid_density':
new_config['KPOINTS'].update({ff:relax.get(ff)})
#kpoints = Kpoints.automatic_gamma_density(structure, grid_density)
elif ff=='k_mesh':
kpoints = Kpoints(kpts=relax.get(ff))
new_config['KPOINTS'] = kpoints
from pymatgen.io.vasp.inputs import Kpoints
pot = self.kwargs.get('user_potcar_functional', None)
if pot:
new_config['POTCAR_FUNCTIONAL'] = pot
super(ElasticSet, self).__init__(structure, new_config, sort_structure=False, **self.kwargs)
self.config = new_config
| 36.94081
| 109
| 0.574212
| 2,812
| 23,716
| 4.698435
| 0.124822
| 0.061308
| 0.064638
| 0.026642
| 0.769149
| 0.732592
| 0.715713
| 0.690736
| 0.668635
| 0.668635
| 0
| 0.022514
| 0.293937
| 23,716
| 641
| 110
| 36.99844
| 0.766497
| 0.168536
| 0
| 0.720085
| 0
| 0
| 0.185277
| 0.010705
| 0
| 0
| 0
| 0.00156
| 0
| 1
| 0.023504
| false
| 0.010684
| 0.019231
| 0
| 0.07906
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4c4505254af897a0d31319dcc10e91a3a4fa3ced
| 498
|
py
|
Python
|
proset/utility/__init__.py
|
NRuf77/proset
|
101d491e05c2423faddca31029232982f46d8831
|
[
"MIT"
] | null | null | null |
proset/utility/__init__.py
|
NRuf77/proset
|
101d491e05c2423faddca31029232982f46d8831
|
[
"MIT"
] | null | null | null |
proset/utility/__init__.py
|
NRuf77/proset
|
101d491e05c2423faddca31029232982f46d8831
|
[
"MIT"
] | null | null | null |
"""Turn utility into a module.
Copyright by Nikolaus Ruf
Released under the MIT license - see LICENSE file for details
"""
from proset.utility.fit import select_hyperparameters
from proset.utility.other import print_hyperparameter_report, print_feature_report, choose_reference_point, \
print_point_report
from proset.utility.plots.search import plot_select_results
from proset.utility.plots.explore_classifier import ClassifierPlots
from proset.utility.write import write_report
| 38.307692
| 110
| 0.825301
| 67
| 498
| 5.940299
| 0.597015
| 0.125628
| 0.213568
| 0.110553
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126506
| 498
| 12
| 111
| 41.5
| 0.914943
| 0.232932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0.333333
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c47edb901ef1cee10399d9cdda4d762de11c672
| 154
|
py
|
Python
|
prod_announcer/produto/admin.py
|
lanchinho/Prod-Announcer---Web
|
9084ff7904e4a0241bc5eae8c12d7e7977b26cff
|
[
"MIT"
] | 1
|
2015-11-01T14:10:56.000Z
|
2015-11-01T14:10:56.000Z
|
prod_announcer/produto/admin.py
|
lanchinho/Prod-Announcer---Web
|
9084ff7904e4a0241bc5eae8c12d7e7977b26cff
|
[
"MIT"
] | null | null | null |
prod_announcer/produto/admin.py
|
lanchinho/Prod-Announcer---Web
|
9084ff7904e4a0241bc5eae8c12d7e7977b26cff
|
[
"MIT"
] | null | null | null |
#-*- coding: utf-8 -*-
from django.contrib import admin
from prod_announcer.produto.models import Produto
admin.site.register(Produto, admin.ModelAdmin)
| 25.666667
| 49
| 0.785714
| 21
| 154
| 5.714286
| 0.714286
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007194
| 0.097403
| 154
| 5
| 50
| 30.8
| 0.856115
| 0.136364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4c5d92029e333f8cd82c345cec77ec9c3d46cb17
| 3,452
|
py
|
Python
|
test/lfs/test_file_functions.py
|
yamt/littlefs-python
|
5f16aa14c92e025dd668934eb192c28d36fc7f26
|
[
"BSD-3-Clause"
] | null | null | null |
test/lfs/test_file_functions.py
|
yamt/littlefs-python
|
5f16aa14c92e025dd668934eb192c28d36fc7f26
|
[
"BSD-3-Clause"
] | null | null | null |
test/lfs/test_file_functions.py
|
yamt/littlefs-python
|
5f16aa14c92e025dd668934eb192c28d36fc7f26
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
from littlefs import lfs
from littlefs.errors import LittleFSError
def test_file_open(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
def test_file_open_wb(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'wb')
def test_file_open_a(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_write(mounted_fs, fh, b'0123456789')
lfs.file_close(mounted_fs, fh)
fh = lfs.file_open(mounted_fs, 'test.txt', 'a')
lfs.file_write(mounted_fs, fh, b'0123456789')
lfs.file_close(mounted_fs, fh)
info = lfs.stat(mounted_fs, 'test.txt')
assert info.size == 20
def test_file_open_flags(mounted_fs):
flags = lfs.LFSFileFlag.wronly | lfs.LFSFileFlag.creat
fh = lfs.file_open(mounted_fs, 'test.txt', flags)
def test_file_open_exist(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'wb')
lfs.file_write(mounted_fs, fh, b'0123456789')
lfs.file_close(mounted_fs, fh)
with pytest.raises(LittleFSError) as excinfo:
fh = lfs.file_open(mounted_fs, 'test.txt', 'x')
assert excinfo.value.code == LittleFSError.Error.LFS_ERR_EXIST
def test_file_open_noent(mounted_fs):
with pytest.raises(LittleFSError) as excinfo:
flags = lfs.LFSFileFlag.rdonly
fh = lfs.file_open(mounted_fs, 'test.txt', flags)
assert excinfo.value.code == LittleFSError.Error.LFS_ERR_NOENT
def test_file_open_isdir(mounted_fs):
lfs.mkdir(mounted_fs, 'testdir')
with pytest.raises(LittleFSError) as excinfo:
fh = lfs.file_open(mounted_fs, 'testdir', "r")
assert excinfo.value.code == LittleFSError.Error.LFS_ERR_ISDIR
def test_file_close(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_close(mounted_fs, fh)
def test_file_sync(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_sync(mounted_fs, fh)
def test_file_read(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_write(mounted_fs, fh, b'0123456789')
lfs.file_close(mounted_fs, fh)
fh = lfs.file_open(mounted_fs, 'test.txt', 'r')
data = lfs.file_read(mounted_fs, fh, 10)
assert data == b'0123456789'
def test_file_read_rb(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_write(mounted_fs, fh, b'0123456789')
lfs.file_close(mounted_fs, fh)
fh = lfs.file_open(mounted_fs, 'test.txt', 'rb')
data = lfs.file_read(mounted_fs, fh, 10)
assert data == b'0123456789'
def test_file_write(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
lfs.file_write(mounted_fs, fh, b'0123456789')
def test_file_seek(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
# Seek whenece:
# 0: Absolute
# 1: Relative to Current Position
# 2: Relative to EOF
new_pos = lfs.file_seek(mounted_fs, fh, 10, 0)
assert new_pos == 10
def test_file_truncate(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
assert lfs.file_truncate(mounted_fs, fh, 10) == 0
def test_file_tell(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
assert lfs.file_tell(mounted_fs, fh) == 0
def test_file_rewind(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
assert lfs.file_rewind(mounted_fs, fh) == 0
def test_file_size(mounted_fs):
fh = lfs.file_open(mounted_fs, 'test.txt', 'w')
assert lfs.file_size(mounted_fs, fh) == 0
| 28.065041
| 66
| 0.69409
| 554
| 3,452
| 4.054152
| 0.122744
| 0.240427
| 0.166518
| 0.166518
| 0.777382
| 0.715049
| 0.676313
| 0.655833
| 0.591273
| 0.560997
| 0
| 0.034941
| 0.170915
| 3,452
| 122
| 67
| 28.295082
| 0.749825
| 0.023754
| 0
| 0.466667
| 0
| 0
| 0.084398
| 0
| 0
| 0
| 0
| 0
| 0.146667
| 1
| 0.226667
| false
| 0
| 0.04
| 0
| 0.266667
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4c66dd857277a9a9947dbb723807dd732d777f45
| 321
|
py
|
Python
|
Python/8 - kyu/8 kyu - Returning Strings.py
|
danielbom/codewars
|
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
|
[
"MIT"
] | null | null | null |
Python/8 - kyu/8 kyu - Returning Strings.py
|
danielbom/codewars
|
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
|
[
"MIT"
] | null | null | null |
Python/8 - kyu/8 kyu - Returning Strings.py
|
danielbom/codewars
|
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
|
[
"MIT"
] | null | null | null |
# https://www.codewars.com/kata/returning-strings/train/python
# My solution
def greet(name):
return "Hello, %s how are you doing today?" % name
# ...
def greet(name):
return f'Hello, {name} how are you doing today?'
# ...
def greet(name):
return "Hello, {} how are you doing today?".format(name)
| 26.75
| 63
| 0.641745
| 47
| 321
| 4.382979
| 0.510638
| 0.116505
| 0.174757
| 0.262136
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202492
| 321
| 11
| 64
| 29.181818
| 0.804688
| 0.249221
| 0
| 0.5
| 0
| 0
| 0.473214
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
d5b55ac44bc4c402e39ae9d16405e9729c2cee0d
| 185
|
py
|
Python
|
src/cstag/__init__.py
|
akikuno/cstag
|
9e48c8a825a30f36f0b72da27b310f0b5ca2cf74
|
[
"MIT"
] | null | null | null |
src/cstag/__init__.py
|
akikuno/cstag
|
9e48c8a825a30f36f0b72da27b310f0b5ca2cf74
|
[
"MIT"
] | 7
|
2022-03-15T23:42:50.000Z
|
2022-03-19T10:04:39.000Z
|
src/cstag/__init__.py
|
akikuno/cstag
|
9e48c8a825a30f36f0b72da27b310f0b5ca2cf74
|
[
"MIT"
] | null | null | null |
"""
.. include:: ../../README.md
"""
from .shorten import shorten
from .lengthen import lengthen
from .consensus import consensus
from .to_html import to_html
from .mask import mask
| 15.416667
| 32
| 0.72973
| 25
| 185
| 5.32
| 0.44
| 0.090226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151351
| 185
| 11
| 33
| 16.818182
| 0.847134
| 0.151351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d5bc659574a6efeeb150f4004b629bd2963e91bf
| 99
|
py
|
Python
|
src/poetry/puzzle/__init__.py
|
zEdS15B3GCwq/poetry
|
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
|
[
"MIT"
] | 7,258
|
2018-02-28T16:23:08.000Z
|
2019-12-11T18:27:58.000Z
|
src/poetry/puzzle/__init__.py
|
zEdS15B3GCwq/poetry
|
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
|
[
"MIT"
] | 1,608
|
2018-02-28T15:31:35.000Z
|
2019-12-11T20:00:05.000Z
|
src/poetry/puzzle/__init__.py
|
zEdS15B3GCwq/poetry
|
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
|
[
"MIT"
] | 597
|
2018-03-07T15:07:46.000Z
|
2019-12-11T16:36:22.000Z
|
from __future__ import annotations
from poetry.puzzle.solver import Solver
__all__ = ["Solver"]
| 14.142857
| 39
| 0.787879
| 12
| 99
| 5.833333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141414
| 99
| 6
| 40
| 16.5
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0.060606
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d5c11bd16e566e15c2339a0d315e61425bef0ac9
| 65
|
py
|
Python
|
danceschool/vouchers/__init__.py
|
benjwrdill/django-danceschool
|
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
|
[
"BSD-3-Clause"
] | 1
|
2019-02-04T02:11:32.000Z
|
2019-02-04T02:11:32.000Z
|
danceschool/vouchers/__init__.py
|
benjwrdill/django-danceschool
|
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
|
[
"BSD-3-Clause"
] | 2
|
2019-03-26T22:37:49.000Z
|
2019-12-02T15:39:35.000Z
|
danceschool/vouchers/__init__.py
|
benjwrdill/django-danceschool
|
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
|
[
"BSD-3-Clause"
] | 1
|
2019-03-19T22:49:01.000Z
|
2019-03-19T22:49:01.000Z
|
default_app_config = 'danceschool.vouchers.apps.VoucherAppConfig'
| 65
| 65
| 0.876923
| 7
| 65
| 7.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030769
| 65
| 1
| 65
| 65
| 0.873016
| 0
| 0
| 0
| 0
| 0
| 0.636364
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d5c20ac9188e1d682ac59449311aa01049fed6eb
| 4,168
|
py
|
Python
|
backend/ctgov/documents.py
|
ClinicalTrialsTeam/CTFrontier
|
d7e2558f314f6bbd9964667e12ee5655bc64215b
|
[
"Apache-2.0"
] | 4
|
2021-03-07T02:16:22.000Z
|
2022-03-13T03:22:42.000Z
|
backend/ctgov/documents.py
|
ClinicalTrialsTeam/CTFrontier
|
d7e2558f314f6bbd9964667e12ee5655bc64215b
|
[
"Apache-2.0"
] | 8
|
2021-03-14T22:14:07.000Z
|
2021-04-26T17:20:56.000Z
|
backend/ctgov/documents.py
|
ClinicalTrialsTeam/CTFrontier
|
d7e2558f314f6bbd9964667e12ee5655bc64215b
|
[
"Apache-2.0"
] | 1
|
2021-03-07T02:16:39.000Z
|
2021-03-07T02:16:39.000Z
|
from django_elasticsearch_dsl import Document, fields, Index
from elasticsearch_dsl import analyzer, tokenizer
from .models import SearchStudies
studies = Index("search_studies")
studies.settings(number_of_shards=1, number_of_replicas=0)
text_analyzer = analyzer(
"text_analyzer",
tokenizer="standard",
filter=["lowercase", "stop", "snowball"],
char_filter=["html_strip"],
)
fuzzy_analyzer = analyzer(
"fuzzy_analyzer",
tokenizer=tokenizer("trigram", "edge_ngram", min_gram=1, max_gram=20),
filter=["lowercase", "stop", "snowball"],
char_filter=["html_strip"],
)
@studies.doc_type
class ClinicalTrialsSearchStudies(Document):
status = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
brief_title = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
nct_id = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
condition_name = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
country_name = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
city_name = fields.TextField()
state_name = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
intervention_name = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
eligibility_criteria = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
study_brief_desc = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
location_name = fields.TextField()
sponsor_name = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
study_start_date = fields.DateField()
primary_completion_date = fields.DateField()
study_first_posted_date = fields.DateField()
results_first_posted_date = fields.DateField()
last_update_posted_date = fields.DateField()
study_type = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
eligibility_gender = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
sponsor_name = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
study_ids = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
funder_type = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
results_submitted_qc_not_done = fields.DateField()
results_submitted_qc_done = fields.DateField()
document_types = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
official_title = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
acronym = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
primary_outcome_measures = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
secondary_outcome_measures = fields.TextField(
analyzer=fuzzy_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
eligibility_min_age_numeric = fields.FloatField()
eligibility_max_age_numeric = fields.FloatField()
study_phase = fields.TextField(
analyzer=text_analyzer,
fields={"raw": fields.TextField(analyzer="keyword")},
)
class Django(object):
model = SearchStudies
| 32.818898
| 74
| 0.672505
| 417
| 4,168
| 6.503597
| 0.218225
| 0.243363
| 0.356195
| 0.178097
| 0.679572
| 0.657448
| 0.657448
| 0.657448
| 0.621681
| 0.621681
| 0
| 0.001499
| 0.199856
| 4,168
| 126
| 75
| 33.079365
| 0.811694
| 0
| 0
| 0.413793
| 0
| 0
| 0.081094
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.025862
| 0
| 0.318966
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d5e533ab009b5201b53ec92d7c256509d417463e
| 179
|
py
|
Python
|
python/various.py
|
samuelexferri/scripts
|
acfa5bee0f590f03acf2a7df7a60e958802d3472
|
[
"MIT"
] | null | null | null |
python/various.py
|
samuelexferri/scripts
|
acfa5bee0f590f03acf2a7df7a60e958802d3472
|
[
"MIT"
] | null | null | null |
python/various.py
|
samuelexferri/scripts
|
acfa5bee0f590f03acf2a7df7a60e958802d3472
|
[
"MIT"
] | null | null | null |
None #null
a[::-1]
all()
eval()
dict(zip(('a','b','c','d','e'),(1,2,3,4,5)))
sorted(list(set1^set2)), sorted(list(set1&set2)) # ^ A.symmetric_difference(B), & A.intersection(B)
| 19.888889
| 99
| 0.592179
| 33
| 179
| 3.181818
| 0.69697
| 0.190476
| 0.266667
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060976
| 0.083799
| 179
| 9
| 99
| 19.888889
| 0.579268
| 0.296089
| 0
| 0
| 0
| 0
| 0.04
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d5f10cd2f721488145d7294a7820d23b160e0e26
| 1,376
|
py
|
Python
|
leap_ec/real_rep/initializers.py
|
thomashopkins32/LEAP
|
aafada03a261543f35ebfbb9b1ef7140cb079f6c
|
[
"AFL-3.0"
] | 53
|
2018-10-04T18:01:22.000Z
|
2022-03-24T05:24:37.000Z
|
leap_ec/real_rep/initializers.py
|
thomashopkins32/LEAP
|
aafada03a261543f35ebfbb9b1ef7140cb079f6c
|
[
"AFL-3.0"
] | 180
|
2018-10-11T21:36:57.000Z
|
2022-03-25T17:38:33.000Z
|
leap_ec/real_rep/initializers.py
|
thomashopkins32/LEAP
|
aafada03a261543f35ebfbb9b1ef7140cb079f6c
|
[
"AFL-3.0"
] | 8
|
2019-09-27T23:11:26.000Z
|
2021-09-29T21:15:35.000Z
|
#!/usr/bin/env python3
"""
Initializers for real values.
"""
import numpy as np
from leap_ec.individual import Individual
##############################
# Closure create_real_vector
##############################
def create_real_vector(bounds):
"""
A closure for initializing lists of real numbers for real-valued genomes,
sampled from a uniform distribution.
Having a closure allows us to just call the returned function N times
in `Individual.create_population()`.
TODO Allow either a single tuple or a test_sequence of tuples for bounds. —Siggy
:param bounds: a list of (min, max) values bounding the uniform sampline
of each element
:return: A function that, when called, generates a random genome.
E.g., can be used for `Individual.create_population()`
>>> from leap_ec.decoder import IdentityDecoder
>>> from . problems import SpheroidProblem
>>> bounds = [(0, 1), (0, 1), (-1, 100)]
>>> population = Individual.create_population(10, create_real_vector(bounds),
... decoder=IdentityDecoder(),
... problem=SpheroidProblem())
"""
low = [ l for l, _ in bounds ]
high = [ h for _, h in bounds ]
def create():
return np.random.uniform(low, high, size=len(bounds))
return create
| 29.913043
| 84
| 0.609738
| 166
| 1,376
| 4.975904
| 0.542169
| 0.03632
| 0.058111
| 0.053269
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010774
| 0.257994
| 1,376
| 45
| 85
| 30.577778
| 0.797258
| 0.693314
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022222
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
912b8eaca3db6001699b91fa0faffeb7f42880ca
| 23
|
py
|
Python
|
tcpparser/__init__.py
|
brunocriado/tcpparser
|
10acb03bb0e594f5930e9e8b29541ec28ed67420
|
[
"MIT"
] | 1
|
2020-09-30T07:40:41.000Z
|
2020-09-30T07:40:41.000Z
|
tcpparser/__init__.py
|
brunocriado/tcpparser
|
10acb03bb0e594f5930e9e8b29541ec28ed67420
|
[
"MIT"
] | 3
|
2020-08-03T08:41:06.000Z
|
2021-06-01T23:59:09.000Z
|
tcpparser/__init__.py
|
brunocriado/tcpparser
|
10acb03bb0e594f5930e9e8b29541ec28ed67420
|
[
"MIT"
] | 2
|
2019-07-16T21:10:50.000Z
|
2020-05-20T15:11:04.000Z
|
__version__ = "v0.0.3"
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 0.130435
| 23
| 1
| 23
| 23
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
912fd20126d87265fa5ea83564151335452a51df
| 21
|
py
|
Python
|
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
liuzheng/aliyun-openapi-python-sdk
|
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
|
[
"Apache-2.0"
] | null | null | null |
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
liuzheng/aliyun-openapi-python-sdk
|
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
|
[
"Apache-2.0"
] | null | null | null |
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
liuzheng/aliyun-openapi-python-sdk
|
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
|
[
"Apache-2.0"
] | null | null | null |
__version__ = '3.9.7'
| 21
| 21
| 0.666667
| 4
| 21
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.095238
| 21
| 1
| 21
| 21
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
913f533f4cd6a15339acfb5a21936ca1087962e7
| 162
|
py
|
Python
|
CLI_tool/monitor.py
|
Juniper/vSRX-AWS
|
a9179d8b115229b1f26aec166a85261fd2352b14
|
[
"Apache-2.0"
] | 18
|
2017-07-03T22:45:19.000Z
|
2021-04-04T16:51:28.000Z
|
CLI_tool/monitor.py
|
Juniper/vSRX-AWS
|
a9179d8b115229b1f26aec166a85261fd2352b14
|
[
"Apache-2.0"
] | 13
|
2017-10-25T18:22:22.000Z
|
2021-09-15T00:09:54.000Z
|
CLI_tool/monitor.py
|
Juniper/vSRX-AWS
|
a9179d8b115229b1f26aec166a85261fd2352b14
|
[
"Apache-2.0"
] | 23
|
2017-07-20T03:29:25.000Z
|
2021-02-24T20:27:05.000Z
|
import sys
import os
import boto3
import click
@click.command()
def monitor():
"""Monitor vSRX instance with CloudWatch or other applications"""
pass
| 13.5
| 69
| 0.722222
| 21
| 162
| 5.571429
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007692
| 0.197531
| 162
| 11
| 70
| 14.727273
| 0.892308
| 0.364198
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0.142857
| 0.571429
| 0
| 0.714286
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
e671307d75b268e4dabe0a004f0cf5eff50ea8bc
| 104
|
py
|
Python
|
lib/googlecloudsdk/third_party/apis/toolresults/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
lib/googlecloudsdk/third_party/apis/toolresults/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
lib/googlecloudsdk/third_party/apis/toolresults/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
"""Package marker file."""
| 20.8
| 49
| 0.634615
| 13
| 104
| 5.076923
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05814
| 0.173077
| 104
| 4
| 50
| 26
| 0.709302
| 0.884615
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e681d5f147d62fac934b4b9038da43146a9e712d
| 152
|
py
|
Python
|
tests/general_graph.py
|
ndem0/GRAPE
|
6d82183b6040de1af1b1524b8553925c88bd7054
|
[
"MIT"
] | 8
|
2019-04-03T08:48:06.000Z
|
2021-04-22T07:41:41.000Z
|
tests/general_graph.py
|
ndem0/GRAPE
|
6d82183b6040de1af1b1524b8553925c88bd7054
|
[
"MIT"
] | 6
|
2020-11-24T10:31:37.000Z
|
2022-01-13T16:02:05.000Z
|
tests/general_graph.py
|
ndem0/GRAPE
|
6d82183b6040de1af1b1524b8553925c88bd7054
|
[
"MIT"
] | 11
|
2019-04-02T16:18:21.000Z
|
2021-11-07T14:18:51.000Z
|
from unittest import TestCase
from .grape import GeneralGraph
class TestGeneralGraph(TestCase):
def create_instance(self):
GeneralGraph()
| 19
| 33
| 0.763158
| 16
| 152
| 7.1875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177632
| 152
| 7
| 34
| 21.714286
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e68a98476e2c0657591bae5d0b06e141b9fa8407
| 3,722
|
py
|
Python
|
Admin/authentication/forms.py
|
shimmerInCorner/FilmWebDjango
|
9002ca85cc33e073098e368bfc41fa6b4ac8c708
|
[
"Apache-2.0"
] | null | null | null |
Admin/authentication/forms.py
|
shimmerInCorner/FilmWebDjango
|
9002ca85cc33e073098e368bfc41fa6b4ac8c708
|
[
"Apache-2.0"
] | null | null | null |
Admin/authentication/forms.py
|
shimmerInCorner/FilmWebDjango
|
9002ca85cc33e073098e368bfc41fa6b4ac8c708
|
[
"Apache-2.0"
] | null | null | null |
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm,PasswordChangeForm,PasswordResetForm,SetPasswordForm
class UserRegistrationForm(UserCreationForm):
email=forms.EmailField(label='Email',widget=forms.EmailInput(attrs={'placeholder': 'Enter your email', 'id':'user_email', 'class':'form-control'}),max_length=50,required=True,help_text='Required.add valid email address')
username=forms.CharField(label='Username',widget=forms.TextInput(attrs={'placeholder': 'Enter your username', 'id':'user_name', 'class':'form-control'}),max_length=50,required=True,help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.')
password1=forms.CharField(label='Password',widget=forms.PasswordInput(attrs={'placeholder': 'Enter your password', 'id':'user_password', 'class':'form-control'}),max_length=50,required=True,help_text='Your password must contain at least 8 characters.')
password2=forms.CharField(label='Confirm Password',widget=forms.PasswordInput(attrs={'placeholder': 'Enter confirm password', 'id':'confirm_password', 'class':'form-control'}),max_length=50,required=True,help_text='Enter the same password as before, for verification.')
class Meta:
model=User
fields=['username','email','password1','password2']
class UserLoginForm(forms.Form):
username=forms.CharField(label='Username',widget=forms.TextInput(attrs={'placeholder': 'Enter your username', 'id':'user_name', 'class':'form-control'}),max_length=50)
password=forms.CharField(label='Password',widget=forms.PasswordInput(attrs={'placeholder': 'Enter your password', 'id':'user_password', 'class':'form-control'}),max_length=50,required=True)
class Meta:
model = User
fields = ['username','password']
class ChangePasswordForm(PasswordChangeForm):
old_password = forms.CharField(label='Old password',widget=forms.PasswordInput(attrs={'placeholder':'Enter your old password','class':'form-control'}),max_length=10,min_length=6,required=True)
new_password1 = forms.CharField(label='New password',widget=forms.PasswordInput(attrs={'placeholder':'Enter your new password','class':'form-control'}),max_length=10,min_length=6,required=True)
new_password2 = forms.CharField(label='Confirm new password',widget=forms.PasswordInput(attrs={'placeholder':'Confirm new password','class':'form-control'}),max_length=10,min_length=6,required=True)
class Meta:
model = PasswordChangeForm
fields = ['old_password','new_password1','new_password2']
class RecoverPasswordForm(PasswordResetForm):
email=forms.EmailField(label='Email',widget=forms.EmailInput(attrs={'placeholder': 'Enter your email', 'id':'user_email', 'class':'form-control'}),max_length=50,required=True,help_text='Required.add valid email address')
class Meta:
models= PasswordResetForm
fields = ['email']
class ResetPasswordForm(SetPasswordForm):
new_password1 = forms.CharField(label='New password',widget=forms.PasswordInput(attrs={'placeholder':'Enter your old password'}),max_length=10,min_length=2,required=True)
new_password2 = forms.CharField(label='Confirm new password',widget=forms.PasswordInput(attrs={'placeholder':'Enter your old password'}),max_length=10,min_length=2,required=True)
class Meta:
model=SetPasswordForm
fields=['new_password1','new_password2']
class LockScreenForm(forms.Form):
password=forms.CharField(label='Password',widget=forms.PasswordInput(attrs={'placeholder': 'Enter your password', 'id':'user_password', 'class':'form-control'}),max_length=50,required=True)
class Meta:
model = User
fields = ['password']
| 84.590909
| 273
| 0.751209
| 455
| 3,722
| 6.052747
| 0.171429
| 0.051924
| 0.091503
| 0.099855
| 0.747277
| 0.703341
| 0.688816
| 0.669572
| 0.669572
| 0.669572
| 0
| 0.013947
| 0.094573
| 3,722
| 44
| 274
| 84.590909
| 0.803264
| 0
| 0
| 0.325
| 0
| 0
| 0.322589
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.525
| 0.075
| 0
| 0.7
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
e6c585246fbe5b85e380c4c8c1caa12f6cfda9e1
| 304
|
py
|
Python
|
plugins/segmentation/api.py
|
bsavelev/medipy
|
f0da3750a6979750d5f4c96aedc89ad5ae74545f
|
[
"CECILL-B"
] | null | null | null |
plugins/segmentation/api.py
|
bsavelev/medipy
|
f0da3750a6979750d5f4c96aedc89ad5ae74545f
|
[
"CECILL-B"
] | null | null | null |
plugins/segmentation/api.py
|
bsavelev/medipy
|
f0da3750a6979750d5f4c96aedc89ad5ae74545f
|
[
"CECILL-B"
] | 1
|
2022-03-04T05:47:08.000Z
|
2022-03-04T05:47:08.000Z
|
from bet import bet
from change_detection import (
mono_modal_statistical_change_detection, change_detection_clustering,
clusters_to_annotations)
from label import (label_connected_components, order_connected_components,
largest_connected_component)
from skull import skull
| 33.777778
| 75
| 0.805921
| 35
| 304
| 6.571429
| 0.542857
| 0.195652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167763
| 304
| 8
| 76
| 38
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.571429
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e6f74854ca2ffb704a6370b1880435aa2842fa5b
| 140
|
py
|
Python
|
quran/domain/image.py
|
octabytes/quran
|
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
|
[
"Apache-2.0"
] | null | null | null |
quran/domain/image.py
|
octabytes/quran
|
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
|
[
"Apache-2.0"
] | null | null | null |
quran/domain/image.py
|
octabytes/quran
|
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
|
[
"Apache-2.0"
] | null | null | null |
from dataclasses import dataclass
from quran.domain.entity import Entity
@dataclass
class Image(Entity):
ayah_id: str
image: str
| 14
| 38
| 0.757143
| 19
| 140
| 5.526316
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185714
| 140
| 9
| 39
| 15.555556
| 0.921053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e6fcb5713174d6d03656ec1861c93747d46c882c
| 792
|
py
|
Python
|
PyStationB/projects/CellSignalling/tests/simulation/test_load_wrapper_scripts.py
|
BrunoKM/station-b-libraries
|
ea3591837e4a33f0bef789d905467754c27913b3
|
[
"MIT"
] | 6
|
2021-09-29T15:46:55.000Z
|
2021-12-14T18:39:51.000Z
|
PyStationB/projects/CellSignalling/tests/simulation/test_load_wrapper_scripts.py
|
BrunoKM/station-b-libraries
|
ea3591837e4a33f0bef789d905467754c27913b3
|
[
"MIT"
] | null | null | null |
PyStationB/projects/CellSignalling/tests/simulation/test_load_wrapper_scripts.py
|
BrunoKM/station-b-libraries
|
ea3591837e4a33f0bef789d905467754c27913b3
|
[
"MIT"
] | 3
|
2021-09-27T10:35:20.000Z
|
2021-10-02T17:53:07.000Z
|
# -------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------------------------------
from cellsig_sim.scripts.run_cell_simulations_in_pipeline import main as main1
from cellsig_sim.scripts.plot_cellsig_predicted_optimum_convergence import main as main2
from cellsig_sim.scripts.run_cell_simulator_pipeline import main as main3
# Stub tests to provide coverage. The bulk of the code is tested in the ABEX subrepo.
def test_load_wrapper_scripts():
assert main1 is not None
assert main2 is not None
assert main3 is not None
| 52.8
| 93
| 0.621212
| 96
| 792
| 4.947917
| 0.583333
| 0.069474
| 0.088421
| 0.132632
| 0.117895
| 0.117895
| 0
| 0
| 0
| 0
| 0
| 0.008596
| 0.118687
| 792
| 14
| 94
| 56.571429
| 0.67192
| 0.526515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 0.142857
| true
| 0
| 0.428571
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fc40ea8911263eccca7f0a7e2b7aad7d66d068ee
| 86
|
py
|
Python
|
uri1155.py
|
Tiago-Rodrigue2/programacao1.0
|
aa272f3958238db9d8d11ba17d5e0ea08fabab3f
|
[
"MIT"
] | null | null | null |
uri1155.py
|
Tiago-Rodrigue2/programacao1.0
|
aa272f3958238db9d8d11ba17d5e0ea08fabab3f
|
[
"MIT"
] | null | null | null |
uri1155.py
|
Tiago-Rodrigue2/programacao1.0
|
aa272f3958238db9d8d11ba17d5e0ea08fabab3f
|
[
"MIT"
] | null | null | null |
i = 2
S = 1
while i <= 100:
S = S + (1 / i)
i += 1
print('{:.2f}'.format(S))
| 10.75
| 25
| 0.383721
| 17
| 86
| 1.941176
| 0.529412
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.348837
| 86
| 8
| 25
| 10.75
| 0.446429
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc41ae548d564723defdbca0708f35b4bda5a2f2
| 212
|
py
|
Python
|
step1/conftest.py
|
blawesom/niceredfish
|
9016f37a9d7bbe1e97a0846c35418825250fa7fc
|
[
"BSD-2-Clause"
] | 2
|
2019-01-02T17:55:45.000Z
|
2019-01-10T08:49:10.000Z
|
step1/conftest.py
|
blawesom/niceredfish
|
9016f37a9d7bbe1e97a0846c35418825250fa7fc
|
[
"BSD-2-Clause"
] | 1
|
2019-01-02T18:00:00.000Z
|
2019-03-29T10:14:02.000Z
|
step1/conftest.py
|
blawesom/niceredfish
|
9016f37a9d7bbe1e97a0846c35418825250fa7fc
|
[
"BSD-2-Clause"
] | null | null | null |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# __author__ = 'Benjamin'
# file needed for pytest to run
# https://stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayada
| 35.333333
| 110
| 0.745283
| 28
| 212
| 5.5
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051813
| 0.089623
| 212
| 6
| 110
| 35.333333
| 0.746114
| 0.95283
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc72650090afce640142416ec2ae6a533b989258
| 53
|
py
|
Python
|
recognition/detect.py
|
Mrkr1sher/Put-That-Smile-Away-For-A-While
|
5d652b15b74a1f91f776d41afd80bb629630c27c
|
[
"MIT"
] | null | null | null |
recognition/detect.py
|
Mrkr1sher/Put-That-Smile-Away-For-A-While
|
5d652b15b74a1f91f776d41afd80bb629630c27c
|
[
"MIT"
] | null | null | null |
recognition/detect.py
|
Mrkr1sher/Put-That-Smile-Away-For-A-While
|
5d652b15b74a1f91f776d41afd80bb629630c27c
|
[
"MIT"
] | null | null | null |
# log = open("emotion.txt", "w")
# log.write("Hello")
| 26.5
| 32
| 0.584906
| 8
| 53
| 3.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113208
| 53
| 2
| 33
| 26.5
| 0.659574
| 0.924528
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc7669eb39a10736fb3025ddc4f03b076572fdcf
| 357
|
py
|
Python
|
eigencalc.py
|
vaseem-khan/CIELAB_PCA
|
b1265f99a5b62b5b00adc519b2eee96af2ca3aca
|
[
"MIT"
] | 1
|
2016-09-06T01:18:35.000Z
|
2016-09-06T01:18:35.000Z
|
eigencalc.py
|
vaseem-khan/CIELAB_PCA
|
b1265f99a5b62b5b00adc519b2eee96af2ca3aca
|
[
"MIT"
] | null | null | null |
eigencalc.py
|
vaseem-khan/CIELAB_PCA
|
b1265f99a5b62b5b00adc519b2eee96af2ca3aca
|
[
"MIT"
] | null | null | null |
import numpy
import numpy.linalg as linalg
P = numpy.array([[0.616556 ,0.615444], [0.615444 ,0.716556]])
D, V = linalg.eig(P)
print V
print V[1][1]
file = open("result.txt", "w")
file.write(str(V[0][0]))
file.write(" ")
file.write(str(V[0][1]))
file.write(" ")
file.write(str(V[1][0]))
file.write(" ")
file.write(str(V[1][1]))
file.write(" ")
file.close()
| 21
| 62
| 0.627451
| 68
| 357
| 3.294118
| 0.338235
| 0.321429
| 0.214286
| 0.232143
| 0.379464
| 0.3125
| 0.3125
| 0
| 0
| 0
| 0
| 0.119122
| 0.106443
| 357
| 16
| 63
| 22.3125
| 0.583072
| 0
| 0
| 0.25
| 0
| 0
| 0.042017
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.125
| null | null | 0.125
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc874cb8b071230cc2e9f9e2eca90b980c61fef2
| 120
|
py
|
Python
|
garagem/admin.py
|
araujo88/minhaGaragem
|
31fb16a686eef2caa26e194c03a0528e43867188
|
[
"MIT"
] | null | null | null |
garagem/admin.py
|
araujo88/minhaGaragem
|
31fb16a686eef2caa26e194c03a0528e43867188
|
[
"MIT"
] | null | null | null |
garagem/admin.py
|
araujo88/minhaGaragem
|
31fb16a686eef2caa26e194c03a0528e43867188
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Veiculo
admin.site.register(Veiculo)
| 20
| 32
| 0.808333
| 17
| 120
| 5.705882
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 120
| 6
| 33
| 20
| 0.92381
| 0.216667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fc8db5ef2e48f1bc20829da55574b5e71be9fe46
| 31
|
py
|
Python
|
scalyr_agent/builtin_monitors/__init__.py
|
zak905/scalyr-agent-2
|
490f03f2a3f0a8d075d74df20610ceb23dff6c8c
|
[
"Apache-2.0"
] | 67
|
2015-02-03T00:35:33.000Z
|
2022-03-23T10:14:26.000Z
|
scalyr_agent/builtin_monitors/__init__.py
|
kdelph23/scalyr-agent-2
|
6b975db59367d271eeba6a614ac40c7cb4205c41
|
[
"Apache-2.0"
] | 578
|
2015-04-09T08:58:56.000Z
|
2022-03-30T12:13:21.000Z
|
scalyr_agent/builtin_monitors/__init__.py
|
kdelph23/scalyr-agent-2
|
6b975db59367d271eeba6a614ac40c7cb4205c41
|
[
"Apache-2.0"
] | 58
|
2015-01-15T22:00:43.000Z
|
2022-02-18T15:48:31.000Z
|
all = ["linux_system_metrics"]
| 15.5
| 30
| 0.741935
| 4
| 31
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 31
| 1
| 31
| 31
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.645161
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fca03f2903c99d215912f516915e003b3d970f20
| 35
|
py
|
Python
|
src/djai/data/models/public/hugging_face.py
|
Django-AI/DjAI
|
85e624de78726ac52f42580121e1a04efe2da2d7
|
[
"MIT"
] | 3
|
2021-12-03T13:53:17.000Z
|
2021-12-15T11:51:52.000Z
|
src/djai/data/models/public/hugging_face.py
|
Django-AI/DjAI
|
85e624de78726ac52f42580121e1a04efe2da2d7
|
[
"MIT"
] | null | null | null |
src/djai/data/models/public/hugging_face.py
|
Django-AI/DjAI
|
85e624de78726ac52f42580121e1a04efe2da2d7
|
[
"MIT"
] | 1
|
2022-01-31T08:57:16.000Z
|
2022-01-31T08:57:16.000Z
|
"""DjAI Hugging Face Data Sets."""
| 17.5
| 34
| 0.657143
| 5
| 35
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 35
| 1
| 35
| 35
| 0.766667
| 0.8
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d98f8052aa6d9381aa8011f69fd44030b3674c9
| 165
|
py
|
Python
|
python/left-rotation.py
|
gajubadge11/hackerrank-3
|
132a5019b7ed21507bb95b5063fa66c446b0eff7
|
[
"MIT"
] | 21
|
2015-02-09T18:08:38.000Z
|
2021-11-08T15:00:48.000Z
|
python/left-rotation.py
|
gajubadge11/hackerrank-3
|
132a5019b7ed21507bb95b5063fa66c446b0eff7
|
[
"MIT"
] | 7
|
2020-04-12T23:00:19.000Z
|
2021-01-30T23:44:24.000Z
|
python/left-rotation.py
|
gajubadge11/hackerrank-3
|
132a5019b7ed21507bb95b5063fa66c446b0eff7
|
[
"MIT"
] | 27
|
2015-07-22T18:08:12.000Z
|
2022-02-28T19:50:26.000Z
|
(_, d) = tuple(map(int, input().strip().split(' ')))
arr = list(map(int, input().strip().split(' ')))
new_arr = arr[d:] + arr[:d]
print(' '.join(map(str, new_arr)))
| 33
| 52
| 0.563636
| 26
| 165
| 3.461538
| 0.5
| 0.133333
| 0.244444
| 0.355556
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115152
| 165
| 4
| 53
| 41.25
| 0.616438
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5dad0421946f8763acc58b3d7a1a008e882b627c
| 30
|
py
|
Python
|
python/01_python/school/dss/__init__.py
|
dreandes/Code
|
923edb78de912a49def61e5f4867564c526899a1
|
[
"MIT"
] | null | null | null |
python/01_python/school/dss/__init__.py
|
dreandes/Code
|
923edb78de912a49def61e5f4867564c526899a1
|
[
"MIT"
] | null | null | null |
python/01_python/school/dss/__init__.py
|
dreandes/Code
|
923edb78de912a49def61e5f4867564c526899a1
|
[
"MIT"
] | null | null | null |
__all__ = ["data1", "data2"]
| 10
| 28
| 0.566667
| 3
| 30
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 0.166667
| 30
| 2
| 29
| 15
| 0.44
| 0
| 0
| 0
| 0
| 0
| 0.344828
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5db2bd2a8ad4c96f29c2c3a39ebfc28a8bf3732b
| 92
|
py
|
Python
|
telegram_bot/__init__.py
|
Carmo-sousa/telegram-bot
|
7a2f675bc3b5da65742851c1a2c4438f9e982745
|
[
"MIT"
] | null | null | null |
telegram_bot/__init__.py
|
Carmo-sousa/telegram-bot
|
7a2f675bc3b5da65742851c1a2c4438f9e982745
|
[
"MIT"
] | null | null | null |
telegram_bot/__init__.py
|
Carmo-sousa/telegram-bot
|
7a2f675bc3b5da65742851c1a2c4438f9e982745
|
[
"MIT"
] | null | null | null |
# TODO: Arrumar a versão
# A versão está errada
# Preguiça de arrumar
__version__ = "0.1.0"
| 18.4
| 24
| 0.717391
| 15
| 92
| 4.133333
| 0.733333
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0.184783
| 92
| 5
| 25
| 18.4
| 0.786667
| 0.684783
| 0
| 0
| 0
| 0
| 0.192308
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5deaab2dfd71a2b8e0f3234f6dd75447761cbd58
| 84
|
py
|
Python
|
__init__.py
|
SetRac/Stock_Picking_Type
|
89157a05b5d5907c52b66d578d7f421abea00d0b
|
[
"Apache-2.0"
] | null | null | null |
__init__.py
|
SetRac/Stock_Picking_Type
|
89157a05b5d5907c52b66d578d7f421abea00d0b
|
[
"Apache-2.0"
] | null | null | null |
__init__.py
|
SetRac/Stock_Picking_Type
|
89157a05b5d5907c52b66d578d7f421abea00d0b
|
[
"Apache-2.0"
] | null | null | null |
# See LICENSE file for full copyright and licensing details.
#from . import models
| 21
| 60
| 0.77381
| 12
| 84
| 5.416667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 84
| 3
| 61
| 28
| 0.942029
| 0.928571
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5dee0ec60a4e6383c59773e94c261cd3a84f4244
| 133
|
py
|
Python
|
notifications/providers/telegram.py
|
mcastellin/anem-per-feina
|
5c7072c560e8e34355f7bbf7db12e36403766e68
|
[
"MIT"
] | null | null | null |
notifications/providers/telegram.py
|
mcastellin/anem-per-feina
|
5c7072c560e8e34355f7bbf7db12e36403766e68
|
[
"MIT"
] | null | null | null |
notifications/providers/telegram.py
|
mcastellin/anem-per-feina
|
5c7072c560e8e34355f7bbf7db12e36403766e68
|
[
"MIT"
] | null | null | null |
from .base import ProviderBase
class Telegram(ProviderBase):
code = "telegram"
def _publish(self, tpl: str):
pass
| 14.777778
| 33
| 0.661654
| 15
| 133
| 5.8
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24812
| 133
| 8
| 34
| 16.625
| 0.87
| 0
| 0
| 0
| 0
| 0
| 0.06015
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
5df9c44984a20a23c5740dd4d831f8065a79fc45
| 35,954
|
py
|
Python
|
mpf/tests/test_LogicBlocks.py
|
haggispinball/mpf_fathom_fast
|
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
|
[
"MIT"
] | 163
|
2015-01-25T02:19:50.000Z
|
2022-03-26T12:00:28.000Z
|
mpf/tests/test_LogicBlocks.py
|
haggispinball/mpf_fathom_fast
|
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
|
[
"MIT"
] | 1,086
|
2015-03-23T19:53:17.000Z
|
2022-03-24T20:46:11.000Z
|
mpf/tests/test_LogicBlocks.py
|
haggispinball/mpf_fathom_fast
|
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
|
[
"MIT"
] | 148
|
2015-01-28T02:31:39.000Z
|
2022-03-22T13:54:01.000Z
|
"""Test logic blocks."""
from mpf.tests.MpfFakeGameTestCase import MpfFakeGameTestCase
from mpf.tests.MpfTestCase import test_config_directory
class TestLogicBlocks(MpfFakeGameTestCase):
def get_config_file(self):
return 'config.yaml'
def get_machine_path(self):
return 'tests/machine_files/logic_blocks/'
def test_mode_selection_with_counters(self):
self.mock_event("qualify_start_mode1")
self.mock_event("qualify_start_mode2")
self.start_game()
self.start_mode("mode3")
# advance both counters to 2/3
self.post_event("qualify1_count")
self.post_event("qualify1_count")
self.post_event("qualify2_count")
self.post_event("qualify2_count")
# post the final even for both of them
self.machine.switch_controller.process_switch("s_qualify1", 1, True)
self.machine.switch_controller.process_switch("s_qualify2", 1, True)
self.advance_time_and_run()
self.assertEventCalled("qualify_start_mode1")
self.assertEventNotCalled("qualify_start_mode2")
@test_config_directory("tests/machine_files/counters/")
def test_subscription_on_counter_values(self):
self.start_game()
self.start_mode("mode1")
self.assertLightColor("l_chest_matrix_green_2", "black")
self.assertLightColor("l_chest_matrix_green_3", "black")
self.assertLightColor("l_chest_matrix_green_4", "black")
self.assertLightColor("l_chest_matrix_green_5", "black")
self.post_event("count_up")
self.advance_time_and_run(.1)
self.assertLightColor("l_chest_matrix_green_2", "black")
self.assertLightColor("l_chest_matrix_green_3", "black")
self.assertLightColor("l_chest_matrix_green_4", "black")
self.assertLightColor("l_chest_matrix_green_5", "green")
self.post_event("count_up")
self.advance_time_and_run(.1)
self.assertLightColor("l_chest_matrix_green_2", "black")
self.assertLightColor("l_chest_matrix_green_3", "black")
self.assertLightColor("l_chest_matrix_green_4", "green")
self.assertLightColor("l_chest_matrix_green_5", "green")
self.post_event("count_up")
self.advance_time_and_run(.1)
self.assertLightColor("l_chest_matrix_green_2", "black")
self.assertLightColor("l_chest_matrix_green_3", "green")
self.assertLightColor("l_chest_matrix_green_4", "green")
self.assertLightColor("l_chest_matrix_green_5", "green")
self.post_event("count_up")
self.advance_time_and_run(.1)
self.assertLightColor("l_chest_matrix_green_2", "green")
self.assertLightColor("l_chest_matrix_green_3", "green")
self.assertLightColor("l_chest_matrix_green_4", "green")
self.assertLightColor("l_chest_matrix_green_5", "green")
self.drain_all_balls()
self.advance_time_and_run()
self.start_mode("mode1")
self.assertLightColor("l_chest_matrix_green_2", "black")
self.assertLightColor("l_chest_matrix_green_3", "black")
self.assertLightColor("l_chest_matrix_green_4", "black")
self.assertLightColor("l_chest_matrix_green_5", "black")
def test_counter_with_lights(self):
self.start_game()
self.post_event("start_mode2")
self.advance_time_and_run()
self.assertLightColor("led1", "white")
self.assertLightColor("led2", "black")
self.assertLightColor("led3", "black")
# nothing happens because it is disabled
self.post_event("counter_with_lights_count")
self.advance_time_and_run()
self.assertLightColor("led1", "white")
self.assertLightColor("led2", "black")
self.assertLightColor("led3", "black")
# advance
self.post_event("counter_with_lights_enable")
self.post_event("counter_with_lights_count")
self.advance_time_and_run()
self.assertLightColor("led1", "black")
self.assertLightColor("led2", "white")
self.assertLightColor("led3", "black")
# stop mode
self.post_event("stop_mode2")
self.advance_time_and_run()
# all off
self.assertLightColor("led1", "black")
self.assertLightColor("led2", "black")
self.assertLightColor("led3", "black")
# restart mode. should restore state
self.post_event("start_mode2")
self.advance_time_and_run()
self.assertLightColor("led1", "black")
self.assertLightColor("led2", "white")
self.assertLightColor("led3", "black")
# and complete
self.post_event("counter_with_lights_count")
self.advance_time_and_run()
self.assertLightColor("led1", "black")
self.assertLightColor("led2", "black")
self.assertLightColor("led3", "white")
def test_accrual_random_advance(self):
self.start_game()
self.mock_event("accrual1_complete1")
# should do nothing
self.post_event("accrual1_random_advance")
self.assertEqual([False, False, False], self.machine.accruals["accrual1"].value)
# enable accrual
self.post_event("accrual1_enable")
# complete one step
self.post_event("accrual1_step1a")
self.assertEqual([True, False, False], self.machine.accruals["accrual1"].value)
# should advance one of the remaining steps
self.post_event("accrual1_random_advance")
# exactly two steps should be hit
self.assertEqual(2, sum(self.machine.accruals["accrual1"].value))
self.assertEventNotCalled("accrual1_complete1")
# should complete the accrual
self.post_event("accrual1_random_advance")
self.assertEventCalled("accrual1_complete1")
def test_accruals_simple(self):
self.start_game()
self.mock_event("accrual1_complete1")
self.mock_event("accrual1_hit")
self.mock_event("accrual1_complete2")
# accrual should not yet work
self.post_event("accrual1_step1a")
self.post_event("accrual1_step2b")
self.post_event("accrual1_step3c")
self.assertEqual(0, self._events["accrual1_complete1"])
self.assertEqual(0, self._events["accrual1_complete2"])
# enable accrual
self.post_event("accrual1_enable")
# step2
self.post_event("accrual1_step2a")
self.assertEqual(0, self._events["accrual1_complete1"])
self.assertEqual(1, self._events["accrual1_hit"])
# step1
self.post_event("accrual1_step1c")
self.post_event("accrual1_step1b")
self.assertEqual(0, self._events["accrual1_complete1"])
self.assertEqual(2, self._events["accrual1_hit"])
# step 3
self.post_event("accrual1_step3c")
# accrual should fire
self.assertEqual(1, self._events["accrual1_complete1"])
self.assertEqual(1, self._events["accrual1_complete2"])
# should not work again
self.post_event("accrual1_step1a")
self.post_event("accrual1_step2a")
self.post_event("accrual1_step3a")
self.assertEqual(1, self._events["accrual1_complete1"])
self.assertEqual(1, self._events["accrual1_complete2"])
# reset but do not enable yet
self.post_event("accrual1_reset")
# nothing should happen
self.post_event("accrual1_step1a")
self.post_event("accrual1_step2a")
self.post_event("accrual1_step3a")
self.assertEqual(1, self._events["accrual1_complete1"])
self.assertEqual(1, self._events["accrual1_complete2"])
# enable for one step
self.post_event("accrual1_enable")
self.post_event("accrual1_step1a")
# disable for next
self.post_event("accrual1_disable")
self.post_event("accrual1_step2a")
# enable for third step
self.post_event("accrual1_enable")
self.post_event("accrual1_step3a")
# should not complete yet
self.assertEqual(1, self._events["accrual1_complete1"])
self.assertEqual(1, self._events["accrual1_complete2"])
self.post_event("accrual1_step2a")
# but now
self.assertEqual(2, self._events["accrual1_complete1"])
self.assertEqual(2, self._events["accrual1_complete2"])
def test_counter_simple_down(self):
self.start_game()
self.mock_event("logicblock_counter1_complete")
self.mock_event("logicblock_counter1_hit")
self.post_event("counter1_enable")
for i in range(4):
self.post_event("counter1_count")
self.assertEqual(0, self._events["logicblock_counter1_complete"])
# nothing should happen when disabled
self.post_event("counter1_disable")
for i in range(10):
self.post_event("counter1_count")
self.assertEqual(0, self._events["logicblock_counter1_complete"])
self.post_event("counter1_enable")
self.post_event("counter1_count")
self.assertEqual(1, self._events["logicblock_counter1_complete"])
self.assertEqual(5, self._events["logicblock_counter1_hit"])
# it should disable
self.post_event("counter1_count")
self.assertEqual(1, self._events["logicblock_counter1_complete"])
self.assertEqual(5, self._events["logicblock_counter1_hit"])
self.post_event("counter1_restart")
for i in range(4):
self.post_event("counter1_count")
# 4 more hits but not completed
self.assertEqual(1, self._events["logicblock_counter1_complete"])
self.assertEqual(9, self._events["logicblock_counter1_hit"])
# reset
self.post_event("counter1_reset")
for i in range(4):
self.post_event("counter1_count")
# another 4 hits still not complete
self.assertEqual(1, self._events["logicblock_counter1_complete"])
self.assertEqual(13, self._events["logicblock_counter1_hit"])
# and complete again
self.post_event("counter1_count")
self.assertEqual(2, self._events["logicblock_counter1_complete"])
self.assertEqual(14, self._events["logicblock_counter1_hit"])
def test_sequence_simple(self):
self.start_game()
self.mock_event("sequence1_complete")
self.mock_event("logicblock_sequence1_hit")
self.post_event("sequence1_enable")
# wrong order
self.post_event("sequence1_step3a")
self.post_event("sequence1_step2a")
self.post_event("sequence1_step1b")
self.assertEqual(0, self._events["sequence1_complete"])
self.assertEqual(1, self._events["logicblock_sequence1_hit"])
# still not
self.post_event("sequence1_step3b")
self.post_event("sequence1_step1a")
self.assertEqual(0, self._events["sequence1_complete"])
self.assertEqual(1, self._events["logicblock_sequence1_hit"])
# only 1 so far. now step2
self.post_event("sequence1_step2a")
self.assertEqual(0, self._events["sequence1_complete"])
self.assertEqual(2, self._events["logicblock_sequence1_hit"])
# and step 3
self.post_event("sequence1_step3b")
self.assertEqual(1, self._events["sequence1_complete"])
self.assertEqual(3, self._events["logicblock_sequence1_hit"])
# should be disabled
self.post_event("sequence1_step1a")
self.post_event("sequence1_step2a")
self.post_event("sequence1_step3a")
self.assertEqual(1, self._events["sequence1_complete"])
# enable and reset
self.post_event("sequence1_enable")
self.post_event("sequence1_reset")
# reset inbetween
self.post_event("sequence1_step1a")
self.post_event("sequence1_step2a")
self.post_event("sequence1_reset")
self.post_event("sequence1_step3a")
# nothing
self.assertEqual(1, self._events["sequence1_complete"])
# again
self.post_event("sequence1_step1a")
self.assertEqual(1, self._events["sequence1_complete"])
self.post_event("sequence1_step2a")
self.assertEqual(1, self._events["sequence1_complete"])
self.post_event("sequence1_step3a")
self.assertEqual(2, self._events["sequence1_complete"])
def test_counter_in_mode(self):
self.start_game()
self.mock_event("counter2_complete")
self.mock_event("counter2_hit")
for i in range(10):
self.post_event("counter2_count")
self.assertEqual(0, self._events["counter2_complete"])
self.post_event("start_mode1")
self.assertTrue("mode1" in self.machine.modes)
for i in range(2):
self.post_event("counter2_count")
self.assertEqual(i + 1, self._events["counter2_hit"])
self.assertEqual(0, self._events["counter2_complete"])
self.assertEventCalledWith("counter2_hit", count=i + 1, remaining=2 - i, hits=i+1)
self.post_event("counter2_count")
self.assertEqual(1, self._events["counter2_complete"])
self.assertEventCalledWith("counter2_hit", count=3, hits=3, remaining=0)
# should run again
for i in range(2):
self.post_event("counter2_count")
self.assertEqual(i + 4, self._events["counter2_hit"])
self.assertEqual(1, self._events["counter2_complete"])
self.post_event("counter2_count")
self.assertEqual(2, self._events["counter2_complete"])
# stop mode
self.post_event("stop_mode1")
# nothing should happen any more
for i in range(10):
self.post_event("counter2_count")
self.assertEqual(2, self._events["counter2_complete"])
self.assertEqual(6, self._events["counter2_hit"])
def test_counter_control_events(self):
'''
Tests the add, subtract, and set_value control events
for the Counter class.
'''
def reset_event_mocks():
# Reset mocks
self.mock_event("counter6_complete")
self.mock_event("counter6_hit")
self.mock_event("counter7_complete")
self.mock_event("counter7_hit")
self.mock_event("logicblock_counter6_updated")
self.mock_event("logicblock_counter7_updated")
self.start_game()
reset_event_mocks()
# Start mode with control events and counter6
self.post_event("start_mode4")
self.assertTrue("mode4" in self.machine.modes)
# Adds zero to the counter 10 times, counter should not reach completion
for i in range(10):
self.post_event("increase_counter6_0")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(0, self._events["counter6_complete"])
reset_event_mocks()
# Counts the counter once, and then adds 3 to it 3 times,
# The last adding of three should cause the counter to complete once
for i in range(0, 2):
self.post_event("increase_counter6_3")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(0, self._events["counter6_complete"])
reset_event_mocks()
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=7, hits=7, remaining=3)
self.post_event("increase_counter6_3")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(1, self._events["counter6_complete"])
# Test the adding of five to the counter
reset_event_mocks()
self.post_event("increase_counter6_5")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(0, self._events["counter6_complete"])
reset_event_mocks()
self.post_event("increase_counter6_5")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(1, self._events["counter6_complete"])
# Test subtraction
reset_event_mocks()
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=1, hits=1, remaining=9)
self.post_event("reduce_counter6_5")
self.assertEventCalled("logicblock_counter6_updated")
reset_event_mocks()
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=-3, hits=-3, remaining=13)
self.post_event("reduce_counter6_3")
self.assertEventCalled("logicblock_counter6_updated")
reset_event_mocks()
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=-5, hits=-5, remaining=15)
self.post_event("reduce_counter6_0")
self.assertEventCalled("logicblock_counter6_updated")
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=-4, hits=-4, remaining=14)
# Test Setting the Counter to a value
reset_event_mocks()
# Make sure that the counter holds a nonzero value
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=-3, hits=-3, remaining=13)
self.post_event("set_counter6_0")
self.assertEventCalled("logicblock_counter6_updated")
reset_event_mocks()
self.post_event("counter6_count")
self.assertEventCalledWith("counter6_hit", count=1, hits=1, remaining=9)
# Set the counter to a value above the completion value
self.assertEqual(0, self._events["counter6_complete"])
self.post_event("set_counter6_25")
self.assertEventCalled("logicblock_counter6_updated")
self.assertEqual(1, self._events["counter6_complete"])
# Test using counter with direction down
# Test increasing and reducing
reset_event_mocks()
self.post_event("counter7_count")
self.assertEventCalledWith("counter7_hit", count=4, hits=1, remaining=4)
self.post_event("increase_counter7_5")
self.assertEventCalled("logicblock_counter7_updated")
reset_event_mocks()
self.post_event("counter7_count")
self.assertEventCalledWith("counter7_hit", count=8, hits=-3, remaining=8)
self.post_event("reduce_counter7_5")
self.assertEventCalled("logicblock_counter7_updated")
reset_event_mocks()
self.post_event("counter7_count")
self.assertEventCalledWith("counter7_hit", count=2, hits=3, remaining=2)
self.assertEqual(0, self._events["counter7_complete"])
self.post_event("reduce_counter7_3")
self.assertEventCalled("logicblock_counter7_updated")
self.assertEqual(1, self._events["counter7_complete"])
# Test setting the value with direction down counter
reset_event_mocks()
self.assertEqual(0, self._events["counter7_complete"])
self.post_event("set_counter7_negative25")
self.assertEventCalled("logicblock_counter7_updated")
self.assertEqual(1, self._events["counter7_complete"])
self.post_event("set_counter7_0")
self.assertEqual(2, self._events["counter7_complete"])
reset_event_mocks()
self.post_event("set_counter7_3")
self.assertEventCalled("logicblock_counter7_updated")
self.post_event("counter7_count")
self.assertEventCalledWith("counter7_hit", count=2, hits=3, remaining=2)
reset_event_mocks()
self.assertPlaceholderEvaluates(2, "device.counters.counter7.value")
# nothing happens because machine.test2 is undefined
self.post_event("set_counter_placeholder")
self.assertEventNotCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(2, "device.counters.counter7.value")
self.machine.variables.set_machine_var("test2", 4)
self.post_event("set_counter_placeholder")
self.assertEventCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(4, "device.counters.counter7.value")
reset_event_mocks()
self.post_event("subtract_counter_placeholder")
self.assertEventNotCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(4, "device.counters.counter7.value")
reset_event_mocks()
self.machine.variables.set_machine_var("test3", 3)
self.post_event("subtract_counter_placeholder")
self.assertEventCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(1, "device.counters.counter7.value")
reset_event_mocks()
self.post_event("add_counter_placeholder")
self.assertEventNotCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(1, "device.counters.counter7.value")
reset_event_mocks()
self.machine.variables.set_machine_var("test4", 1)
self.post_event("add_counter_placeholder")
self.assertEventCalled("logicblock_counter7_updated")
self.assertPlaceholderEvaluates(2, "device.counters.counter7.value")
def test_logic_block_outside_game(self):
self.mock_event("logicblock_accrual2_complete")
# should work before game
self.post_event("accrual2_step1")
self.post_event("accrual2_step2")
self.assertEqual(1, self._events["logicblock_accrual2_complete"])
self.post_event("accrual2_restart")
self.start_game()
# should work during game
self.post_event("accrual2_step1")
self.post_event("accrual2_step2")
self.assertEqual(2, self._events["logicblock_accrual2_complete"])
self.post_event("accrual2_restart")
self.stop_game()
# should work after game
self.post_event("accrual2_step1")
self.post_event("accrual2_step2")
self.assertEqual(3, self._events["logicblock_accrual2_complete"])
def test_no_reset_on_complete(self):
self.mock_event("logicblock_accrual3_complete")
# start game
self.start_game()
# and enable
self.post_event("accrual3_enable")
# should work once
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(1, self._events["logicblock_accrual3_complete"])
# but not a second time because it disabled
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(1, self._events["logicblock_accrual3_complete"])
# enable again
self.post_event("accrual3_enable")
# still completed
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(1, self._events["logicblock_accrual3_complete"])
# should work after reset
self.post_event("accrual3_reset")
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(2, self._events["logicblock_accrual3_complete"])
# disabled again
self.post_event("accrual3_reset")
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(2, self._events["logicblock_accrual3_complete"])
# works after enable
self.post_event("accrual3_enable")
self.post_event("accrual3_step1")
self.post_event("accrual3_step2")
self.assertEqual(3, self._events["logicblock_accrual3_complete"])
def test_no_reset_and_no_disable_on_complete(self):
self.mock_event("logicblock_accrual4_complete")
# start game
self.start_game()
# and enable
self.post_event("accrual4_enable")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.enabled")
self.assertPlaceholderEvaluates(False, "device.accruals.accrual4.completed")
# should work once
self.post_event("accrual4_step1")
self.post_event("accrual4_step2")
self.assertEqual(1, self._events["logicblock_accrual4_complete"])
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.enabled")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.completed")
# enabled but still completed
self.post_event("accrual4_step1")
self.post_event("accrual4_step2")
self.assertEqual(1, self._events["logicblock_accrual4_complete"])
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.enabled")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.completed")
# should work after reset
self.post_event("accrual4_reset")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.enabled")
self.assertPlaceholderEvaluates(False, "device.accruals.accrual4.completed")
self.post_event("accrual4_step1")
self.post_event("accrual4_step2")
self.assertEqual(2, self._events["logicblock_accrual4_complete"])
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.enabled")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual4.completed")
def test_reset_and_no_disable_on_complete(self):
self.mock_event("logicblock_accrual10_complete")
# start game
self.start_game()
# and enable
self.post_event("accrual10_enable")
self.assertPlaceholderEvaluates(True, "device.accruals.accrual10.enabled")
self.assertPlaceholderEvaluates(False, "device.accruals.accrual10.completed")
# should work once
self.post_event("accrual10_step1")
self.post_event("accrual10_step2")
self.assertEqual(1, self._events["logicblock_accrual10_complete"])
# and instantly reset and work again
self.assertPlaceholderEvaluates(True, "device.accruals.accrual10.enabled")
self.assertPlaceholderEvaluates(False, "device.accruals.accrual10.completed")
self.post_event("accrual10_step1")
self.post_event("accrual10_step2")
self.assertEqual(2, self._events["logicblock_accrual10_complete"])
self.assertPlaceholderEvaluates(True, "device.accruals.accrual10.enabled")
self.assertPlaceholderEvaluates(False, "device.accruals.accrual10.completed")
def test_player_change(self):
self.mock_event("logicblock_accrual5_complete")
self.machine.config['game']['balls_per_game'] = self.machine.placeholder_manager.build_int_template(2)
self.start_two_player_game()
self.advance_time_and_run()
self.post_event("start_mode1")
self.advance_time_and_run(.1)
# should work during game - player1
self.assertEqual(1, self.machine.game.player.number)
self.post_event("accrual5_step1")
self.post_event("accrual5_step2")
self.assertEqual(1, self._events["logicblock_accrual5_complete"])
# player2
self.drain_all_balls()
self.assertPlayerNumber(2)
self.post_event("start_mode1")
self.advance_time_and_run(.1)
# not yet complete
self.post_event("accrual5_step1")
self.assertEqual(1, self._events["logicblock_accrual5_complete"])
# player1 again
self.drain_all_balls()
self.assertPlayerNumber(1)
self.post_event("start_mode1")
self.advance_time_and_run(.1)
# nothing should happen because its disabled and completed for player1
self.post_event("accrual5_step1")
self.post_event("accrual5_step2")
self.assertEqual(1, self._events["logicblock_accrual5_complete"])
# player2 again
self.drain_all_balls()
self.assertPlayerNumber(2)
self.post_event("start_mode1")
self.advance_time_and_run(.1)
# complete it
self.post_event("accrual5_step2")
self.assertEqual(2, self._events["logicblock_accrual5_complete"])
self.post_event("stop_mode1")
self.stop_game()
# does not work after game
self.post_event("accrual5_step1")
self.post_event("accrual5_step2")
self.assertEqual(2, self._events["logicblock_accrual5_complete"])
def test_counter_hit_window(self):
self.start_game()
self.mock_event("logicblock_counter3_complete")
self.mock_event("counter_counter3_hit")
self.post_event("counter3_enable")
for i in range(10):
self.post_event("counter3_count")
self.assertEqual(0, self._events["logicblock_counter3_complete"])
# inside same window. only one hit
self.assertEqual(1, self._events["counter_counter3_hit"])
self.assertEqual(0, self._events["logicblock_counter3_complete"])
self.advance_time_and_run(1)
for i in range(3):
self.post_event("counter3_count")
self.assertEqual(0, self._events["logicblock_counter3_complete"])
self.assertEqual(2 + i, self._events["counter_counter3_hit"])
self.advance_time_and_run(1)
# it should complete
self.post_event("counter3_count")
self.assertEqual(1, self._events["logicblock_counter3_complete"])
self.assertEqual(5, self._events["counter_counter3_hit"])
def test_counter_template(self):
self.start_game()
self.mock_event("logicblock_counter4_complete")
self.mock_event("counter_counter4_hit")
self.machine.game.player.hits = 2
self.post_event("counter4_enable")
for i in range(2):
self.assertEqual(0, self._events["logicblock_counter4_complete"])
self.post_event("counter4_count")
self.assertEqual(2, self._events["counter_counter4_hit"])
self.assertEqual(1, self._events["logicblock_counter4_complete"])
self.advance_time_and_run(1)
self.machine.variables.set_machine_var("start", 1)
self.machine.game.player.hits = 5
self.mock_event("logicblock_counter4_complete")
self.mock_event("counter_counter4_hit")
self.post_event("counter4_reset")
self.post_event("counter4_enable")
for i in range(4):
self.assertEqual(0, self._events["logicblock_counter4_complete"])
self.post_event("counter4_count")
# inside same window. only one hit
self.assertEqual(4, self._events["counter_counter4_hit"])
self.assertEqual(1, self._events["logicblock_counter4_complete"])
self.advance_time_and_run(1)
def test_counter_persist(self):
self.mock_event("logicblock_counter_persist_complete")
self.mock_event("counter_counter_persist_hit")
self.start_two_player_game()
self.post_event("start_mode1")
self.assertTrue("mode1" in self.machine.modes)
self.post_event("counter_persist_enable")
for i in range(3):
self.post_event("counter_persist_count")
self.assertEqual(i + 1, self._events["counter_counter_persist_hit"])
self.assertEqual(0, self._events["logicblock_counter_persist_complete"])
self.drain_all_balls()
self.assertPlayerNumber(2)
for i in range(10):
self.post_event("counter_persist_count")
self.drain_all_balls()
self.assertPlayerNumber(1)
self.post_event("start_mode1")
self.post_event("counter_persist_enable")
self.assertEqual(0, self._events["logicblock_counter_persist_complete"])
for i in range(2):
self.post_event("counter_persist_count")
self.assertEqual(i + 4, self._events["counter_counter_persist_hit"])
self.assertEqual(1, self._events["logicblock_counter_persist_complete"])
def test_count_without_end(self):
self.start_game()
self.post_event("counter5_count")
self.post_event("counter5_count")
self.post_event("counter5_count")
self.assertEqual(3, self.machine.counters["counter5"].value)
def test_counter_delay_timeout(self):
self.start_game()
self.mock_event("logicblock_counter9_complete")
self.mock_event("logicblock_counter9_hit")
self.post_event("counter9_enable")
for i in range(4):
self.post_event("counter9_count")
self.advance_time_and_run(.01)
self.assertEqual(0, self._events["logicblock_counter9_complete"])
# post final event to complete
self.post_event("counter9_count")
self.assertEqual(1, self._events["logicblock_counter9_complete"])
self.assertEqual(5, self._events["logicblock_counter9_hit"])
#restart (reset and enable)
self.post_event("counter9_restart")
# 10 more hits with delay causing timeout
for i in range(10):
self.post_event("counter9_count")
self.advance_time_and_run(1)
self.assertEqual(1, self._events["logicblock_counter9_complete"])
self.assertEqual(15, self._events["logicblock_counter9_hit"])
def test_sequence_delay_timeout(self):
self.start_game()
self.mock_event("sequence2_complete")
self.mock_event("logicblock_sequence2_hit")
self.post_event("sequence2_enable")
# no timer reset
self.post_event("sequence2_step1a")
self.post_event("sequence2_step2a")
self.post_event("sequence2_step3a")
self.assertEqual(1, self._events["sequence2_complete"])
self.assertEqual(3, self._events["logicblock_sequence2_hit"])
# enable and reset
self.post_event("sequence2_enable")
self.post_event("sequence2_reset")
# timer expired
self.post_event("sequence2_step1a")
self.assertEqual(4, self._events["logicblock_sequence2_hit"])
self.advance_time_and_run(1)
self.post_event("sequence2_step2a")
self.post_event("sequence2_step3a")
self.assertEqual(1, self._events["sequence2_complete"])
self.assertEqual(4, self._events["logicblock_sequence2_hit"])
#time expired and restart
self.post_event("sequence2_step1a")
self.advance_time_and_run(.1)
self.post_event("sequence2_step1a")
self.post_event("sequence2_step2a")
self.advance_time_and_run(.01)
self.post_event("sequence2_step3a")
self.assertEqual(2, self._events["sequence2_complete"])
self.assertEqual(8, self._events["logicblock_sequence2_hit"])
def test_accruals_delay_timeout(self):
self.start_game()
self.mock_event("accrual7_complete")
self.mock_event("accrual7_hit")
# enable accrual
self.post_event("accrual7_enable")
# no timer reset
self.post_event("accrual7_step1")
self.post_event("accrual7_step2")
self.post_event("accrual7_step3")
self.assertEqual(1, self._events["accrual7_complete"])
self.assertEqual(3, self._events["accrual7_hit"])
# time advance after each step but under timeout
self.post_event("accrual7_step1")
self.advance_time_and_run(.01)
self.post_event("accrual7_step2")
self.advance_time_and_run(.01)
self.post_event("accrual7_step3")
self.assertEqual(2, self._events["accrual7_complete"])
self.assertEqual(6, self._events["accrual7_hit"])
# timer advance after each step over timeout
self.post_event("accrual7_step1")
self.advance_time_and_run(1)
self.post_event("accrual7_step2")
self.advance_time_and_run(1)
self.post_event("accrual7_step3")
self.assertEqual(2, self._events["accrual7_complete"])
self.assertEqual(9, self._events["accrual7_hit"])
#final two steps without additional time passed
self.post_event("accrual7_step1")
self.post_event("accrual7_step2")
self.assertEqual(3, self._events["accrual7_complete"])
self.assertEqual(11, self._events["accrual7_hit"])
| 39.993326
| 110
| 0.678951
| 4,137
| 35,954
| 5.585207
| 0.06599
| 0.074786
| 0.121527
| 0.041548
| 0.831213
| 0.768372
| 0.710638
| 0.63754
| 0.597724
| 0.54224
| 0
| 0.0308
| 0.213467
| 35,954
| 899
| 111
| 39.993326
| 0.786273
| 0.073038
| 0
| 0.732484
| 0
| 0
| 0.278737
| 0.132273
| 0
| 0
| 0
| 0
| 0.374204
| 1
| 0.038217
| false
| 0
| 0.003185
| 0.003185
| 0.046178
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b901fdc52edb362051072d5e01fc1c4f252b5651
| 23
|
py
|
Python
|
__version__.py
|
mneedham/lusid-python-tools
|
0fd748fe3d1e303943632dc41721f9b440eaad94
|
[
"MIT"
] | null | null | null |
__version__.py
|
mneedham/lusid-python-tools
|
0fd748fe3d1e303943632dc41721f9b440eaad94
|
[
"MIT"
] | null | null | null |
__version__.py
|
mneedham/lusid-python-tools
|
0fd748fe3d1e303943632dc41721f9b440eaad94
|
[
"MIT"
] | null | null | null |
__version__ = "0.3.56"
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d3876053825e3e1acfbc4c9dbfadb5d3b1d42ea
| 263
|
py
|
Python
|
filish_storage/utils.py
|
oceean/FilishStorage
|
be3e68af164b2dc8ff8b8798fe8790b569f0dd5f
|
[
"MIT"
] | null | null | null |
filish_storage/utils.py
|
oceean/FilishStorage
|
be3e68af164b2dc8ff8b8798fe8790b569f0dd5f
|
[
"MIT"
] | null | null | null |
filish_storage/utils.py
|
oceean/FilishStorage
|
be3e68af164b2dc8ff8b8798fe8790b569f0dd5f
|
[
"MIT"
] | null | null | null |
import os as _os
# TODO actions for optimize work in Storage class
def find_abs_path(path:str) -> str:
return _os.path.abspath(path)
def rename(abs_path:str, new_name:str) -> None:
pass
def move_file(abs_path:str, new_abs_path:str) -> None:
pass
| 18.785714
| 54
| 0.714829
| 46
| 263
| 3.869565
| 0.543478
| 0.157303
| 0.168539
| 0.146067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18251
| 263
| 14
| 55
| 18.785714
| 0.827907
| 0.178707
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0
| 1
| 0.428571
| false
| 0.285714
| 0.142857
| 0.142857
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
5d45fe6bb1a020b856732cfa6fcbe3d78422b21a
| 4,439
|
py
|
Python
|
Day2.py
|
snyderks/advent-solutions
|
191d525b006dfce590b2e4538ee685080ce2283e
|
[
"MIT"
] | null | null | null |
Day2.py
|
snyderks/advent-solutions
|
191d525b006dfce590b2e4538ee685080ce2283e
|
[
"MIT"
] | null | null | null |
Day2.py
|
snyderks/advent-solutions
|
191d525b006dfce590b2e4538ee685080ce2283e
|
[
"MIT"
] | null | null | null |
# Day 2: http://adventofcode.com/2016/day/2
# Problem:
# Given the following directions (on lines), start at the number 5 on a normal
# 9-key pad and move, when possible, one space in the desired direction until
# the line ends. That is the number for that line. For the next line, start
# at the previous line's endpoint.
# pylint: disable-msg=C0103
# pylint: disable-msg=C0301
# Source directions
directions = """RDLULDLDDRLLLRLRULDRLDDRRRRURLRLDLULDLDLDRULDDLLDRDRUDLLDDRDULLLULLDULRRLDURULDRUULLLUUDURURRDDLDLDRRDDLRURLLDRRRDULDRULURURURURLLRRLUDULDRULLDURRRLLDURDRRUUURDRLLDRURULRUDULRRRRRDLRLLDRRRDLDUUDDDUDLDRUURRLLUDUDDRRLRRDRUUDUUULDUUDLRDLDLLDLLLLRRURDLDUURRLLDLDLLRLLRULDDRLDLUDLDDLRDRRDLULRLLLRUDDURLDLLULRDUUDRRLDUDUDLUURDURRDDLLDRRRLUDULDULDDLLULDDDRRLLDURURURUUURRURRUUDUUURULDLRULRURDLDRDDULDDULLURDDUDDRDRRULRUURRDDRLLUURDRDDRUDLUUDURRRLLRR
RDRRLURDDDDLDUDLDRURRLDLLLDDLURLLRULLULUUURLDURURULDLURRLRULDDUULULLLRLLRDRRUUDLUUDDUDDDRDURLUDDRULRULDDDLULRDDURRUURLRRLRULLURRDURRRURLDULULURULRRLRLUURRRUDDLURRDDUUDRDLLDRLRURUDLDLLLLDLRURDLLRDDUDDLDLDRRDLRDRDLRRRRUDUUDDRDLULUDLUURLDUDRRRRRLUUUDRRDLULLRRLRLDDDLLDLLRDDUUUUDDULUDDDUULDDUUDURRDLURLLRUUUUDUDRLDDDURDRLDRLRDRULRRDDDRDRRRLRDULUUULDLDDDUURRURLDLDLLDLUDDLDLRUDRLRLDURUDDURLDRDDLLDDLDRURRULLURULUUUUDLRLUUUDLDRUDURLRULLRLLUUULURLLLDULLUDLLRULRRLURRRRLRDRRLLULLLDURDLLDLUDLDUDURLURDLUURRRLRLLDRLDLDRLRUUUDRLRUDUUUR
LLLLULRDUUDUUDRDUUURDLLRRLUDDDRLDUUDDURLDUDULDRRRDDLLLRDDUDDLLLRRLURDULRUUDDRRDLRLRUUULDDULDUUUDDLLDDDDDURLDRLDDDDRRDURRDRRRUUDUUDRLRRRUURUDURLRLDURDDDUDDUDDDUUDRUDULDDRDLULRURDUUDLRRDDRRDLRDLRDLULRLLRLRLDLRULDDDDRLDUURLUUDLLRRLLLUUULURUUDULRRRULURUURLDLLRURUUDUDLLUDLDRLLRRUUDDRLUDUDRDDRRDDDURDRUDLLDLUUDRURDLLULLLLUDLRRRUULLRRDDUDDDUDDRDRRULURRUUDLUDLDRLLLLDLUULLULLDDUDLULRDRLDRDLUDUDRRRRLRDLLLDURLULUDDRURRDRUDLLDRURRUUDDDRDUUULDURRULDLLDLDLRDUDURRRRDLDRRLUDURLUDRRLUDDLLDUULLDURRLRDRLURURLUUURRLUDRRLLULUULUDRUDRDLUL
LRUULRRUDUDDLRRDURRUURDURURLULRDUUDUDLDRRULURUDURURDRLDDLRUURLLRDLURRULRRRUDULRRULDLUULDULLULLDUDLLUUULDLRDRRLUURURLLUUUDDLLURDUDURULRDLDUULDDRULLUUUURDDRUURDDDRUUUDRUULDLLULDLURLRRLRULRLDLDURLRLDLRRRUURLUUDULLLRRURRRLRULLRLUUDULDULRDDRDRRURDDRRLULRDURDDDDDLLRRDLLUUURUULUDLLDDULDUDUUDDRURDDURDDRLURUDRDRRULLLURLUULRLUDUDDUUULDRRRRDLRLDLLDRRDUDUUURLRURDDDRURRUDRUURUUDLRDDDLUDLRUURULRRLDDULRULDRLRLLDRLURRUUDRRRLRDDRLDDLLURLLUDL
ULURLRDLRUDLLDUDDRUUULULUDDDDDRRDRULUDRRUDLRRRLUDLRUULRDDRRLRUDLUDULRULLUURLLRLLLLDRDUURDUUULLRULUUUDRDRDRUULURDULDLRRULUURURDULULDRRURDLRUDLULULULUDLLUURULDLLLRDUDDRRLULUDDRLLLRURDDLDLRLLLRDLDRRUUULRLRDDDDRUDRUULDDRRULLDRRLDDRRUDRLLDUDRRUDDRDLRUDDRDDDRLLRDUULRDRLDUDRLDDLLDDDUUDDRULLDLLDRDRRUDDUUURLLUURDLULUDRUUUDURURLRRDULLDRDDRLRDULRDRURRUDLDDRRRLUDRLRRRRLLDDLLRLDUDUDDRRRUULDRURDLLDLUULDLDLDUUDDULUDUDRRDRLDRDURDUULDURDRRDRRLLRLDLU"""
lines = directions.split("\n")
numbers = []
lastNumber = [1, 1]
pad = (("1", "2", "3"), ("4", "5", "6"), ("7", "8", "9"))
for line in lines:
for direction in line:
if "R" in direction and lastNumber[1] < 2:
lastNumber[1] += 1
if "L" in direction and lastNumber[1] > 0:
lastNumber[1] -= 1
if "U" in direction and lastNumber[0] > 0:
lastNumber[0] -= 1
if "D" in direction and lastNumber[0] < 2:
lastNumber[0] += 1
numbers.append(pad[lastNumber[0]][lastNumber[1]])
print("".join(numbers))
# With a pad that looks like the one below (empty strings are buttons that can't be hit),
# what is the code with the same instructions as before?
numbers = []
lastNumber = [2,0]
newPad = (("", "", "1", "", ""),
("", "2", "3", "4", ""),
("5", "6", "7", "8", "9"),
("", "A", "B", "C", ""),
("", "", "D", "", ""))
for line in lines:
for direction in line:
# adding checks to make sure the spot to move to isn't empty
if "R" in direction and lastNumber[1] < 4 and len(newPad[lastNumber[0]][lastNumber[1]+1]) > 0:
lastNumber[1] += 1
if "L" in direction and lastNumber[1] > 0 and len(newPad[lastNumber[0]][lastNumber[1]-1]) > 0:
lastNumber[1] -= 1
if "U" in direction and lastNumber[0] > 0 and len(newPad[lastNumber[0]-1][lastNumber[1]]) > 0:
lastNumber[0] -= 1
if "D" in direction and lastNumber[0] < 4 and len(newPad[lastNumber[0]+1][lastNumber[1]]) > 0:
lastNumber[0] += 1
numbers.append(newPad[lastNumber[0]][lastNumber[1]])
print("".join(numbers))
| 75.237288
| 524
| 0.800405
| 311
| 4,439
| 11.424437
| 0.321543
| 0.04644
| 0.031523
| 0.054039
| 0.185759
| 0.173375
| 0.172812
| 0.13566
| 0.117647
| 0.112581
| 0
| 0.022989
| 0.118045
| 4,439
| 59
| 525
| 75.237288
| 0.884547
| 0.131111
| 0
| 0.4
| 0
| 0
| 0.620806
| 0.611443
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.05
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d48e5f619f12adc897547a179068da1cb9dc0c2
| 40,230
|
py
|
Python
|
benchmarks/Python/json.py
|
OvermindDL1/are-we-fast-yet
|
78b0560c7c3b7a90b22b90c4cb27660e56478d30
|
[
"BSD-3-Clause"
] | null | null | null |
benchmarks/Python/json.py
|
OvermindDL1/are-we-fast-yet
|
78b0560c7c3b7a90b22b90c4cb27660e56478d30
|
[
"BSD-3-Clause"
] | null | null | null |
benchmarks/Python/json.py
|
OvermindDL1/are-we-fast-yet
|
78b0560c7c3b7a90b22b90c4cb27660e56478d30
|
[
"BSD-3-Clause"
] | null | null | null |
# This code is derived from the SOM benchmarks, see AUTHORS.md file.
# This benchmark is based on the minimal-json Java library maintained at:
# https://github.com/ralfstx/minimal-json
#
# Copyright (c) 2015-2021 Stefan Marr <gitself._stefan-marr.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from benchmark import Benchmark
from som.vector import Vector
_RAP_BENCHMARK_MINIFIED = '{"head":{"requestCounter":4},"operations":[["destroy","w54"],["set","w2",{"activeControl":"w99"}],["set","w21",{"customVariant":"variant_navigation"}],["set","w28",{"customVariant":"variant_selected"}],["set","w53",{"children":["w95"]}],["create","w95","rwt.widgets.Composite",{"parent":"w53","style":["NONE"],"bounds":[0,0,1008,586],"children":["w96","w97"],"tabIndex":-1,"clientArea":[0,0,1008,586]}],["create","w96","rwt.widgets.Label",{"parent":"w95","style":["NONE"],"bounds":[10,30,112,26],"tabIndex":-1,"customVariant":"variant_pageHeadline","text":"TableViewer"}],["create","w97","rwt.widgets.Composite",{"parent":"w95","style":["NONE"],"bounds":[0,61,1008,525],"children":["w98","w99","w226","w228"],"tabIndex":-1,"clientArea":[0,0,1008,525]}],["create","w98","rwt.widgets.Text",{"parent":"w97","style":["LEFT","SINGLE","BORDER"],"bounds":[10,10,988,32],"tabIndex":22,"activeKeys":["#13","#27","#40"]}],["listen","w98",{"KeyDown":true,"Modify":true}],["create","w99","rwt.widgets.Grid",{"parent":"w97","style":["SINGLE","BORDER"],"appearance":"table","indentionWidth":0,"treeColumn":-1,"markupEnabled":false}],["create","w100","rwt.widgets.ScrollBar",{"parent":"w99","style":["HORIZONTAL"]}],["create","w101","rwt.widgets.ScrollBar",{"parent":"w99","style":["VERTICAL"]}],["set","w99",{"bounds":[10,52,988,402],"children":[],"tabIndex":23,"activeKeys":["CTRL+#70","CTRL+#78","CTRL+#82","CTRL+#89","CTRL+#83","CTRL+#71","CTRL+#69"],"cancelKeys":["CTRL+#70","CTRL+#78","CTRL+#82","CTRL+#89","CTRL+#83","CTRL+#71","CTRL+#69"]}],["listen","w99",{"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true,"KeyDown":true}],["set","w99",{"itemCount":118,"itemHeight":28,"itemMetrics":[[0,0,50,3,0,3,44],[1,50,50,53,0,53,44],[2,100,140,103,0,103,134],[3,240,180,243,0,243,174],[4,420,50,423,0,423,44],[5,470,50,473,0,473,44]],"columnCount":6,"headerHeight":35,"headerVisible":true,"linesVisible":true,"focusItem":"w108","selection":["w108"]}],["listen","w99",{"Selection":true,"DefaultSelection":true}],["set","w99",{"enableCellToolTip":true}],["listen","w100",{"Selection":true}],["set","w101",{"visibility":true}],["listen","w101",{"Selection":true}],["create","w102","rwt.widgets.GridColumn",{"parent":"w99","text":"Nr.","width":50,"moveable":true}],["listen","w102",{"Selection":true}],["create","w103","rwt.widgets.GridColumn",{"parent":"w99","text":"Sym.","index":1,"left":50,"width":50,"moveable":true}],["listen","w103",{"Selection":true}],["create","w104","rwt.widgets.GridColumn",{"parent":"w99","text":"Name","index":2,"left":100,"width":140,"moveable":true}],["listen","w104",{"Selection":true}],["create","w105","rwt.widgets.GridColumn",{"parent":"w99","text":"Series","index":3,"left":240,"width":180,"moveable":true}],["listen","w105",{"Selection":true}],["create","w106","rwt.widgets.GridColumn",{"parent":"w99","text":"Group","index":4,"left":420,"width":50,"moveable":true}],["listen","w106",{"Selection":true}],["create","w107","rwt.widgets.GridColumn",{"parent":"w99","text":"Period","index":5,"left":470,"width":50,"moveable":true}],["listen","w107",{"Selection":true}],["create","w108","rwt.widgets.GridItem",{"parent":"w99","index":0,"texts":["1","H","Hydrogen","Nonmetal","1","1"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w109","rwt.widgets.GridItem",{"parent":"w99","index":1,"texts":["2","He","Helium","Noble gas","18","1"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w110","rwt.widgets.GridItem",{"parent":"w99","index":2,"texts":["3","Li","Lithium","Alkali metal","1","2"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w111","rwt.widgets.GridItem",{"parent":"w99","index":3,"texts":["4","Be","Beryllium","Alkaline earth metal","2","2"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w112","rwt.widgets.GridItem",{"parent":"w99","index":4,"texts":["5","B","Boron","Metalloid","13","2"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w113","rwt.widgets.GridItem",{"parent":"w99","index":5,"texts":["6","C","Carbon","Nonmetal","14","2"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w114","rwt.widgets.GridItem",{"parent":"w99","index":6,"texts":["7","N","Nitrogen","Nonmetal","15","2"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w115","rwt.widgets.GridItem",{"parent":"w99","index":7,"texts":["8","O","Oxygen","Nonmetal","16","2"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w116","rwt.widgets.GridItem",{"parent":"w99","index":8,"texts":["9","F","Fluorine","Halogen","17","2"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w117","rwt.widgets.GridItem",{"parent":"w99","index":9,"texts":["10","Ne","Neon","Noble gas","18","2"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w118","rwt.widgets.GridItem",{"parent":"w99","index":10,"texts":["11","Na","Sodium","Alkali metal","1","3"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w119","rwt.widgets.GridItem",{"parent":"w99","index":11,"texts":["12","Mg","Magnesium","Alkaline earth metal","2","3"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w120","rwt.widgets.GridItem",{"parent":"w99","index":12,"texts":["13","Al","Aluminium","Poor metal","13","3"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w121","rwt.widgets.GridItem",{"parent":"w99","index":13,"texts":["14","Si","Silicon","Metalloid","14","3"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w122","rwt.widgets.GridItem",{"parent":"w99","index":14,"texts":["15","P","Phosphorus","Nonmetal","15","3"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w123","rwt.widgets.GridItem",{"parent":"w99","index":15,"texts":["16","S","Sulfur","Nonmetal","16","3"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w124","rwt.widgets.GridItem",{"parent":"w99","index":16,"texts":["17","Cl","Chlorine","Halogen","17","3"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w125","rwt.widgets.GridItem",{"parent":"w99","index":17,"texts":["18","Ar","Argon","Noble gas","18","3"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w126","rwt.widgets.GridItem",{"parent":"w99","index":18,"texts":["19","K","Potassium","Alkali metal","1","4"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w127","rwt.widgets.GridItem",{"parent":"w99","index":19,"texts":["20","Ca","Calcium","Alkaline earth metal","2","4"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w128","rwt.widgets.GridItem",{"parent":"w99","index":20,"texts":["21","Sc","Scandium","Transition metal","3","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w129","rwt.widgets.GridItem",{"parent":"w99","index":21,"texts":["22","Ti","Titanium","Transition metal","4","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w130","rwt.widgets.GridItem",{"parent":"w99","index":22,"texts":["23","V","Vanadium","Transition metal","5","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w131","rwt.widgets.GridItem",{"parent":"w99","index":23,"texts":["24","Cr","Chromium","Transition metal","6","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w132","rwt.widgets.GridItem",{"parent":"w99","index":24,"texts":["25","Mn","Manganese","Transition metal","7","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w133","rwt.widgets.GridItem",{"parent":"w99","index":25,"texts":["26","Fe","Iron","Transition metal","8","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w134","rwt.widgets.GridItem",{"parent":"w99","index":26,"texts":["27","Co","Cobalt","Transition metal","9","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w135","rwt.widgets.GridItem",{"parent":"w99","index":27,"texts":["28","Ni","Nickel","Transition metal","10","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w136","rwt.widgets.GridItem",{"parent":"w99","index":28,"texts":["29","Cu","Copper","Transition metal","11","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w137","rwt.widgets.GridItem",{"parent":"w99","index":29,"texts":["30","Zn","Zinc","Transition metal","12","4"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w138","rwt.widgets.GridItem",{"parent":"w99","index":30,"texts":["31","Ga","Gallium","Poor metal","13","4"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w139","rwt.widgets.GridItem",{"parent":"w99","index":31,"texts":["32","Ge","Germanium","Metalloid","14","4"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w140","rwt.widgets.GridItem",{"parent":"w99","index":32,"texts":["33","As","Arsenic","Metalloid","15","4"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w141","rwt.widgets.GridItem",{"parent":"w99","index":33,"texts":["34","Se","Selenium","Nonmetal","16","4"],"cellBackgrounds":[null,null,null,[138,226,52,255],null,null]}],["create","w142","rwt.widgets.GridItem",{"parent":"w99","index":34,"texts":["35","Br","Bromine","Halogen","17","4"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w143","rwt.widgets.GridItem",{"parent":"w99","index":35,"texts":["36","Kr","Krypton","Noble gas","18","4"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w144","rwt.widgets.GridItem",{"parent":"w99","index":36,"texts":["37","Rb","Rubidium","Alkali metal","1","5"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w145","rwt.widgets.GridItem",{"parent":"w99","index":37,"texts":["38","Sr","Strontium","Alkaline earth metal","2","5"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w146","rwt.widgets.GridItem",{"parent":"w99","index":38,"texts":["39","Y","Yttrium","Transition metal","3","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w147","rwt.widgets.GridItem",{"parent":"w99","index":39,"texts":["40","Zr","Zirconium","Transition metal","4","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w148","rwt.widgets.GridItem",{"parent":"w99","index":40,"texts":["41","Nb","Niobium","Transition metal","5","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w149","rwt.widgets.GridItem",{"parent":"w99","index":41,"texts":["42","Mo","Molybdenum","Transition metal","6","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w150","rwt.widgets.GridItem",{"parent":"w99","index":42,"texts":["43","Tc","Technetium","Transition metal","7","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w151","rwt.widgets.GridItem",{"parent":"w99","index":43,"texts":["44","Ru","Ruthenium","Transition metal","8","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w152","rwt.widgets.GridItem",{"parent":"w99","index":44,"texts":["45","Rh","Rhodium","Transition metal","9","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w153","rwt.widgets.GridItem",{"parent":"w99","index":45,"texts":["46","Pd","Palladium","Transition metal","10","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w154","rwt.widgets.GridItem",{"parent":"w99","index":46,"texts":["47","Ag","Silver","Transition metal","11","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w155","rwt.widgets.GridItem",{"parent":"w99","index":47,"texts":["48","Cd","Cadmium","Transition metal","12","5"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w156","rwt.widgets.GridItem",{"parent":"w99","index":48,"texts":["49","In","Indium","Poor metal","13","5"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w157","rwt.widgets.GridItem",{"parent":"w99","index":49,"texts":["50","Sn","Tin","Poor metal","14","5"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w158","rwt.widgets.GridItem",{"parent":"w99","index":50,"texts":["51","Sb","Antimony","Metalloid","15","5"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w159","rwt.widgets.GridItem",{"parent":"w99","index":51,"texts":["52","Te","Tellurium","Metalloid","16","5"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w160","rwt.widgets.GridItem",{"parent":"w99","index":52,"texts":["53","I","Iodine","Halogen","17","5"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w161","rwt.widgets.GridItem",{"parent":"w99","index":53,"texts":["54","Xe","Xenon","Noble gas","18","5"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w162","rwt.widgets.GridItem",{"parent":"w99","index":54,"texts":["55","Cs","Caesium","Alkali metal","1","6"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w163","rwt.widgets.GridItem",{"parent":"w99","index":55,"texts":["56","Ba","Barium","Alkaline earth metal","2","6"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w164","rwt.widgets.GridItem",{"parent":"w99","index":56,"texts":["57","La","Lanthanum","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w165","rwt.widgets.GridItem",{"parent":"w99","index":57,"texts":["58","Ce","Cerium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w166","rwt.widgets.GridItem",{"parent":"w99","index":58,"texts":["59","Pr","Praseodymium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w167","rwt.widgets.GridItem",{"parent":"w99","index":59,"texts":["60","Nd","Neodymium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w168","rwt.widgets.GridItem",{"parent":"w99","index":60,"texts":["61","Pm","Promethium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w169","rwt.widgets.GridItem",{"parent":"w99","index":61,"texts":["62","Sm","Samarium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w170","rwt.widgets.GridItem",{"parent":"w99","index":62,"texts":["63","Eu","Europium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w171","rwt.widgets.GridItem",{"parent":"w99","index":63,"texts":["64","Gd","Gadolinium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w172","rwt.widgets.GridItem",{"parent":"w99","index":64,"texts":["65","Tb","Terbium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w173","rwt.widgets.GridItem",{"parent":"w99","index":65,"texts":["66","Dy","Dysprosium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w174","rwt.widgets.GridItem",{"parent":"w99","index":66,"texts":["67","Ho","Holmium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w175","rwt.widgets.GridItem",{"parent":"w99","index":67,"texts":["68","Er","Erbium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w176","rwt.widgets.GridItem",{"parent":"w99","index":68,"texts":["69","Tm","Thulium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w177","rwt.widgets.GridItem",{"parent":"w99","index":69,"texts":["70","Yb","Ytterbium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w178","rwt.widgets.GridItem",{"parent":"w99","index":70,"texts":["71","Lu","Lutetium","Lanthanide","3","6"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w179","rwt.widgets.GridItem",{"parent":"w99","index":71,"texts":["72","Hf","Hafnium","Transition metal","4","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w180","rwt.widgets.GridItem",{"parent":"w99","index":72,"texts":["73","Ta","Tantalum","Transition metal","5","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w181","rwt.widgets.GridItem",{"parent":"w99","index":73,"texts":["74","W","Tungsten","Transition metal","6","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w182","rwt.widgets.GridItem",{"parent":"w99","index":74,"texts":["75","Re","Rhenium","Transition metal","7","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w183","rwt.widgets.GridItem",{"parent":"w99","index":75,"texts":["76","Os","Osmium","Transition metal","8","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w184","rwt.widgets.GridItem",{"parent":"w99","index":76,"texts":["77","Ir","Iridium","Transition metal","9","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w185","rwt.widgets.GridItem",{"parent":"w99","index":77,"texts":["78","Pt","Platinum","Transition metal","10","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w186","rwt.widgets.GridItem",{"parent":"w99","index":78,"texts":["79","Au","Gold","Transition metal","11","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w187","rwt.widgets.GridItem",{"parent":"w99","index":79,"texts":["80","Hg","Mercury","Transition metal","12","6"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w188","rwt.widgets.GridItem",{"parent":"w99","index":80,"texts":["81","Tl","Thallium","Poor metal","13","6"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w189","rwt.widgets.GridItem",{"parent":"w99","index":81,"texts":["82","Pb","Lead","Poor metal","14","6"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w190","rwt.widgets.GridItem",{"parent":"w99","index":82,"texts":["83","Bi","Bismuth","Poor metal","15","6"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w191","rwt.widgets.GridItem",{"parent":"w99","index":83,"texts":["84","Po","Polonium","Metalloid","16","6"],"cellBackgrounds":[null,null,null,[156,159,153,255],null,null]}],["create","w192","rwt.widgets.GridItem",{"parent":"w99","index":84,"texts":["85","At","Astatine","Halogen","17","6"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w193","rwt.widgets.GridItem",{"parent":"w99","index":85,"texts":["86","Rn","Radon","Noble gas","18","6"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w194","rwt.widgets.GridItem",{"parent":"w99","index":86,"texts":["87","Fr","Francium","Alkali metal","1","7"],"cellBackgrounds":[null,null,null,[239,41,41,255],null,null]}],["create","w195","rwt.widgets.GridItem",{"parent":"w99","index":87,"texts":["88","Ra","Radium","Alkaline earth metal","2","7"],"cellBackgrounds":[null,null,null,[233,185,110,255],null,null]}],["create","w196","rwt.widgets.GridItem",{"parent":"w99","index":88,"texts":["89","Ac","Actinium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w197","rwt.widgets.GridItem",{"parent":"w99","index":89,"texts":["90","Th","Thorium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w198","rwt.widgets.GridItem",{"parent":"w99","index":90,"texts":["91","Pa","Protactinium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w199","rwt.widgets.GridItem",{"parent":"w99","index":91,"texts":["92","U","Uranium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w200","rwt.widgets.GridItem",{"parent":"w99","index":92,"texts":["93","Np","Neptunium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w201","rwt.widgets.GridItem",{"parent":"w99","index":93,"texts":["94","Pu","Plutonium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w202","rwt.widgets.GridItem",{"parent":"w99","index":94,"texts":["95","Am","Americium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w203","rwt.widgets.GridItem",{"parent":"w99","index":95,"texts":["96","Cm","Curium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w204","rwt.widgets.GridItem",{"parent":"w99","index":96,"texts":["97","Bk","Berkelium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w205","rwt.widgets.GridItem",{"parent":"w99","index":97,"texts":["98","Cf","Californium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w206","rwt.widgets.GridItem",{"parent":"w99","index":98,"texts":["99","Es","Einsteinium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w207","rwt.widgets.GridItem",{"parent":"w99","index":99,"texts":["100","Fm","Fermium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w208","rwt.widgets.GridItem",{"parent":"w99","index":100,"texts":["101","Md","Mendelevium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w209","rwt.widgets.GridItem",{"parent":"w99","index":101,"texts":["102","No","Nobelium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w210","rwt.widgets.GridItem",{"parent":"w99","index":102,"texts":["103","Lr","Lawrencium","Actinide","3","7"],"cellBackgrounds":[null,null,null,[173,127,168,255],null,null]}],["create","w211","rwt.widgets.GridItem",{"parent":"w99","index":103,"texts":["104","Rf","Rutherfordium","Transition metal","4","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w212","rwt.widgets.GridItem",{"parent":"w99","index":104,"texts":["105","Db","Dubnium","Transition metal","5","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w213","rwt.widgets.GridItem",{"parent":"w99","index":105,"texts":["106","Sg","Seaborgium","Transition metal","6","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w214","rwt.widgets.GridItem",{"parent":"w99","index":106,"texts":["107","Bh","Bohrium","Transition metal","7","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w215","rwt.widgets.GridItem",{"parent":"w99","index":107,"texts":["108","Hs","Hassium","Transition metal","8","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w216","rwt.widgets.GridItem",{"parent":"w99","index":108,"texts":["109","Mt","Meitnerium","Transition metal","9","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w217","rwt.widgets.GridItem",{"parent":"w99","index":109,"texts":["110","Ds","Darmstadtium","Transition metal","10","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w218","rwt.widgets.GridItem",{"parent":"w99","index":110,"texts":["111","Rg","Roentgenium","Transition metal","11","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w219","rwt.widgets.GridItem",{"parent":"w99","index":111,"texts":["112","Uub","Ununbium","Transition metal","12","7"],"cellBackgrounds":[null,null,null,[252,175,62,255],null,null]}],["create","w220","rwt.widgets.GridItem",{"parent":"w99","index":112,"texts":["113","Uut","Ununtrium","Poor metal","13","7"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w221","rwt.widgets.GridItem",{"parent":"w99","index":113,"texts":["114","Uuq","Ununquadium","Poor metal","14","7"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w222","rwt.widgets.GridItem",{"parent":"w99","index":114,"texts":["115","Uup","Ununpentium","Poor metal","15","7"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w223","rwt.widgets.GridItem",{"parent":"w99","index":115,"texts":["116","Uuh","Ununhexium","Poor metal","16","7"],"cellBackgrounds":[null,null,null,[238,238,236,255],null,null]}],["create","w224","rwt.widgets.GridItem",{"parent":"w99","index":116,"texts":["117","Uus","Ununseptium","Halogen","17","7"],"cellBackgrounds":[null,null,null,[252,233,79,255],null,null]}],["create","w225","rwt.widgets.GridItem",{"parent":"w99","index":117,"texts":["118","Uuo","Ununoctium","Noble gas","18","7"],"cellBackgrounds":[null,null,null,[114,159,207,255],null,null]}],["create","w226","rwt.widgets.Composite",{"parent":"w97","style":["BORDER"],"bounds":[10,464,988,25],"children":["w227"],"tabIndex":-1,"clientArea":[0,0,986,23]}],["create","w227","rwt.widgets.Label",{"parent":"w226","style":["NONE"],"bounds":[10,10,966,3],"tabIndex":-1,"text":"Hydrogen (H)"}],["create","w228","rwt.widgets.Label",{"parent":"w97","style":["WRAP"],"bounds":[10,499,988,16],"tabIndex":-1,"foreground":[150,150,150,255],"font":[["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],10,false,false],"text":"Shortcuts: [CTRL+F] - Filter | Sort by: [CTRL+R] - Number, [CTRL+Y] - Symbol, [CTRL+N] - Name, [CTRL+S] - Series, [CTRL+G] - Group, [CTRL+E] - Period"}],["set","w1",{"focusControl":"w99"}],["call","rwt.client.BrowserNavigation","addToHistory",{"entries":[["tableviewer","TableViewer"]]}]]}' # pylint: disable=line-too-long
class Json(Benchmark):
def benchmark(self):
return _Parser(_RAP_BENCHMARK_MINIFIED).parse()
def verify_result(self, result):
if not result.is_object():
return False
if not result.as_object().get("head").is_object():
return False
if not result.as_object().get("operations").is_array():
return False
return result.as_object().get("operations").as_array().size() == 156
class _JsonValue:
def is_object(self):
return False
def is_array(self):
return False
def is_number(self):
return False
def is_string(self):
return False
def is_boolean(self):
return False
def is_true(self):
return False
def is_false(self):
return False
def is_null(self):
return False
def as_object(self):
raise Exception("Unsupported operation, not an object: " + str(self))
def as_array(self):
raise Exception("Unsupported operation, not an array: " + str(self))
class _JsonLiteral(_JsonValue):
def __init__(self, value):
self._value = value
self._is_null = "null" == value
self._is_true = "true" == value
self._is_false = "false" == value
def is_null(self):
return self._is_null
def is_true(self):
return self._is_true
def is_false(self):
return self._is_false
def as_string(self):
return self._value
def is_boolean(self):
return self._is_true or self._is_false
_LITERAL_NULL = _JsonLiteral("null")
_LITERAL_TRUE = _JsonLiteral("true")
_LITERAL_FALSE = _JsonLiteral("false")
class _Parser:
def __init__(self, string):
self._input = string
self._index = -1
self._line = 1
self._capture_start = -1
self._column = 0
self._current = None
self._capture_buffer = ""
def parse(self):
self._read()
self._skip_white_space()
result = self._read_value()
self._skip_white_space()
if not self._is_end_of_text():
raise self._error("Unexpected character")
return result
def _read_value(self):
if self._current == "n":
return self._read_null()
if self._current == "t":
return self._read_true()
if self._current == "f":
return self._read_false()
if self._current == '"':
return self._read_string()
if self._current == "[":
return self._read_array()
if self._current == "{":
return self._read_object()
if (
self._current == "-"
or self._current == "0"
or self._current == "1"
or self._current == "2"
or self._current == "3"
or self._current == "4"
or self._current == "5"
or self._current == "6"
or self._current == "7"
or self._current == "8"
or self._current == "9"
):
return self._read_number()
raise self._expected("value")
def _read_array_element(self, array):
self._skip_white_space()
array.add(self._read_value())
self._skip_white_space()
def _read_array(self):
self._read()
array = _JsonArray()
self._skip_white_space()
if self._read_char("]"):
return array
self._read_array_element(array)
while self._read_char(","):
self._read_array_element(array)
if not self._read_char("]"):
self._expected("',' or ']'")
return array
def _read_object_key_value_pair(self, obj):
self._skip_white_space()
name = self._read_name()
self._skip_white_space()
if not self._read_char(":"):
raise self._expected("':'")
self._skip_white_space()
obj.add(name, self._read_value())
self._skip_white_space()
def _read_object(self):
self._read()
obj = _JsonObject()
self._skip_white_space()
if self._read_char("}"):
return obj
self._read_object_key_value_pair(obj)
while self._read_char(","):
self._read_object_key_value_pair(obj)
if not self._read_char("}"):
raise self._expected("',' or '}'")
return obj
def _read_name(self):
if self._current != '"':
raise self._expected("name")
return self._read_string_internal()
def _read_null(self):
self._read()
self._read_required_char("u")
self._read_required_char("l")
self._read_required_char("l")
return _LITERAL_NULL
def _read_true(self):
self._read()
self._read_required_char("r")
self._read_required_char("u")
self._read_required_char("e")
return _LITERAL_TRUE
def _read_false(self):
self._read()
self._read_required_char("a")
self._read_required_char("l")
self._read_required_char("s")
self._read_required_char("e")
return _LITERAL_FALSE
def _read_required_char(self, ch):
if not self._read_char(ch):
raise self._expected("'" + ch + "'")
def _read_string(self):
return _JsonString(self._read_string_internal())
def _read_string_internal(self):
self._read()
self._start_capture()
while self._current != '"':
if self._current == "\\":
self._pause_capture()
self._read_escape()
self._start_capture()
else:
self._read()
string = self._end_capture()
self._read()
return string
def _read_escape_char(self):
if self._current == '"':
return '"'
if self._current == "/":
return "/"
if self._current == "\\":
return "\\"
if self._current == "b":
return "\b"
if self._current == "f":
return "\f"
if self._current == "n":
return "\n"
if self._current == "r":
return "\r"
if self._current == "t":
return "\t"
raise self._expected("valid escape sequence")
def _read_escape(self):
self._read()
self._capture_buffer += self._read_escape_char()
self._read()
def _read_number(self):
self._start_capture()
self._read_char("-")
first_digit = self._current
if not self._read_digit():
raise self._expected("digit")
if first_digit != "0":
while self._read_digit():
pass
self._read_fraction()
self._read_exponent()
return _JsonNumber(self._end_capture())
def _read_fraction(self):
if not self._read_char("."):
return False
if not self._read_digit():
raise self._expected("digit")
while self._read_digit():
pass
return True
def _read_exponent(self):
if not self._read_char("e") and not self._read_char("E"):
return False
if not self._read_char("+"):
return self._read_char("-")
if self._read_digit():
raise self._expected("digit")
while self._read_digit():
pass
return True
def _read_char(self, ch):
if self._current != ch:
return False
self._read()
return True
def _read_digit(self):
if not self._is_digit():
return False
self._read()
return True
def _skip_white_space(self):
while self._is_white_space():
self._read()
def _read(self):
if "\n" == self._current:
self._line += 1
self._column = 0
self._index += 1
if self._index < len(self._input):
self._current = self._input[self._index]
else:
self._current = None
def _start_capture(self):
self._capture_start = self._index
def _pause_capture(self):
end = self._index if self._current is None else self._index - 1
self._capture_buffer += self._input[self._capture_start : end + 1]
self._capture_start = -1
def _end_capture(self):
end = self._index if self._current is None else self._index - 1
if "" == self._capture_buffer:
captured = self._input[self._capture_start : end + 1]
else:
self._capture_buffer += self._input[self._capture_start : end + 1]
captured = self._capture_buffer
self._capture_buffer = ""
self._capture_start = -1
return captured
def _expected(self, expected):
if self._is_end_of_text():
return self._error("Unexpected end of input")
return self._error("Expected " + expected)
def _error(self, message):
return _ParseException(message, self._index, self._line, self._column - 1)
def _is_white_space(self):
return (
" " == self._current
or "\t" == self._current
or "\n" == self._current
or "\r" == self._current
)
def _is_digit(self):
return (
"0" == self._current
or "1" == self._current
or "2" == self._current
or "3" == self._current
or "4" == self._current
or "5" == self._current
or "6" == self._current
or "7" == self._current
or "8" == self._current
or "9" == self._current
)
def _is_end_of_text(self):
return self._current is None
class _HashIndexTable:
def __init__(self):
self._hash_table = [0] * 32
def add(self, name, index):
slot = self._hash_slot_for(name)
if index < 0xFF:
# increment by 1, 0 stands for empty
self._hash_table[slot] = (index + 1) & 0xFF
else:
self._hash_table[slot] = 0
def get(self, name):
slot = self._hash_slot_for(name)
# subtract 1, 0 stands for empty
return (self._hash_table[slot] & 0xFF) - 1
@staticmethod
def _string_hash(s):
# this is not a proper hash, but sufficient for the benchmark,
# and very portable!
return len(s) * 1_402_589
def _hash_slot_for(self, element):
return self._string_hash(element) & len(self._hash_table) - 1
class _ParseException(Exception):
def __init__(self, message, offset, line, column):
super().__init__()
self._message = message
self._offset = offset
self._line = line
self._column = column
def get_message(self):
return self._message
def get_offset(self):
return self._offset
def get_line(self):
return self._line
def get_column(self):
return self._column
class _JsonArray(_JsonValue):
def __init__(self):
self._values = Vector()
def add(self, value):
if value is None:
raise Exception("value is null")
self._values.append(value)
return self
def size(self):
return self._values.size()
def get(self, index):
return self._values.at(index)
def is_array(self):
return True
def as_array(self):
return self
class _JsonNumber(_JsonValue):
def __init__(self, string):
self._string = string
if string is None:
raise Exception("string is null")
def as_string(self):
return self._string
def is_number(self):
return True
class _JsonObject(_JsonValue):
def __init__(self):
self._names = Vector()
self._values = Vector()
self._table = _HashIndexTable()
def add(self, name, value):
if name is None:
raise Exception("name is null")
if value is None:
raise Exception("value is null")
self._table.add(name, self._names.size())
self._names.append(name)
self._values.append(value)
return self
def get(self, name):
if name is None:
raise Exception("name is null")
index = self.index_of(name)
return None if index == -1 else self._values.at(index)
def size(self):
return self._names.size()
def is_empty(self):
return self._names.is_empty()
def is_object(self):
return True
def as_object(self):
return self
def index_of(self, name):
index = self._table.get(name)
if index != -1 and name == self._names.at(index):
return index
raise Exception("NotImplemented") # Not needed for benchmark
class _JsonString(_JsonValue):
def __init__(self, string):
self._string = string
def is_string(self):
return True
| 75.478424
| 25,881
| 0.626199
| 5,422
| 40,230
| 4.542235
| 0.157322
| 0.115316
| 0.086243
| 0.114991
| 0.567444
| 0.517906
| 0.336893
| 0.317281
| 0.311109
| 0.29434
| 0
| 0.090585
| 0.113945
| 40,230
| 532
| 25,882
| 75.620301
| 0.60032
| 0.036341
| 0
| 0.40874
| 0
| 0.002571
| 0.677165
| 0.660359
| 0
| 0
| 0.00031
| 0
| 0
| 1
| 0.200514
| false
| 0.007712
| 0.005141
| 0.092545
| 0.44473
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d4984893d39a5d260b43143942a3e81694ccaab
| 274
|
py
|
Python
|
returnSquareArea.py
|
vibhawgeass/Python-Thunder
|
3debdb3ef924fac6d15b966e38ea94028a1ea6bc
|
[
"MIT"
] | null | null | null |
returnSquareArea.py
|
vibhawgeass/Python-Thunder
|
3debdb3ef924fac6d15b966e38ea94028a1ea6bc
|
[
"MIT"
] | null | null | null |
returnSquareArea.py
|
vibhawgeass/Python-Thunder
|
3debdb3ef924fac6d15b966e38ea94028a1ea6bc
|
[
"MIT"
] | null | null | null |
'''
Problem statement: We need to find the area difference between the squares where for one square circle is a circumcircle and the other one is incircle
Problem Link: https://edabit.com/challenge/NNhkGocuPMcryW7GP
'''
def square_areas_difference(r):
return 2*r*r
| 34.25
| 151
| 0.770073
| 42
| 274
| 4.97619
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008696
| 0.160584
| 274
| 7
| 152
| 39.142857
| 0.9
| 0.770073
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
5d53352777085b08396cf1d6b89c916a17f31b98
| 6,893
|
py
|
Python
|
rpython/rlib/parsing/test/test_regexparse.py
|
nanjekyejoannah/pypy
|
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
|
[
"Apache-2.0",
"OpenSSL"
] | 381
|
2018-08-18T03:37:22.000Z
|
2022-02-06T23:57:36.000Z
|
rpython/rlib/parsing/test/test_regexparse.py
|
nanjekyejoannah/pypy
|
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
|
[
"Apache-2.0",
"OpenSSL"
] | 16
|
2018-09-22T18:12:47.000Z
|
2022-02-22T20:03:59.000Z
|
rpython/rlib/parsing/test/test_regexparse.py
|
nanjekyejoannah/pypy
|
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
|
[
"Apache-2.0",
"OpenSSL"
] | 55
|
2015-08-16T02:41:30.000Z
|
2022-03-20T20:33:35.000Z
|
from rpython.rlib.parsing.regexparse import make_runner
def test_simple():
r = make_runner("a*")
assert r.recognize("aaaaa")
assert r.recognize("")
assert not r.recognize("aaaaaaaaaaaaaaaaaaaaaaaaaa ")
r = make_runner("a*bc|d")
assert r.recognize("aaaaabc")
assert r.recognize("bc")
assert r.recognize("d")
assert not r.recognize("abcd")
r = make_runner("(ab)*|a*b*")
assert r.recognize("ababababab")
assert r.recognize("aaaabb")
assert not r.recognize("abababaabb")
r = make_runner(".*")
assert r.recognize("kjsadfq3jlflASDF@#$")
assert r.recognize("vka afj ASF# A")
def test_quoted_1():
r = make_runner("\\(*")
assert r.recognize("(")
assert not r.recognize("\\(")
r = make_runner("(\\x61a)*")
assert r.recognize("aa")
assert r.recognize("aaaaaa")
assert not r.recognize("a")
assert not r.recognize("aabb")
r = make_runner("(\\x61a)*")
assert r.recognize("aa")
assert r.recognize("aaaaaa")
assert not r.recognize("a")
assert not r.recognize("aabb")
def test_range():
r = make_runner("[A-Z]")
assert r.recognize("A")
assert r.recognize("F")
assert r.recognize("Z")
assert not r.recognize("j")
r = make_runner("[a-ceg-i]")
assert r.recognize("a")
assert r.recognize("b")
assert r.recognize("c")
assert r.recognize("e")
assert r.recognize("g")
assert r.recognize("h")
assert r.recognize("i")
assert not r.recognize("d")
assert not r.recognize("f")
r = make_runner("[^a-ceg-i]")
assert not r.recognize("a")
assert not r.recognize("b")
assert not r.recognize("c")
assert not r.recognize("e")
assert not r.recognize("g")
assert not r.recognize("h")
assert not r.recognize("i")
assert r.recognize("d")
assert r.recognize("f")
def test_plus():
r = make_runner("[0-9]+")
assert r.recognize("09123")
assert not r.recognize("")
r = make_runner("a+b+")
assert r.recognize("ab")
assert r.recognize("aaaaabbb")
assert not r.recognize("b")
assert not r.recognize("a")
assert not r.recognize("c")
def test_quoted_2():
r = make_runner('\\[|\\]|\\|')
assert r.recognize("[")
assert r.recognize("|")
assert r.recognize("]")
assert not r.recognize("]]")
def test_questionmark():
r = make_runner("ab?")
assert r.recognize("a")
assert r.recognize("ab")
r = make_runner("0|(\\+|\\-)?[1-9][0-9]*")
assert r.recognize("0")
assert not r.recognize("00")
assert r.recognize("12341")
assert not r.recognize("021314")
assert r.recognize("+12314")
assert r.recognize("-12314")
def test_repetition():
r = make_runner('a{15}')
assert r.recognize("a" * 15)
assert not r.recognize("a" * 14)
assert not r.recognize("a" * 16)
assert not r.recognize("b" * 15)
r = make_runner('a{2,10}')
assert r.recognize("a" * 2)
assert r.recognize("a" * 5)
assert r.recognize("a" * 10)
assert not r.recognize("a")
assert not r.recognize("a" + "b")
assert not r.recognize("a" * 11)
assert not r.recognize("a" * 12)
r = make_runner('a{3,}')
assert r.recognize("a" * 3)
assert r.recognize("a" * 5)
assert r.recognize("a" * 10)
assert r.recognize("a" * 12)
assert not r.recognize("a")
assert not r.recognize("a" + "b")
assert not r.recognize("a" * 2)
def test_quotes():
r = make_runner('"[^\\"]*"')
assert r.recognize('"abc"')
assert r.recognize('"asdfefveeaa"')
assert not r.recognize('"""')
r = make_runner('\\n\\x0a')
assert not r.recognize("n\n")
assert r.recognize("\n\n")
r = make_runner('\\12\\012')
assert r.recognize("\n\n")
r = make_runner('\\377\\xff')
assert r.recognize("\xff\xff")
r = make_runner('\\?')
assert r.recognize("?")
assert not r.recognize("a")
def test_comment():
r = make_runner("(/\\*[^\\*/]*\\*/)")
assert r.recognize("/*asdfasdfasdf*/")
def test_singlequote():
r = make_runner("'")
assert r.recognize("'")
assert not r.recognize('"')
r = make_runner("'..*'")
assert r.recognize("'adadf'")
assert not r.recognize("'adfasdf")
r = make_runner("([a-z]([a-zA-Z0-9]|_)*)|('..*')")
assert r.recognize("aasdf")
assert r.recognize("'X'")
assert not r.recognize("''")
def test_unescape():
from rpython.rlib.parsing.regexparse import unescape
s = "".join(["\\x%s%s" % (a, b) for a in "0123456789abcdefABCDEF"
for b in "0123456789ABCDEFabcdef"])
assert unescape(s) == eval("'" + s + "'")
def test_escaped_quote():
r = make_runner(r'"[^\\"]*(\\.[^\\"]*)*"')
assert r.recognize(r'""')
assert r.recognize(r'"a"')
assert r.recognize(r'"a\"b"')
assert r.recognize(r'"\\\""')
assert not r.recognize(r'"\\""')
def test_number():
r = make_runner(r"\-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][\+\-]?[0-9]+)?")
assert r.recognize("-0.912E+0001")
assert not r.recognize("-0.a912E+0001")
assert r.recognize("5")
def test_charclass():
r = make_runner(r"\d")
assert r.recognize('0')
assert r.recognize('5')
assert r.recognize('9')
assert not r.recognize('d')
r = make_runner(r"\d{2,}")
assert r.recognize('09')
assert r.recognize('158')
assert not r.recognize('1')
r = make_runner(r"\D")
assert r.recognize('d')
assert r.recognize('\n')
assert not r.recognize('0')
assert not r.recognize('1234')
r = make_runner(r"\s\S")
assert r.recognize(' d')
assert r.recognize('\t9')
assert not r.recognize('d ')
assert not r.recognize('99')
assert not r.recognize('\r\r')
r = make_runner(r"\w+")
assert r.recognize('word')
assert r.recognize('variable_name')
assert r.recognize('abc123')
assert not r.recognize('word\n')
assert not r.recognize('hey hey')
r = make_runner(r"\w\W\w")
assert r.recognize('9 9')
assert r.recognize('_\fx')
assert not r.recognize('\n\r\t')
def test_charclass_in_range():
r = make_runner(r"[\de]")
assert r.recognize('0')
assert r.recognize('5')
assert r.recognize('9')
assert r.recognize('e')
assert not r.recognize('d')
r = make_runner(r"[\de]{2,}")
assert r.recognize('09')
assert r.recognize('158')
assert r.recognize('3eee')
assert not r.recognize('1')
assert not r.recognize('ddee')
r = make_runner(r"[\D5]")
assert r.recognize('d')
assert r.recognize('\n')
assert r.recognize('5')
assert not r.recognize('0')
r = make_runner(r"[\s][\S]")
assert r.recognize(' d')
assert r.recognize('\t9')
assert not r.recognize('d ')
assert not r.recognize('99')
assert not r.recognize('\r\r')
r = make_runner(r"[\w]+\W[\w]+")
assert r.recognize('hey hey')
assert not r.recognize('word')
assert not r.recognize('variable_name')
| 29.969565
| 73
| 0.593065
| 990
| 6,893
| 4.063636
| 0.117172
| 0.377827
| 0.357942
| 0.292816
| 0.66617
| 0.533433
| 0.470544
| 0.354213
| 0.333333
| 0.260005
| 0
| 0.0308
| 0.203975
| 6,893
| 229
| 74
| 30.100437
| 0.702387
| 0
| 0
| 0.301887
| 0
| 0.004717
| 0.132453
| 0.02829
| 0
| 0
| 0
| 0
| 0.721698
| 1
| 0.070755
| false
| 0
| 0.009434
| 0
| 0.080189
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d5bc9652b365908b84325c618215069602d0e80
| 3,830
|
py
|
Python
|
script.baksy.guide/resources/lib/events.py
|
TheWardoctor/Baksy
|
d422ce9aa4e0fe5e727d1c638c6e5431e81cbe13
|
[
"Apache-2.0"
] | 1
|
2019-03-05T09:38:12.000Z
|
2019-03-05T09:38:12.000Z
|
script.baksy.guide/resources/lib/events.py
|
TheWardoctor/Baksy
|
d422ce9aa4e0fe5e727d1c638c6e5431e81cbe13
|
[
"Apache-2.0"
] | null | null | null |
script.baksy.guide/resources/lib/events.py
|
TheWardoctor/Baksy
|
d422ce9aa4e0fe5e727d1c638c6e5431e81cbe13
|
[
"Apache-2.0"
] | null | null | null |
import xbmc,xbmcaddon,xbmcvfs,xbmcgui,os,re,urllib2
ADDON = xbmcaddon.Addon(id='script.baksy.guide')
path = xbmc.translatePath('special://home/addons/script.baksy.guide/resources/eventList.txt')
f = open(path, 'r+')
f.truncate()
#os.remove(path)
def OPEN_URL(url):
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36')
response = urllib2.urlopen(req)
link=response.read()
response.close()
return link
def Baksy IPTV GuideINFO():
eventList = xbmc.translatePath('special://home/addons/script.baksy.guide/resources/eventList.txt')
HTML = OPEN_URL('http://pastebin.com/raw/BGZK28iq')
re1 = '\n(.+?)-(.+?)-(.+?)$'
match = re.compile(re1,re.MULTILINE).findall(HTML)
for time,game,channel in match:
open(eventList, 'a').close()
text_file = eventList
text_file = open(text_file, "a")
text_file.write((time).replace('Monday','\n'+'[COLOR orange]'+'Monday'+'[/COLOR]').replace('Tuesday','\n'+'[COLOR orange]'+'Tuesday'+'[/COLOR]').replace('Wednesday','\n'+'[COLOR orange]'+'Wednesday'+'[/COLOR]').replace('Thursday','\n'+'[COLOR orange]'+'Thursday'+'[/COLOR]').replace('Friday','\n'+'[COLOR orange]'+'Friday'+'[/COLOR]').replace('Saturday','\n'+'[COLOR orange]'+'Saturday'+'[/COLOR]').replace('Sunday','\n'+'[COLOR orange]'+'Sunday'+'[/COLOR]')+' - '+game.replace(game,'[COLOR blue]'+game+'[/COLOR]').replace('10th','[COLOR orange]'+'10th'+'[/COLOR]').replace('11th','[COLOR orange]'+'11th'+'[/COLOR]').replace('12th','[COLOR orange]'+'12th'+'[/COLOR]').replace('13th','[COLOR orange]'+'13th'+'[/COLOR]').replace('14th','[COLOR orange]'+'14th'+'[/COLOR]').replace('15th','[COLOR orange]'+'15th'+'[/COLOR]').replace('16th','[COLOR orange]'+'16th'+'[/COLOR]').replace('17th','[COLOR orange]'+'17th'+'[/COLOR]').replace('18th','[COLOR orange]'+'18th'+'[/COLOR]').replace('19th','[COLOR orange]'+'19th'+'[/COLOR]').replace('20th','[COLOR orange]'+'20th'+'[/COLOR]').replace('21st','[COLOR orange]'+'21st'+'[/COLOR]').replace('22nd','[COLOR orange]'+'22nd'+'[/COLOR]').replace('23rd','[COLOR orange]'+'23rd'+'[/COLOR]').replace('24th','[COLOR orange]'+'24th'+'[/COLOR]').replace('25th','[COLOR orange]'+'25th'+'[/COLOR]').replace('26th','[COLOR orange]'+'26th'+'[/COLOR]').replace('27th','[COLOR orange]'+'27th'+'[/COLOR]').replace('28th','[COLOR orange]'+'28th'+'[/COLOR]').replace('29th','[COLOR orange]'+'29th'+'[/COLOR]').replace('30th','[COLOR orange]'+'30th'+'[/COLOR]').replace('31st','[COLOR orange]'+'31st'+'[/COLOR]').replace('1st','[COLOR orange]'+'1st'+'[/COLOR]').replace('2nd','[COLOR orange]'+'2nd'+'[/COLOR]').replace('3rd','[COLOR orange]'+'3rd'+'[/COLOR]').replace('4th','[COLOR orange]'+'4th'+'[/COLOR]').replace('5th','[COLOR orange]'+'5th'+'[/COLOR]').replace('6th','[COLOR orange]'+'6th'+'[/COLOR]').replace('7th','[COLOR orange]'+'7th'+'[/COLOR]').replace('8th','[COLOR orange]'+'8th'+'[/COLOR]').replace('9th','[COLOR orange]'+'9th'+'[/COLOR]')+' - '+(channel).replace('September','[COLOR orange]September[/COLOR]').replace('Baksy IPTV Guide 1','[COLOR red]Baksy IPTV Guide 1[/COLOR]').replace('Baksy IPTV Guide 2','[COLOR red]Baksy IPTV Guide 2[/COLOR]').replace('Baksy IPTV Guide 3','[COLOR red]Baksy IPTV Guide 3[/COLOR]').replace('Baksy IPTV Guide 4','[COLOR red]Baksy IPTV Guide 4[/COLOR]').replace('Baksy IPTV Guide 5','[COLOR red]Baksy IPTV Guide 5[/COLOR]').replace('Baksy IPTV Guide 6','[COLOR red]Baksy IPTV Guide 6[/COLOR]').replace('Baksy IPTV Guide 7','[COLOR red]Baksy IPTV Guide 7[/COLOR]').replace('Baksy IPTV Guide 8','[COLOR red]Baksy IPTV Guide 8[/COLOR]').replace('Baksy IPTV Guide 9','[COLOR red]Baksy IPTV Guide 9[/COLOR]').replace('Baksy IPTV Guide 10','[COLOR red]Baksy IPTV Guide 10[/COLOR]')+'\n\n')
text_file.close()
Baksy IPTV GuideINFO()
| 123.548387
| 2,860
| 0.651958
| 515
| 3,830
| 4.83301
| 0.256311
| 0.226597
| 0.112495
| 0.084371
| 0.260747
| 0.057051
| 0.057051
| 0.057051
| 0.057051
| 0.057051
| 0
| 0.044179
| 0.060313
| 3,830
| 31
| 2,861
| 123.548387
| 0.647402
| 0.003916
| 0
| 0
| 0
| 0.041667
| 0.554653
| 0.039843
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.041667
| null | null | 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d66c9a029c07c8a6a3aacc43b6704f77592ee78
| 262
|
py
|
Python
|
jina/flow/__init__.py
|
HarshCasper/jina
|
81ab098b140b74ad1cfdfde9218cec7a40923749
|
[
"Apache-2.0"
] | 1
|
2021-02-25T19:28:50.000Z
|
2021-02-25T19:28:50.000Z
|
jina/flow/__init__.py
|
HarshCasper/jina
|
81ab098b140b74ad1cfdfde9218cec7a40923749
|
[
"Apache-2.0"
] | 4
|
2020-09-01T17:47:27.000Z
|
2021-04-16T23:11:57.000Z
|
jina/flow/__init__.py
|
deepampatel/jina
|
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
|
[
"Apache-2.0"
] | null | null | null |
from .base import BaseFlow
from .mixin.crud import CRUDFlowMixin
class Flow(CRUDFlowMixin, BaseFlow):
"""The synchronous version of :class:`AsyncFlow`.
For proper usage see `this guide` <https://docs.jina.ai/chapters/flow/index.html>
"""
pass
| 23.818182
| 85
| 0.71374
| 34
| 262
| 5.5
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167939
| 262
| 10
| 86
| 26.2
| 0.857798
| 0.492366
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
5d685a37576775e0365aff8b2ec788e22b2391b8
| 210
|
py
|
Python
|
katas/kyu_7/string_reversing_changing_case.py
|
the-zebulan/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 40
|
2016-03-09T12:26:20.000Z
|
2022-03-23T08:44:51.000Z
|
katas/kyu_7/string_reversing_changing_case.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | null | null | null |
katas/kyu_7/string_reversing_changing_case.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 36
|
2016-11-07T19:59:58.000Z
|
2022-03-31T11:18:27.000Z
|
def reverse_and_mirror(s1, s2):
swap = s1.swapcase()
return '{}@@@{}{}'.format(s2[::-1].swapcase(), swap[::-1], swap)
# PEP8: function name should use snake_case
reverseAndMirror = reverse_and_mirror
| 26.25
| 68
| 0.666667
| 28
| 210
| 4.821429
| 0.678571
| 0.148148
| 0.237037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038889
| 0.142857
| 210
| 7
| 69
| 30
| 0.711111
| 0.195238
| 0
| 0
| 0
| 0
| 0.053892
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d6afc32eae35bed3d295c8b857c9631d924b163
| 97
|
py
|
Python
|
lewis_emulators/tekafg3XXX/interfaces/__init__.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 2
|
2020-10-20T16:49:13.000Z
|
2021-02-19T10:41:44.000Z
|
lewis_emulators/tekafg3XXX/interfaces/__init__.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 9
|
2019-03-22T15:35:15.000Z
|
2021-07-28T11:05:43.000Z
|
lewis_emulators/tekafg3XXX/interfaces/__init__.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 1
|
2020-10-21T17:02:44.000Z
|
2020-10-21T17:02:44.000Z
|
from .stream_interface import Tekafg3XXXStreamInterface
__all__ = ['Tekafg3XXXStreamInterface']
| 24.25
| 55
| 0.85567
| 7
| 97
| 11.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022472
| 0.082474
| 97
| 3
| 56
| 32.333333
| 0.853933
| 0
| 0
| 0
| 0
| 0
| 0.257732
| 0.257732
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5381ef2cdccc22f968135ed2b24bc6d5f61e0150
| 220
|
py
|
Python
|
数字媒体安全应用与实践/learn_flask_the_hard_way/app/blueprints.py
|
jckling/only-python
|
9600d798889dfc38b8ecd65abd26e4ce657910d9
|
[
"MIT"
] | 1
|
2019-10-12T01:09:15.000Z
|
2019-10-12T01:09:15.000Z
|
数字媒体安全应用与实践/learn_flask_the_hard_way/app/blueprints.py
|
jckling/only-python
|
9600d798889dfc38b8ecd65abd26e4ce657910d9
|
[
"MIT"
] | null | null | null |
数字媒体安全应用与实践/learn_flask_the_hard_way/app/blueprints.py
|
jckling/only-python
|
9600d798889dfc38b8ecd65abd26e4ce657910d9
|
[
"MIT"
] | 1
|
2019-10-12T01:10:13.000Z
|
2019-10-12T01:10:13.000Z
|
# -*- coding: UTF-8 -*-
from flask import Blueprint
home = Blueprint('home', 'app.public.views', url_prefix='/')
auth = Blueprint('auth', 'app.auth.views', url_prefix='/auth')
all_blueprints = (
home,
auth,
)
| 18.333333
| 62
| 0.636364
| 28
| 220
| 4.892857
| 0.571429
| 0.189781
| 0.20438
| 0.262774
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005435
| 0.163636
| 220
| 11
| 63
| 20
| 0.73913
| 0.095455
| 0
| 0
| 0
| 0
| 0.22335
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.571429
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
5387c7c29ece3c8f3857340aeff4a8e78c9ababf
| 104
|
py
|
Python
|
apps/subacc/migrations/__init__.py
|
ekivemark/BlueButtonUser
|
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
|
[
"Apache-2.0"
] | 1
|
2020-10-29T07:29:49.000Z
|
2020-10-29T07:29:49.000Z
|
apps/subacc/migrations/__init__.py
|
ekivemark/BlueButtonUser
|
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
|
[
"Apache-2.0"
] | 7
|
2020-02-11T23:03:55.000Z
|
2021-12-13T19:42:01.000Z
|
apps/subacc/migrations/__init__.py
|
ekivemark/BlueButtonUser
|
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
|
[
"Apache-2.0"
] | 2
|
2018-10-06T21:45:51.000Z
|
2020-10-10T16:10:36.000Z
|
"""
bbofuser
FILE: __init__.py
Created: 8/4/15 11:35 PM
"""
__author__ = 'Mark Scrimshire:@ekivemark'
| 11.555556
| 41
| 0.692308
| 15
| 104
| 4.266667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089888
| 0.144231
| 104
| 8
| 42
| 13
| 0.629213
| 0.490385
| 0
| 0
| 0
| 0
| 0.604651
| 0.488372
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
539e67d2657d93a4167d3d33023069ab07f91aca
| 141
|
py
|
Python
|
{{cookiecutter.project_name}}/tests/test_example.py
|
turingincomplete/python-package-template
|
56c30002104ed8dceb868bb5ba7c51cde4b8cc9f
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_name}}/tests/test_example.py
|
turingincomplete/python-package-template
|
56c30002104ed8dceb868bb5ba7c51cde4b8cc9f
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_name}}/tests/test_example.py
|
turingincomplete/python-package-template
|
56c30002104ed8dceb868bb5ba7c51cde4b8cc9f
|
[
"MIT"
] | null | null | null |
"""Check unit tests are working"""
import unittest
class TestExample(unittest.TestCase):
def test_example(self):
assert False
| 15.666667
| 37
| 0.70922
| 17
| 141
| 5.823529
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.198582
| 141
| 8
| 38
| 17.625
| 0.876106
| 0.198582
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
53a402610108ab25c99f92186fa17285434c1a3f
| 28
|
py
|
Python
|
pydtk/bin/sub_commands/__init__.py
|
dataware-tools/pydtk
|
1da61fb8ca90de6c39a371a9b2b65f4473932991
|
[
"Apache-2.0"
] | 11
|
2020-10-09T01:29:18.000Z
|
2022-01-21T13:21:40.000Z
|
pydtk/bin/sub_commands/__init__.py
|
dataware-tools/pydtk
|
1da61fb8ca90de6c39a371a9b2b65f4473932991
|
[
"Apache-2.0"
] | 64
|
2020-10-20T04:55:22.000Z
|
2022-01-24T15:52:32.000Z
|
pydtk/bin/sub_commands/__init__.py
|
dataware-tools/pydtk
|
1da61fb8ca90de6c39a371a9b2b65f4473932991
|
[
"Apache-2.0"
] | 1
|
2021-07-30T04:52:38.000Z
|
2021-07-30T04:52:38.000Z
|
"""Sub-commands for CLI."""
| 14
| 27
| 0.607143
| 4
| 28
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 28
| 1
| 28
| 28
| 0.68
| 0.75
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
53abda9e645ae8f6d6d9601e15f352440e00f4fd
| 113
|
py
|
Python
|
python/tests/test_substr_tw.py
|
rlratzel/custrings
|
49dabc02aa74649eff09a10d183df94e55037e54
|
[
"Apache-2.0"
] | null | null | null |
python/tests/test_substr_tw.py
|
rlratzel/custrings
|
49dabc02aa74649eff09a10d183df94e55037e54
|
[
"Apache-2.0"
] | null | null | null |
python/tests/test_substr_tw.py
|
rlratzel/custrings
|
49dabc02aa74649eff09a10d183df94e55037e54
|
[
"Apache-2.0"
] | null | null | null |
import nvstrings
strs = nvstrings.from_csv('../../data/tweets.csv', 7)
print("slice(1,15):",strs.slice(1,15))
| 16.142857
| 53
| 0.663717
| 18
| 113
| 4.111111
| 0.666667
| 0.162162
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067961
| 0.088496
| 113
| 6
| 54
| 18.833333
| 0.650485
| 0
| 0
| 0
| 0
| 0
| 0.294643
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
53f0fc3073add825be501801f5e24382b0e3096f
| 1,205
|
py
|
Python
|
pysyringe/tests/test_injector_values.py
|
MichalPodeszwa/iocpy
|
208c03c9a02443376af56b0526642222f5143d48
|
[
"MIT"
] | 1
|
2016-04-30T00:56:03.000Z
|
2016-04-30T00:56:03.000Z
|
pysyringe/tests/test_injector_values.py
|
MichalPodeszwa/pySyringe
|
208c03c9a02443376af56b0526642222f5143d48
|
[
"MIT"
] | null | null | null |
pysyringe/tests/test_injector_values.py
|
MichalPodeszwa/pySyringe
|
208c03c9a02443376af56b0526642222f5143d48
|
[
"MIT"
] | null | null | null |
from pysyringe import inject_value
def test_value_injection():
@inject_value(val="FOO")
def test_func(val):
return val
test_func() == "FOO"
test_func("MOCKED") == "MOCKED"
def test_multiple_value_injection():
@inject_value(val="FOO", val2="FOO2")
def test_func(val, val2):
return val, val2
test_func() == "FOO", "FOO2"
test_func("MOCKED") == "MOCKED", "FOO2"
test_func("MOCKED", "MOCKED2") == "MOCKED", "MOCKED2"
test_func(val="MOCKED") == "MOCKED", "FOO2"
test_func(val2="MOCKED") == "FOO", "MOCKED"
test_func(val="MOCKED", val2="MOCKED2") == "MOCKED", "MOCKED2"
test_func("MOCKED", val2="MOCKED") == "FOO", "MOCKED"
def test_chained_value_injection():
@inject_value(val="FOO")
@inject_value(val2="FOO2")
def test_func(val, val2):
return val, val2
test_func() == "FOO", "FOO2"
test_func("MOCKED") == "MOCKED", "FOO2"
test_func("MOCKED", "MOCKED2") == "MOCKED", "MOCKED2"
test_func(val="MOCKED") == "MOCKED", "FOO2"
test_func(val2="MOCKED") == "FOO", "MOCKED"
test_func(val="MOCKED", val2="MOCKED2") == "MOCKED", "MOCKED2"
test_func("MOCKED", val2="MOCKED") == "FOO", "MOCKED"
| 28.023256
| 66
| 0.610788
| 150
| 1,205
| 4.693333
| 0.12
| 0.215909
| 0.109375
| 0.102273
| 0.81392
| 0.81392
| 0.681818
| 0.681818
| 0.681818
| 0.681818
| 0
| 0.02863
| 0.188382
| 1,205
| 42
| 67
| 28.690476
| 0.691207
| 0
| 0
| 0.666667
| 0
| 0
| 0.237344
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.033333
| 0.1
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
53fe019537ae195a058c665cd70a1a7f89667d5f
| 77
|
py
|
Python
|
exercises/test_01_04_02.py
|
rongpenl/spacy-course
|
e1228321257f70de94ab98ca3f0fec7e95952a86
|
[
"MIT"
] | 1
|
2019-07-08T17:32:42.000Z
|
2019-07-08T17:32:42.000Z
|
exercises/test_01_04_02.py
|
rongpenl/k16math-course
|
e1228321257f70de94ab98ca3f0fec7e95952a86
|
[
"MIT"
] | null | null | null |
exercises/test_01_04_02.py
|
rongpenl/k16math-course
|
e1228321257f70de94ab98ca3f0fec7e95952a86
|
[
"MIT"
] | null | null | null |
def test():
__msg__.good(
"Nice work! Check the solution."
)
| 15.4
| 40
| 0.545455
| 9
| 77
| 4.222222
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.324675
| 77
| 4
| 41
| 19.25
| 0.730769
| 0
| 0
| 0
| 0
| 0
| 0.38961
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
99087fac3d7769f0ad347146e69cd9924ec01d16
| 97
|
py
|
Python
|
tests/relative/web.py
|
Kroisse/flask-factory
|
02da8e3f6ded6e988853599b694b45e2ffaa9b5e
|
[
"BSD-3-Clause"
] | 1
|
2015-11-05T18:27:35.000Z
|
2015-11-05T18:27:35.000Z
|
tests/relative/web.py
|
Kroisse/flask-factory
|
02da8e3f6ded6e988853599b694b45e2ffaa9b5e
|
[
"BSD-3-Clause"
] | null | null | null |
tests/relative/web.py
|
Kroisse/flask-factory
|
02da8e3f6ded6e988853599b694b45e2ffaa9b5e
|
[
"BSD-3-Clause"
] | null | null | null |
from flask_factory import Factory
create_app = Factory(__name__)
create_app.step('.db:init_db')
| 19.4
| 33
| 0.804124
| 15
| 97
| 4.666667
| 0.666667
| 0.257143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092784
| 97
| 4
| 34
| 24.25
| 0.795455
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
54ff4dccd238c4387c0030a7cc1c7d84755d0447
| 3,303
|
py
|
Python
|
iqra/data/loader.py
|
nunenuh/crnn.pytorch
|
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
|
[
"MIT"
] | 1
|
2020-09-30T04:37:39.000Z
|
2020-09-30T04:37:39.000Z
|
iqra/data/loader.py
|
nunenuh/crnn.pytorch
|
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
|
[
"MIT"
] | null | null | null |
iqra/data/loader.py
|
nunenuh/crnn.pytorch
|
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
|
[
"MIT"
] | null | null | null |
import torch
from torch.utils.data import Dataset, ConcatDataset, Subset, DataLoader
from .dataset import LMDBDataset, BalanceDatasetConcatenator
import torchvision.transforms as VT
from .. import transforms as NT
def train_loader(path, batch_size=32, shuffle=True, num_workers=8,
img_size=(32, 100), usage_ratio=(0.5, 0.5), is_sensitive=True,
character="0123456789abcdefghijklmnopqrstuvwxyz"):
trn_transform = VT.Compose([
NT.ResizeRatioWithRightPad(size=img_size),
VT.ToTensor(),
VT.Normalize(mean=(0.5), std=(0.5))
])
subdir_names = ['ST', 'MJ']
bdc = BalanceDatasetConcatenator(path, dataset_class=LMDBDataset,
transform=trn_transform,
subdir=subdir_names, usage_ratio=usage_ratio,
im_size=img_size, is_sensitive=is_sensitive,
character=character)
dset = bdc.get_dataset()
dloader = DataLoader(dset,
batch_size=batch_size,
shuffle=shuffle,
num_workers=num_workers,
pin_memory=True)
return dloader, dset
def valid_loader(path, batch_size=32, shuffle=True, num_workers=8,
img_size=(32, 100), is_sensitive=True,
character="0123456789abcdefghijklmnopqrstuvwxyz"):
val_transform = VT.Compose([
NT.ResizeRatioWithRightPad(size=img_size),
VT.ToTensor(),
VT.Normalize(mean=(0.5), std=(0.5))
])
bdc = BalanceDatasetConcatenator(path, dataset_class=LMDBDataset,
transform=val_transform,
im_size=img_size, is_sensitive=is_sensitive,
character=character)
dset = bdc.get_dataset()
dloader = DataLoader(dset,
batch_size=batch_size,
shuffle=shuffle,
num_workers=num_workers,
pin_memory=True)
return dloader, dset
def test_loader(path, batch_size=32, shuffle=False, num_workers=8,
img_size=(32, 100), is_sensitive=True,
character="0123456789abcdefghijklmnopqrstuvwxyz"):
val_transform = VT.Compose([
NT.ResizeRatioWithRightPad(size=img_size),
VT.ToTensor(),
VT.Normalize(mean=(0.5), std=(0.5))
])
# subdir_names = ['CUTE80','IC03_860','IC03_867',
# 'IC13_857','IC13_1015','IC15_1811',
# 'IC15_2077','IIIT5k_3000','SVT',
# 'SVTP']
# usage_ratio = [1.0 for i in range(len(subdir_names))]
bdc = BalanceDatasetConcatenator(path, dataset_class=LMDBDataset,
transform=val_transform,
im_size=img_size, is_sensitive=is_sensitive,
character=character)
dset = bdc.get_dataset()
dloader = DataLoader(dset,
batch_size=batch_size,
shuffle=shuffle,
num_workers=num_workers,
pin_memory=True)
return dloader, dset
| 37.11236
| 82
| 0.551014
| 319
| 3,303
| 5.479624
| 0.260188
| 0.046339
| 0.037757
| 0.032609
| 0.784325
| 0.75
| 0.733982
| 0.696796
| 0.696796
| 0.696796
| 0
| 0.05278
| 0.357554
| 3,303
| 88
| 83
| 37.534091
| 0.770971
| 0.072661
| 0
| 0.796875
| 0
| 0
| 0.036685
| 0.035375
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046875
| false
| 0
| 0.078125
| 0
| 0.171875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
071d94ca46a1535721cefc706b5058aa0af54149
| 177
|
py
|
Python
|
controller/registry/mock.py
|
smothiki/deis
|
73246fc62b2cb3e76f3908b9a4014b19110af4e7
|
[
"Apache-2.0"
] | 1
|
2019-06-17T18:51:47.000Z
|
2019-06-17T18:51:47.000Z
|
controller/registry/mock.py
|
smothiki/deis
|
73246fc62b2cb3e76f3908b9a4014b19110af4e7
|
[
"Apache-2.0"
] | 1
|
2021-06-10T23:58:46.000Z
|
2021-06-10T23:58:46.000Z
|
controller/registry/mock.py
|
smothiki/deis
|
73246fc62b2cb3e76f3908b9a4014b19110af4e7
|
[
"Apache-2.0"
] | 1
|
2019-12-16T18:56:52.000Z
|
2019-12-16T18:56:52.000Z
|
def publish_release(source, config, target):
"""
Publish a new release as a Docker image
This is a mock implementation used for unit tests
"""
return None
| 19.666667
| 53
| 0.672316
| 25
| 177
| 4.72
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.265537
| 177
| 8
| 54
| 22.125
| 0.907692
| 0.508475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.