Sfoglia il codice sorgente

[options] Add --no-mark-watched (#5054)

Sergey M․ 9 anni fa
parent
commit
90f794c6c3
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      youtube_dl/options.py

+ 4 - 0
youtube_dl/options.py

@@ -174,6 +174,10 @@ def parseOpts(overrideArguments=None):
         '--mark-watched',
         '--mark-watched',
         action='store_true', dest='mark_watched', default=False,
         action='store_true', dest='mark_watched', default=False,
         help='Mark videos watched (YouTube only)')
         help='Mark videos watched (YouTube only)')
+    general.add_option(
+        '--no-mark-watched',
+        action='store_false', dest='mark_watched', default=False,
+        help='Do not mark videos watched (YouTube only)')
     general.add_option(
     general.add_option(
         '--no-color', '--no-colors',
         '--no-color', '--no-colors',
         action='store_true', dest='no_color',
         action='store_true', dest='no_color',