]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils.py
[outtmpl] Add type `link` for internet shortcut files
[yt-dlp.git] / yt_dlp / utils.py
index be93b0ef27219776ac6069673f5afe1751b837dc..9d90eca5e8b9d816d779d50a2b706fd801bf9c6e 100644 (file)
@@ -4503,6 +4503,7 @@ def q(qid):
     'description': 'description',
     'annotation': 'annotations.xml',
     'infojson': 'info.json',
+    'link': None,
     'pl_thumbnail': None,
     'pl_description': 'description',
     'pl_infojson': 'info.json',
@@ -6238,6 +6239,12 @@ def random_birthday(year_field, month_field, day_field):
 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):
     """