about summary refs log tree commit diff
path: root/overlays/patches/youtube-dl/fix-youtube-bitrate.diff
blob: b633d64101604b7797083f2904e2c54913bc6713 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1367,10 +1367,8 @@
             raise ExtractorError('No video formats found')
 
         for f in formats:
-            # Automatically determine tbr when missing based on abr and vbr (improves
-            # formats sorting in some cases)
-            if 'tbr' not in f and f.get('abr') is not None and f.get('vbr') is not None:
-                f['tbr'] = f['abr'] + f['vbr']
+            if f.get('vcodec') != 'none':
+                f['tbr'] = None
 
         def _formats_key(f):
             # TODO remove the following workaround