mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-15 03:41:33 +01:00
Make audio description the lowest priority
Co-Authored-By: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
parent
a22562a634
commit
9f0fe94e8a
2 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,7 @@ from ..utils import (
|
||||||
from ..utils.traversal import traverse_obj
|
from ..utils.traversal import traverse_obj
|
||||||
|
|
||||||
|
|
||||||
class RTSIE(SRGSSRIE):
|
class RTSIE(SRGSSRIE): # XXX: Do not subclass from concrete IE
|
||||||
_GEO_COUNTRIES = ['CH']
|
_GEO_COUNTRIES = ['CH']
|
||||||
IE_DESC = 'RTS.ch'
|
IE_DESC = 'RTS.ch'
|
||||||
_VALID_URL = [
|
_VALID_URL = [
|
||||||
|
|
|
@ -128,6 +128,10 @@ class SRGSSRIE(InfoExtractor):
|
||||||
'quality': q(quality),
|
'quality': q(quality),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
for idx, fmt in enumerate(formats):
|
||||||
|
if fmt['format_id'].endswith('(AD)'):
|
||||||
|
formats[idx]['language_preference'] = -10
|
||||||
|
|
||||||
if media_type == 'video':
|
if media_type == 'video':
|
||||||
for sub in (media_data.get('subtitleList') or []):
|
for sub in (media_data.get('subtitleList') or []):
|
||||||
sub_url = sub.get('url')
|
sub_url = sub.get('url')
|
||||||
|
|
Loading…
Reference in a new issue