From 71dac18d470d3edbbd0628c59f5a17d1f9a6dba6 Mon Sep 17 00:00:00 2001 From: N0tACyb0rg Date: Wed, 29 May 2024 12:00:46 -0700 Subject: [PATCH 1/5] Fix #110. --- browser-extension/background.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/browser-extension/background.js b/browser-extension/background.js index fe996d5..6103a46 100644 --- a/browser-extension/background.js +++ b/browser-extension/background.js @@ -1,3 +1,5 @@ +let startTime = Date.now(); + chrome.runtime.onInstalled.addListener(function(details) { if (details.reason === 'install') { chrome.storage.sync.set({enabled: true}); @@ -5,6 +7,11 @@ chrome.runtime.onInstalled.addListener(function(details) { }); chrome.downloads.onCreated.addListener(function(downloadItem) { + var downloadTime = new Date(downloadItem.startTime).getTime(); + if (downloadTime < startTime) { + return; + } + chrome.storage.sync.get('enabled', function(data) { if (data.enabled) { sendToAria2(downloadItem); From 232dc9fdb65466ff7a8da4a66f403e91a7d541fc Mon Sep 17 00:00:00 2001 From: volkov Date: Sat, 10 Aug 2024 01:15:43 +0300 Subject: [PATCH 2/5] Update Ukrainian translation. --- po/uk.po | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 160 insertions(+), 10 deletions(-) diff --git a/po/uk.po b/po/uk.po index b9f5f34..090c8c7 100644 --- a/po/uk.po +++ b/po/uk.po @@ -1,21 +1,21 @@ # Ukrainian translation for Varia. -# Copyright (C) 2023 THE Varia's COPYRIGHT HOLDER +# Copyright (C) 2024 THE Varia's COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# volkov , 2023. +# volkov , 2024. # msgid "" msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" +"Project-Id-Version: Varia\n" +"Report-Msgid-Bugs-To: https://github.com/giantpinkrobots/varia/issues\n" "POT-Creation-Date: 2023-11-30 03:17+0300\n" -"PO-Revision-Date: 2023-12-08 15:49+0200\n" +"PO-Revision-Date: 2024-08-10 01:12+0300\n" "Last-Translator: volkov \n" -"Language-Team: \n" +"Language-Team: volkov \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4\n" +"X-Generator: Poedit 3.4.4\n" #. Translators: Do NOT translate or localize the application name. #: data/io.github.giantpinkrobots.varia.desktop.in:4 @@ -26,7 +26,9 @@ msgstr "" #. Translators: These are search terms to find this application. Do NOT translate or localize the semicolons. The list MUST also end with a semicolon. #: data/io.github.giantpinkrobots.varia.desktop.in:11 msgid "varia;aria;download;manager;" -msgstr "varia;aria;download;manager;завантажувач;скачати;зберегти;варія;арія;" +msgstr "" +"varia;aria;download;manager;torrent;завантажувач;скачати;зберегти;варія;арія;" +"закачати;торрент;" #: data/io.github.giantpinkrobots.varia.metainfo.xml.in:4 msgid "Download manager based on aria2" @@ -46,6 +48,18 @@ msgstr "" msgid "This is not a valid URL." msgstr "Це не правильна URL-адреса." +#: src/variamain.py:125 +msgid "All" +msgstr "Усі" + +#: src/variamain.py:137 +msgid "In Progress" +msgstr "В процесі" + +#: src/variamain.py:148 +msgid "Completed" +msgstr "Завершено" + #: src/variamain.py:171 msgid "About Varia" msgstr "Про Varia" @@ -126,6 +140,10 @@ msgstr " КБ/с" msgid " B/s" msgstr " Б/с" +#: src/variamain.py:404 +msgid "Simultaneous Download Amount" +msgstr "Кількість одночасних завантажень" + #: src/variamain.py:410 msgid "Resume All" msgstr "Відновити всі" @@ -141,8 +159,12 @@ msgid "This application relies on the following pieces of software:" msgstr "Цей додаток покладається на наступне програмне забезпечення:" #: src/variamain.py:777 -msgid "The licenses of all of these pieces of software can be found in the dependencies_information directory in this application's app directory." -msgstr "Знайти ліцензії усього перерахованого програмного забезпечення можна у теці 'dependencies_information' цього додатку." +msgid "" +"The licenses of all of these pieces of software can be found in the " +"dependencies_information directory in this application's app directory." +msgstr "" +"Знайти ліцензії усього перерахованого програмного забезпечення можна у теці " +"'dependencies_information' цього додатку." #: src/variamain.py:449 msgid "translator-credits" @@ -176,6 +198,134 @@ msgstr "Пароль" msgid "Authorization failed." msgstr "Не вдалося авторизуватися." +#: src/variamain.py:806 +msgid "Failed to open directory." +msgstr "Не вдалося відкрити теку." + +msgid "Remote Mode" +msgstr "Віддалений режим" + +msgid "Remote aria2 IP" +msgstr "Віддалений aria2 IP-адреса" + +msgid "Remote aria2 Port" +msgstr "Віддалений aria2 Порт" + +# https://uk.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%BB%D0%B8%D0%BA_%D0%B2%D1%96%D0%B4%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%85_%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D0%B4%D1%83%D1%80 +msgid "Remote aria2 RPC Secret" +msgstr "Віддалений aria2 RPC секрет" + +msgid "Remote Download Location" +msgstr "Розташування віддалених завантажень" + +msgid "Exiting Varia..." +msgstr "Виходимо з Varia..." + +msgid "Background Mode" +msgstr "Режим заднього фону" + +msgid "Continuing the downloads in the background." +msgstr "Продовжувати завантаження у фоні." + +msgid "Browser Extension" +msgstr "Розширення для браузеру" + +msgid "Shutdown on Completion" +msgstr "Вимкнути комп'ютер при завершенні" + +msgid "Varia is about to shut down your computer." +msgstr "Varia збирається вимкнути ваш комп'ютер." + +msgid "Press Cancel to cancel and disable." +msgstr "Натисніть 'Скасувати', щоб скасувати." + +msgid "Cancel" +msgstr "Скасувати" + +msgid "Warning" +msgstr "Увага" + +msgid "Monday" +msgstr "Понеділок" + +msgid "Tuesday" +msgstr "Вівторок" + +msgid "Wednesday" +msgstr "Середа" + +msgid "Thursday" +msgstr "Четвер" + +msgid "Friday" +msgstr "П'ятниця" + +msgid "Saturday" +msgstr "Субота" + +msgid "Sunday" +msgstr "Неділя" + +msgid "Start (h/m):" +msgstr "Початок (год./хв.)" + +msgid "End (h/m):" +msgstr "Кінець (год./хв.)" + +msgid "Scheduler enabled" +msgstr "Планувальник увімкнено" + +msgid "Scheduler" +msgstr "Планувальник" + +msgid "Enabled" +msgstr "Увімкнено" + +msgid "Start downloading in these times" +msgstr "Розпочати завантаження у ці часи" + +msgid "Stop downloading in these times" +msgstr "Зупинити завантаження у ці часи" + +msgid "Add Timespan" +msgstr "Додати проміжок часу" + +msgid "Seeding" +msgstr "Роздається" + +msgid "Failed" +msgstr "Не вдалося" + +msgid "Completion Options" +msgstr "Налаштування завершення" + +msgid "Exit on Completion" +msgstr "Закрити додаток при завершенні" + +msgid "Varia is about to quit." +msgstr "Varia завершує роботу." + +msgid "Preferences" +msgstr "Налаштування" + +msgid "Other" +msgstr "Інше" + +msgid "Basic Settings" +msgstr "Базові налаштування" + +msgid "Advanced Settings" +msgstr "Налаштування для досвідчених" + +msgid "Use cookies.txt" +msgstr "Використовувати cookies.txt" + +msgid "Import cookies.txt" +msgstr "Імпортувати cookies.txt" + +msgid "Remove cookies.txt" +msgstr "Видалити cookies.txt" + #: src/gtk/help-overlay.ui:11 msgctxt "shortcut window" msgid "General" From 51a5b51bec3846280143d20d5625e1695cc55513 Mon Sep 17 00:00:00 2001 From: Vovkiv <54743395+Vovkiv@users.noreply.github.com> Date: Sun, 22 Sep 2024 11:35:00 +0000 Subject: [PATCH 3/5] Update Ukrainian translation With new strings --- po/uk.po | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/po/uk.po b/po/uk.po index 090c8c7..0551ea1 100644 --- a/po/uk.po +++ b/po/uk.po @@ -6,9 +6,9 @@ msgid "" msgstr "" "Project-Id-Version: Varia\n" -"Report-Msgid-Bugs-To: https://github.com/giantpinkrobots/varia/issues\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-11-30 03:17+0300\n" -"PO-Revision-Date: 2024-08-10 01:12+0300\n" +"PO-Revision-Date: 2024-09-22 14:32+0300\n" "Last-Translator: volkov \n" "Language-Team: volkov \n" "Language: uk\n" @@ -326,6 +326,15 @@ msgstr "Імпортувати cookies.txt" msgid "Remove cookies.txt" msgstr "Видалити cookies.txt" +msgid "remaining" +msgstr "залишилося" + +msgid "Start in Background Mode" +msgstr "Запускати у задньому фоні" + +msgid "Remote Timestamp" +msgstr "Віддалені позначки часу" + #: src/gtk/help-overlay.ui:11 msgctxt "shortcut window" msgid "General" From 015e8aa664dbce167e9419d23c1d665b022a7285 Mon Sep 17 00:00:00 2001 From: Giant Pink Robots! Date: Thu, 7 Nov 2024 19:22:35 +0300 Subject: [PATCH 4/5] Squashed commit of the following: commit 26cbb233a2e7e52c92d1c45966a32b9f5a2e3e56 Merge: 7938cdc f9aab9a Author: Giant Pink Robots! Date: Thu Nov 7 19:11:27 2024 +0300 Merge pull request #122 from Nekothegamer/next Update Italian translation commit 7938cdcc961ed167f8228a6b47f3d474feb9c024 Author: Giant Pink Robots! Date: Thu Nov 7 19:09:56 2024 +0300 Preparation for new version: v2024.11.7 - All necessary metadata updated with the new version string and changelogs. - Last minute bug fix regarding the Update function on Windows. (aria2 couldn't download to working directory) - Screenshots updated again to reflect the latest bug fixes. - README layout adjustments. - All links in the Homepage set to download the latest binaries. - python3-aria2p Python library updated for Flatpak. commit ea8b2eae9ba9010da440e02badd6005cbf6340b9 Author: Giant Pink Robots! Date: Tue Nov 5 18:34:38 2024 +0300 UI adjustments and bug fixes - The file name in a download process card now cuts off dynamically instead of after a set amount of characters. - Enabling scheduling no longer overwrites the icon in the sidebar Download button. - Switched the simultaneous download amount setting from an Adw.ComboRow to an Adw.SpinRow. - Size of Scheduler window is redefined and it no longer does the weird resizing once a timespan is added. - Margin adjustments for the sake of symmetry, some design alterations to the download process cards. commit b6fd218a5f27311f6b6334a8c42d58513ac9cd30 Author: Giant Pink Robots! Date: Wed Oct 30 03:02:12 2024 +0300 Bug fixes & adjustments - Bug fix regarding pause buttons in download lists (got rid of overly complicated system) - Shutdown after completion now works on Windows - Small UI adjustments commit 6c2f10b3c2b35a0c2682ab5ee84dc4587d8e21eb Merge: 87274a6 e78bf1e Author: Giant Pink Robots! Date: Sat Oct 26 22:32:30 2024 +0300 Merge pull request #129 from Alexmelman88/next Update Russian translation commit e78bf1edc8a1203dae31c0ba374ee0587aab82c2 Author: Alexmelman88 <99257010+Alexmelman88@users.noreply.github.com> Date: Sat Oct 26 17:52:43 2024 +0300 Update ru.po commit 87274a68c10bb2583d4fffb1f05aa45811b43a0f Author: Giant Pink Robots! Date: Sat Oct 26 17:34:14 2024 +0300 Windows version improvements & more - New updater function for Windows, allowing for automatic updates for the installer directly through Github. - Windows version now supports localization and all icons are properly displayed. - New build script for Windows that handles all dependencies (except for aria2), compiling localizations and building with PyInstaller. - Edits to README to document the new build instructions for Windows. - Adherence to the newest GTK 4 standard deprecating widget.show() and hide(). - Landing page improvements with better css and fixes. - Bug fixes regarding threading with GTK and reloading unfinished downloads upon startup. - Better handling of total download speed that actually makes sense. - Removal of unnecessary imports from files. - Up to date screenshots. commit baf332e4e570383038c0f44664e903443ce46652 Author: Alexmelman88 <99257010+Alexmelman88@users.noreply.github.com> Date: Thu Oct 10 18:46:46 2024 +0300 Update Russian translation commit d63739d6dbc914f6177806a26c732f4f112cc5e9 Author: Giant Pink Robots! Date: Fri Sep 27 23:28:22 2024 +0300 Add torrent file button & Adjustments 27 Sept 24 - Sidebar layout adjusted and redesigned, new torrent button added. Download button is no longer clickable when there is no URL set. - ETA string now shows infinity symbol when download speed is zero. - Search enabled in the Preferences screen. - Aria2 now uses "--file-allocation=falloc" when the OS supports it and allows for file overwrites. commit 816832c307d38a538e0dccfe74c91b9498d9a024 Merge: edf5972 ed3e40d Author: Giant Pink Robots! Date: Mon Sep 23 18:10:10 2024 +0300 Merge pull request #105 from haggen88/update-spanish update spanish translation commit ed3e40d66dbbb45c4577a7ad25af00f013d6ce28 Author: haggen88 <68134588+haggen88@users.noreply.github.com> Date: Mon Sep 23 11:38:15 2024 -0300 update spanish commit aab31a87b84d2b2f1501cd63b44e127fff28678e Author: haggen88 <68134588+haggen88@users.noreply.github.com> Date: Mon Sep 23 11:36:56 2024 -0300 Update es.po commit edf59724b4417de9eceb5f94d49f3cb286935445 Author: Giant Pink Robots! Date: Mon Sep 23 14:21:56 2024 +0300 Squashed commit of the following: commit 8232d886f8f2ca0fba02bf3c4c7e67c8bfa8a9de Merge: dac8859 51a5b51 Author: Giant Pink Robots! Date: Mon Sep 23 13:08:51 2024 +0300 Merge pull request #120 from Vovkiv/main Update Ukrainian translation commit 51a5b51bec3846280143d20d5625e1695cc55513 Author: Vovkiv <54743395+Vovkiv@users.noreply.github.com> Date: Sun Sep 22 11:35:00 2024 +0000 Update Ukrainian translation With new strings commit 232dc9fdb65466ff7a8da4a66f403e91a7d541fc Author: volkov Date: Sat Aug 10 01:15:43 2024 +0300 Update Ukrainian translation. commit dac885965157bcb1ba28d497fffd72342d5386fa Merge: 4c0f72e 71dac18 Author: Giant Pink Robots! Date: Sun Jul 28 22:15:05 2024 +0300 Merge pull request #111 from N0tACyb0rg/browserfix Check if Downloads are Older than the Browser Session commit 71dac18d470d3edbbd0628c59f5a17d1f9a6dba6 Author: N0tACyb0rg Date: Wed May 29 12:00:46 2024 -0700 Fix #110. commit 344998bd9e7e89cf1d5cea962835542510e910e6 Merge: ba7aac1 cd5c429 Author: Giant Pink Robots! Date: Mon Sep 23 14:11:52 2024 +0300 Merge pull request #119 from Nokse22/next Added mimetype and icon for .aria2 file commit cd5c4298454eff8457207cbdcd0733ebea5b39fe Merge: 1f0b3f4 1a14946 Author: Giant Pink Robots! Date: Mon Sep 23 14:09:09 2024 +0300 Merge branch 'next' of https://github.com/nokse22/varia into pr/Nokse22/119-1 commit 1f0b3f47da8e8e37e834c16db019cb47973eaa7a Author: Giant Pink Robots! Date: Mon Sep 23 14:08:28 2024 +0300 File extension change Varia now uses the ".varia" file extension instead of ".varia.json". The mimeinfo now registers ".varia" files as "Varia Download Progress" and ".aria2" files as "Aria2 Download Progress". commit 5c80416e6a0c45cc66a4ade1b353dd58383a438e Author: Nokse22 <44558032+Nokse22@users.noreply.github.com> Date: Tue Aug 6 15:08:03 2024 +0200 Added mimetype and icon for .aria2 file commit ba7aac1184f868a7feae88e89b5ba883df35a0f5 Author: Giant Pink Robots! Date: Mon Sep 23 13:38:14 2024 +0300 Fix Russian language Remove a missed duplicate string that was preventing Varia from building commit 21be504cb640bbbbfbb2584a6097df7c31cceb56 Merge: fd2f5b6 2900eac Author: Giant Pink Robots! Date: Mon Sep 23 13:09:42 2024 +0300 Merge pull request #106 from Alexmelman88/next Update Russian translation commit fd2f5b63dd67e6708e635f6d33dfcaf709458187 Merge: 8e17945 ba976df Author: Giant Pink Robots! Date: Mon Sep 23 13:09:21 2024 +0300 Merge pull request #115 from twlvnn/next Added Bulgarian translation commit 8e1794566ae5711bc5a6c2b31f47c60629b304f4 Merge: 5f09fda 8bd9f04 Author: Giant Pink Robots! Date: Mon Sep 23 13:08:00 2024 +0300 Merge pull request #102 from gnuey56/next Update Japanese translation commit 8bd9f04a16cf3148dee823c74d82cb2192263de9 Author: Gnuey56 Date: Mon Sep 23 11:56:46 2024 +0900 Update Japanese translation commit f1f11058a7ac9b4761c929834bc26c7af19a4d2c Merge: eb7f85b 5f09fda Author: Gnuey56 <138874824+gnuey56@users.noreply.github.com> Date: Mon Sep 23 11:26:06 2024 +0900 Merge branch 'giantpinkrobots:next' into next commit 2900eac03553da0110a28fa90997f74a54a6dfab Author: Alexmelman88 <99257010+Alexmelman88@users.noreply.github.com> Date: Sun Sep 22 13:47:57 2024 +0300 Update ru.po commit 23fdcb530364b3b3c07c72039fb300fe443bf671 Merge: 1a11443 5f09fda Author: Alexmelman88 <99257010+Alexmelman88@users.noreply.github.com> Date: Sun Sep 22 13:38:18 2024 +0300 Merge branch 'giantpinkrobots:next' into next commit ba976df31a973197783435fcf0271cfd12fbf296 Author: twlvnn Date: Sun Sep 22 12:30:32 2024 +0200 Updated Bulgarian translation commit c82a8914e4f78875ff1c438e2990d5f4f6ac5996 Merge: 1989d1e 5f09fda Author: twlvnn Date: Sun Sep 22 12:24:35 2024 +0200 Merge branch 'giantpinkrobots:next' into next commit 5f09fda2bc1e2dbf6136938e987469222715be8b Merge: 751c858 cdb4607 Author: Giant Pink Robots! Date: Sun Sep 22 13:11:03 2024 +0300 Merge pull request #124 from lumingzh/translation Add Chinese translation commit cdb46075b7966c8d9236570991ceb81eac2f4c85 Author: lumingzh Date: Sun Sep 22 17:59:21 2024 +0800 update Chinese translation commit 751c858ac45aa608f49c927c6557ef650402c0d1 Author: Giant Pink Robots! Date: Fri Sep 20 20:08:42 2024 +0300 Adjustments - 20 Sept 24 - Switch to some newer Libadwaita widgets - "Exiting Varia" dialog is now shown on top of the main window - Remote aria2 setting re-added - Missing translations added - Homepage screenshots fixed commit ab42cfa5ad5fa97930831dc0622c7c240008fb5a Merge: c7d244e 34e2dd7 Author: Giant Pink Robots! Date: Tue Sep 17 00:23:53 2024 +0300 Merge pull request #127 from N0tACyb0rg/timelabel Add Time Remaining for Downloads commit 34e2dd7ed8f28be72a00aa122f60226af21b4ebc Author: Giant Pink Robots! Date: Tue Sep 17 00:22:27 2024 +0300 Localization support "remaining" is now a translatable string. commit 088195cca7e7588a0896b548e9fbb8be5c330b8e Merge: bee59dc c7d244e Author: haggen88 <68134588+haggen88@users.noreply.github.com> Date: Fri Sep 13 11:29:45 2024 -0300 Merge branch 'giantpinkrobots:next' into update-spanish commit b578573d8b173dcc0d1844224b242a19ae0409d8 Author: N0tACyb0rg Date: Wed Sep 11 10:20:21 2024 -0700 Add time remaining for downloads. commit bd84d04c044bb5c7287ed85969af475b0f0d5664 Author: lumingzh Date: Tue Sep 3 19:51:42 2024 +0800 Add Chinese translation commit 4548f229310bfad7656908890090a19b398874c5 Author: lumingzh Date: Tue Sep 3 19:50:01 2024 +0800 Update LINGUAS commit f9aab9a61f22647d64d2fb5b0b5f7d3073478e76 Author: Nekothegamer <112352776+Nekothegamer@users.noreply.github.com> Date: Sat Aug 24 18:04:56 2024 +0200 Add translation file commit 1a1494690694ec4b26703281ae618c1144e10321 Author: Nokse22 <44558032+Nokse22@users.noreply.github.com> Date: Tue Aug 6 15:08:03 2024 +0200 Added mimetype and icon for .aria2 file commit c7d244e633e7b4b521c443d1d65f409958ef0612 Merge: 4c0f72e 90310b5 Author: Giant Pink Robots! Date: Sun Jul 28 22:13:26 2024 +0300 Merge pull request #108 from N0tACyb0rg/dirfix Fix GLib.USER_DIRECTORY_HOME Error commit 1989d1e702c68dc30b14783a34612211a256c37c Author: twlvnn Date: Sat Jul 6 13:08:01 2024 +0200 Added Bulgarian translation commit 90310b537a45ebc44e7851f9f5abb82f0f29c5bd Author: N0tACyb0rg Date: Mon May 13 18:39:10 2024 -0700 Add fix for #94 and #107. commit 1a11443fd545861b2c716d1ce5c2ee5ed4c567a4 Author: Alexmelman88 <99257010+Alexmelman88@users.noreply.github.com> Date: Sun May 12 01:17:23 2024 +0300 Update ru.po commit bee59dc998239759191657992ec86404eb6bc8fb Author: haggen88 <68134588+haggen88@users.noreply.github.com> Date: Fri May 10 15:42:13 2024 -0400 update es.po commit eb7f85bcf2887d086b4999eb9e424a368092acb5 Author: Gnuey56 Date: Fri May 10 19:54:19 2024 +0900 Update Japanese translation --- .gitignore | 3 + README.md | 60 ++- build-for-windows.sh | 60 +++ ...thub.giantpinkrobots.varia.metainfo.xml.in | 47 ++- data/io.github.giantpinkrobots.varia.mime.svg | 313 ++++++++++++++++ data/io.github.giantpinkrobots.varia.mime.xml | 14 + data/meson.build | 8 + docs/downloadIcon.png | Bin 1540 -> 0 bytes docs/index.html | 48 +-- docs/packageIcon.png | Bin 0 -> 2258 bytes docs/style.css | 13 +- io.github.giantpinkrobots.varia.json | 120 +++--- meson.build | 2 +- po/LINGUAS | 2 + po/Varia.pot | 46 +++ po/bg.po | 348 ++++++++++++++++++ po/es.po | 94 ++++- po/it.po | 189 ++++++++-- po/ja.po | 131 ++++++- po/ru.po | 70 +++- po/tr.po | 45 +++ po/zh_CN.po | 346 +++++++++++++++++ python3-aria2p.json | 24 +- screenshots/Screenshot-Varia-1.png | Bin 26452 -> 28817 bytes screenshots/Screenshot-Varia-2.png | Bin 45906 -> 61099 bytes screenshots/Screenshot-Varia-3.png | Bin 59621 -> 70094 bytes screenshots/Screenshot-Varia-4.png | Bin 62656 -> 76008 bytes screenshots/Screenshot-Varia-5.png | Bin 44374 -> 60213 bytes src/download/actionrow.py | 15 +- src/download/listen.py | 25 +- src/download/scheduler.py | 13 +- src/download/thread.py | 66 ++-- src/initiate.py | 50 ++- src/meson.build | 1 + src/variamain.py | 233 +++++++----- src/window/content.py | 32 +- src/window/preferences.py | 94 +++-- src/window/scheduler.py | 34 +- src/window/sidebar.py | 98 +++-- src/window/updater.py | 184 +++++++++ 40 files changed, 2373 insertions(+), 455 deletions(-) create mode 100644 build-for-windows.sh create mode 100644 data/io.github.giantpinkrobots.varia.mime.svg create mode 100644 data/io.github.giantpinkrobots.varia.mime.xml delete mode 100644 docs/downloadIcon.png create mode 100644 docs/packageIcon.png create mode 100644 po/bg.po create mode 100644 po/zh_CN.po create mode 100644 src/window/updater.py diff --git a/.gitignore b/.gitignore index 8286515..04d4041 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ .vscode _build .flatpak-builder +/src/__pycache__ +/src/download/__pycache__ +/src/window/__pycache__ diff --git a/README.md b/README.md index 3a97467..62db955 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,36 @@ -

