[outtmpl] Add type link for internet shortcut files

and refactor related code
Closes #1405
This commit is contained in:
pukkandan
2021-10-26 20:11:59 +05:30
parent 7de837a5e3
commit 08438d2ca5
3 changed files with 39 additions and 46 deletions

View File

@@ -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):
"""