diff options
author | DjLegolas <djlegolas@protonmail.com> | 2021-12-29 20:13:59 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-12-29 21:38:55 +0000 |
commit | f3784723ae54b9394dd3db219457071ab9b48ecb (patch) | |
tree | 062e5ea4d13fabd0e57a5cfc012e0cd955002b5f /deluge/ui | |
parent | 7f5857296e5f21eea6c8dec9b56a51e352e8bfbb (diff) | |
download | deluge-f3784723ae54b9394dd3db219457071ab9b48ecb.tar.gz deluge-f3784723ae54b9394dd3db219457071ab9b48ecb.tar.bz2 deluge-f3784723ae54b9394dd3db219457071ab9b48ecb.zip |
[UI] Add SVG support for tracker icons
SVG files are supported by all browsers so need to support it as well,
according to https://www.w3schools.com/html/html_favicon.asp
Also, it appears as SEO.com site, which was dropped because of a cert issue,
has only SVG icon. So enabled it again.
Lastly, from python 3.2, `os.path.samefile` is supported on Windows.
So Windows will now test TrackerIcons as well.
Diffstat (limited to 'deluge/ui')
-rw-r--r-- | deluge/ui/tracker_icons.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index 3f3ca4dbe..a1bcd78b5 100644 --- a/deluge/ui/tracker_icons.py +++ b/deluge/ui/tracker_icons.py @@ -609,11 +609,13 @@ MIME_MAP = { 'image/png': 'png', 'image/vnd.microsoft.icon': 'ico', 'image/x-icon': 'ico', + 'image/svg+xml': 'svg', 'gif': 'image/gif', 'jpg': 'image/jpeg', 'jpeg': 'image/jpeg', 'png': 'image/png', 'ico': 'image/vnd.microsoft.icon', + 'svg': 'image/svg+xml', } |