-

Varia

-

Download manager based on aria2

+
+

-

Homepage

+# Varia -
+

Download manager based on aria2

-

+

🌐 Homepage


-

- -![](https://img.shields.io/github/commits-since/giantpinkrobots/varia/latest/main?label=commits%20since%20latest%20release) ![](https://img.shields.io/github/forks/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/stars/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/watchers/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-closed/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-pr/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-pr-closed/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/license/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/followers/giantpinkrobots.svg?style=social&label=Follow&maxAge=2592000) +| Download for Linux | Download for Windows | Browser Extension | +| -------- | ------- | ------- | +| [⬇ Flathub](https://flathub.org/apps/io.github.giantpinkrobots.varia) | [⬇ Installer](https://github.com/giantpinkrobots/varia/releases/download/v2024.11.7/varia-windows-setup-amd64.exe) | [❖ Firefox](https://addons.mozilla.org/firefox/addon/varia-integrator/) | +| [⬇ AUR (unofficial)](https://aur.archlinux.org/packages/varia) | [⬇ Portable](https://github.com/giantpinkrobots/varia/releases/download/v2024.11.7/varia-windows-portable-amd64.zip) | [❖ Chrome](https://chrome.google.com/webstore/detail/dacakhfljjhgdfdlgjpabkkjhbpcmiff) | -

+
Varia is a simple download manager that conforms to the latest Libadwaita design guidelines, integrating nicely with GNOME. It uses the amazing aria2 to handle the downloads. +
+

+

+ +![](https://img.shields.io/github/commits-since/giantpinkrobots/varia/latest/main?label=commits%20since%20latest%20release) ![](https://img.shields.io/github/forks/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/stars/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/watchers/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-closed/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-pr/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/issues-pr-closed/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/license/giantpinkrobots/varia.svg) ![](https://img.shields.io/github/followers/giantpinkrobots.svg?style=social&label=Follow&maxAge=2592000) + +

+ It supports basic functionality like continuing incomplete downloads from the previous session upon startup, pausing/cancelling all downloads at once, setting a speed limit, authentication with a username/password, setting the simultaneous download amount and setting the download directory. ## Get Varia @@ -37,8 +45,8 @@ This requires you to have Flatpak and the Flathub Flatpak repository installed o ### AUR (Arch Linux) You can get Varia via the [AUR](https://aur.archlinux.org/packages/varia) as well, but it is not distributed by me. -### Windows (experimental) -You can find a *highly experimental* build of Varia in the releases section. But keep in mind, it will have bugs. +### Windows +You can find amd64 builds of Varia in the Releases section in both installer and portable forms. The installer version is recommended and it includes an auto updater function. ## Browser Extension Download it for [Firefox](https://addons.mozilla.org/firefox/addon/varia-integrator/) or [Chrome](https://chrome.google.com/webstore/detail/dacakhfljjhgdfdlgjpabkkjhbpcmiff). @@ -88,32 +96,16 @@ sudo meson install ### for Windows -Windows support is experimental. Translations don't work yet. - - [Get MSYS2.](https://www.msys2.org/) -- Install dependencies on an MSYS2 shell: -``` -pacman -S mingw-w64-x86_64-python -pacman -S mingw-w64-x86_64-gtk4 -pacman -S mingw-w64-x86_64-libadwaita -pacman -S mingw-w64-x86_64-python-gobject -pacman -S mingw-w64-x86_64-python-pip -pip install aria2p -pip install pyinstaller -``` -- To have the icon applied properly you also need python-pillow, otherwise pyinstaller gives an error: -``` -pacman -S mingw-w64-x86_64-python-pillow -``` -- Copy the contents of the /src folder to the home directory of your MSYS2 install. -- Copy varia.spec and icon.ico from the /windows directory to the home directory of your MSYS2 install. -- Run the pyinstaller command: +- Open the mingw64 shell in MSYS2 and update everything before continuing: ``` -pyinstaller varia.spec +pacman -Syyu ``` -- [You need to get a copy of aria2c.exe](https://github.com/aria2/aria2/releases) and paste it into the /dist/variamain folder that was created by pyinstaller. +- Either clone Varia inside the shell or copy the folder to your MSYS2 home folder. +- [You need to get a copy of aria2c.exe](https://github.com/aria2/aria2/releases) and paste it into the root of the folder. +- Running 'build-for-windows.sh' will take care of the dependencies and everything else and build Varia WITHOUT the updater function. To enable the updater function you need to run the script with the '-u' argument. (or just create an empty file called 'updater-function-enabled' next to variamain.exe after completion) -Running variamain.exe will start Varia. +Varia will be built into src/dist/variamain. Main executable is variamain.exe. ## Contributing diff --git a/build-for-windows.sh b/build-for-windows.sh new file mode 100644 index 0000000..c8bec46 --- /dev/null +++ b/build-for-windows.sh @@ -0,0 +1,60 @@ +updater=0 + +while getopts "hu" flag; do + case $flag in + h) + echo "No flags - Build without the updater function" + echo "-u - Enable the updater function" + exit + ;; + u) + updater=1 + ;; + esac +done + +if [ ! -f ./aria2c.exe ]; then + echo "aria2c.exe does not exist. You need to copy it here before you can run this." + exit +fi + +echo "Installing dependencies..." + +pacman -S --noconfirm --needed mingw-w64-x86_64-python +pacman -S --noconfirm --needed mingw-w64-x86_64-gtk4 +pacman -S --noconfirm --needed mingw-w64-x86_64-libadwaita +pacman -S --noconfirm --needed mingw-w64-x86_64-python-pillow +pacman -S --noconfirm --needed mingw-w64-x86_64-python-gobject +pacman -S --noconfirm --needed mingw-w64-x86_64-python-pip +pip install aria2p +pip install pyinstaller + +echo "Generating locales..." + +rm -rf locale +mkdir locale +for po in po/*.po; do + lang=$(basename "$po" .po) + mkdir locale/$lang + mkdir locale/$lang/LC_MESSAGES + msgfmt -o "locale/$lang/LC_MESSAGES/varia.mo" "$po" +done + +echo "Building PyInstaller distributable..." + +cp -r windows/* src/ +cd src +pyinstaller varia.spec +cd .. +cp -r locale src/dist/variamain/ +cp data/icons/hicolor/symbolic/apps/io.github.giantpinkrobots.varia-symbolic.svg src/dist/variamain/ +cp data/icons/hicolor/scalable/apps/io.github.giantpinkrobots.varia.svg src/dist/variamain/ +cp -r dependencies_information src/dist/variamain/ +cp ./aria2c.exe src/dist/variamain/ + +if [ $updater -eq 1 ]; then + touch src/dist/variamain/updater-function-enabled +fi + +echo "Build complete." +echo "src/dist/variamain/variamain.exe" \ No newline at end of file diff --git a/data/io.github.giantpinkrobots.varia.metainfo.xml.in b/data/io.github.giantpinkrobots.varia.metainfo.xml.in index f48654c..e570e99 100644 --- a/data/io.github.giantpinkrobots.varia.metainfo.xml.in +++ b/data/io.github.giantpinkrobots.varia.metainfo.xml.in @@ -10,9 +10,9 @@ Giant Pink Robots! -https://github.com/giantpinkrobots/varia +https://giantpinkrobots.github.io/varia https://github.com/giantpinkrobots/varia -https://github.com/giantpinkrobots/varia/tree/main/po +https://github.com/giantpinkrobots/varia/tree/next/po en_US @@ -31,19 +31,38 @@ es_ES fa_IR hi_IN +bg_BG +zh_CN -#E9F0F9 -#454545 +#DBE8F5 +#010E1D

Varia is a download manager for all your download needs. It can download regular files and torrents, and do it very quickly.

+
    +
  • +Download files and torrents quickly - potentially faster than your browser, continue incomplete downloads even after reboots +
  • +
  • +Integrate with Firefox and Chrome (or any Chromium based browser) to redirect downloads +
  • +
  • +Schedule downloads with a powerful scheduler allowing for custom timespans for each day of the week +
  • +
  • +Download from protected areas with basic auth and cookies.txt import support +
  • +
  • +Control a remote aria2 instance running on any server +
  • +

-Using Varia is very easy and straightforward, and with its aria2 backend it can potentially increase the speed of your downloads. It can integrate with Firefox or Chrome/ium through a browser extension, configured to your liking, and even support a remote aria2 instance on another computer. +Varia uses GTK4 and Libadwaita for the user interface and utilizes Aria2 for the downloads underneath. It is free software licensed under the Mozilla Public License 2.0. A list of dependencies can be viewed through the Legal section in the About Varia page.

@@ -68,17 +87,15 @@ Using Varia is very easy and straightforward, and with its aria2 backend it can - + -
  • Download scheduling: Start or stop downloading in given timespans.
  • -
  • cookies.txt file import support.
  • -
  • Remote timestamp support.
  • -
  • Options to filter by seeding and failed downloads in the sidebar.
  • -
  • Quit on completion option.
  • -
  • Start in background mode option.
  • -
  • Spanish language support.
  • -
  • Persian language support.
  • -
  • Hindi language support.
+
  • Support for opening .torrent files.
  • +
  • Downloads now show the estimated time remaining.
  • +
  • UI tweaks and fixes for a better layout.
  • +
  • Remote mode option is available again.
  • +
  • A lot of under the hood changes to fix bugs and improve performance.
  • +
  • Update to the GNOME 47 runtime and new Libadwaita widgets.
  • +
  • Support for Bulgarian and Chinese (China) languages.
diff --git a/data/io.github.giantpinkrobots.varia.mime.svg b/data/io.github.giantpinkrobots.varia.mime.svg new file mode 100644 index 0000000..0ef8679 --- /dev/null +++ b/data/io.github.giantpinkrobots.varia.mime.svg @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/io.github.giantpinkrobots.varia.mime.xml b/data/io.github.giantpinkrobots.varia.mime.xml new file mode 100644 index 0000000..c073195 --- /dev/null +++ b/data/io.github.giantpinkrobots.varia.mime.xml @@ -0,0 +1,14 @@ + + + + Varia Download Progress + + + + + Aria2 Download Progress + + + + + diff --git a/data/meson.build b/data/meson.build index 19be115..d32ca05 100644 --- a/data/meson.build +++ b/data/meson.build @@ -28,6 +28,14 @@ install_data('io.github.giantpinkrobots.varia.gschema.xml', install_dir: get_option('datadir') / 'glib-2.0' / 'schemas' ) +install_data('io.github.giantpinkrobots.varia.mime.xml', + install_dir: join_paths(get_option('datadir'), 'mime', 'packages') +) + +install_data('io.github.giantpinkrobots.varia.mime.svg', + install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'mimetypes') +) + compile_schemas = find_program('glib-compile-schemas', required: false, disabler: true) test('Validate schema file', compile_schemas, diff --git a/docs/downloadIcon.png b/docs/downloadIcon.png deleted file mode 100644 index 417bee3083b82873235ef6204b8df21c574d8f29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1540 zcma)+dpOez7{`BR)?Bwq8B%^jnJ3ESP!7W=+f<86E(y6Umkzm&A!9NjOXxBjcexL> zQzR?ombN-bIqacmo!mNDVRZC7=Q+>$^ZfCBzt8)9-uL_GC;j9J2Sqt`IRF3@i3EG+ zE%*B&IBaW%P34{5GTAVKTLb{eEB}zx>+wVh0LXBO_O_>~Qgfb;wY$zBi-JvYc(^i% zj`Gb!x3DNkh7Hr4*}*#wzodg}epSepz(IYt)Y&dCE&S#1X$&H_SVymwnVs60MKPs+ z{z~KvKHZtGiKrxxfBM|;X>e7Soz zP(WfP8dR4WJoSz%lRxB9(-xPZq9JlBZ~IMKH*{I8Kp~ISrb(d1@AA3ed6h)iPolrI zCuofpoyK&fI2UKbWuap?Net>qxn&ec_og|gBM~Gz4x@t%A?u^2Y_S3d1~hq&sEfDM zlUZZ3Y&cfc_RMV+HhWOYaPGc5_?Kc8kv1OkR9vnM?#_iI{EzYy+AR)yF+6k5UnDJX z6!1Alahg4;sG(j(QCi8ik}I~>wpqf-hmWArRx<61^#kgL(UsR#62xy(?iVcZnQhyf zM%2H!E>#b?%Fks>X$C7aC$7pE<`C#t78o3uUhu`6zVeEfN#W?pX|9vY9I?EZ+{n-> zIszMbTwpwNPI!;K_WMyfpO;v~LnpSgYYQZ4xVjR@I-|&ysIgM`YPXZqA*`$)C!UYq z)j1oTj`>hFZ@hQpptEwHH+{nB7_5b}4=stl7qy2zU~jR2UA+5wck*Tt?Rh!6fFquh zmk&GPgBGL+GEO$Ka?=8)@ia3~G+<$9+y2_Ur|unW7zT|4Wx|``)qiDVt_knr2z{Wv z-;f)nfbU4s2Qg)~yt;u{0&y#Rf$yj=xTSJnE0p=xFmudVspMDP13X*vMZ?9h5WsNd z)91V0uvxFe@y`v}Ute(*BWpE#%X5rj5ff#-6zxE10!l5^FLO+qh*I+v)N2!n8x7c~ zw-~iauN9B?=P9(OcbWwzof{dK0m=b%{Eq(j=7I?7D&N-##KJeRxf)7qtOKYIdVg*{ z$o393y5^e-?I{@)R!yyZ;g+riIb45|-^lW>Ipjj%sIDO*^ErhkmG`uI9%pxf11e2P zFH`eAW`Vb=>kXJKh2qj=-5G=qRkpwVT(xrZu`@>ov+~kdRxn8ZxM<$wY?|tE>1%8q44TqveFbdL7O!6cC$7T0+{V;9)y(kLfMs+^v&nRnRFVe7ZWI z-|0|{6?Q{uJ%eu2d8VzW&&19$9G{@?T;%ZDI#4HI>?xS@v`HZcxl@VP(c`1KY^P_9 zaEg6W+dLUbRc>8x|Ah)z##D6-$NZ6%X+Emfe4{w;g#n&a%0_uG{E}RnGvL_tOGiUc zIa2O@hM01lR<))h1Qu?W3i7)ebo^A8!xHqw|-bK)DGQ^ zPc%;6#iRKxb!VV_7iZ*B0<-9nkWo*D#2Xq56>q=FH@+?8Y3(tC#dUJV0uFW{f@EXd zAIo~S-g#zZN5+puvw5aBs`htzYD^>NEg)7GWl{j1c%`60h3nH6 z6T;gJs@KW(?4$*w8nDf$id2a@WHoL&K2-=x$VnYnaYmYW110D;n#cMdnoH;1D&zxy@Mao9fybg z6svkWK`<9xH5`R_)G|O}R5hHrUr3+7_%3q88X}zHZ^xSWW_s)dXBC{eQ#^#-zLFw` z3lBr%CVQkCFo8BlNAz=!6Exjfogaf=-t8%lpKV99Dm+_QO=L_Yod;y!8M fKj37`)4v0eX1&)Myy~*HunrK9oUm`ednf-5;R>`c diff --git a/docs/index.html b/docs/index.html index 1e95887..eda87fc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,6 +2,7 @@ + @@ -29,6 +30,8 @@

Varia

Quick and efficient download manager

+ +