mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[cleanup] Misc
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/PULL_REQUEST_TEMPLATE.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/PULL_REQUEST_TEMPLATE.md
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,18 @@ | |||||||
|  | ### Description of your *pull request* and other information | ||||||
|  | 
 | ||||||
|  | </details> | ||||||
|  | 
 | ||||||
|  | <!-- | ||||||
|  | 
 | ||||||
|  | Explanation of your *pull request* in arbitrary form goes here. Please **make sure the description explains the purpose and effect** of your *pull request* and is worded well enough to be understood. Provide as much **context and examples** as possible | ||||||
|  | 
 | ||||||
|  | --> | ||||||
|  | 
 | ||||||
|  | ADD DESCRIPTION HERE | ||||||
|  | 
 | ||||||
|  | Fixes # | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| <details open><summary>Template</summary> <!-- OPEN is intentional --> | <details open><summary>Template</summary> <!-- OPEN is intentional --> | ||||||
| 
 | 
 | ||||||
| <!-- | <!-- | ||||||
| @@ -24,17 +39,3 @@ | |||||||
| - [ ] New extractor ([Piracy websites will not be accepted](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#is-the-website-primarily-used-for-piracy)) | - [ ] New extractor ([Piracy websites will not be accepted](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#is-the-website-primarily-used-for-piracy)) | ||||||
| - [ ] Core bug fix/improvement | - [ ] Core bug fix/improvement | ||||||
| - [ ] New feature (It is strongly [recommended to open an issue first](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#adding-new-feature-or-making-overarching-changes)) | - [ ] New feature (It is strongly [recommended to open an issue first](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#adding-new-feature-or-making-overarching-changes)) | ||||||
| 
 |  | ||||||
| ### Description of your *pull request* and other information |  | ||||||
| 
 |  | ||||||
| </details> |  | ||||||
| 
 |  | ||||||
| <!-- |  | ||||||
| 
 |  | ||||||
| Explanation of your *pull request* in arbitrary form goes here. Please **make sure the description explains the purpose and effect** of your *pull request* and is worded well enough to be understood. Provide as much **context and examples** as possible |  | ||||||
| 
 |  | ||||||
| --> |  | ||||||
| 
 |  | ||||||
| DESCRIPTION |  | ||||||
| 
 |  | ||||||
| Fixes # |  | ||||||
|   | |||||||
| @@ -222,7 +222,7 @@ After you have ensured this site is distributing its content legally, you can fo | |||||||
| 
 | 
 | ||||||
|         $ flake8 yt_dlp/extractor/yourextractor.py |         $ flake8 yt_dlp/extractor/yourextractor.py | ||||||
| 
 | 
 | ||||||
| 1. Make sure your code works under all [Python](https://www.python.org/) versions supported by yt-dlp, namely CPython and PyPy for Python 3.6 and above. Backward compatibility is not required for even older versions of Python. | 1. Make sure your code works under all [Python](https://www.python.org/) versions supported by yt-dlp, namely CPython and PyPy for Python 3.7 and above. Backward compatibility is not required for even older versions of Python. | ||||||
| 1. When the tests pass, [add](https://git-scm.com/docs/git-add) the new files, [commit](https://git-scm.com/docs/git-commit) them and [push](https://git-scm.com/docs/git-push) the result, like this: | 1. When the tests pass, [add](https://git-scm.com/docs/git-add) the new files, [commit](https://git-scm.com/docs/git-commit) them and [push](https://git-scm.com/docs/git-push) the result, like this: | ||||||
| 
 | 
 | ||||||
|         $ git add yt_dlp/extractor/_extractors.py |         $ git add yt_dlp/extractor/_extractors.py | ||||||
|   | |||||||
| @@ -31,7 +31,7 @@ setenv = | |||||||
|  |  | ||||||
|  |  | ||||||
| [isort] | [isort] | ||||||
| py_version = 36 | py_version = 37 | ||||||
| multi_line_output = VERTICAL_HANGING_INDENT | multi_line_output = VERTICAL_HANGING_INDENT | ||||||
| line_length = 80 | line_length = 80 | ||||||
| reverse_relative = true | reverse_relative = true | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ try: | |||||||
| except ImportError: | except ImportError: | ||||||
|     try: |     try: | ||||||
|         from Crypto.Cipher import AES as Cryptodome_AES |         from Crypto.Cipher import AES as Cryptodome_AES | ||||||
|     except ImportError: |     except (ImportError, SyntaxError):  # Old Crypto gives SyntaxError in newer Python | ||||||
|         Cryptodome_AES = None |         Cryptodome_AES = None | ||||||
|     else: |     else: | ||||||
|         try: |         try: | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ class MindsIE(MindsBaseIE): | |||||||
|             else: |             else: | ||||||
|                 return self.url_result(entity['perma_url']) |                 return self.url_result(entity['perma_url']) | ||||||
|         else: |         else: | ||||||
|             assert(entity['subtype'] == 'video') |             assert entity['subtype'] == 'video' | ||||||
|             video_id = entity_id |             video_id = entity_id | ||||||
|         # 1080p and webm formats available only on the sources array |         # 1080p and webm formats available only on the sources array | ||||||
|         video = self._call_api( |         video = self._call_api( | ||||||
|   | |||||||
| @@ -3562,8 +3562,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | |||||||
| 
 | 
 | ||||||
|         formats.extend(self._extract_storyboard(player_responses, duration)) |         formats.extend(self._extract_storyboard(player_responses, duration)) | ||||||
| 
 | 
 | ||||||
|         # Source is given priority since formats that throttle are given lower source_preference |         # source_preference is lower for throttled/potentially damaged formats | ||||||
|         # When throttling issue is fully fixed, remove this |  | ||||||
|         self._sort_formats(formats, ('quality', 'res', 'fps', 'hdr:12', 'source', 'codec:vp9.2', 'lang', 'proto')) |         self._sort_formats(formats, ('quality', 'res', 'fps', 'hdr:12', 'source', 'codec:vp9.2', 'lang', 'proto')) | ||||||
| 
 | 
 | ||||||
|         info = { |         info = { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan