X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Foptions.py;h=5e4a1ad9b2f9e38b3ac6752f50871a4344e3cebe;hb=78271e33197e56452dc60f075bd326cb908e8e7f;hp=e3b4b8a8ae42578c8a1e2975751603632ce318ad;hpb=cfb56d1af38f3e1e0251dbd8a20e3ed8884976ff;p=youtube-dl diff --git a/youtube_dl/options.py b/youtube_dl/options.py index e3b4b8a8a..5e4a1ad9b 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -200,6 +200,10 @@ def parseOpts(overrideArguments=None): '--playlist-end', dest='playlistend', metavar='NUMBER', default=None, type=int, help='playlist video to end at (default is last)') + selection.add_option( + '--playlist-items', + dest='playlist_items', metavar='ITEM_SPEC', default=None, + help='playlist video items to download. Specify indices of the videos in the playlist seperated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.') selection.add_option( '--match-title', dest='matchtitle', metavar='REGEX', @@ -293,7 +297,7 @@ def parseOpts(overrideArguments=None): ' You can filter the video results by putting a condition in' ' brackets, as in -f "best[height=720]"' ' (or -f "[filesize>10M]"). ' - ' This works for filesize, height, width, tbr, abr, and vbr' + ' This works for filesize, height, width, tbr, abr, vbr, and fps' ' and the comparisons <, <=, >, >=, =, != .' ' Formats for which the value is not known are excluded unless you' ' put a question mark (?) after the operator.' @@ -373,7 +377,7 @@ def parseOpts(overrideArguments=None): downloader.add_option( '-R', '--retries', dest='retries', metavar='RETRIES', default=10, - help='number of retries (default is %default)') + help='number of retries (default is %default), or "infinite".') downloader.add_option( '--buffer-size', dest='buffersize', metavar='SIZE', default='1024', @@ -390,6 +394,10 @@ def parseOpts(overrideArguments=None): '--playlist-reverse', action='store_true', help='Download playlist videos in reverse order') + downloader.add_option( + '--xattr-set-filesize', + dest='xattr_set_filesize', action='store_true', + help='(experimental) set file xattribute ytdl.filesize with expected filesize') downloader.add_option( '--external-downloader', dest='external_downloader', metavar='COMMAND', @@ -638,6 +646,10 @@ def parseOpts(overrideArguments=None): '--write-thumbnail', action='store_true', dest='writethumbnail', default=False, help='write thumbnail image to disk') + thumbnail.add_option( + '--write-all-thumbnails', + action='store_true', dest='write_all_thumbnails', default=False, + help='write all thumbnail image formats to disk') thumbnail.add_option( '--list-thumbnails', action='store_true', dest='list_thumbnails', default=False,