[YoutubeDL] format spec: fix handling of '/' with ','
[youtube-dl] / youtube_dl / YoutubeDL.py
index 5deb4848e8c9fc29245782a9f4dde55cd6e16133..5a79e5f1d16cfc33d136574d2eb7b0b42cdf6142 100755 (executable)
@@ -958,8 +958,7 @@ class YoutubeDL(object):
                     elif string == '/':
                         first_choice = current_selector
                         second_choice = _parse_format_selection(tokens, inside_choice=True)
-                        current_selector = None
-                        selectors.append(FormatSelector(PICKFIRST, (first_choice, second_choice), []))
+                        current_selector = FormatSelector(PICKFIRST, (first_choice, second_choice), [])
                     elif string == '[':
                         if not current_selector:
                             current_selector = FormatSelector(SINGLE, 'best', [])