[gimp-web/wip/schumaml/download-magnet-uris: 35/36] downloads: add magnet uris for macOS and Microsoft Windows torrents




commit 547e7ac6bd56ff459e6bcefb629e904ac10092ec
Author: Michael Schumacher <schumaml gmx de>
Date:   Sat Dec 19 23:08:00 2020 +0100

    downloads: add magnet uris for macOS and Microsoft Windows torrents
    
    Added xt (sha256), dn (filename) and xs (/mirror/pub/... url) parameters.

 themes/newgimp/templates/downloads.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index 4e6bce4b..d2d460a8 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -143,8 +143,7 @@
                     Download GIMP&nbsp;{{ MACOS_VER }}<br/>
                     via BitTorrent
                 </a>
-
-               <a href="magnet:?xt=urn:{{MACOS_HASH_FUN}}:{{MACOS_HASH}}">🧲</a>
+               <a href="magnet:?xt=urn:{{MACOS_HASH_FUN}}:{{MACOS_HASH}}&dn={{ MACOS_FILE 
}}&xs=https://download.gimp.org/mirror/pub/gimp/v{{ MACOS_MAJOR_MINOR_VER }}/osx/{{ MACOS_FILE }}">🧲</a>
             </span>
             <span class='win-button'>
                 <a href="//download.gimp.org/mirror/pub/gimp/v{{ MACOS_MAJOR_MINOR_VER }}/osx/{{ MACOS_FILE 
}}">
@@ -283,6 +282,7 @@
                 Download GIMP&nbsp;{{ WINDOWS_VER }}<br/>
                 via BitTorrent
             </a>
+            <a href="magnet:?xt=urn:{{WINDOWS_HASH_FUN}}:{{WINDOWS_HASH}}&dn={{ WINDOWS_FILE 
}}&xs=https://download.gimp.org/mirror/pub/gimp/v{{ WINDOWS_MAJOR_MINOR_VER }}/windows/{{ WINDOWS_FILE 
}}">🧲</a>
         </span>
         <span class='win-button'>
             <a


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]