Skip to content

Commit

Permalink
[ie/ArteTV] Fix refactor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vtexier committed May 18, 2024
1 parent 054b750 commit 7250978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt_dlp/extractor/arte.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ class ArteTVIE(ArteTVBaseIE):
def _fix_accessible_subs_locale(subs):
updated_subs = {}
for lang, sub_formats in subs.items():
for fmt in sub_formats:
url = fmt.get('url') or ''
for format_ in sub_formats:
url = format_.get('url') or ''
suffix = ('acc' if url.endswith('-MAL.m3u8')
else 'partial' if '_VO' not in url
else None)
updated_subs.setdefault(join_nonempty(lang, suffix), []).append(format)
updated_subs.setdefault(join_nonempty(lang, suffix), []).append(format_)
return updated_subs

def _real_extract(self, url):
Expand Down

0 comments on commit 7250978

Please sign in to comment.