1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[cleanup] Add more ruff rules (#10149)

Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
sepro
2024-06-12 01:09:58 +02:00
committed by GitHub
parent db50f19d76
commit add96eb9f8
915 changed files with 7027 additions and 7246 deletions

View File

@ -1,7 +1,6 @@
import urllib.request
import urllib.parse
from .common import InfoExtractor
from ..compat import compat_parse_qs
from ..utils import ExtractorError
@ -16,7 +15,7 @@ class ScreencastIE(InfoExtractor):
'title': 'Color Measurement with Ocean Optics Spectrometers',
'description': 'md5:240369cde69d8bed61349a199c5fb153',
'thumbnail': r're:^https?://.*\.(?:gif|jpg)$',
}
},
}, {
'url': 'http://www.screencast.com/t/V2uXehPJa1ZI',
'md5': 'e8e4b375a7660a9e7e35c33973410d34',
@ -26,7 +25,7 @@ class ScreencastIE(InfoExtractor):
'title': 'The Amadeus Spectrometer',
'description': 're:^In this video, our friends at.*To learn more about Amadeus, visit',
'thumbnail': r're:^https?://.*\.(?:gif|jpg)$',
}
},
}, {
'url': 'http://www.screencast.com/t/aAB3iowa',
'md5': 'dedb2734ed00c9755761ccaee88527cd',
@ -36,7 +35,7 @@ class ScreencastIE(InfoExtractor):
'title': 'Google Earth Export',
'description': 'Provides a demo of a CommunityViz export to Google Earth, one of the 3D viewing options.',
'thumbnail': r're:^https?://.*\.(?:gif|jpg)$',
}
},
}, {
'url': 'http://www.screencast.com/t/X3ddTrYh',
'md5': '669ee55ff9c51988b4ebc0877cc8b159',
@ -46,7 +45,7 @@ class ScreencastIE(InfoExtractor):
'title': 'Toolkit 6 User Group Webinar (2014-03-04) - Default Judgment and First Impression',
'description': 'md5:7b9f393bc92af02326a5c5889639eab0',
'thumbnail': r're:^https?://.*\.(?:gif|jpg)$',
}
},
}, {
'url': 'http://screencast.com/t/aAB3iowa',
'only_matching': True,
@ -71,8 +70,8 @@ class ScreencastIE(InfoExtractor):
if flash_vars_s:
flash_vars_s = flash_vars_s.replace(',', '&')
if flash_vars_s:
flash_vars = compat_parse_qs(flash_vars_s)
video_url_raw = urllib.request.quote(
flash_vars = urllib.parse.parse_qs(flash_vars_s)
video_url_raw = urllib.parse.quote(
flash_vars['content'][0])
video_url = video_url_raw.replace('http%3A', 'http:')