aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-10-27 16:07:21 +0530
committerpukkandan <pukkandan@gmail.com>2020-12-13 20:05:04 +0530
commit732044afb2e8ffbaa37fe91310906ff549edd6ad (patch)
tree14e8d9cb6b067551dce4ec89c209b699124db13e /youtube_dlc/options.py
parente51f368c275ea94dccc5cf4e07960d9c9633dfd5 (diff)
downloadhypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.tar.lz
hypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.tar.xz
hypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.zip
Add --write-*-link by h-h-h-h
Authored-by: h-h-h-h
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r--youtube_dlc/options.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index 44eba3e9c..bd85abd3a 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -830,7 +830,25 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='list_thumbnails', default=False,
help='Simulate and list all available thumbnail formats')
- postproc = optparse.OptionGroup(parser, 'Post-processing Options')
+ link = optparse.OptionGroup(parser, 'Internet Shortcut Options')
+ link.add_option(
+ '--write-link',
+ action='store_true', dest='writelink', default=False,
+ help='Write an internet shortcut file, depending on the current platform (.url/.webloc/.desktop). The URL may be cached by the OS.')
+ link.add_option(
+ '--write-url-link',
+ action='store_true', dest='writeurllink', default=False,
+ help='Write a Windows internet shortcut file (.url). Note that the OS caches the URL based on the file path.')
+ link.add_option(
+ '--write-webloc-link',
+ action='store_true', dest='writewebloclink', default=False,
+ help='Write a macOS internet shortcut file (.webloc)')
+ link.add_option(
+ '--write-desktop-link',
+ action='store_true', dest='writedesktoplink', default=False,
+ help='Write a Linux internet shortcut file (.desktop)')
+
+ postproc = optparse.OptionGroup(parser, 'Post-Processing Options')
postproc.add_option(
'-x', '--extract-audio',
action='store_true', dest='extractaudio', default=False,
@@ -932,6 +950,7 @@ def parseOpts(overrideArguments=None):
parser.add_option_group(downloader)
parser.add_option_group(filesystem)
parser.add_option_group(thumbnail)
+ parser.add_option_group(link)
parser.add_option_group(verbosity)
parser.add_option_group(workarounds)
parser.add_option_group(video_format)