mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[YoutubeDL] Improve _format_note
This commit is contained in:
		| @@ -502,6 +502,10 @@ class TestYoutubeDL(unittest.TestCase): | |||||||
|         assertRegexpMatches(self, ydl._format_note({ |         assertRegexpMatches(self, ydl._format_note({ | ||||||
|             'vbr': 10, |             'vbr': 10, | ||||||
|         }), '^\s*10k$') |         }), '^\s*10k$') | ||||||
|  |         assertRegexpMatches(self, ydl._format_note({ | ||||||
|  |             'fps': 30, | ||||||
|  |         }), '^30fps$') | ||||||
|  |  | ||||||
|  |  | ||||||
|     def test_postprocessors(self): |     def test_postprocessors(self): | ||||||
|         filename = 'post-processor-testfile.mp4' |         filename = 'post-processor-testfile.mp4' | ||||||
|   | |||||||
| @@ -1856,7 +1856,9 @@ class YoutubeDL(object): | |||||||
|         if fdict.get('vbr') is not None: |         if fdict.get('vbr') is not None: | ||||||
|             res += '%4dk' % fdict['vbr'] |             res += '%4dk' % fdict['vbr'] | ||||||
|         if fdict.get('fps') is not None: |         if fdict.get('fps') is not None: | ||||||
|             res += ', %sfps' % fdict['fps'] |             if res: | ||||||
|  |                 res += ', ' | ||||||
|  |             res += '%sfps' % fdict['fps'] | ||||||
|         if fdict.get('acodec') is not None: |         if fdict.get('acodec') is not None: | ||||||
|             if res: |             if res: | ||||||
|                 res += ', ' |                 res += ', ' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user