mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-02 08:54:52 +00:00
[outtmpl] Add type link
for internet shortcut files
and refactor related code Closes #1405
This commit is contained in:
@@ -4503,6 +4503,7 @@ OUTTMPL_TYPES = {
|
||||
'description': 'description',
|
||||
'annotation': 'annotations.xml',
|
||||
'infojson': 'info.json',
|
||||
'link': None,
|
||||
'pl_thumbnail': None,
|
||||
'pl_description': 'description',
|
||||
'pl_infojson': 'info.json',
|
||||
@@ -6238,6 +6239,12 @@ URL=%(url)s
|
||||
Icon=text-html
|
||||
'''.lstrip()
|
||||
|
||||
LINK_TEMPLATES = {
|
||||
'url': DOT_URL_LINK_TEMPLATE,
|
||||
'desktop': DOT_DESKTOP_LINK_TEMPLATE,
|
||||
'webloc': DOT_WEBLOC_LINK_TEMPLATE,
|
||||
}
|
||||
|
||||
|
||||
def iri_to_uri(iri):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user