File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python3
2
2
3
3
# change log:
4
+ # HarHarLinks: fix video bitrate support
4
5
# geb666: original bsc.py, based on work by Giacomo Bordiga
5
6
# jmdsdf: version 2 adds extra ID3 and EXIF tag support
6
7
# jmdsdf: added better error handling for ID3 tags, added mp3 length support, distinguished
@@ -271,10 +272,6 @@ def file_is_one_of_these(mimetype_list):
271
272
pass
272
273
273
274
if track ["track_type" ] == "Audio" :
274
- try :
275
- info .bitrate = track ['other_bit_rate' ][0 ]
276
- except :
277
- pass
278
275
try :
279
276
info .samplerate = track ['other_sampling_rate' ][0 ]
280
277
except :
@@ -286,6 +283,10 @@ def file_is_one_of_these(mimetype_list):
286
283
pass
287
284
288
285
if track ["track_type" ] == "General" :
286
+ try :
287
+ info .bitrate = track ['other_overall_bit_rate' ][0 ]
288
+ except :
289
+ pass
289
290
try :
290
291
if duration == 0 :
291
292
duration = int (track ['duration' ])
You can’t perform that action at this time.
0 commit comments