mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	PEP8: more applied
This commit is contained in:
		| @@ -1,8 +1,5 @@ | |||||||
| #!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||||
| import hashlib | import hashlib | ||||||
| import shutil |  | ||||||
| import subprocess |  | ||||||
| import tempfile |  | ||||||
| import urllib.request | import urllib.request | ||||||
| import json | import json | ||||||
|  |  | ||||||
|   | |||||||
| @@ -45,7 +45,6 @@ from youtube_dl.utils import ( | |||||||
|     escape_rfc3986, |     escape_rfc3986, | ||||||
|     escape_url, |     escape_url, | ||||||
|     js_to_json, |     js_to_json, | ||||||
|     get_filesystem_encoding, |  | ||||||
|     intlist_to_bytes, |     intlist_to_bytes, | ||||||
|     args_to_str, |     args_to_str, | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -12,10 +12,6 @@ from test.helper import FakeYDL | |||||||
| from youtube_dl.extractor import ( | from youtube_dl.extractor import ( | ||||||
|     YoutubePlaylistIE, |     YoutubePlaylistIE, | ||||||
|     YoutubeIE, |     YoutubeIE, | ||||||
|     YoutubeChannelIE, |  | ||||||
|     YoutubeShowIE, |  | ||||||
|     YoutubeTopListIE, |  | ||||||
|     YoutubeSearchURLIE, |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,7 +29,6 @@ from .compat import ( | |||||||
|     compat_str, |     compat_str, | ||||||
|     compat_urllib_error, |     compat_urllib_error, | ||||||
|     compat_urllib_request, |     compat_urllib_request, | ||||||
|     shlex_quote, |  | ||||||
| ) | ) | ||||||
| from .utils import ( | from .utils import ( | ||||||
|     escape_url, |     escape_url, | ||||||
|   | |||||||
| @@ -19,8 +19,7 @@ class LiveLeakIE(InfoExtractor): | |||||||
|             'uploader': 'ljfriel2', |             'uploader': 'ljfriel2', | ||||||
|             'title': 'Most unlucky car accident' |             'title': 'Most unlucky car accident' | ||||||
|         } |         } | ||||||
|     }, |     }, { | ||||||
|     { |  | ||||||
|         'url': 'http://www.liveleak.com/view?i=f93_1390833151', |         'url': 'http://www.liveleak.com/view?i=f93_1390833151', | ||||||
|         'md5': 'd3f1367d14cc3c15bf24fbfbe04b9abf', |         'md5': 'd3f1367d14cc3c15bf24fbfbe04b9abf', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
| @@ -30,8 +29,7 @@ class LiveLeakIE(InfoExtractor): | |||||||
|             'uploader': 'ARD_Stinkt', |             'uploader': 'ARD_Stinkt', | ||||||
|             'title': 'German Television does first Edward Snowden Interview (ENGLISH)', |             'title': 'German Television does first Edward Snowden Interview (ENGLISH)', | ||||||
|         } |         } | ||||||
|     }, |     }, { | ||||||
|     { |  | ||||||
|         'url': 'http://www.liveleak.com/view?i=4f7_1392687779', |         'url': 'http://www.liveleak.com/view?i=4f7_1392687779', | ||||||
|         'md5': '42c6d97d54f1db107958760788c5f48f', |         'md5': '42c6d97d54f1db107958760788c5f48f', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
|   | |||||||
| @@ -245,7 +245,7 @@ class MTVIE(MTVServicesInfoExtractor): | |||||||
|             m_vevo = re.search(r'isVevoVideo = true;.*?vevoVideoId = "(.*?)";', |             m_vevo = re.search(r'isVevoVideo = true;.*?vevoVideoId = "(.*?)";', | ||||||
|                                webpage, re.DOTALL) |                                webpage, re.DOTALL) | ||||||
|             if m_vevo: |             if m_vevo: | ||||||
|                 vevo_id = m_vevo.group(1); |                 vevo_id = m_vevo.group(1) | ||||||
|                 self.to_screen('Vevo video detected: %s' % vevo_id) |                 self.to_screen('Vevo video detected: %s' % vevo_id) | ||||||
|                 return self.url_result('vevo:%s' % vevo_id, ie='Vevo') |                 return self.url_result('vevo:%s' % vevo_id, ie='Vevo') | ||||||
|  |  | ||||||
|   | |||||||
| @@ -181,8 +181,10 @@ class YoutubeBaseInfoExtractor(InfoExtractor): | |||||||
|             'next_url': '/', |             'next_url': '/', | ||||||
|             'action_confirm': 'Confirm', |             'action_confirm': 'Confirm', | ||||||
|         } |         } | ||||||
|         req = compat_urllib_request.Request(self._AGE_URL, |         req = compat_urllib_request.Request( | ||||||
|             compat_urllib_parse.urlencode(age_form).encode('ascii')) |             self._AGE_URL, | ||||||
|  |             compat_urllib_parse.urlencode(age_form).encode('ascii') | ||||||
|  |         ) | ||||||
|  |  | ||||||
|         self._download_webpage( |         self._download_webpage( | ||||||
|             req, None, |             req, None, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jouke Waleson
					Jouke Waleson