Compare commits

..

846 Commits

Author SHA1 Message Date
Safihre
63c03b42a9 Update text files for 4.6.0Beta2 2025-12-22 22:00:02 +01:00
SABnzbd Automation
4539837fad Update translatable texts
[skip ci]
2025-12-22 20:53:43 +00:00
Safihre
a0cd48e3f5 Notify user if they run AMD64 version on ARM64 Windows machine
Closes #3235
2025-12-22 21:52:58 +01:00
Safihre
ceeb7cb162 Add Windows ARM64 binary 2025-12-22 21:25:17 +01:00
SABnzbd Automation
f9f4e1b028 Update translatable texts
[skip ci]
2025-12-22 15:40:48 +00:00
Safihre
6487944c6c Move Pipelining setting to Server-level 2025-12-22 16:38:46 +01:00
renovate[bot]
239fddf39c Update all dependencies (develop) (#3238)
* Update all dependencies

* Compare fakefs result after sorting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-12-22 12:45:00 +00:00
SABnzbd Automation
8ada8b2fd9 Update translatable texts
[skip ci]
2025-12-19 11:41:18 +00:00
Safihre
b19bd65495 Show error in case of failed NZB upload
Closes #3233
2025-12-19 12:40:34 +01:00
Safihre
e3ea5fdd64 Update appdata file with Flathub suggestions
@jcfp
2025-12-19 11:54:53 +01:00
Safihre
4fdb89701a Add release URL's to appdata 2025-12-19 11:42:36 +01:00
SABnzbd Automation
9165c4f304 Update translatable texts
[skip ci]
2025-12-18 20:10:14 +00:00
mnightingale
4152f0ba6a Increase max pipelining (#3234) 2025-12-18 20:09:24 +00:00
SABnzbd Automation
3eaab17739 Update translatable texts
[skip ci]
2025-12-16 09:04:29 +00:00
Safihre
578bfd083d Update text files 4.6.0 Beta 1 2025-12-16 10:03:41 +01:00
renovate[bot]
dd464456e4 Update all dependencies (#3231)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 02:08:17 +00:00
mnightingale
e7a0255359 Make behaviour after reset more robust (#3229)
* Make behaviour after reset more robust

* Remove use of hasattr and rename to generation

* I had a feeling this would be a circular reference

* Reset and increment generation under lock
2025-12-14 22:39:48 +01:00
mnightingale
2e1281d9e8 Fix nzb types (#3230) 2025-12-14 15:46:14 +01:00
SABnzbd Automation
efecefdd3b Update translatable texts
[skip ci]
2025-12-09 20:22:55 +00:00
Safihre
a91e718ef5 Split nzbstuff into separate files for Article, NzbFile and NzbObject (#3221) 2025-12-09 21:21:51 +01:00
mnightingale
b420975267 Fix read/write actions after reset_nw (#3223) 2025-12-09 19:39:49 +01:00
SABnzbd Automation
c4211df8dc Update translatable texts
[skip ci]
2025-12-08 21:37:36 +00:00
Safihre
e182707d3a Update text files for 4.6.0Alpha2 2025-12-08 22:36:51 +01:00
Safihre
05cbd9d7c4 Correct process_nzb_only_download and add tests 2025-12-08 11:42:22 +01:00
Safihre
6e8683349f Keep NZB name prefix when processing multiple NZBs
Closes #3217
2025-12-08 10:27:16 +01:00
Safihre
adb4816552 Update to Python 3.14.2 2025-12-08 10:27:16 +01:00
renovate[bot]
3914290c11 Update all dependencies (#3219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 01:00:54 +00:00
Safihre
f76bf55b4a Handle aborted Direct Unpack better
Closes #3212
2025-12-05 16:18:17 +01:00
SABnzbd Automation
1cde764336 Update translatable texts
[skip ci]
2025-12-05 12:34:16 +00:00
mnightingale
44d94226ec Pipelining and performance optimisations (#3199)
* Pipelining and performance optimisations

* Refactor to remove handle_remainder and add on_response callback to allow inspecting of nntp messages

* Logic fix if there are sockets but nothing to read/write

* Fix logic errors for failed article requests

* Fix logic for reconfiguring servers

* Add guard_restart callback to pipelining_requests

* Fix article download stats

* Fix current article request shown via api

* Removal of DecodingStatus

* Fix circular reference

* Cleanup imports

* Handle reset_nw and hard_reset for inflight requests

* Improve __request_article behaviour using discard helper

* Article should be None here (before auth) but just in case

* Remove command_queue_condition unnecessary with the pull rather than push queue system

* During reset discard any data received prior to sending quit request

* Circular references again

* Revert to using bytearray

* Revert "During reset discard any data received prior to sending quit request"

This reverts commit ed522e3e80.

* Simpler interaction with sabctools

* Temporarily use the sabctools streaming decoder branch

* Fix most uu tests

* Reduce maximum pipelining requests

* Fix the squiggly line

* Remove some LOG_ALL debug code

* Make get_articles return consistent (None) - it now populates the server deque

* Reduce NNTP_BUFFER_SIZE

* Rename PIPELINING_REQUESTS to DEF_PIPELINING_REQUESTS

* A little refactoring

* Reduce default pipelining until it is dynamic

* Use BoundedSemaphore and fix the unacquired release

* Use crc from sabctools for uu and make filename logic consistent wit yenc

* Use sabctools 9.0.0

* Fix Check Before Download

* Move lock to NzbFile

* Use sabctools 9.1.0

* Minor change

* Fix 430 on check before download

* Update sabnews to work reliably with pipelining

* Minor tidy up

* Why does only Linux complain about this

* Leave this as it was

* Remove unused import

* Compare enum by identity

* Remove command_queue and just prepare a single request
Check if it should be sent and discard when paused

* Kick-start idle connections

* Modify events sockets are monitored for
2025-12-05 13:33:35 +01:00
Safihre
e8e8fff5bf Prevent filepath creation before first article is processed (#3215) 2025-12-05 13:18:27 +01:00
SABnzbd Automation
1b04e07d40 Update translatable texts
[skip ci]
2025-12-04 14:14:01 +00:00
Safihre
54db889f05 Update sfv help text
Closes #3214 and #3213
2025-12-04 15:13:07 +01:00
Safihre
777d279267 Only clear work-flag for post processing when needed 2025-12-01 16:40:59 +01:00
Safihre
75be6b5850 Use Event's to handle Post Processing queue
See #3209
2025-12-01 15:28:05 +01:00
Safihre
a4657e2bd3 Correct rar-version logging line 2025-12-01 11:36:10 +01:00
renovate[bot]
095b48ca47 Update all dependencies (#3210)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 01:32:06 +00:00
renovate[bot]
d459f69113 Update all dependencies (#3204)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 01:49:05 +00:00
mnightingale
2ecdd0b940 Optimise bpsmeter to avoid repeat lookups and try/except (#3203) 2025-11-22 14:46:21 +01:00
Safihre
73a4ad50e5 Allow longer build timeout for Snap amr64 build 2025-11-21 12:02:41 +01:00
Safihre
9b59e24961 Lower macOS build version to support older clients 2025-11-21 11:50:45 +01:00
Safihre
27e164763e Remove unused imports and shorten build timeouts 2025-11-21 11:29:53 +01:00
Safihre
eb544d85c7 Update text files for 4.6.0Alpha1 2025-11-21 11:02:24 +01:00
Safihre
ad85a241df Enable verify_xff_header by default 2025-11-21 10:12:47 +01:00
Safihre
e4d8642b4f Correct mobile layout if Full Width is enabled 2025-11-21 10:12:19 +01:00
Safihre
77b35e7904 Re-enable all Python versions for CI tests 2025-11-21 10:05:01 +01:00
Safihre
f8a0b3db52 Remove hostname resolution in get_webhost
#3131
2025-11-21 10:00:12 +01:00
Safihre
9c8b26ab4e Use new removeprefix and removesuffix 2025-11-21 10:00:11 +01:00
Safihre
67a5a552fd Add missing typing hints to several files 2025-11-21 10:00:10 +01:00
Safihre
80f57a2b9a Drop support for Python 3.8 2025-11-21 10:00:09 +01:00
Safihre
baaf7edc89 Windows tray icon disappears after Explorer restart
Closes #3200
2025-11-20 16:05:52 +01:00
Safihre
2d9f480af1 Only measure real write time during disk speed test 2025-11-20 15:34:34 +01:00
L-Cie
2266ac33aa Address low throughput reporting in diskspeed.py (#3197)
* increased buffer, mesaurement time, changed file management and calcucation of result

* Write smaller chunks first, abort if time exceeds

* Move urandom dump to diskspeedmeasure, reduced buffer size to 16MB and recycled buffer for more efficient resource usage during writes

* fixed formatting issues

* fixed formatting issues

* fixed formatting issues

---------

Co-authored-by: L-Cie <lcie@sturmklinge.ch>
2025-11-20 06:49:18 +01:00
renovate[bot]
1ba479398c Update all dependencies (develop) (#3195)
* Update all dependencies

* Pin tavern due to failure in newer versions

* User SABnzbd User-agent in wiki test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-11-18 13:30:07 +01:00
Safihre
f71a81f7a8 Stop endless loop in edge-case of no STAT or HEAD support
Closes #3191
2025-11-13 13:33:11 +01:00
Safihre
1916c01bd9 Use general failure flag for pre-check result check
Closes #3190
2025-11-11 16:48:05 +01:00
Safihre
699d97965c Make Assembler queue configurable and auto increase on high bw-limit 2025-11-10 15:54:26 +01:00
renovate[bot]
399935ad21 Update all dependencies (develop) (#3186)
* Update all dependencies

* Allow older markdown for Python 3.9 and below

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-11-10 14:19:10 +00:00
Sander
0824fdc7c7 STAT: tell on which server an article is present (#3185)
* STAT: tell on which server an article is present

* Update logging format for article presence: old format
2025-11-10 11:08:31 +01:00
SABnzbd Automation
a3f8e89af8 Update translatable texts
[skip ci]
2025-11-05 21:37:39 +00:00
Safihre
f9f17731c8 Certificate validation should also be Strict in Wizard
Closes ##3183
2025-11-05 22:36:49 +01:00
SABnzbd Automation
b052325ea7 Update translatable texts
[skip ci]
2025-11-03 13:29:35 +00:00
Safihre
daca14f97e Update Apprise texts 2025-11-03 14:28:47 +01:00
renovate[bot]
daa26bc1a6 Update dependency cheroot to v11.1.0 (#3180)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 06:43:18 +00:00
renovate[bot]
70d5134d28 Update all dependencies (#3174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 01:46:12 +00:00
Safihre
a32458d9a9 Resolve another PyGithub deprecation 2025-10-24 13:22:07 +02:00
Safihre
4c77954526 Add 4.5.5 to appdata 2025-10-24 12:47:26 +02:00
SABnzbd Automation
a229a2a5ea Update translatable texts
[skip ci]
2025-10-24 10:35:59 +00:00
Safihre
0a2f3865ee Check if all macOS binary files support the minimal required version 2025-10-24 12:27:48 +02:00
Safihre
900e68bb9a Resolve PyGithub deprecation warnings 2025-10-22 23:25:42 +02:00
Safihre
1de674a532 Correct appdata between branches 2025-10-22 22:33:55 +02:00
Safihre
e1dad3e4c4 Start SABnzbd service after installation, if installed 2025-10-20 13:18:44 +02:00
SABnzbd Automation
44f2eb8620 Update translatable texts
[skip ci]
2025-10-20 07:57:56 +00:00
renovate[bot]
70945a9c5b Update all dependencies (#3167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 09:57:12 +02:00
SABnzbd Automation
fdfca97dfa Update translatable texts
[skip ci]
2025-10-16 08:58:27 +00:00
Safihre
b84900dcb5 Add extra warning to Remove All Orphans
See https://forums.sabnzbd.org/viewtopic.php?p=133922
2025-10-16 10:57:31 +02:00
Safihre
d989ec928a Small styling issue for tooltip in Night mode 2025-10-14 11:12:06 +02:00
SABnzbd Automation
d7fa3e1f7b Update translatable texts
[skip ci]
2025-10-13 14:24:54 +00:00
Safihre
c1417c319d Add tooltip that users need to Test Server before saving/next 2025-10-13 16:24:04 +02:00
Safihre
6689939cc9 Large par2 files could require more parsing to get all crc32 slices
Closes #3164
2025-10-13 15:26:55 +02:00
Safihre
09347d0766 Switch everything to Python 3.14 2025-10-13 07:44:35 +02:00
SABnzbd Automation
41db09057c Update translatable texts
[skip ci]
2025-10-13 01:10:52 +00:00
renovate[bot]
6983058f49 Update all dependencies (#3165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-13 01:09:52 +00:00
SABnzbd Automation
fb2d412c97 Update translatable texts
[skip ci]
2025-10-08 21:01:13 +00:00
Safihre
1c0b1205b2 Add quota notifications
Closes #2926
2025-10-08 22:58:08 +02:00
Safihre
f556cea488 Use release version of Python 3.14 in CI 2025-10-08 20:07:39 +02:00
Sander
a2447253a0 Local ipv4 with socks5 proxy (#3161)
* Update all dependencies

* use socks5 server as test server

* make black happy

* improved active_socks5_proxy(): default port = 1080

* improved local_ipv4()

* use int_conv

* black

* use socks.socksocket.default_proxy directly

* active_socks5_proxy cleaner with int_conv

* correct to windows-2022

* socks.socksocket.default_proxy as check

* uniform naming socks5host/port

Closes #3154
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sanderjo <sander.jonkers+github@github.com>
2025-10-08 19:10:47 +02:00
Safihre
3393d7c976 Changing server name shows button "failure" instead of "saving..."
Closes #1551
2025-10-06 15:54:11 +02:00
renovate[bot]
06572bdf7d Update all dependencies (#3159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 02:33:57 +00:00
Safihre
d4411f1b8f Replace vendored rarfile with official one
Closes #2560
2025-10-05 22:40:30 +02:00
SABnzbd Automation
1bfd1b8f41 Update translatable texts
[skip ci]
2025-10-05 20:38:14 +00:00
Safihre
c47dbfdc26 Let unrar handle rename of chars invalid on Windows filesystem
Closes #1574

Add tests for long paths

Make sure long path is >260

Add rar test file with invalid Windows filenames

Add rar_unpack tests for unicode and passworded sets

Simplify Unrar command building

Add test for rar_invalid_windows

Remove check for 260 chars in rar_unpack

Should never happen anymore

Let Unrar rename invalid filenames

Check full path output if rar_unpack

Add helper for check

Correct test_rar_unpack_invalid_windows_filenames

Apply changes also to Direct Unpacker

Extend testing to make sure full paths are tested

Add tests for long paths inside rar

Unrar auto-rename message is different on Linux
2025-10-05 22:37:22 +02:00
Safihre
b5e55cd9b2 Unselect Multi-Operations Play/Resume on second click
Closes #2725
2025-10-03 15:06:37 +02:00
Hugo Lloreda
85c98d7203 Add option to bind outgoing connections (#3155)
* refactor outgoing interface

* refactor

* rollback old change

* We actually don't need another port


Closes #3153

* refactor

* refactor

* refactor to be compatible with old python versions

* forgot to remove match

* fix no route to host on mac

* fix no route to host on mac + rename interface to ip

* fix black + try to fix windows error

* fix black + try to fix windows error

* fix windows error

* fix windows failure

* rollback optional changes

* Remove optional type

* rollback changes + fix issue

* black change

* refactor

* missing refactor
2025-10-03 11:28:44 +02:00
Safihre
9e95717619 Enable Make Windows compatible if we cannot write special characters 2025-09-30 12:18:18 +02:00
SABnzbd Automation
90b4ff2720 Update translatable texts
[skip ci]
2025-09-30 09:28:01 +00:00
Safihre
0f97a9fdfc Workaround for macOS statvfs no longer needed
Part of Python 3.13 and above.
https://github.com/python/cpython/pull/99570
2025-09-30 11:21:14 +02:00
Safihre
90caf0c164 Lock changes to job properties during URL-grabbed NZO creation
Closes #1908
2025-09-29 15:51:26 +02:00
Safihre
9b3fe470a0 Run tests on Python 3.14
Force newer pytest

Force beta release of tavern

Unfix werkzeug

Allow latest tavern only on Python 3.11 and above

Fix test failure in Python 3.14
2025-09-29 13:29:50 +02:00
SABnzbd Automation
ab318729ab Update translatable texts
[skip ci]
2025-09-29 10:43:50 +00:00
Safihre
9576554426 Move to top/bottom for Multi edit
Closes #1088
2025-09-29 12:40:44 +02:00
Safihre
3cd819b78d Refactor history API call handling 2025-09-29 11:56:03 +02:00
renovate[bot]
bb24f3f04e Update all dependencies (#3156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 07:28:52 +00:00
Safihre
6f4416236d Prevent renovate from updating macOS version
Due to #3131
2025-09-29 09:10:23 +02:00
SABnzbd Automation
47dcccd17f Update translatable texts
[skip ci]
2025-09-26 14:29:44 +00:00
Safihre
6b026d8274 Add way to mark job as Completed and remove Incomplete
Closes #1174
2025-09-26 16:28:57 +02:00
Safihre
ec18606557 Require correct server test in Wizard
Closes #3148
General refactor.
2025-09-25 13:40:25 +02:00
Safihre
895c8549ba Add 4.5.4 to appdata 2025-09-22 14:09:54 +02:00
Safihre
0d80efb898 Update Python to 3.13.7 2025-09-22 13:54:16 +02:00
Safihre
deace9f8ae Add SignPath to the release notes 2025-09-22 13:30:43 +02:00
Safihre
1c96dff133 Implement SignPath binary signing for Windows releases
Keep zip structure

Download all signed artifacts for release step

Correctly download all releases

Only sign when tagging release

Restore CI tests

Test production certificate

Closes #2870
2025-09-22 12:16:10 +02:00
renovate[bot]
1734b11338 Update all dependencies (#3144)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 08:34:30 +00:00
Safihre
5f3c4d17da Prevent Renovate from updating GitHub Actions Windows runner 2025-09-22 10:18:58 +02:00
jcfp
4ffe0e27fb Handle weird anime episode notation (#3146)
* handle weird anime episode notation

* make black even happier /s
2025-09-15 22:55:07 +02:00
renovate[bot]
951bc0c957 Update all dependencies (#3142)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 20:00:14 +00:00
SABnzbd Automation
60f985ba00 Update translatable texts
[skip ci]
2025-09-08 19:37:06 +00:00
Safihre
a42a2db196 Github Actions Windows 2025 runners do not included NSIS 2025-09-08 21:36:13 +02:00
SABnzbd Automation
64034c5636 Update translatable texts
[skip ci]
2025-08-26 13:30:14 +00:00
Safihre
e03a031342 Add Run SABnzbd to Windows Installer 2025-08-26 15:29:34 +02:00
Safihre
da3d72b484 No longer reduce threads counter on connection loss
Closes #3137
2025-08-25 13:48:00 +02:00
SABnzbd Automation
e3042a6106 Update translatable texts
[skip ci]
2025-08-25 00:59:25 +00:00
renovate[bot]
55f1253a56 Update all dependencies (#3138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-25 00:58:50 +00:00
Safihre
5e432bea37 Cache par2 download 2025-08-19 16:22:50 +02:00
renovate[bot]
2d0cc08987 Update all dependencies (#3136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-18 01:59:29 +00:00
Safihre
627797f8c7 No longer apply Bug and Feature Request directly
This way they can be auto-closed if stale.
2025-08-14 10:50:42 +02:00
Safihre
e37a777f29 Run CI Tests on macOS 13
See #3131
2025-08-12 11:44:31 +02:00
SABnzbd Automation
13a76e5824 Update translatable texts
[skip ci]
2025-08-11 12:07:26 +00:00
Safihre
e4c64cac12 Automated update of translations
Used AI to add missing translations.
Not 100% coverage, it keeps missing some texts.
Stopping here.
2025-08-11 14:06:40 +02:00
SABnzbd Automation
c6694483e4 Update translatable texts
[skip ci]
2025-08-11 10:32:26 +00:00
thezoggy
bc793e11c4 bump windows unrar to 7.13 for CVE-2025-8088 (#3129) 2025-08-11 11:59:12 +02:00
Safihre
4980fc70a0 Small tweaks to the workflows 2025-08-11 11:57:54 +02:00
Safihre
8afac4f6fb Push the snap to stable for any tag
This is the same we did before using the Python script.
2025-08-11 11:50:11 +02:00
Safihre
c78b633da8 Update snap publish credentials 2025-08-11 11:32:25 +02:00
SABnzbd Automation
a1ee1677dc Update translatable texts
[skip ci]
2025-08-11 09:27:39 +00:00
Safihre
511bb153d7 Add Publish snap step 2025-08-11 11:26:28 +02:00
Safihre
c1af36f6b0 Move user logged in notification 2025-08-11 11:22:13 +02:00
Safihre
6028824966 RSS Next scan time is not recalculated after manual Read All Feeds Now
Closes #2979
2025-08-08 22:06:02 +02:00
Safihre
49a7300ad6 Pre-queue script rejected NZBs are sometimes reported in history as "URL Fetching failed;"
Closes #3023
2025-08-08 21:57:50 +02:00
Safihre
8e8e560eac Add building of snap as a GitHub Action 2025-08-08 09:49:19 +02:00
Safihre
e51da569ca Add curl as snapcraft par2cmdline build-package 2025-08-08 08:52:21 +02:00
mnightingale
6ce43eed5f Fix snap with core24 (#3126)
* Fix snap with core24

* Remove probably unused

* Switch to 7zip-standalone package which only has the 7zz binary
2025-08-08 08:31:32 +02:00
Safihre
73ec6d8323 Add tests for new conditional_cache decorator 2025-08-07 22:09:25 +02:00
Safihre
27a7531f79 Make smarter decorator that only caches if there's a result 2025-08-07 21:55:18 +02:00
Safihre
423bdb4f81 Replace HappyEyeBalls with concurrent fastest connection check 2025-08-07 21:25:06 +02:00
Safihre
7f8081e2cc Correct add_fake_history_jobs after adding time_added 2025-08-07 20:21:43 +02:00
Safihre
50c2d5e2ab Add time_added to History output and interface
Closes #2914
2025-08-07 16:41:01 +02:00
Safihre
552bfd4b72 Add time_added to queue output 2025-08-07 14:41:40 +02:00
Safihre
3d522c8205 Update snapcraft.yaml format 2025-08-07 10:02:29 +02:00
Safihre
b6b0d10367 Try to get the snap to compile again 2025-08-05 14:04:56 +02:00
Safihre
8d4d69d56b Add 4.5.3 to Appdata file 2025-08-05 11:32:33 +02:00
Safihre
0e475e593a Update to par2cmdline-turbo 1.3.0 that supports older macOS
And it's universal2
2025-08-05 11:09:24 +02:00
renovate[bot]
78424318ce chore(deps): update all dependencies (#3123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 01:01:09 +00:00
mnightingale
57c90b2554 Skip adding postproc items to the history if they are already completed (#3120)
* Skip adding postproc items to the history if they are already completed

* Add test that duplicate nzo_ids are not added to the history
2025-08-02 12:11:47 +02:00
Safihre
9b94d22621 Broken "Show Logging" function when console logging
Closes #3107
2025-08-01 14:57:33 +02:00
SABnzbd Automation
5c30b0ee29 Update translatable texts
[skip ci]
2025-08-01 12:50:43 +00:00
Safihre
3a1c60a3ed Persist the Permanently delete checkbox
On Archive page, never even ask the question.
Yeah, if you combine History+Archive it will be always Permanently deleted. So be it.
2025-08-01 14:49:39 +02:00
SABnzbd Automation
bd07a79c97 Update translatable texts
[skip ci]
2025-08-01 07:09:26 +00:00
Safihre
c562c9a468 Update sabctools to 8.2.6
Remove reference to Github issue for sabctools feedback. That's ages ago already.
2025-08-01 09:08:31 +02:00
renovate[bot]
fdd3f590cd chore(deps): update all dependencies (#3119)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-28 02:35:15 +00:00
thezoggy
77e9627e64 Skip cbr durning rarcheck to prevent badly renamed (#3115) 2025-07-24 10:53:09 +02:00
renovate[bot]
c40d1274d2 chore(deps): update all dependencies (#3116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 02:43:33 +00:00
Safihre
d1948071fc No longer crash on Windows 8 for binary releases 2025-07-14 12:48:55 +02:00
renovate[bot]
4f79d924e6 chore(deps): update dependency certifi to v2025.7.14 (#3111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 04:58:53 +00:00
SABnzbd Automation
872cf835df Update translatable texts
[skip ci]
2025-07-09 18:05:33 +00:00
thezoggy
69bb1a87a4 Bump 7zip to 25 (#3109) 2025-07-09 20:05:00 +02:00
renovate[bot]
e3339a1ab4 chore(deps): update all dependencies (#3108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 20:04:28 +02:00
renovate[bot]
18d84fa522 chore(deps): update all dependencies (#3101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-26 14:52:23 +02:00
Safihre
7a7e7b7b93 Remove Python 3.8 from CI (but keep support) 2025-06-26 13:32:32 +02:00
thezoggy
18ca9d6155 Update unrar 7.12 (#3103)
- CVE-2025-6218 only affects windows.
2025-06-26 10:44:26 +02:00
Safihre
f5aa0f52d6 Correct Windows version check for notifications 2025-06-24 11:19:31 +02:00
Safihre
5a93074f4b Update NSIS language map 2025-06-23 12:51:00 +02:00
SABnzbd Automation
3863d6bd2f Update translatable texts
[skip ci]
2025-06-23 10:43:39 +00:00
Safihre
753d1e3bd3 Add Download button to Windows and macOS update notification 2025-06-23 12:38:34 +02:00
Safihre
5393b6330e Add Turkish to installer 2025-06-23 12:36:54 +02:00
Safihre
2d8be8d89b Disable forced check for Windows verison
See https://github.com/pywinrt/pywinrt/issues/136
2025-06-23 12:36:39 +02:00
Safihre
08723f0432 Windows Toasts did not work anymore 2025-06-23 10:40:29 +02:00
Safihre
1e1220c509 Update appdata on develop brach 2025-06-19 08:57:48 +02:00
renovate[bot]
c6920e09bf chore(deps): update all dependencies (#3098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 01:08:08 +00:00
SABnzbd Automation
74d2a9f7c4 Update translatable texts
[skip ci]
2025-06-14 21:10:55 +00:00
Safihre
31c9c64741 Remove double da language files 2025-06-14 22:38:40 +02:00
Safihre
96e7999b4f Update Python for macOS release to 3.13.5 2025-06-14 22:15:54 +02:00
Safihre
5303b9d291 Make internetspeed robust against failure
Closes #3097
2025-06-14 21:59:44 +02:00
renovate[bot]
91af147b8b chore(deps): update all dependencies (develop) (#3096)
* chore(deps): update all dependencies

* List Python 3.8 version of portend

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-06-10 12:27:03 +00:00
renovate[bot]
33463a3fd1 chore(deps): update all dependencies (#3095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-26 03:53:49 +00:00
SABnzbd Automation
ac88446757 Update translatable texts
[skip ci]
2025-05-22 18:45:13 +00:00
Michael Nightingale
d129eec4a7 Filter rss enclosures by application/x-nzb mimetype (#3093)
* Filter rss enclosures by application/x-nzb mimetype

* Add tests and fix the failing one

* Change empty RSS entry logging to info
2025-05-22 20:44:30 +02:00
SABnzbd Automation
9b1b908115 Update translatable texts
[skip ci]
2025-05-21 08:44:14 +00:00
Arun Rawat
5866c029c4 feat: add tab and shift+tab navigation between rename fields in queue (#3091) 2025-05-21 10:43:28 +02:00
renovate[bot]
de6a6a084e Update all dependencies (#3090)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-19 03:07:37 +00:00
renovate[bot]
139489e5b3 Update all dependencies to v3 (#3085)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 07:20:38 +00:00
Safihre
a91f72a7f4 Allow renovate to update winrt again 2025-05-12 09:07:41 +02:00
renovate[bot]
f5fd4c1c18 Update all dependencies (#3084)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 02:26:49 +00:00
Safihre
3da67dc4af Correct permissions of included macos binaries 2025-05-07 14:58:37 +02:00
jcfp
0220d886c5 prevent cherrypy from stumbling over invalid cookies (#3082)
* prevent cherrypy from stumbling over invalid cookies

* group workarounds for flaws in external mods
2025-05-06 09:07:43 +02:00
SABnzbd Automation
19ea25f072 Update translatable texts
[skip ci]
2025-05-05 20:15:43 +00:00
Safihre
d934c588ad Rename osx to macos in the code 2025-05-05 22:15:02 +02:00
Safihre
ccb036ba37 Update par2cmdline-turbo to 1.3.0 2025-05-05 22:01:59 +02:00
renovate[bot]
3d1c5c82d1 Update all dependencies (#3081)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 03:22:11 +00:00
thezoggy
d37532a4eb Update build_release.yml for Python 3.13.3 (#3080)
python 3.13.3 bump
2025-04-28 20:32:45 +02:00
renovate[bot]
143851d1cb Update all dependencies (#3079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 04:06:17 +00:00
SABnzbd Automation
235dd32ad0 Update translatable texts
[skip ci]
2025-04-26 09:39:58 +00:00
Matt Miller
0b295d7b57 Update to_units and quota api output format (#3076)
* Include byte unit in quota strings

Fixes #2590

I expect to continue to iterate on some of the ideas in the comments
thereon, but this fixes the proximate issue mentioned in the issue.

This includes changes to the interface to properly interpret the new
strings:

- Remove the UI-based `B` designations as they are now tagged with
  units from the api
- Let parseInt do its magic with string-y numbers plus units
- Expand parseInt for use in the checking whether quota is set

The display will be better in this `Glitter` case. This may well be
considered a breaking change for the API and not applied.

* Reduce computation slightly

No need to iterate over the evenly spaced unit sizes.
We can determine its magnitude quickly and convert it
into an index for our tags.

Avoiding the repeated divisons might also reduce error, but it is
unlikely to be noticeable.

* Drop trailing space when no units

The issue didn't expressly complain, but there is a trailing space when
all of the other unit information is empty.  Might as well not include
it when it clearly will happen.

The use of `f-strings` might also simplify future maintenance.

* Better document to_units methodology

This addresses some code review concerns with respect to readability.
Frankly, having this much exposition in the comments might imply that
it's a lot less obvious than I thought at initial writing.

This also maps everything under `1024` directly to `0`.  This avoids
concerns about potentially generating negative indices into the tags
tuple which would be surprising and wildly incorrect.
2025-04-26 11:39:10 +02:00
renovate[bot]
a4020ed085 Update all dependencies (#3075)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-21 02:34:15 +00:00
SABnzbd Automation
af1e5e0c1d Update translatable texts
[skip ci]
2025-04-18 07:46:33 +00:00
thezoggy
a3fffea9f9 fixup prowl/pushover pri setting due to value returned as int not string now (#3072) 2025-04-18 10:45:44 +03:00
jcfp
180bc30ea5 improve happyeyeballs logging (#3067) 2025-04-15 19:46:47 +02:00
renovate[bot]
f6b21680f8 Update all dependencies (develop) (#3064)
* Update all dependencies

* markdown Python 3.8 fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-04-15 09:26:06 +02:00
SABnzbd Automation
f6b65a4d1a Update translatable texts
[skip ci]
2025-04-15 06:52:38 +00:00
Safihre
4662bb8129 Update version file to 4.6.0-dev 2025-04-15 08:51:45 +02:00
jcfp
e2f613da6c stop catching BaseException (#3062) 2025-04-09 15:27:22 +02:00
jcfp
d4874970cd fix root dir check in make_mo (#3061) 2025-04-05 14:17:11 +02:00
Safihre
80268c4068 The From SxxEyy RSS filters did not work due to rename in sorter
Closes https://forums.sabnzbd.org/viewtopic.php?t=26966
2025-04-04 14:05:02 +02:00
renovate[bot]
e2811f93b1 Update all dependencies (develop) (#3058)
* Update all dependencies

* orjson dropped support for Python 3.8

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-04-04 13:16:39 +02:00
SABnzbd Automation
f8190e28c9 Update translatable texts
[skip ci]
2025-04-04 10:32:10 +00:00
Safihre
7eb460ba1f Update UnRar to 7.11 2025-04-04 12:31:14 +02:00
Michael Reid
fe647284e7 Fix Platform Detection on Linux (#3059)
* Fix Platform Detection on Linux

* Simplify solution to suppress stderr
2025-04-01 11:36:57 +02:00
SABnzbd Automation
54fe887636 Update translatable texts
[skip ci]
2025-03-28 13:54:16 +00:00
jcfp
2604775e5c avoid pop from empty list (#3056) 2025-03-28 14:53:30 +01:00
Safihre
a15bad6fb4 Use base SABnzbd version in translation files 2025-03-24 12:37:44 +01:00
Safihre
58c060c39d Downgrade winrt so Windows notifications keep working 2025-03-24 12:24:45 +01:00
SABnzbd Automation
6ecd0a8561 Update translatable texts
[skip ci]
2025-03-24 03:49:45 +00:00
renovate[bot]
4a52289f05 Update all dependencies (#3054)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-24 03:48:57 +00:00
SABnzbd Automation
104c0b20fe Update translatable texts
[skip ci]
2025-03-21 20:58:38 +00:00
Safihre
b8a3a264e3 Update text files for 4.5.0RC1 2025-03-21 21:38:45 +01:00
Safihre
b0e42940e5 Update pywin32 dependency 2025-03-21 21:28:14 +01:00
jcfp
4bc6fefa1f also disable argparse's auto-added help in the (io)nice parameters check (#3052) 2025-03-14 15:44:31 +01:00
jcfp
3ec8227745 add unrar_parameters option in config special (#3047)
* add unrar_parameters option in config special

* add tests for case-insensitive matching and argparse's auto-help
2025-03-14 11:49:26 +01:00
renovate[bot]
9f6dc3df01 Update all dependencies (#3048)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 13:18:42 +01:00
SABnzbd Automation
cadeae061f Update translatable texts
[skip ci]
2025-03-06 18:44:44 +00:00
jcfp
80c3226147 fix UnboundLocalError in testhelper (#3046) 2025-03-06 19:43:55 +01:00
SABnzbd Automation
f2137e2fa3 Update translatable texts
[skip ci]
2025-03-03 02:28:34 +00:00
renovate[bot]
9bf80a3745 Update all dependencies (#3044)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 02:27:51 +00:00
renovate[bot]
750ee422a7 Update dependency PyGithub to v2.6.1 (#3042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 03:36:17 +00:00
luzpaz
035559f1c3 Fix typos (#3041)
Found via `codespell -q 3 -S "*.po,*.pot,*.min.js" -L allo,collet,fo,parm,ciph,datas,parms,reenabled,re-use,re-used,re-using,sav,tage`
2025-02-23 08:38:00 +01:00
SABnzbd Automation
4751f609bb Update translatable texts
[skip ci]
2025-02-20 21:10:43 +00:00
Safihre
40fde7a411 Update text files for 4.5.0Beta2 2025-02-20 22:07:58 +01:00
thezoggy
b27a7f6cf4 Update unrar to 7.10 (#3039) 2025-02-20 22:01:58 +01:00
thezoggy
9006875d6c par2cmdline turbo update (#3036)
* bump par2cmdline-turbo to 1.2.0 for osx, and 1.2.0-utf8-20250212 for win

* Try UNC paths for par2cmdline-turbo update

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-02-18 16:40:49 +01:00
thezoggy
dd0122865a bump copyright year (#3034) 2025-02-17 14:06:12 +01:00
renovate[bot]
9a5f39ce99 Update all dependencies (#3038)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 03:41:19 +00:00
thezoggy
545f75b456 Update 7zip to 24.09 (#3035) 2025-02-16 09:31:37 +01:00
thezoggy
e1553e86b6 bump macos to build with 3.13.2 (#3037) 2025-02-16 09:31:01 +01:00
jcfp
c85ddd0595 add tests for remote_ip_from_xff (#3032) 2025-02-13 20:24:58 +01:00
RooHTaylor
5d763f52af Add check XFF headers for remote ip in cookie (#3029)
* Add check XFF headers for remote ip in cookie

If verify_xff_header() then also check for the client IP in the XFF headers to ensure the IP used for the session cookie is actually the client IP and not a proxy IP.

* Fix code formatting

* Remove duplicate check for empty xff_ips. for -> for else
2025-02-12 15:36:38 +01:00
renovate[bot]
2b842b2bc5 Update dependency pyinstaller to v6.12.0 (#3031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-10 00:59:08 +00:00
renovate[bot]
2a3e144ed6 Update all dependencies (#3027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 10:09:24 +00:00
SABnzbd Automation
52f09dbf55 Update translatable texts
[skip ci]
2025-02-04 09:35:28 +00:00
Safihre
6bce289c8f Update for new black rules 2025-02-04 10:34:35 +01:00
SABnzbd Automation
20bc8f0d06 Update translatable texts
[skip ci]
2025-01-22 12:42:57 +00:00
cardpuncher
966fe246f6 French & Turkish translations for the desktop file (#3024)
As I couldn't find this file on Transifex, I added translations for the GenericName, Comment and Keywords fields here.
2025-01-22 13:42:08 +01:00
SABnzbd Automation
c4a84b3a31 Update translatable texts
[skip ci]
2025-01-20 12:42:17 +00:00
renovate[bot]
e06f91c243 Update all dependencies (develop) (#3022)
* Update all dependencies

* Fix more-itertools

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-01-20 12:41:37 +00:00
Dan Christensen
42c00dda84 Directly decompress gzip responses in urlgrabber (#3014)
The URLGrabber sets Accept-encoding: gzip on requests, so a server may
respond with gzipped compressed data.  That data is tested without
having been decompressed which then can result in unnecessary errors.
2025-01-16 13:54:59 +01:00
SABnzbd Automation
e40d2980e7 Update translatable texts
[skip ci]
2025-01-15 11:08:07 +00:00
thezoggy
b6a905be21 Sanitize email related fields from json logging lines (#3021) 2025-01-15 12:07:22 +01:00
Safihre
22800ae411 Add 4.5.0 to Appdata 2025-01-14 11:59:36 +01:00
SABnzbd Automation
e8a4d95177 Update translatable texts
[skip ci]
2025-01-14 10:16:44 +00:00
Safihre
026a606e7f Update text files for 4.5.0Beta1 2025-01-14 11:15:54 +01:00
renovate[bot]
9551f9a3b9 Update all dependencies (develop) (#3015)
* Update all dependencies

* Unpin tempora for Python 3.8

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2025-01-14 09:58:57 +01:00
SABnzbd Automation
f62e7ab560 Update translatable texts
[skip ci]
2025-01-14 08:08:21 +00:00
jcfp
92fbd75cc3 replace leftover wikidot url about email templates (#3018)
closes #3017
2025-01-14 09:07:31 +01:00
SABnzbd Automation
7de0869376 Update translatable texts
[skip ci]
2025-01-05 22:12:33 +00:00
Safihre
57606ef1bb Add more detailed detection of platform we are running on
Closes #3010
2025-01-05 23:11:48 +01:00
SABnzbd Automation
318d3ff649 Update translatable texts
[skip ci]
2025-01-05 21:03:18 +00:00
Safihre
8953f4df4a Refactor start-up checks 2025-01-05 22:01:46 +01:00
Safihre
7c607a6bf6 Simplify file and folder name sanitization 2024-12-30 22:15:14 +01:00
Safihre
93c6d67ef8 Improve handling of too long utf8 file and folder names
Closes #2991
Closes #2988
2024-12-30 14:59:26 +01:00
Safihre
a314d6ab71 Did not count number of skipped files 2024-12-30 14:59:26 +01:00
SABnzbd Automation
62bb9b3816 Update translatable texts
[skip ci]
2024-12-30 13:09:48 +00:00
Safihre
2ef5cec5c5 Remove MultiPar support 2024-12-30 14:09:05 +01:00
Safihre
c8e2329bee Refactor of code related to adding nzf's 2024-12-30 11:28:39 +01:00
renovate[bot]
f0358d9f0a Update all dependencies (develop) (#3004)
* Update all dependencies

* Allow older urllib3 on Python 3.8

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-12-30 09:48:35 +01:00
SABnzbd Automation
3f89114c73 Update translatable texts
[skip ci]
2024-12-22 20:47:59 +00:00
Safihre
721f5dfe86 Add additional par2 files to download first in case of missing articles 2024-12-22 21:46:44 +01:00
SABnzbd Automation
ef38c1d7c8 Update translatable texts
[skip ci]
2024-12-21 21:53:02 +00:00
jcfp
fe88760600 switch test_cert_gen check to utc (#3003) 2024-12-21 22:52:20 +01:00
SABnzbd Automation
e498ef6302 Update translatable texts
[skip ci]
2024-12-18 12:20:53 +00:00
Safihre
b1c486fa2a Update text files for 4.4.1RC1 2024-12-18 13:19:27 +01:00
Safihre
d9aa42dc31 Add new Certificate verification setting Medium
Closes #2993
2024-12-18 13:18:50 +01:00
Safihre
3ee0db8cff Don't block virusscanner certificates on Windows
See #2993
2024-12-18 13:18:40 +01:00
Safihre
23cae4d073 Add missing hidden import for Windows notifications 2024-12-18 13:18:35 +01:00
SABnzbd Automation
2b45ba044e Update translatable texts
[skip ci]
2024-12-16 01:16:55 +00:00
renovate[bot]
cd831d2775 Update dependency certifi to v2024.12.14 (#2996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 01:16:13 +00:00
Safihre
8c761ba67e Update release date of 4.4.0 in appdata 2024-12-09 21:50:23 +01:00
SABnzbd Automation
07243290ec Update translatable texts
[skip ci]
2024-12-09 02:14:44 +00:00
renovate[bot]
317a9c00de Update all dependencies (#2989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 02:13:59 +00:00
SABnzbd Automation
cc40214818 Update translatable texts
[skip ci]
2024-12-02 11:35:23 +00:00
Safihre
3b52379e56 Remove Windows 32bit support 2024-12-02 12:13:47 +01:00
SABnzbd Automation
8a2f8d969d Update translatable texts
[skip ci]
2024-12-02 08:56:07 +00:00
Safihre
6f9bf68528 Update text files for 4.4.0RC1 2024-12-02 09:55:22 +01:00
Safihre
5a48301d25 Prevent division by zero in bad server check
Closes #2963
2024-12-02 09:51:41 +01:00
SABnzbd Automation
d1d3e27dea Update translatable texts
[skip ci]
2024-12-02 08:45:53 +00:00
Safihre
2f1805123a Add 4.4.0 to appdata 2024-12-02 09:42:38 +01:00
renovate[bot]
f05c82b3a7 Update all dependencies (#2985)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 01:13:49 +00:00
Michael Nightingale
1fe01f2724 Fix displayTabbed observable default value (#2984) 2024-12-01 18:47:00 +01:00
renovate[bot]
a5239808eb Update all dependencies (#2977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 00:55:58 +00:00
SABnzbd Automation
00a7b4fffc Update translatable texts
[skip ci]
2024-11-21 21:00:04 +00:00
Safihre
0c5010f5c1 Warn users that the legacy Windows release will be dropped 2024-11-21 21:51:41 +01:00
renovate[bot]
a8b33e7686 Update all dependencies (develop) (#2974)
* Update all dependencies

* Add fix for Python 3.8 for PyJWT

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-11-19 09:09:13 +00:00
Safihre
0294e01fae Always notarize the macOS release 2024-11-19 08:52:33 +01:00
SABnzbd Automation
c2621f56eb Update translatable texts
[skip ci]
2024-11-18 21:03:49 +00:00
Safihre
ebac7707ff Always run release preparation 2024-11-18 22:03:04 +01:00
SABnzbd Automation
26adade8be Update translatable texts
[skip ci]
2024-11-18 14:30:25 +00:00
Safihre
dd9c7488c6 Update text files for 4.4.0Beta2 2024-11-18 15:29:25 +01:00
Safihre
754b862a29 Build release using Python 3.13 2024-11-17 21:10:48 +01:00
Safihre
0ddf343bb7 Generalize wildcard addition in par2cmdline call 2024-11-17 21:06:30 +01:00
SABnzbd Automation
7a8a45b811 Update translatable texts
[skip ci]
2024-11-17 19:56:02 +00:00
Safihre
66c525ef95 Remove any custom Multipar parameters when updating 2024-11-17 20:54:59 +01:00
SABnzbd Automation
7cd3e50ded Update translatable texts
[skip ci]
2024-11-17 19:45:37 +00:00
Safihre
d5094e1aa6 Switch to modified par2cmdline-turbo-utf8 2024-11-17 20:35:33 +01:00
renovate[bot]
bca9559783 Update all dependencies (#2961)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 14:34:43 +00:00
Safihre
0cbb8af7a0 More compatibility fixes for Python 3.8 2024-11-12 15:14:53 +01:00
Safihre
afab90ca68 Ignore package updates that are unsupported on Python 3.8 2024-11-12 08:58:42 +01:00
SABnzbd Automation
92ecfc4930 Update translatable texts
[skip ci]
2024-11-11 11:17:53 +00:00
Safihre
b064f112cd Fix version of blinker for Python 3.8 2024-11-11 12:16:56 +01:00
renovate[bot]
629da51be7 Update all dependencies 2024-11-04 08:08:53 +00:00
Safihre
0fa0f7286c Let renovate also update uvicorn branch 2024-11-03 20:47:24 +01:00
Safihre
6cd8f3e333 Add server note to the main servers display
Closes #2957
2024-11-03 16:45:52 +01:00
Safihre
ff18fe03e9 Update the release builder configuration 2024-10-31 21:33:34 +01:00
SABnzbd Automation
a1e30d19e3 Update translatable texts
[skip ci]
2024-10-31 20:23:25 +00:00
Safihre
3d74c19f41 Update text files for 4.4.0Beta1 2024-10-31 21:22:40 +01:00
SABnzbd Automation
33a831e87c Update translatable texts
[skip ci]
2024-10-29 21:03:01 +00:00
Safihre
7b04917f0e Kill unrar if it reports disk full, since it can hang
See #2948
2024-10-29 22:02:17 +01:00
SABnzbd Automation
2f62b76279 Update translatable texts
[skip ci]
2024-10-29 20:17:28 +00:00
Safihre
bd43bca1cf Include dateutil timezone file that would show warning in executables 2024-10-29 21:16:41 +01:00
Safihre
d200f0a618 Small refactor of improved warnings for weird ports
Not needed, but I liked it
2024-10-29 21:08:49 +01:00
SABnzbd Automation
c5314569db Update translatable texts
[skip ci]
2024-10-29 11:11:35 +00:00
Sander
001e215b7d Better analysis & better user info if newsserver connection fails (#2951)
* Better analysis & better user info if newsserver connection fails

* make Black happy

* make Black happy

* make Black happy

* make Black happy ... corrected

* make Black happy ... corrected

* make Black happy ... corrected

* make Black happy ... corrected

* Safihre's feedback handled

* more Safihre's feedback handled

---------

Co-authored-by: sanderjo <sander.jonkers+github@github.com>
2024-10-29 12:10:45 +01:00
SABnzbd Automation
3a628a0025 Update translatable texts
[skip ci]
2024-10-28 01:04:25 +00:00
renovate[bot]
7e48207fbc Update all dependencies 2024-10-28 01:03:38 +00:00
renovate[bot]
48a6d6b289 Update all dependencies (#2949)
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-10-22 12:19:15 +02:00
SABnzbd Automation
21f05ad3d9 Update translatable texts
[skip ci]
2024-10-21 06:56:44 +00:00
Safihre
d93c861eb3 Add disk full error to Direct Unpacker
Closes #2948
2024-10-21 08:55:56 +02:00
Safihre
fb0ef21768 The tests folder was ignored by default by Renovate 2024-10-15 11:55:26 +02:00
Safihre
277679ef53 Add Python 3.13 to CI tests 2024-10-15 10:10:24 +02:00
Safihre
e7e47bbcb0 Do not compare articles just based on article-ID
Turns out that there are NZBs that contain duplicate article-ID's within 1 file. This causes all "article in nzf.article" comparisons to return the wrong comparison.
2024-10-15 09:44:04 +02:00
Safihre
65ffb5ca81 All resets of try lists should be locked fully 2024-10-15 09:43:55 +02:00
SABnzbd Automation
6cf308e441 Update translatable texts
[skip ci]
2024-10-14 01:47:23 +00:00
renovate[bot]
870fa40c91 Update all dependencies 2024-10-14 01:46:42 +00:00
Safihre
39d9eaec2a Create new history database in case of no such table error 2024-10-08 21:06:59 +02:00
SABnzbd Automation
6fd4d0882c Update translatable texts
[skip ci]
2024-10-08 07:39:00 +00:00
Safihre
32591f7c46 Update text files for 4.4.0Alpha2 2024-10-08 09:38:01 +02:00
SABnzbd Automation
6b47d1126d Update translatable texts
[skip ci]
2024-10-07 00:23:20 +00:00
renovate[bot]
53df39dd12 Update dependency pywin32 to v307 2024-10-07 00:22:35 +00:00
Safihre
b5d33fc17c Mount interface again on both / and url_base
Closes #2936
2024-10-05 20:58:45 +02:00
SABnzbd Automation
8a517b668e Update translatable texts
[skip ci]
2024-10-01 06:27:56 +00:00
thezoggy
67135ba4c8 Update 7zip and multipar (#2942)
* Update 7zip to 24.08

* Update multipar to 1.3.3.3
2024-10-01 08:27:12 +02:00
renovate[bot]
c9efda1889 Update all dependencies 2024-09-30 00:44:59 +00:00
Safihre
250869c242 Force Selenium browser_version to 127
Closes #2932
2024-09-26 22:41:20 +02:00
SABnzbd Automation
844650e6be Update translatable texts
[skip ci]
2024-09-26 20:27:25 +00:00
Safihre
6685c72894 Saving Specials page would result in restart even for no changes
Relates to #2932
2024-09-26 22:26:39 +02:00
renovate[bot]
154a5e4989 Update all dependencies (#2937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 07:34:11 +02:00
SABnzbd Automation
93d302c9d7 Update translatable texts
[skip ci]
2024-09-20 08:11:43 +00:00
Safihre
f664df7f05 Update text files for 4.4.1Alpha1 2024-09-20 10:10:55 +02:00
thezoggy
8fbf50292b Add additional server priority colors (#2934) 2024-09-17 20:27:22 +02:00
Safihre
f3fed43022 Remove logging line for scheduled history purge 2024-09-17 15:06:56 +02:00
Safihre
2d323ba18c Update to Python 3.12.6 and drop macOS <10.13 support
Closes #2784
2024-09-16 13:59:38 +02:00
Safihre
1ec30a56e1 Improve logging of server address retrieval 2024-09-16 13:58:57 +02:00
renovate[bot]
b98f3a07dd Update all dependencies (#2933)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-16 13:58:12 +02:00
Safihre
46170ffb3d Reset article queue only when really stopping the server
Closes #2866
2024-09-10 20:25:56 +03:00
renovate[bot]
5e8b41be5a Update all dependencies (#2930)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 20:13:14 +03:00
SABnzbd Automation
47a2d5387d Update translatable texts
[skip ci]
2024-09-10 07:57:26 +00:00
Safihre
1e61239933 Add Bootstrap tooltips to any elements with title 2024-09-10 10:55:06 +03:00
Safihre
aedbf35be8 Show file being moved during Moving phase 2024-09-07 11:10:58 +03:00
Safihre
cf9540842b Config restart would always try to build URL instead of using current
#2835
2024-09-07 10:51:11 +03:00
Safihre
9205b9161b Update Linux test runners 2024-09-05 12:43:31 +03:00
Safihre
07b64b4abb Update tests for change in webpage mounting 2024-09-04 12:09:07 +03:00
Safihre
c56145e424 Only mount webpages on /, no longer on /sabnzbd
Closes #2929
2024-09-04 11:39:38 +03:00
Safihre
ef11aba166 Add basic system to do trigger one-time config conversions 2024-09-04 11:39:37 +03:00
SABnzbd Automation
fcf03e9a59 Update translatable texts
[skip ci]
2024-09-03 09:06:42 +00:00
renovate[bot]
6662065bb1 Update all dependencies (#2928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 12:05:52 +03:00
SABnzbd Automation
4973672892 Update translatable texts
[skip ci]
2024-08-30 12:47:50 +00:00
bt90
efa73a52e1 Add doctype to login page (#2927) 2024-08-30 14:47:02 +02:00
SABnzbd Automation
82098a6228 Update translatable texts
[skip ci]
2024-08-26 02:47:15 +00:00
renovate[bot]
07250aa355 Update all dependencies 2024-08-26 02:46:28 +00:00
Safihre
46caa8b33f Add Docker to CPU label 2024-08-19 20:21:19 +02:00
Safihre
b0564c1bab Small style fixes for the Config 2024-08-19 11:42:12 +02:00
SABnzbd Automation
3c8a85ff35 Update translatable texts
[skip ci]
2024-08-19 09:28:34 +00:00
Safihre
656c329912 Update version to 4.4.0-develop 2024-08-19 11:27:46 +02:00
SABnzbd Automation
983253908c Update translatable texts
[skip ci]
2024-08-19 01:20:50 +00:00
renovate[bot]
cef0eeb25b Update all dependencies 2024-08-19 01:20:10 +00:00
Safihre
a9eace759f increase_bad_articles_counter should be called before register_article 2024-08-16 22:23:14 +02:00
Safihre
ad0e7bf5df Prevent excessive newswrapper data buffer size
Closes #2895
2024-08-16 17:25:57 +02:00
Safihre
bea348232a Do not use article_queue when resetting newswrapper
Relates to #2866
2024-08-16 16:50:28 +02:00
jcfp
1519dbc554 Remove pyfakefs workarounds and put its new apply_umask option to good use (#2922) 2024-08-16 15:44:52 +02:00
SABnzbd Automation
297455cd35 Update translatable texts
[skip ci]
2024-08-12 02:04:47 +00:00
renovate[bot]
56b68024db Update all dependencies 2024-08-12 02:04:06 +00:00
SABnzbd Automation
09aa09a55b Update translatable texts
[skip ci]
2024-08-09 17:46:39 +00:00
Sander
f1d134fe2e Deobfuscate subtitles (#2903)
* deobfuscate_subtitles

* deobfuscate_subtitles: unit test aka pytest

* deobfuscate_subtitles: unit test aka pytest

* deobfuscate_subtitles: no reanem is first part of filename is the samen

* deobfuscate_subtitles: no reanem is first part of filename is the samen

* deobfuscate_subtitles: no reanem is first part of filename is the samen

* deobfuscate_subtitles: more structured unit test method

* deobfuscate_subtitles: back to basic testing method

* deobfuscate_subtitles: cleanup

* deobfuscate_subtitles: cleanup

* deobfuscate_filenames.test_first_file_is_much_bigger() improved

* deobfuscate_subtitles(): checks on biggest file and srt files. input can be directory or filelist.

* rename to clearly_one_biggest_file()

* WIP on develop

* accept work by safihre

* do nothing when not one_file_is_biggest

* a lot of cleanup, also with help of the walrus

* a lot of cleanup, also with help of the walrus

* fix typo's in test_deobfuscate_filenames.py

* Update sabnzbd/postproc.py

Co-authored-by: Safihre <safihre@sabnzbd.org>

* handle review comments

* handle review comments

* remove import glob

* remove special underscore support. Add srt deob info into GUI-history

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-08-09 19:45:57 +02:00
Safihre
621d586c2f Reduce timeouts during happyeyeballs and others 2024-08-09 10:01:21 +02:00
Safihre
4966f9c753 Update sabctools to 8.2.5 2024-08-09 09:42:57 +02:00
SABnzbd Automation
059d82f6f0 Update translatable texts
[skip ci]
2024-08-05 00:18:07 +00:00
renovate[bot]
bca41db6b7 Update all dependencies 2024-08-05 00:17:22 +00:00
renovate[bot]
613ba0b05f Update dependency setuptools to v72 2024-07-29 03:45:46 +00:00
renovate[bot]
5f3b03ed87 Update all dependencies 2024-07-29 02:12:43 +00:00
SABnzbd Automation
f6fe801000 Update translatable texts
[skip ci]
2024-07-28 16:31:44 +00:00
bt90
8ff34660d8 Add autocomplete attributes (#2916) 2024-07-28 10:31:03 -06:00
renovate[bot]
0c1b8dd60a Update all dependencies 2024-07-24 23:08:07 +00:00
SABnzbd Automation
8e8ee7a3ab Update translatable texts
[skip ci]
2024-07-24 22:11:38 +00:00
Safihre
9145a90e33 Update test_cert_gen for new cryptography default 2024-07-24 16:10:58 -06:00
Safihre
02b4a116dd Update AppData for 4.3.3 2024-07-16 00:06:21 +02:00
SABnzbd Automation
e504b288a2 Update translatable texts
[skip ci]
2024-07-15 22:05:36 +00:00
Safihre
5128f788f0 Update text files for 4.3.3Beta2 2024-07-16 00:02:42 +02:00
Sander
044fe7a26a fix when no connection (for example IPv6-test on IPv4-only connection) (#2908)
* fix when no connection (for example IPv6-test on IPv4-only connection)

* fix when no connection (for example IPv6-test on IPv4-only connection)

* make black happy ... hopefully

* make black happy ... hopefully ... linelength 120
2024-07-15 07:27:43 +02:00
renovate[bot]
4ed2565101 Update all dependencies 2024-07-15 03:56:19 +00:00
SABnzbd Automation
abbd77bac4 Update translatable texts
[skip ci]
2024-07-14 21:24:11 +00:00
Safihre
38c9a52e1d Add changes to web_host and web_port to ignored revs 2024-07-14 23:23:26 +02:00
Safihre
f89114ca7e Rename cherryhost and cherryport to web_host and web_port 2024-07-14 23:23:01 +02:00
Safihre
773d567eed Skip propagation delay calculation if delay is set to 0
Since OptionNumber doesn't allow empty values
2024-07-14 23:19:05 +02:00
Safihre
ee717b679e Set limits to number-input types that were missing them 2024-07-13 19:39:53 +02:00
Safihre
f50810fb58 Remove article from TryList when resetting article Queue
When we reset the Server's Article-queue, we should retry that article again on that server.
2024-07-10 20:48:06 +02:00
jcfp
08b1b20b34 fix filesystem permission test for pyfakefs 5.4.0+ (#2905) 2024-07-10 16:16:18 +02:00
SABnzbd Automation
edca79af83 Update translatable texts
[skip ci]
2024-07-08 13:11:04 +00:00
Safihre
dd5dcd0ec9 Update text files for 4.3.3Beta1 2024-07-08 15:10:22 +02:00
Safihre
820824e443 Disable failing test until #2883 is fixed 2024-07-08 13:47:01 +02:00
Safihre
4c2dfdee43 Correctly handle the difference between no category and Default
Closes #2902
2024-07-08 13:47:00 +02:00
Safihre
ece4437c3a General changes to sanitization functions 2024-07-08 13:46:59 +02:00
renovate[bot]
74daa15ce4 Update dependency certifi to v2024.7.4 (#2904)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 08:04:01 +02:00
renovate[bot]
4f81bc8a26 Update all dependencies (#2901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 22:10:07 +02:00
jcfp
e77d15f75e don't bother looking up a public address if the local ipv6 is link-local (#2899) 2024-06-29 10:16:12 +02:00
Sander
8668852574 make WIN64 also true if on ARM64 (#2893)
Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2024-06-25 07:03:18 +02:00
renovate[bot]
7e944f393e Update winrt dependencies to v2.1.0 (#2891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 15:29:58 +02:00
renovate[bot]
1646fbfd17 Update all dependencies (#2890)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 06:52:59 +02:00
Safihre
72b0521325 Correct crash in Notifications page
Closes #2887
2024-06-19 21:11:03 +02:00
renovate[bot]
8aa53fd43f Update all dependencies (#2882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 14:22:03 +02:00
Safihre
aa67edb2d9 Fix macOS CI run by pinning older Python 3.12.3 version 2024-06-17 09:25:51 +02:00
SABnzbd Automation
0054b17f41 Update translatable texts
[skip ci]
2024-06-17 07:03:09 +00:00
Safihre
2af2cc7370 Add file version information to Windows installer
#2870
2024-06-17 09:02:29 +02:00
renovate[bot]
5aa7aafebb Update all dependencies 2024-06-10 01:14:35 +00:00
Safihre
3bd0f7c1e0 Experiment to improve idle job detection
No longer rely on just length of arrays, but use fast set-comparisons.
2024-06-09 22:23:55 +02:00
Safihre
9c8d21f6db Remove warning about AppRise
Closes #2875
2024-06-09 21:22:52 +02:00
SABnzbd Automation
4947effeb7 Update translatable texts
[skip ci]
2024-06-09 19:02:22 +00:00
Safihre
b8fd9e6e31 Introduce bool_conv and fix ambiguous JSON retry value in history queue 2024-06-09 21:01:32 +02:00
jcfp
2a02c93e4b Fix checkdir argument handling (#2873)
* fix checkdir argument handling

* housekeeping

* shut up black
2024-06-03 22:03:20 +02:00
SABnzbd Automation
a0ef520e06 Update translatable texts
[skip ci]
2024-06-03 02:05:42 +00:00
renovate[bot]
a9eb32eba6 Update all dependencies 2024-06-03 02:05:01 +00:00
SABnzbd Automation
592ef0e645 Update translatable texts
[skip ci]
2024-05-31 14:13:53 +00:00
Safihre
cce53ee058 Set version to 4.3.2 2024-05-31 16:13:02 +02:00
Safihre
93755aa6d8 Update sabctools to 8.3.3 2024-05-29 16:55:12 +02:00
SABnzbd Automation
b1d42c7c22 Update translatable texts
[skip ci]
2024-05-27 20:00:41 +00:00
Safihre
8286b7b830 Add pkg_resources.extern to hidden imports 2024-05-27 19:59:56 +00:00
renovate[bot]
fbaa3c0420 Update all dependencies 2024-05-27 19:59:56 +00:00
SABnzbd Automation
ba6c30cf24 Update translatable texts
[skip ci]
2024-05-23 08:24:29 +00:00
Safihre
3ce5679298 Update text files for 4.3.2RC2 2024-05-23 10:23:41 +02:00
jcfp
47e1d40943 set basic systemd hardening options (#2865) 2024-05-22 13:52:23 +02:00
Safihre
1687130107 Ignore shutdown exception in cheroot
Closes #2857
2024-05-22 10:20:09 +02:00
SABnzbd Automation
8e59146d60 Update translatable texts
[skip ci]
2024-05-20 00:41:49 +00:00
renovate[bot]
4b37d2772f Update all dependencies 2024-05-20 00:41:01 +00:00
thezoggy
ea9d690a90 Switch discord link to vanity link. Add binhex as docker maintainer entry (#2861) 2024-05-17 07:16:25 +02:00
Safihre
3a2e967a03 Add 4.3.2 to appdata 2024-05-16 21:45:00 +02:00
SABnzbd Automation
a2eb0cc2c3 Update translatable texts
[skip ci]
2024-05-16 19:44:14 +00:00
Safihre
8b9341023a Update text files for 4.3.2RC1 2024-05-16 21:39:42 +02:00
Safihre
54314c0198 Only remove Windows shortcuts on uninstall
Closes #2850
2024-05-16 21:32:53 +02:00
Safihre
b0e4c4c5bf Pin paho-mqtt to 1.6.1
Closes #2855
2024-05-16 15:28:05 +02:00
Safihre
989e215acc Update sabctools to 8.2.0 2024-05-16 15:00:26 +02:00
thezoggy
ba88bb15a9 Update unrar 7.01 and 7zip to 24.05 (#2860)
* Update unrar to 7.01

* Upgrade 7zip to 24.05
2024-05-16 09:10:14 +02:00
SABnzbd Automation
0cac0d942c Update translatable texts
[skip ci]
2024-05-15 11:04:15 +00:00
Chris Caron
b24a9ee781 Added tests cases to wrap calls to the Apprise integration (#2856)
* Added tests cases to wrap calls to the Apprise integration

* workaround to default config getting lost from test_misc.py

* 100% test coverage in send_apprise()
2024-05-15 13:03:26 +02:00
SABnzbd Automation
25ae29235f Update translatable texts
[skip ci]
2024-05-13 01:51:57 +00:00
renovate[bot]
a8d4de2d3d Update all dependencies 2024-05-13 01:51:12 +00:00
SABnzbd Automation
ccb3e0522c Update translatable texts
[skip ci]
2024-05-09 20:56:42 +00:00
Safihre
a9f1838b52 Update History Retention wording 2024-05-09 22:55:27 +02:00
SABnzbd Automation
d744c293fb Update translatable texts
[skip ci]
2024-05-09 20:49:42 +00:00
Safihre
94848979ad Add disable_archive for users that want to always skip it
Relates to #2848
2024-05-09 22:47:31 +02:00
SABnzbd Automation
2732326b3d Update translatable texts
[skip ci]
2024-05-06 00:22:01 +00:00
renovate[bot]
ea8328c199 Update all dependencies 2024-05-06 00:21:22 +00:00
Safihre
f1e42707a0 Update appdata for 4.3.1 2024-05-03 17:00:20 +02:00
SABnzbd Automation
c1bdc3abff Update translatable texts
[skip ci]
2024-05-03 13:29:51 +00:00
Safihre
5cbb569b38 Update text files for 4.3.1 2024-05-03 15:28:03 +02:00
Safihre
d4a3f0ea79 Correct missing winrt and apprise imports on macOS/Windows builds 2024-05-03 14:04:00 +02:00
SABnzbd Automation
b31fe2cf49 Update translatable texts
[skip ci]
2024-05-01 19:43:17 +00:00
Safihre
65d748fc9f Update text files for 4.3.0 2024-05-01 21:42:27 +02:00
Safihre
ab2da15bc9 Add SAB_API_KEY and SAB_API_URL to script environment variables 2024-04-29 21:45:00 +02:00
renovate[bot]
bf8bef3cd0 Update all dependencies to v2.0.1 2024-04-29 07:23:08 +00:00
renovate[bot]
adbe2f3c96 Update all dependencies 2024-04-29 02:18:10 +00:00
Safihre
dadb8ee71b Add version 4.3.0 to appdata 2024-04-24 12:11:24 +02:00
SABnzbd Automation
7d30f12532 Update translatable texts
[skip ci]
2024-04-24 10:11:10 +00:00
Safihre
9c41cbd2f3 Update text files for 4.3.0RC2 2024-04-24 12:10:27 +02:00
Safihre
5ce9a0c17d Update cheroot to 10.0.1 2024-04-24 08:53:36 +02:00
Safihre
7b2d2df299 Prevent crash on invalid server expiration date 2024-04-24 08:53:36 +02:00
renovate[bot]
285ff00c12 Update all dependencies 2024-04-22 01:25:16 +00:00
SABnzbd Automation
04ca95cc83 Update translatable texts
[skip ci]
2024-04-21 18:20:26 +00:00
Chris Caron
3b25a07522 drop check for apprise_prio as it's not applicable (#2838) 2024-04-21 20:19:44 +02:00
SABnzbd Automation
14aa449c35 Update translatable texts
[skip ci]
2024-04-19 12:14:24 +00:00
Safihre
d88c035c23 Correct reading of startup shortcut setting on Windows 2024-04-19 14:13:23 +02:00
SABnzbd Automation
6d2d90b1e5 Update translatable texts
[skip ci]
2024-04-16 08:47:17 +00:00
Safihre
e2ca39fb36 Update text files for 4.3.0RC1 2024-04-16 10:46:26 +02:00
Safihre
6a37780b8e Create loop right away, so socks5 proxy doesn't break it 2024-04-16 10:42:50 +02:00
SABnzbd Automation
146f33f38e Update translatable texts
[skip ci]
2024-04-16 08:30:17 +00:00
Safihre
c6c26c5de4 Update Python to 3.12.3 2024-04-16 10:27:31 +02:00
Safihre
262cc8dbbd Limit pyfakefs 2024-04-14 19:20:13 +00:00
renovate[bot]
5bec8e99a5 Update all dependencies 2024-04-14 19:20:13 +00:00
Safihre
2e0e6749ca Ignore jaraco.collections updates in renovate 2024-04-14 20:48:14 +02:00
SABnzbd Automation
c0ef18e8b3 Update translatable texts
[skip ci]
2024-04-14 18:19:47 +00:00
Safihre
52173804f1 Ignore jaraco.context updates in renovate 2024-04-14 20:18:58 +02:00
Safihre
2d8cf69140 Prevent Queue flicker if just single item deleted 2024-04-03 15:36:37 +02:00
Safihre
e2603d74ca Show Apprise version in Config 2024-04-03 14:03:48 +02:00
SABnzbd Automation
9df9238d56 Update translatable texts
[skip ci]
2024-04-01 01:09:30 +00:00
renovate[bot]
b697165392 Update all dependencies 2024-04-01 01:08:51 +00:00
SABnzbd Automation
16bfcc27d8 Update translatable texts
[skip ci]
2024-03-29 13:25:52 +00:00
Safihre
be3f47539d Update text files for 4.3.0Beta1 2024-03-29 14:25:01 +01:00
Safihre
f3fd63cd70 Update Multipar to v1.3.3.2 2024-03-29 14:25:00 +01:00
SABnzbd Automation
aafdf7620e Update translatable texts
[skip ci]
2024-03-29 13:17:06 +00:00
thezoggy
4f3b0541eb Unrar/7zip updates for Windows/MacOS (#2814)
* unrar 7.00

* 7zip 24.03b
2024-03-29 14:16:24 +01:00
Safihre
04fb73fd4a Add extra newline to Reddit release notes 2024-03-25 08:38:35 +01:00
SABnzbd Automation
b1a7924c75 Update translatable texts
[skip ci]
2024-03-25 00:53:29 +00:00
renovate[bot]
4e618206a8 Update all dependencies 2024-03-25 00:52:46 +00:00
jcfp
8a510331df update appstream xml (#2828) 2024-03-20 14:30:13 +01:00
SABnzbd Automation
81035964ca Update translatable texts
[skip ci]
2024-03-18 15:39:49 +00:00
Safihre
304cf5eda0 Update text files for 4.3.0Alpha1 2024-03-18 16:38:46 +01:00
Safihre
b987749291 Fix crash in file selector 2024-03-18 14:23:30 +01:00
SABnzbd Automation
cc3ad230f8 Update translatable texts
[skip ci]
2024-03-18 01:14:52 +00:00
renovate[bot]
e7266db3b3 Update all dependencies 2024-03-18 01:14:10 +00:00
Safihre
a85f39a6e4 Check for end-of-line during NNTP status handling and safeguard status
Closes #2821 
Closes #2822
2024-03-12 13:51:16 +01:00
Safihre
14fdb93c07 Support NNTP code 220 after ARTICLE request
Closes #2817
2024-03-12 12:05:25 +01:00
SABnzbd Automation
349957b8d4 Update translatable texts
[skip ci]
2024-03-11 02:31:19 +00:00
renovate[bot]
16134c6421 Update all dependencies 2024-03-11 02:30:35 +00:00
Safihre
608d05fabc Show file icon instead of folder icon for files in browser 2024-03-06 15:33:38 +01:00
SABnzbd Automation
c410e1209d Update translatable texts
[skip ci]
2024-03-06 14:28:05 +00:00
Safihre
74aefd868a Browse-button to select files on disk and pathbrowser refactor
Closes #2682
2024-03-06 15:27:11 +01:00
Safihre
55476b6594 Correct input placeholder styling in Night themes 2024-03-04 09:58:27 +01:00
renovate[bot]
ad650aa6eb Update all dependencies 2024-03-04 00:12:56 +00:00
SABnzbd Automation
154d2d73ef Update translatable texts
[skip ci]
2024-03-02 20:23:59 +00:00
Safihre
b171f7764f Do not log NNTP data in unknown status code warning
See #2817
2024-03-02 21:23:14 +01:00
SABnzbd Automation
30a20b549e Update translatable texts
[skip ci]
2024-03-01 08:59:50 +00:00
Safihre
a3cc5e244d No need to translate Apprise 2024-03-01 08:46:48 +01:00
SABnzbd Automation
37441f598f Update translatable texts
[skip ci]
2024-02-28 20:24:28 +00:00
Safihre
8bced7cdc9 Update History Retention options to allow archiving 2024-02-28 21:09:27 +01:00
SABnzbd Automation
35d0589f46 Update translatable texts
[skip ci]
2024-02-28 13:18:26 +00:00
Safihre
5c45db3d45 Update error message in case of news server instead of usenet server 2024-02-28 14:17:27 +01:00
SABnzbd Automation
700d08c69d Update translatable texts
[skip ci]
2024-02-27 22:04:40 +00:00
Safihre
1b71c60256 Help users that enter an indexer as server by checking port 80
Closes #2802
2024-02-27 23:01:30 +01:00
Safihre
8cf7d812ab Italian was missed as NSIS language 2024-02-27 13:53:52 +01:00
Safihre
627264affd Cryptography no longer requires special handling for macOS binary 2024-02-27 13:39:21 +01:00
Safihre
674502323b Force universal2 compilation for Cheetah 2024-02-27 13:10:04 +01:00
Safihre
34a9d751b8 Update requirement cheetah3 to CT3
https://cheetahtemplate.org/news.html#id4
2024-02-27 12:34:29 +01:00
SABnzbd Automation
5b252efcf0 Update translatable texts
[skip ci]
2024-02-26 15:33:19 +00:00
Safihre
6756f2ba2e Move servertests to api 2024-02-26 16:32:18 +01:00
Safihre
3c0e89802e Archive option was ignored if categories were supplied
Thanks @thezoggy
2024-02-26 13:30:35 +01:00
renovate[bot]
e55a95db39 Update all dependencies 2024-02-26 01:18:54 +00:00
SABnzbd Automation
80cd64b4ba Update translatable texts
[skip ci]
2024-02-25 19:12:11 +00:00
Safihre
962642b0d0 Archive by default when deleting items without specific archive= set 2024-02-25 20:11:23 +01:00
SABnzbd Automation
641f353c84 Update translatable texts
[skip ci]
2024-02-23 20:30:05 +00:00
Safihre
d598bc0a79 Add typing to api.py 2024-02-23 20:52:04 +01:00
Safihre
153041c431 Disable backup_for_duplicates for new installations
Since we will have the archive
2024-02-23 16:19:06 +01:00
Safihre
582a40599a Improve wording of the delete confirmation 2024-02-23 16:19:06 +01:00
Safihre
6e21f14ae9 Add option to skip archive to purge actions 2024-02-23 16:19:06 +01:00
Safihre
a4540b8deb Allow moving to archive 2024-02-23 16:19:06 +01:00
Safihre
fe10c7daad Enable Archive mode 2024-02-23 16:19:06 +01:00
Safihre
cd4ee1eee9 Add toggle for Archive to History 2024-02-23 16:19:06 +01:00
SABnzbd Automation
54ec05d63e Update translatable texts
[skip ci]
2024-02-23 14:04:48 +00:00
Safihre
da7a74ee58 Correct translatable texts about connection threads 2024-02-23 15:03:45 +01:00
SABnzbd Automation
72d08f60b2 Update translatable texts
[skip ci]
2024-02-23 13:44:49 +00:00
Safihre
4e6878972e Reduce Server test timeout to 10s
Unless otherwise specified
Related to #2802
2024-02-23 14:44:04 +01:00
Safihre
f5efa5e93d Refactor handling of multiple comma separated values in the API 2024-02-20 16:23:33 +01:00
Safihre
179f765ca0 Refactor part of database.py
Use autocommit and skip unnecessary checks on every connect
2024-02-20 12:42:48 +01:00
SABnzbd Automation
6a8f78ec23 Update translatable texts
[skip ci]
2024-02-19 21:06:30 +00:00
Shane Mc Cormack
f46e669eeb Handle NNTP error code 451 (#2808)
* Handle error code 451.

This is used by some servers to show that an article was intentionally removed.
Fix #2807

* Add a warning when an unknown status code is given for an article.

* Make warning message translatable.
2024-02-19 22:05:44 +01:00
SABnzbd Automation
1c3188a3bb Update translatable texts
[skip ci]
2024-02-19 14:35:52 +00:00
Safihre
a7fe030557 Update all dependencies 2024-02-19 15:35:10 +01:00
Safihre
dacadfc59e Notify users of sabnzbd-notify.py that they don't need it anymore 2024-02-16 16:30:31 +01:00
SABnzbd Automation
aa01855ac3 Update translatable texts
[skip ci]
2024-02-16 15:19:09 +00:00
Safihre
2d9b91eff5 Add link to Apprise documentation section 2024-02-16 16:18:26 +01:00
Safihre
d2c6c6e564 Remove parsing of Group command code
Since we never request it.
2024-02-16 12:33:00 +01:00
SABnzbd Automation
a11a4d1aee Update translatable texts
[skip ci]
2024-02-16 11:29:17 +00:00
Chris Caron
ad43a18f59 Apprise Integration (#2796)
* Basic Apprise Integration

* added try/catch

* comments/code review adapted

* refactored get_target() to better work with walrus operator

* Added explicit requests and markdown dependancies

* requests-oauthlib dep's added

* Updates

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-02-16 12:28:30 +01:00
SABnzbd Automation
b1a9ff708c Update translatable texts
[skip ci]
2024-02-14 13:44:45 +00:00
Safihre
97a01b302f Replace History delete-confirmation by modal
Preparing for Archive function
2024-02-14 14:13:55 +01:00
Safihre
c22a73a98d Replace Queue delete-confirmation by modal 2024-02-14 13:16:18 +01:00
renovate[bot]
bc9a7a0eb7 Update dependency setuptools to v69.1.0 2024-02-12 03:48:44 +00:00
renovate[bot]
b35a737d97 Update all dependencies 2024-02-12 01:23:25 +00:00
thezoggy
760364d4c7 Add missing tooltips (#2800)
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-02-09 09:50:59 +01:00
Safihre
e4ff047c6e Update log message about version check 2024-02-06 10:16:03 +01:00
Safihre
833219d5e5 Update standby command on macOS 2024-02-05 13:24:35 +01:00
Safihre
eed1ab3ce3 Use --no-dependencies during CI 2024-02-05 08:40:40 +01:00
renovate[bot]
c9a427bf8b Update all dependencies 2024-02-05 01:20:36 +00:00
SABnzbd Automation
6b4d7bde71 Update translatable texts
[skip ci]
2024-02-04 16:45:24 +00:00
jcfp
96442a3578 improve happyeyeballs tests (#2797) 2024-02-04 17:44:40 +01:00
jcfp
60e1dfb380 don't assume the test host has an ipv4 address (#2795) 2024-02-03 12:42:55 +01:00
SABnzbd Automation
deaa150ab4 Update translatable texts
[skip ci]
2024-02-02 12:26:32 +00:00
Safihre
ca649a31a4 Remove Send Group option
Closes #2715
2024-02-02 13:25:49 +01:00
SABnzbd Automation
a2e514c10d Update translatable texts
[skip ci]
2024-02-01 10:53:37 +00:00
Safihre
0577a64ae3 Wrong archive password is used for Retry
Closes #2790
2024-02-01 11:52:46 +01:00
SABnzbd Automation
1a69842871 Update translatable texts
[skip ci]
2024-01-29 15:34:46 +00:00
Safihre
992c6c71b0 Only attempt Windows Toasts on Windows 10 and above 2024-01-29 16:08:35 +01:00
SABnzbd Automation
bad0914e3c Update translatable texts
[skip ci]
2024-01-29 04:58:42 +00:00
renovate[bot]
8495a234e8 Update all dependencies 2024-01-29 04:57:58 +00:00
Safihre
3faa6577df Use setup-python way of caching pip packages
Our previous action is no longer supported
2024-01-26 16:43:42 +01:00
Safihre
f398d2a0d8 Use Renovate to update GitHub Actions 2024-01-26 16:40:50 +01:00
Safihre
335ae82a3d Remove text output formatting from API
Closes #2785
2024-01-26 16:20:44 +01:00
SABnzbd Automation
4ac15880db Update translatable texts
[skip ci]
2024-01-22 14:16:27 +00:00
Safihre
fd5c2795b1 Set version to 4.3.0-develop 2024-01-22 15:15:35 +01:00
Safihre
47c71422bc Add logging which notification will be sent 2024-01-22 14:46:54 +01:00
Sander
bfb7fd92b0 Add IPv6 staging option (#2781)
* ipv6_staging: for ipv6 related stuff that is (allegedly) not yet mainstream

* ipv6_staging: separate internetspeed() ipv4 resp ipv6

* ipv6_staging: separate internetspeed() ipv4 resp ipv6

* ipv6_staging: separate internetspeed() ipv4 resp ipv6

* Move logic to internetspeed

* Add back alternative IPv6-address mapping

This reverts commit ec71d20d37.

* Usenetfarm added IPv6

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-01-22 13:15:59 +01:00
renovate[bot]
bf52430da8 Update all dependencies 2024-01-22 01:31:55 +00:00
Safihre
7005b3ee86 Do not trigger Duplicate Check twice on URL's 2024-01-21 22:00:12 +01:00
Safihre
8f2ea239c5 Do not send Windows notifications if ran as Service 2024-01-21 20:35:27 +01:00
Safihre
9ee2a8a98c Add hover to Night style buttons 2024-01-19 13:56:43 +01:00
jcfp
6f0daf9d1b Use local ipv6 if public fails and is rout able (#2783)
* use local ipv6 if routable

* always try a remote lookup anyway, for statistics purposes
2024-01-19 13:01:18 +01:00
Safihre
28ed424fa8 Cache CPU name for 1 hour 2024-01-18 21:40:08 +01:00
SABnzbd Automation
fe3e20b108 Update translatable texts
[skip ci]
2024-01-17 15:11:46 +00:00
Safihre
23f3b901e3 Update text files for 4.2.2RC1 2024-01-17 16:11:00 +01:00
Safihre
567608b3c4 Using password=PW resulted in PW.nzb as password
Closes #2779
2024-01-17 14:51:35 +01:00
Safihre
4ff0f94d41 Add IRC and Discord label 2024-01-17 11:59:57 +01:00
Safihre
a56290489c Only request addrinfo once per internetspeed 2024-01-17 11:53:56 +01:00
Safihre
aac4392f69 Handle brackets in potentical filenames in subjects
Closes #2772
2024-01-15 09:55:22 +01:00
SABnzbd Automation
c130feefc5 Update translatable texts
[skip ci]
2024-01-15 02:00:46 +00:00
renovate[bot]
474bcf5f05 Update dependency more-itertools to v10.2.0 2024-01-15 02:00:04 +00:00
Safihre
cf24ada3f1 Move helpful_warnings declaration so it's read as the very first 2024-01-10 16:23:07 +01:00
Safihre
7b26bb7171 Add 4.2.2 already to appdata 2024-01-10 13:32:35 +01:00
SABnzbd Automation
83d89ff05c Update translatable texts
[skip ci]
2024-01-10 09:53:14 +00:00
Safihre
7034bdcbf6 Update text files for 4.2.2 Beta 1
Closes #2776
2024-01-10 10:52:24 +01:00
Safihre
4c12da5418 Update log anonymization for new IPv4/6 logging
Closes #2775
2024-01-10 09:07:23 +01:00
SABnzbd Automation
8bf1d2bc1f Update translatable texts
[skip ci]
2024-01-10 05:54:35 +00:00
Steve Albrecht
900a99653f Move UI theme selection out of advanced settings (#2774)
* Make UI theme selection a non-advanced setting

* Call stylesheet a "theme" instead of a "skin"

---------

Co-authored-by: sbalbrecht <stpehen.b.albrecht@gmail.com>
2024-01-10 06:53:54 +01:00
Safihre
f33fcfa7b1 Require only 5 characters to define a filename 2024-01-09 16:22:15 +01:00
SABnzbd Automation
130148d475 Update translatable texts
[skip ci]
2024-01-09 09:34:35 +00:00
Safihre
021f87eef3 Correct focus style of Config Night navbar 2024-01-09 10:33:45 +01:00
Safihre
8ef8788152 Correct logic error in guess_what
@jcfp This check seems very specific, are these conditions ever all True at the same time?
2024-01-08 15:34:31 +01:00
renovate[bot]
041756829a Update dependency pyinstaller-hooks-contrib to v2023.12 2024-01-08 00:42:10 +00:00
Safihre
89c7f52d84 Do not ask for feedback about categories based on Groups anymore
It's staying.
2024-01-07 21:18:00 +01:00
SABnzbd Automation
c40b560d15 Update translatable texts
[skip ci]
2024-01-07 19:58:50 +00:00
Safihre
74f9391076 Explain that Retry disabled aborting due to missing articles
Closes #2765
2024-01-07 20:58:12 +01:00
SABnzbd Automation
76dab68759 Update translatable texts
[skip ci]
2024-01-07 19:48:48 +00:00
Safihre
d405548825 Shutdown SABnzbd automatically during update on Windows
Closes #2766
2024-01-07 20:48:05 +01:00
Safihre
b4c76f034f If duplicate is discarded during URL-fetches, no nzo_id is known yet
Closes #2771
2024-01-06 22:53:17 +01:00
Safihre
cda2402d01 Fix typo in asset name of Windows release 2024-01-06 11:37:33 +01:00
Safihre
2cf9ab2620 Build using old PyInstaller so virusscanners don't get upset 2024-01-06 09:26:02 +01:00
Safihre
465f182493 Add 4.2.1 to appdata 2024-01-05 10:11:37 +01:00
SABnzbd Automation
23321a1075 Update translatable texts
[skip ci]
2024-01-05 08:54:08 +00:00
Safihre
ff2b9243e9 Update text files for 4.2.1 2024-01-05 09:53:09 +01:00
Safihre
471fb7a83c Log waiting for download folder at Info level
Closes #2768
2024-01-05 09:34:28 +01:00
Safihre
0db5ae8390 Updates to table structure require commit
Closes #2769
2024-01-05 09:33:46 +01:00
SABnzbd Automation
e36f60085f Update translatable texts
[skip ci]
2024-01-04 13:42:32 +00:00
Safihre
3718fc36f0 Don't block network drives, only warn against them 2024-01-04 14:41:25 +01:00
Safihre
71a41f6369 Catch None-return value from user_version database command
Relates to #2764
2024-01-04 14:06:41 +01:00
SABnzbd Automation
47a2f9a4a7 Update translatable texts
[skip ci]
2024-01-03 21:11:59 +00:00
Safihre
a6f0bc0490 New release check is performed daily 2024-01-03 22:10:08 +01:00
Safihre
cb7c37a836 Remove outdated certificate validation check
It was relevant in Python 2.7-days.
This was we also don't make any external HTTP calls on start-up anymore, so hopefully we upset less virus scanners.
2024-01-03 22:04:42 +01:00
Safihre
e89eba08c4 Add helper function is_none 2024-01-03 15:56:09 +01:00
Sander
d5d857983d Improved IPv6 address detection (#2753)
* happyeyeballs(): you can specify the family

* happyeyeballs(): you can specify the family

* happyeyeballs(): pytest

* happyeyeballs(): measure internetspeed_ipv4 and internetspeed_ipv6

* happyeyeballs(): measure internetspeed_ipv4 and internetspeed_ipv6

* happyeyeballs(): corrected pytest in case no ipv6 in environment

* internetspeed ipv4 and ipv6

* take care when ipv6 is not working

* take care when ipv6 is not working

* take care when ipv6 is not working

* take care when ipv6 is not working

* take care when ipv6 is not working

* black formatting

* faster test-HE on ipv4-only network

* comment in unittest

* requests in requirements.txt

* use urllib, not requests

* use urllib, not requests

* logging: tell family, if specified

* logging: tell family, if specified

* Merge remote-tracking branch 'origin/ipv6_HE_speedtest_address' into ipv6_HE_speedtest_address

* Merge remote-tracking branch 'origin/ipv6_HE_speedtest_address' into ipv6_HE_speedtest_address

* cleanup of getipaddress

* cleanup of getipaddress

* cleanup of getipaddress

* cleanup of getipaddress

* Merge remote-tracking branch 'origin/ipv6_HE_speedtest_address' into ipv6_HE_speedtest_address

* Changes to PR

* Make sure the returned IP is valid

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2024-01-03 14:25:34 +01:00
SABnzbd Automation
9ab30dffd8 Update translatable texts
[skip ci]
2024-01-03 12:28:20 +00:00
Safihre
1e630c3c68 Update text files for 4.2.0 2024-01-03 13:24:44 +01:00
Safihre
b2cd596401 Add copyright update to ignore-revs 2024-01-02 10:05:32 +01:00
SABnzbd Automation
ef6be9d436 Update translatable texts
[skip ci]
2024-01-02 08:43:02 +00:00
thezoggy
9f6a9f9912 normalize and update copyright year 2024-01-02 09:42:17 +01:00
renovate[bot]
e4c37af7b7 Update all dependencies 2024-01-01 02:12:40 +00:00
SABnzbd Automation
353e90cf6d Update translatable texts
[skip ci]
2023-12-31 20:29:06 +00:00
Safihre
ecf7fb4bc4 Only check for a new release 10 min after starting and then daily
Less outgoing connections at start-up to scare virus scanners.
2023-12-31 21:26:06 +01:00
SABnzbd Automation
e200a5ed78 Update translatable texts
[skip ci]
2023-12-28 19:52:08 +00:00
Safihre
5e02263ad1 Update text files for 4.2.0RC4 2023-12-28 20:51:08 +01:00
Safihre
a6af810274 Remove startup logging of basic performance measurements
Has not been useful so far
2023-12-27 22:38:22 +01:00
thezoggy
d9d34735da par2cmdline-turbo v1.1.1 (#2760) 2023-12-27 19:30:33 +01:00
Safihre
087bc95f80 Set default order for default and new categories 2023-12-25 22:19:03 +01:00
Safihre
ff27f9832a Ask why users have set a newsgroup in their Category settings 2023-12-25 21:59:35 +01:00
SABnzbd Automation
2124e66219 Update translatable texts
[skip ci]
2023-12-25 16:13:38 +00:00
Safihre
9ae80b60b4 Move NNTP closed assignment up 2023-12-25 17:12:55 +01:00
Safihre
d701c4c3f9 If connecting is slow, downloads queue would hang up to 1 min 2023-12-25 13:36:28 +01:00
SABnzbd Automation
b4cc5eea66 Update translatable texts
[skip ci]
2023-12-25 01:53:23 +00:00
renovate[bot]
7cdf14c43b Update all dependencies 2023-12-25 01:52:46 +00:00
Safihre
06d086725c Add git blame ignore list 2023-12-22 13:59:18 +01:00
SABnzbd Automation
a8e79d64c0 Update translatable texts
[skip ci]
2023-12-20 15:33:22 +00:00
Safihre
742c6fa5dd Update text files 4.2.0RC3 2023-12-20 16:32:34 +01:00
Safihre
f4cfdc6647 All Notifications should have same default selection
And a number of type hints.
2023-12-20 15:42:02 +01:00
Safihre
43ae566053 Download stalls if nw.data limit is reached
Closes #2752
2023-12-20 10:20:06 +01:00
Safihre
063a6428f3 Add timeout to join's in shutdown code
In case of crash!
2023-12-18 08:53:14 +01:00
renovate[bot]
3e302d7c04 Update all dependencies 2023-12-18 01:52:21 +00:00
Safihre
436ceabb9e Pass integer to bytearray_malloc instead of float
Prevent silent crashes in `process_nw` that would have made us discover this sooner.
2023-12-17 23:26:34 +01:00
SABnzbd Automation
186dc6db31 Update translatable texts
[skip ci]
2023-12-16 22:18:51 +00:00
Safihre
af4feba7d7 Standardize parsing of cat/pp/script input when adding NZB or URL
Closes #2750
2023-12-16 23:11:37 +01:00
SABnzbd Automation
549aac15b7 Update translatable texts
[skip ci]
2023-12-15 12:27:34 +00:00
Safihre
06d8d92dbe Remove IRC specific texts 2023-12-15 12:12:53 +01:00
SABnzbd Automation
6a8763d7ba Update translatable texts
[skip ci]
2023-12-14 20:49:37 +00:00
Safihre
521b97b7b7 Update text files for 4.2.0RC2 2023-12-14 21:48:18 +01:00
SABnzbd Automation
58c8601067 Update translatable texts
[skip ci]
2023-12-14 20:38:57 +00:00
Safihre
36609376e8 Add button to macOS notification
Closes #2749
2023-12-14 21:36:55 +01:00
Safihre
32a1c8264e Add buttons to Windows Notifications
Closes #2641
2023-12-14 21:36:13 +01:00
Safihre
06754f4ef1 Mark second test_download_sorting_single as xfail on macOS and Windows 2023-12-13 14:40:02 +01:00
Safihre
99d9b3bf94 "Disk Full" notification type was not actually used 2023-12-13 14:18:53 +01:00
Safihre
ec71d20d37 Remove alternative IPv6-address mapping
Due to provider concerns
2023-12-13 11:16:51 +01:00
Safihre
2d1e88bb39 Ignore warning about old SSL/TLS settings in test_newswrapper 2023-12-12 14:28:05 +01:00
Safihre
c9d30bb422 Update sabnews for current asyncio behaviour 2023-12-12 14:28:05 +01:00
SABnzbd Automation
cd448082e3 Update translatable texts
[skip ci]
2023-12-12 11:00:30 +00:00
Safihre
46239dddac Update code for deprection warnings 2023-12-12 11:59:43 +01:00
SABnzbd Automation
81177fda35 Update translatable texts
[skip ci]
2023-12-11 20:35:26 +00:00
Michael Nightingale
983d623d7f Fix dirscanner async tests (#2748)
* Fix dirscanner async tests

* Use root of fake filesystem to test dirscanner

* Revert minor change
2023-12-11 21:34:42 +01:00
Safihre
bdda8f4abf Correct Direct Unpack unrar output logging 2023-12-11 13:25:46 +01:00
SABnzbd Automation
94fc804394 Update translatable texts
[skip ci]
2023-12-11 01:01:21 +00:00
renovate[bot]
e00d8c09e7 Update all dependencies 2023-12-11 01:00:42 +00:00
Safihre
70a40b4bdd Add duplicate_key to script environment variables 2023-12-08 21:10:47 +01:00
Safihre
f806a62f01 Add change of Pre-queue parameters to changelog 2023-12-08 21:10:47 +01:00
SABnzbd Automation
71a9281b8f Update translatable texts
[skip ci]
2023-12-08 13:25:25 +00:00
Safihre
a34747fbd5 Update text files for 4.2.0RC1
Yes, I used AI to generate the new release notes
2023-12-08 14:24:40 +01:00
Safihre
6b0380199b Mark test_download_sorting_single as xfail on macOS and Windows 2023-12-07 21:43:43 +01:00
Safihre
39d2f90a84 Trigger duplicate analysis if pre-queue script sets a new name 2023-12-07 21:42:43 +01:00
Safihre
7bff7651f3 Only auto-enable Direct Unpack for >100MB/s drives 2023-12-07 21:34:09 +01:00
Safihre
44bd15d519 Small change to internetspeed measurement 2023-12-07 15:49:07 +01:00
SABnzbd Automation
1ca93b03a0 Update translatable texts
[skip ci]
2023-12-06 15:56:06 +00:00
Safihre
3295142d81 Use sabctools for Internet Bandwidth measurement
Closes #2737
2023-12-06 13:44:12 +01:00
Safihre
f12fdc46dc Improve stability of test_adding_nzbs_nzoids 2023-12-06 13:22:59 +01:00
Safihre
fc01254fe6 Mark test_download_sorting_single as xfail on macOS and Windows 32bit 2023-12-06 12:58:47 +01:00
Safihre
8fb3368601 Add guestimate of performance test duration to hint 2023-12-06 12:46:44 +01:00
SABnzbd Automation
58facc2512 Update translatable texts
[skip ci]
2023-12-05 09:56:24 +00:00
Safihre
b43c2b308b Use correct keys for Season and Episode in Smart Duplicate detection 2023-12-05 10:55:34 +01:00
renovate[bot]
1e89a0af56 Update all dependencies 2023-12-04 02:19:58 +00:00
Safihre
acd3cbbf49 Correct test_validate_safedir 2023-12-03 20:02:41 +01:00
SABnzbd Automation
a806521745 Update translatable texts
[skip ci]
2023-12-02 20:20:33 +00:00
Safihre
0dddaf26e0 Stricter validation on Windows to prevent network drives as Incomplete 2023-12-02 21:19:48 +01:00
Safihre
cdf63a005b Python 3.8 doesn't have functools.cache so use lru_cache 2023-12-02 21:09:44 +01:00
SABnzbd Automation
ca422a0af3 Update translatable texts
[skip ci]
2023-12-02 19:40:31 +00:00
Safihre
a682371a91 Cache result of HappyEyeBalls 10 seconds 2023-12-02 20:39:38 +01:00
Safihre
26ef146526 Use decorator to maintain diskspace cache and HappyEyeBalls cache 2023-12-02 20:36:14 +01:00
Safihre
936ee58abb Reduce waiting time if there are no sockets to read 2023-12-01 15:11:05 +01:00
Safihre
71d8c208bc Micro-optimization of NzbQueue.is_empty 2023-12-01 14:50:07 +01:00
Safihre
2200ffa88e Use Server-specific timeout in final attempt 2023-12-01 14:34:07 +01:00
Safihre
4453316516 Server warnings were not always shown 2023-11-30 22:15:32 +01:00
Safihre
b947207571 Use Server-specific timeout during HappyEyeBalls 2023-11-30 19:50:31 +01:00
SABnzbd Automation
25d29deae6 Update translatable texts
[skip ci]
2023-11-30 12:26:53 +00:00
Safihre
9abe6d6d71 Skip empty HTTP-headers in URLGrabber and skip invalid categories 2023-11-30 13:25:43 +01:00
Safihre
77dbc0a37f Check nzb backup folder only if the job is not still in the queue 2023-11-30 13:19:57 +01:00
Safihre
659117512b Give RSS feed it's own history-stage 2023-11-30 13:04:12 +01:00
SABnzbd Automation
b1dbbc6a69 Update translatable texts
[skip ci]
2023-11-29 20:47:52 +00:00
Safihre
424a1c626e Add name of RSS feed to history Source
Closes #2206
2023-11-29 21:46:19 +01:00
Safihre
522666191b Indexer category was not used anymore 2023-11-29 21:46:19 +01:00
Safihre
78055ef794 Do not show propagation label in case job is Forced 2023-11-29 21:46:19 +01:00
SABnzbd Automation
0fe534c202 Update translatable texts
[skip ci]
2023-11-29 13:58:08 +00:00
Safihre
257179de31 Add ability to search Queue/History for status
Closes #2376
2023-11-29 14:57:15 +01:00
Safihre
65b57112b9 Optimize handling of propagation_delay 2023-11-29 14:57:15 +01:00
renovate[bot]
27f0b1d1f2 Update dependency cryptography to v41.0.6 [SECURITY] 2023-11-29 01:54:31 +00:00
SABnzbd Automation
6e31476c45 Update translatable texts
[skip ci]
2023-11-28 21:07:35 +00:00
Safihre
bc7f0f3fb3 Update text files for 4.2.0Beta1 2023-11-28 22:06:43 +01:00
SABnzbd Automation
13eeb5164f Update translatable texts
[skip ci]
2023-11-28 14:31:50 +00:00
Safihre
fc756ed23d Add smarter duplicate detection (#2736)
Restore pre-queue
2023-11-28 15:30:46 +01:00
SABnzbd Automation
c150365462 Update translatable texts
[skip ci]
2023-11-27 12:18:43 +00:00
renovate[bot]
58d209059e Update dependency setuptools to v69 2023-11-27 13:12:00 +01:00
Safihre
506179b517 Remove unused sort_type from guess_what 2023-11-24 21:17:29 +01:00
SABnzbd Automation
f0f4eb75df Update translatable texts
[skip ci]
2023-11-22 15:55:34 +00:00
Safihre
6c1c025668 Update text files 4.2.0Alpha3 2023-11-22 16:54:50 +01:00
SABnzbd Automation
987032b384 Update translatable texts
[skip ci]
2023-11-22 15:14:06 +00:00
Safihre
d516cbf363 Correct tests and improvements for new Duplicate handling 2023-11-22 16:13:22 +01:00
Safihre
824274ac5e Trigger duplicate handling when job is removed from the queue 2023-11-22 16:13:22 +01:00
Safihre
82b1c784f4 No longer warn for duplicates by default 2023-11-22 16:13:22 +01:00
Safihre
232512b860 Let main duplicate handling handle RSS duplicates 2023-11-22 16:13:22 +01:00
Safihre
223fa421c7 Implement more sophisticated duplicate handling
[skip ci]
2023-11-22 16:13:22 +01:00
Safihre
2e5e72bfcf Label in progress bar for URL fetches
Visually more distinctive
2023-11-22 15:37:35 +01:00
Safihre
9bdb986382 Only redirect cherrypy logging to their access log
Closes #2731
2023-11-20 08:49:27 +01:00
SABnzbd Automation
901ff30e11 Update translatable texts
[skip ci]
2023-11-18 20:24:07 +00:00
Safihre
5e04599212 Revert "Simplify handling of nzo.pp"
Closes #2733
2023-11-18 21:22:45 +01:00
Safihre
d3c9b7ead3 Simplify handling of nzo.pp 2023-11-13 12:33:05 +01:00
renovate[bot]
361770c34b Update all dependencies 2023-11-13 01:44:28 +00:00
SABnzbd Automation
5168f3fa97 Update translatable texts
[skip ci]
2023-11-11 22:01:41 +00:00
Safihre
94d307e198 Add simplified Sorter override, to analyse series information 2023-11-11 22:59:58 +01:00
Safihre
eba6236ad2 Make sure we only return successful Happy Eyeballs results 2023-11-10 16:16:46 +01:00
Safihre
d0128bd989 Use sabnzbd.filesystem functions directly 2023-11-10 13:45:56 +01:00
Safihre
fbd7c0ec36 Correct Night display of Sorting page 2023-11-08 16:33:40 +01:00
SABnzbd Automation
55abac97ea Update translatable texts
[skip ci]
2023-11-08 11:38:17 +00:00
Safihre
740b94170e Prevent looping over files for unwanted extension detection 2023-11-08 12:36:57 +01:00
SABnzbd Automation
c6a1a09213 Update translatable texts
[skip ci]
2023-11-07 15:33:21 +00:00
Safihre
cd84d52398 End of queue script to be moved to it's own configuration menu item
Closes #2385
Setting is not copied since it's such an exotic function.
Made pre-queue script an Advanced Setting.
2023-11-07 16:32:39 +01:00
Safihre
cdbad1b397 Add password as option to NzbObject creation
And another refactor of filename/work_name/final_name
2023-11-07 16:24:31 +01:00
Safihre
67e227008a Revert "Remove undocumented detection of password=XX from job name"
This reverts commit 62a057dbfb.

It is listed here: https://sabnzbd.org/wiki/advanced/password-protected-rars
Oops
2023-11-07 15:47:41 +01:00
Safihre
23cf43cac5 Replace uses of os.path.splitext with helper functions 2023-11-06 15:05:50 +01:00
Safihre
62a057dbfb Remove undocumented detection of password=XX from job name 2023-11-06 14:35:17 +01:00
renovate[bot]
f2ff9ae557 Update dependency jaraco.functools to v4 2023-11-06 00:42:28 +00:00
Safihre
9ed4e46919 Update macOS workflow for new GitHub runner 2023-11-03 20:17:52 +01:00
Safihre
faa71bae40 Log traceback in case of exception in __finish_connect_nw 2023-11-03 20:06:41 +01:00
Safihre
bbd5d2cd6d Prevent duplicate IP's in Happy Eyeballs 2023-11-03 12:03:14 +01:00
Safihre
221e135c07 Optimize Happy Eyeballs for our use
Reduced time between connection attempts to prevent slow hosts that happened to be the first in the list to win from faster second-in-list.
Add test for our IPv6 mapping
2023-11-02 21:12:32 +01:00
Safihre
956904c0b3 Correctly implement RFC 6555/8305 (Happy Eyeballs) 2023-11-01 15:16:10 +01:00
Safihre
8590481022 Add IPv6 alternative hostname for common providers
Closes #2721
2023-11-01 09:07:42 +01:00
SABnzbd Automation
2171d0139e Update translatable texts
[skip ci]
2023-10-30 13:45:23 +00:00
Safihre
71d6aca9f8 Remove unused exceptions in servertest 2023-10-30 14:44:31 +01:00
Safihre
0125e279c0 Prevent PyWin32 warning by returning True instead of nothing 2023-10-30 12:33:57 +01:00
SABnzbd Automation
b8e46ccf10 Update translatable texts
[skip ci]
2023-10-30 01:02:52 +00:00
renovate[bot]
787fef1c03 Update dependency orjson to v3.9.10 2023-10-30 01:02:09 +00:00
SABnzbd Automation
98b7a6171f Update translatable texts
[skip ci]
2023-10-27 12:41:14 +00:00
Safihre
210f254f63 Update text files for 4.2.0Alpha2 2023-10-27 14:40:22 +02:00
Safihre
ecdccda1ce Remove support to upgrade from 2.3.9 and older 2023-10-27 14:40:22 +02:00
Safihre
ed66ac91e0 Remove old nzo.md5packs attribute 2023-10-27 14:40:22 +02:00
SABnzbd Automation
e571165c15 Update translatable texts
[skip ci]
2023-10-27 10:20:00 +00:00
Safihre
1513664b5f Lock all config dict operations
Closes #2685
2023-10-27 12:19:12 +02:00
SABnzbd Automation
0132d81c43 Update translatable texts
[skip ci]
2023-10-25 14:19:40 +00:00
Safihre
8d32da8b27 Refactor of some parts of Config saving 2023-10-25 16:06:28 +02:00
Safihre
b5fbc8af86 Refactor handling of Complete vs Incomplete check
Closes #2717
2023-10-25 16:06:28 +02:00
SABnzbd Automation
d0166b5a5c Update translatable texts
[skip ci]
2023-10-25 10:01:25 +00:00
renovate[bot]
ada77d6970 Update all dependencies (#2716)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-25 12:00:42 +02:00
Safihre
9f8758b242 Mark newshosting Happy EyeBalls tests as xfail 2023-10-25 11:18:41 +02:00
SABnzbd Automation
5ca629ebea Update translatable texts
[skip ci]
2023-10-24 18:30:36 +00:00
Safihre
f9f3820652 Refactor the way we getaddrinfo and use Happy Eyeballs (#2713)
* Refactor the way we getaddrinfo and use  Happy Eyeballs

* Move tests to right directory

* Do not run Happy Eyeballs for only 1 address

* Process feedback

* Make sure we always have a canonname

* Show IP and resolved name in Status Window

* Simplify Status server updates

* Remove unused imports
2023-10-24 20:29:50 +02:00
Safihre
08e61ecf19 Build all binaries without unspecified dependencies 2023-10-23 15:44:26 +02:00
SABnzbd Automation
d15f0cafce Update translatable texts
[skip ci]
2023-10-23 11:53:27 +00:00
Safihre
1b85253940 Limit recursive unpack to 2 additional levels
Closes #2714
2023-10-23 13:50:40 +02:00
Safihre
b329ff007e Wrap DEF_FILE_MAX check in try/except
See #2714
2023-10-23 13:42:56 +02:00
Safihre
f6918d598a Add thread name to start-up logging of Downloader 2023-10-23 12:16:36 +02:00
Safihre
0cdfdd82d4 Renovate ignored tests requirements 2023-10-23 09:04:53 +02:00
SABnzbd Automation
de3649dba4 Update translatable texts
[skip ci]
2023-10-22 18:15:07 +00:00
Safihre
9ba975ac44 Remove &nbsp from translation string 2023-10-22 20:12:37 +02:00
Safihre
2b0ea92da8 Ask users why they still have Send Group enabled 2023-10-20 17:06:58 +02:00
Safihre
b79a1e973d Revert removal of SABnzbd-console.exe
Sad-face.. See pyinstaller/pyinstaller/issues/8022
2023-10-20 16:26:15 +02:00
renovate[bot]
1be4cf986d Update all dependencies 2023-10-16 09:37:20 +02:00
SABnzbd Automation
18c4226b90 Update translatable texts
[skip ci]
2023-10-15 19:25:19 +00:00
Safihre
07a5ba6857 Update text files for 4.2.0Alpha1 2023-10-15 21:24:30 +02:00
Safihre
6252d02498 Changes to binary building after PyInstaller update
Correct restart on macOS binary.
Allow to be less strict about file removal.
Remove not needed zip parameter.
Remove old modifications of sys.argv.
Make sure that after restart we still log to console.
2023-10-15 21:12:15 +02:00
Safihre
11cf8c5397 Test build with PyInstaller 6.1.0 and Python 3.12 2023-10-14 23:41:19 +02:00
Safihre
1f3f4a4c85 Crashes during server connect could result in bad socket state
For example if the queue was disconnected while some threads were still connecting
For example: https://www.reddit.com/r/SABnzbd/comments/1759lha/anyone_know_what_this_could_be
2023-10-13 22:52:33 +02:00
Safihre
5bfe5967db Do not delay getting server.info
It was delayed as part of the busy_threads check
2023-10-13 22:50:10 +02:00
Safihre
476fa25a12 Restore broken fetching of scriptlog 2023-10-11 21:15:50 +02:00
Safihre
792bd20fa2 Reduce number of assembler level checks 2023-10-11 17:31:03 +02:00
Safihre
26f3cd064e Use readline instead of read in par2cmdline and Multipar handling
No longer log empty lines in external processing output.
2023-10-11 16:36:38 +02:00
Safihre
0556a84cbc Reduce locking and unlocking in DirectUnpack 2023-10-11 15:10:32 +02:00
Safihre
090871625a Remove often failing test_validate_host rules 2023-10-11 12:32:45 +02:00
Safihre
12dedb7cff Separate Queue and History multi-edit code again
#2702
2023-10-11 10:44:12 +02:00
Safihre
d4187e93b2 Raise error in binary build if files we expected to remove do not exist 2023-10-09 22:28:46 +02:00
Safihre
1beb1aafd8 Update paths of files to remove from Windows binaries 2023-10-09 16:18:19 +02:00
Safihre
67c4703bab Small refactor of database.py 2023-10-09 09:29:55 +02:00
SABnzbd Automation
d850c9c6e3 Update translatable texts
[skip ci]
2023-10-08 20:44:22 +00:00
Safihre
38e07b0859 Use a faster Queue that allows adding multiple items at once
See #2704
2023-10-08 22:43:30 +02:00
SABnzbd Automation
ea10785160 Update translatable texts
[skip ci]
2023-10-06 08:21:15 +00:00
Safihre
16803b9f17 Remove build_history to unpack_history hack and make output consistent
`id` is only internal id, external apps cannot use it for anything and should use `nzo_id`
`script_log` is always empty
2023-10-06 10:20:18 +02:00
SABnzbd Automation
b9a0cf3f76 Update translatable texts
[skip ci]
2023-10-05 09:56:39 +00:00
Safihre
71ff6b14da Remove unnecessary files and modules from Windows binaries 2023-10-05 11:55:47 +02:00
SABnzbd Automation
a98b3c7e85 Update translatable texts
[skip ci]
2023-10-03 19:42:23 +00:00
Safihre
7259c25ece Force pytest to latest version and include in Renovate updates 2023-10-03 20:22:01 +02:00
Safihre
5e7154530b Add Python 3.12 to CI
Not yet for releases, as we need PyInstaller 6.0.0
2023-10-03 19:52:43 +02:00
Safihre
d501cc0a23 Use simpler threading system for process_nw 2023-10-03 19:51:21 +02:00
Safihre
45606285ec Apply various fixes found by PyCharm 2023-10-02 11:29:32 +02:00
Safihre
a5e860a60f Apply correct JS comparisons 2023-10-02 09:51:37 +02:00
Safihre
d93333f9ef Disable Add NZB buttons while processing
Closes #2690
2023-10-02 09:02:53 +02:00
Safihre
3bd68b630a Do not update PyInstaller just yet 2023-10-02 06:37:46 +00:00
renovate[bot]
97c93a0858 Update all dependencies 2023-10-02 06:37:46 +00:00
SABnzbd Automation
8b15fe0d6a Update translatable texts
[skip ci]
2023-10-01 19:05:25 +00:00
Safihre
2d22a5f5b9 Move part of Downloader to check_assembler_levels 2023-10-01 21:04:27 +02:00
Safihre
be63fbaada Only install required parts of PyObjC 2023-09-30 20:53:19 +02:00
Safihre
dc6b338266 Use sabctools.bytearray_malloc in NewsWrapper
It's only a tiny bit faster
2023-09-30 20:36:00 +02:00
Safihre
9e36971151 Remove locking from part of process_nw
The remove_socket part is already locked.
2023-09-29 22:10:22 +02:00
Safihre
9dc08d16b6 Restore uudecode functionality using memview 2023-09-29 22:10:22 +02:00
Safihre
182a5412a5 Use new decoder based on memoryview
[skip ci]
2023-09-29 14:46:42 +02:00
Safihre
cb15c79e4b Only remove incomplete folder if it was a failed job and del_files=1
So we don't remove jobs that have the same name that are still in the queue.
Closes #2693
2023-09-29 13:55:53 +02:00
Safihre
06e6e81779 Updates to issue template 2023-09-29 13:10:52 +02:00
Safihre
938b833954 Catch all OSErrors when trying to measure diskspeed 2023-09-29 10:22:09 +02:00
Safihre
596f069e46 Add issue templates 2023-09-29 09:11:12 +02:00
SABnzbd Automation
e16a7f06d6 Update translatable texts
[skip ci]
2023-09-27 11:54:17 +00:00
Safihre
2947f2c2ff Set version to 4.2.0-develop 2023-09-27 13:53:27 +02:00
Safihre
0d33039b72 Posting to r/usenet requires a flair to be provided 2023-09-26 16:49:53 +02:00
Safihre
682f8227fd Update appdata.xml for 4.1.0 2023-09-26 15:07:29 +02:00
renovate[bot]
dc1675073d Update dependency cryptography to v41.0.4 [SECURITY] 2023-09-23 10:42:06 +00:00
284 changed files with 32579 additions and 20522 deletions

43
.git-blame-ignore-revs Normal file
View File

@@ -0,0 +1,43 @@
# `git blame` master ignore list.
#
# This file contains a list of git hashes of revisions to be ignored
# by `git blame`. These revisions are considered "unimportant" in
# that they are unlikely to be what you are interested in when blaming.
# They are typically expected to be formatting-only changes.
#
# It can be used for `git blame` using `--ignore-revs-file` or by
# setting `blame.ignoreRevsFile` in the `git config`[1].
#
# Ignore these commits when reporting with blame. Calling
#
# git blame --ignore-revs-file .git-blame-ignore-revs
#
# will tell `git blame` to ignore changes made by these revisions when
# assigning blame, as if the change never happened.
#
# You can enable this as a default for your local repository by
# running
#
# git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# This will probably be automatically picked by your IDE
# (VSCode+GitLens and JetBrains products are confirmed to do this).
#
# Important: if you are switching to a branch without this file,
# `git blame` will fail with an error.
#
# GitHub also excludes the commits listed below from its "Blame"
# views[2][3].
#
# [1]: https://git-scm.com/docs/git-blame#Documentation/git-blame.txt-blameignoreRevsFile
# [2]: https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/
# [3]: https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
# Black changes
465a88154152fb0607a63fa24c8446bff43ec886
f06891926661986fff52d6eb4b4cb120c71972d1
9bcbcaefdfecc85aedfd8e2f8aaa1ca7f959404e
433dcab02b29f7bd3827e237434034deecc1b549
9f6a9f991222efccc87b45a701086c95629c67b6
f89114ca7e1b20bf8e645ecd0b52b707ec857aa9

31
.github/ISSUE_TEMPLATE/bug.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Bug report
description: >
Did you discover a bug in SABnzbd? Report it here!
If you are not 100% certain this is a bug please go to our forums, Reddit or Discord server first.
labels:
- Support
body:
- type: input
attributes:
label: SABnzbd version
validations:
required: true
- type: input
attributes:
label: Operating system
validations:
required: true
- type: dropdown
attributes:
label: Using Docker image
options:
- linuxserver
- hotio
- binhex
- Other
- type: textarea
attributes:
label: Description
description: Include error logs directly or link to extended logs on https://pastebin.com/
validations:
required: true

11
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Support forum
url: https://forums.sabnzbd.org/
about: Support questions can be asked on our forums, Reddit or Discord server.
- name: Discord
url: https://discord.sabnzbd.org
about: Support questions can be asked on our forums, Reddit or Discord server.
- name: Reddit - r/sabnzbd
url: https://www.reddit.com/r/sabnzbd
about: Support questions can be asked on our forums, Reddit or Discord server.

View File

@@ -0,0 +1,10 @@
name: Feature request
description: What new feature would you like to have added to SABnzbd?
labels:
- Support
body:
- type: textarea
attributes:
label: Description
validations:
required: true

View File

@@ -1,6 +0,0 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

22
.github/renovate.json vendored
View File

@@ -7,23 +7,31 @@
"schedule": [
"before 8am on Monday"
],
"ignorePaths": [
"tests/**",
".github/workflows/**"
],
"baseBranches": ["develop", "feature/uvicorn"],
"pip_requirements": {
"fileMatch": [
"requirements.txt",
"tests/requirements.txt",
"builder/requirements.txt",
"builder/release-requirements.txt",
"builder/osx/requirements.txt"
"builder/release-requirements.txt"
]
},
"ignorePaths": [],
"ignoreDeps": [
"jaraco.text",
"sabctools"
"jaraco.context",
"jaraco.collections",
"sabctools",
"paho-mqtt",
"werkzeug",
"tavern"
],
"packageRules": [
{
"matchManagers": ["github-actions"],
"matchPackageNames": ["windows", "macos"],
"enabled": false
},
{
"matchPackagePatterns": [
"*"

View File

@@ -8,126 +8,131 @@ env:
jobs:
build_windows:
name: Build Windows binary
runs-on: windows-latest
timeout-minutes: 30
name: Build Windows binary (${{ matrix.architecture }})
strategy:
fail-fast: false
matrix:
include:
- architecture: x64
runs-on: windows-2022
- architecture: arm64
runs-on: windows-11-arm
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11 (64bit)
uses: actions/setup-python@v4
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
architecture: "x64"
- name: Cache Python virtualenv (64bit)
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv-64bit
with:
custom_virtualenv_dir: "venv64"
custom_cache_key_element: "release"
requirement_files: "**/requirements.txt"
- name: Install Python dependencies (64bit)
if: steps.cache-virtualenv-64bit.outputs.cache-hit != 'true'
python-version: "3.14"
architecture: ${{ matrix.architecture }}
cache: pip
cache-dependency-path: "**/requirements.txt"
- name: Install Python dependencies
# Without dependencies to make sure everything is covered in the requirements.txt
run: |
python --version
python -m pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt --no-dependencies
pip install --upgrade -r builder/requirements.txt --no-dependencies
- name: Build Windows standalone binary and installer (64bit)
run: python builder/package.py installer
- name: Upload Windows standalone binary (64bit)
uses: actions/upload-artifact@v3
- name: Build Windows standalone binary
id: windows_binary
run: python builder/package.py binary
- name: Upload Windows standalone binary (unsigned)
uses: actions/upload-artifact@v6
id: upload-unsigned-binary
with:
path: "*-win64-bin.zip"
name: Windows Windows standalone binary (64bit)
- name: Upload Windows installer (64bit)
uses: actions/upload-artifact@v3
path: "*-win*-bin.zip"
name: Windows standalone binary (${{ matrix.architecture }})
- name: Sign Windows standalone binary
uses: signpath/github-action-submit-signing-request@v2
if: contains(github.ref, 'refs/tags/')
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: "sabnzbd"
artifact-configuration-slug: "sabnzbd-binary"
signing-policy-slug: "release-signing"
github-artifact-id: ${{ steps.upload-unsigned-binary.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: "signed"
- name: Upload Windows standalone binary (signed)
uses: actions/upload-artifact@v6
if: contains(github.ref, 'refs/tags/')
with:
name: Windows standalone binary (${{ matrix.architecture }}, signed)
path: "signed"
- name: Build Windows installer
if: matrix.architecture == 'x64'
run: python builder/package.py installer
- name: Upload Windows installer
if: matrix.architecture == 'x64'
uses: actions/upload-artifact@v6
id: upload-unsigned-installer
with:
path: "*-win-setup.exe"
name: Windows installer
- name: Set up Python 3.8 (32bit and legacy)
uses: actions/setup-python@v4
name: Windows installer (${{ matrix.architecture }})
- name: Sign Windows installer
if: matrix.architecture == 'x64' && contains(github.ref, 'refs/tags/')
uses: signpath/github-action-submit-signing-request@v2
with:
python-version: "3.8"
architecture: "x86"
- name: Cache Python virtualenv (32bit and legacy)
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv-32bit
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: "sabnzbd"
artifact-configuration-slug: "sabnzbd-installer"
signing-policy-slug: "release-signing"
github-artifact-id: ${{ steps.upload-unsigned-installer.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: "signed"
- name: Upload Windows installer (signed)
if: matrix.architecture == 'x64' && contains(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v6
with:
custom_virtualenv_dir: "venv32"
custom_cache_key_element: "release"
requirement_files: "**/requirements.txt"
- name: Install Python dependencies (32bit and legacy)
if: steps.cache-virtualenv-32bit.outputs.cache-hit != 'true'
# We do not care about the extra dependencies for the legacy build
run: |
python --version
python -m pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt
pip install --upgrade -r builder/requirements.txt
- name: Build Windows standalone binary (32bit and legacy)
run: python builder/package.py binary
- name: Upload Windows standalone binary (32bit and legacy)
uses: actions/upload-artifact@v3
with:
path: "*-win32-bin.zip"
name: Windows Windows standalone binary (32bit and legacy)
name: Windows installer (${{ matrix.architecture }}, signed)
path: "signed/*-win-setup.exe"
build_macos:
name: Build macOS binary
runs-on: macos-11
timeout-minutes: 30
runs-on: macos-14
timeout-minutes: 15
env:
# We need the official Python, because the GA ones only support newer macOS versions
# The deployment target is picked up by the Python build tools automatically
# If updated, make sure to also set LSMinimumSystemVersion in SABnzbd.spec
PYTHON_VERSION: "3.11.5"
MACOSX_DEPLOYMENT_TARGET: "10.9"
PYTHON_VERSION: "3.14.2"
MACOSX_DEPLOYMENT_TARGET: "10.15"
# We need to force compile for universal2 support
CFLAGS: -arch x86_64 -arch arm64
ARCHFLAGS: -arch x86_64 -arch arm64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Set up Python
# Only use this for the caching of pip packages!
uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
cache-dependency-path: "**/requirements.txt"
- name: Cache Python download
id: cache-python-download
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/python.pkg
key: cache-macOS-Python-${{ env.PYTHON_VERSION }}
- name: Get Python
- name: Get Python from python.org
if: steps.cache-python-download.outputs.cache-hit != 'true'
run: curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg -o ~/python.pkg
- name: Install Python
run: |
sudo installer -pkg ~/python.pkg -target /
unlink /usr/local/bin/python
ln -s /usr/local/bin/python3 /usr/local/bin/python
- name: Cache Python virtualenv
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv
with:
custom_cache_key_element: "release"
requirement_files: "**/requirements.txt"
run: sudo installer -pkg ~/python.pkg -target /
- name: Install Python dependencies
# We have to manually take a few steps:
# 1. Because building cryptography is hard, and we cannot force pip to fetch universal2 version we
# first install the x86 version (and it's dependencies) and then manually fetch the universal2 build
# https://github.com/pyca/cryptography/issues/5918
# 2. Due to PyObjC we cannot run pip on the main requirements without installing dependencies
# 3. We need to build the PyInstaller bootloader:
# https://github.com/pyinstaller/pyinstaller/issues/6235
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
# We have to manually compile some modules as they don't automatically fetch universal2 binaries
run: |
python3 --version
pip3 install --upgrade pip wheel
pip3 install --upgrade -r requirements.txt --no-binary cffi
pip3 uninstall cryptography -y
pip3 download -r builder/osx/requirements.txt --platform macosx_10_12_universal2 --only-binary :all: --no-deps --dest .
pip3 install -r builder/osx/requirements.txt --no-cache-dir --no-index --find-links .
PYINSTALLER_COMPILE_BOOTLOADER=1 pip3 install --upgrade -r builder/requirements.txt --no-binary pyinstaller --no-dependencies
pip3 install --upgrade -r requirements.txt --no-binary cffi,CT3,PyYAML,charset_normalizer --no-dependencies
pip3 install --upgrade -r builder/requirements.txt --no-dependencies
- name: Import macOS codesign certificates
# Taken from https://github.com/Apple-Actions/import-codesign-certs/pull/27 (comments)
env:
@@ -137,8 +142,8 @@ jobs:
if: env.CERTIFICATES_P12
run: |
echo $CERTIFICATES_P12 | base64 --decode > certificate.p12
security create-keychain -p "$MACOS_KEYCHAIN_TEMP_PASSWORD" build.keychain
security default-keychain -s build.keychain
security create-keychain -p "$MACOS_KEYCHAIN_TEMP_PASSWORD" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "$MACOS_KEYCHAIN_TEMP_PASSWORD" build.keychain
security set-keychain-settings -lut 21600 build.keychain
security import certificate.p12 -k build.keychain -P "$CERTIFICATES_P12_PASSWORD" -T /usr/bin/codesign -T /usr/bin/productsign -T /usr/bin/xcrun
@@ -147,7 +152,7 @@ jobs:
# Run this on macOS so the line endings are correct by default
run: python builder/package.py source
- name: Upload source distribution
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
path: "*-src.tar.gz"
name: Source distribution
@@ -160,28 +165,88 @@ jobs:
python3 builder/package.py app
python3 builder/make_dmg.py
- name: Upload macOS binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
path: "*-osx.dmg"
name: macOS binary (not notarized)
path: "*-macos.dmg"
name: macOS binary
build-snap:
name: Build Snap Packages (${{ matrix.linux_arch }})
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
linux_arch: x64
- os: ubuntu-24.04-arm
linux_arch: arm64
steps:
- uses: actions/checkout@v6
- name: Cache par2cmdline-turbo tarball
uses: actions/cache@v5
id: cache-par2cmdline
# Clearing the cache in case of new version requires manual clearing in GitHub!
with:
path: snap/par2cmdline.tar.gz
key: cache-par2cmdline
- name: Download par2cmdline-turbo tarball
if: steps.cache-par2cmdline.outputs.cache-hit != 'true'
run: |
PAR2_TARBALL=$(curl -sL https://api.github.com/repos/animetosho/par2cmdline-turbo/releases/latest | jq -r '.tarball_url')
curl -o snap/par2cmdline.tar.gz -L "$PAR2_TARBALL"
- uses: snapcore/action-build@v1
name: Build snap
id: snapcraft
- name: Test snap installation
run: |
sudo snap install --dangerous *.snap
sudo snap connect sabnzbd:removable-media
# Basic smoke test - check that the binary exists and can show help
timeout 10s snap run sabnzbd --help || true
sudo snap remove sabnzbd
- name: Upload snap
uses: actions/upload-artifact@v6
with:
name: Snap package (${{ matrix.linux_arch }})
path: ${{ steps.snapcraft.outputs.snap }}
- name: Publish snap
uses: snapcore/action-publish@v1
if: contains(github.ref, 'refs/tags/')
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_TOKEN }}
with:
store_login: ${{ secrets.SNAP_TOKEN }}
snap: ${{ steps.snapcraft.outputs.snap }}
release: stable
release:
name: Publish Release
name: Prepare Release
runs-on: ubuntu-latest
needs: [build_windows, build_macos]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Download all artifacts
uses: actions/download-artifact@v3
python-version: "3.14"
cache: pip
cache-dependency-path: "builder/release-requirements.txt"
- name: Download Source distribution artifact
uses: actions/download-artifact@v7
with:
path: dist
- name: Move all artifacts to main folder
run: find dist -type f -exec mv {} . \;
name: Source distribution
- name: Download macOS artifact
uses: actions/download-artifact@v7
with:
name: macOS binary
- name: Download Windows artifacts
uses: actions/download-artifact@v7
with:
pattern: ${{ (contains(github.ref, 'refs/tags/')) && '*signed*' || '*Windows*' }}
merge-multiple: true
- name: Prepare official release
env:
AUTOMATION_GITHUB_TOKEN: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
@@ -189,9 +254,3 @@ jobs:
run: |
pip3 install -r builder/release-requirements.txt
python3 builder/release.py
- name: Release latest available Snap
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_TOKEN }}
run: |
sudo snap install snapcraft --classic
python3 snap/local/release_snap.py

View File

@@ -7,7 +7,7 @@ jobs:
name: Black Code Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
@@ -20,7 +20,7 @@ jobs:
builder/SABnzbd.spec
tests
--line-length=120
--target-version=py38
--target-version=py39
--check
--diff
@@ -31,46 +31,33 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-architecture: ["x64"]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
name: ["Linux"]
os: [ubuntu-20.04]
os: [ubuntu-latest]
include:
- name: macOS
os: macos-latest
python-version: "3.11"
python-architecture: "x64"
python-version: "3.14"
- name: Windows
os: windows-latest
python-version: "3.11"
python-architecture: "x64"
- name: Windows (32bit)
os: windows-latest
python-version: "3.8"
python-architecture: "x86"
os: windows-2022
python-version: "3.14"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.python-architecture }}
uses: actions/setup-python@v4
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-architecture }}
cache: pip
cache-dependency-path: "**/requirements.txt"
- name: Install system dependencies
if: runner.os == 'Linux'
run: sudo apt-get install unrar p7zip-full par2
- name: Cache Python virtualenv
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv
with:
custom_cache_key_element: ci-${{ matrix.python-architecture }}
requirement_files: "**/requirements.txt"
run: sudo apt-get install unrar 7zip par2
- name: Install Python dependencies
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
run: |
python --version
python -m pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt
pip install --upgrade -r requirements.txt --no-dependencies
pip install --upgrade -r tests/requirements.txt
- name: Test SABnzbd
run: pytest -s

View File

@@ -10,7 +10,7 @@ jobs:
if: github.repository_owner == 'sabnzbd'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v10
with:
days-before-stale: 21
days-before-close: 7
@@ -26,7 +26,7 @@ jobs:
if: github.repository_owner == 'sabnzbd'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
- uses: dessant/lock-threads@v6
with:
log-output: true
issue-inactive-days: 60

View File

@@ -12,7 +12,7 @@ jobs:
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
token: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
- name: Generate translatable texts
@@ -21,16 +21,16 @@ jobs:
- name: Push/pull Transifex translations
if: env.TX_TOKEN
# Add --translation to the push command in order to update Transifex using local translation edits
# However, this prevents modifying existing translations in Transifex as they will be overwritten by the push!
# However, this prevents modifying existing translations in Transifex as they will be overwritten by the push!
run: |
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
./tx push --source
./tx push --source
./tx pull --all --force
- name: Compile translations to validate them
run: |
python3 tools/make_mo.py
- name: Push translatable and translated texts back to repo
uses: stefanzweifel/git-auto-commit-action@v4.16.0
uses: stefanzweifel/git-auto-commit-action@v7.1.0
if: env.TX_TOKEN
with:
commit_message: |

View File

@@ -1,5 +1,5 @@
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)
(c) Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
The SABnzbd-Team is:

View File

@@ -4,7 +4,7 @@
0) LICENSE
-------------------------------------------------------------------------------
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)
(c) Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -52,7 +52,7 @@ Specific guides to install from source are available for Windows and macOS:
https://sabnzbd.org/wiki/installation/install-macos
https://sabnzbd.org/wiki/installation/install-from-source-windows
Only Python 3.8 and above is supported.
Only Python 3.9 and above is supported.
On Linux systems you need to install:
par2 unrar python3-setuptools python3-pip

View File

@@ -1,4 +1,4 @@
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)
(c) Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License

View File

@@ -2,7 +2,7 @@ SABnzbd - The automated Usenet download tool
============================================
[![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[![Join our Discord](https://img.shields.io/discord/976737547558461480?color=7289DA&label=Discord&logo=Discord&logoColor=white)](https://discord.gg/KQzDe7fvNU)
[![Join our Discord](https://img.shields.io/discord/976737547558461480?color=7289DA&label=Discord&logo=Discord&logoColor=white)](https://discord.sabnzbd.org)
SABnzbd is an Open Source Binary Newsreader written in Python.
@@ -16,7 +16,7 @@ If you want to know more you can head over to our website: https://sabnzbd.org.
SABnzbd has a few dependencies you'll need before you can get running. If you've previously run SABnzbd from one of the various Linux packages, then you likely already have all the needed dependencies. If not, here's what you're looking for:
- `python` (Python 3.8 and above, often called `python3`)
- `python` (Python 3.9 and above, often called `python3`)
- Python modules listed in `requirements.txt`. Install with `python3 -m pip install -r requirements.txt -U`
- `par2` (Multi-threaded par2 installation guide can be found [here](https://sabnzbd.org/wiki/installation/multicore-par2))
- `unrar` (make sure you get the "official" non-free version of unrar)
@@ -66,3 +66,12 @@ Conditions:
- Bugfixes created specifically for a release branch are done there (because they are specific, they're not cherry-picked to `develop`).
- Bugfixes done on `develop` may be cherry-picked to a release branch.
- We will not release a 1.0.2 if a 1.1.0 has already been released.
## Privacy Policy
This program will not transfer any information to other networked systems unless
specifically requested by the user or the person installing or operating it.
## Code Signing Policy
For our Windows release, free code signing is provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org).

View File

@@ -1,44 +1,52 @@
Release Notes - SABnzbd 4.1.0 Release Candidate 2
Release Notes - SABnzbd 4.6.0 Beta 2
=========================================================
## Changes since 4.0.3
- Added a dark mode for the Config, Login, and Wizard.
- Added multi-select to the History.
- Show the number of items in post-processing when in Tabbed mode.
- Added option `verify_xff_header` to include `X-Forwarded-For` when
validating if connections should be accepted when using a proxy.
- Added option to purge log files from the Folders Config page.
- Moved `Server IP address selection` and `On failure, try
alternative NZB` to Special settings.
- Special setting `ipv6_servers` changed to on/off.
- Only use 7zip to unpack zip files.
- Windows: Added option `enable_multipar` to use par2cmdline-turbo
instead of Multipar for verification and repair. It is faster,
but on Windows it can fail on special (UTF8) filenames.
- macOS: Switched to par2cmdline-turbo for verification and repair.
- Linux: Detect more recent versions of 7zip.
- Windows: Use `All Users` locations during installtion of shortcuts.
- Windows/macOS: Updated Python to 3.11.5, 7Zip to 23.01 and
UnRar to 6.23. All these updates include security fixes.
This is the second beta release of version 4.6.
## Bugfixes since 4.0.3
- Series duplicate detection did not detect duplicates.
- Sorting would append `.1` to some filenames.
- Not all API-keys were removed during log-sanitization.
- In certain situations, not all data would be written to disk.
- Folder names could be sanitized too eagerly.
- Some articles would fail to decode.
- QuickCheck could wrongly rename files with identical content.
- Warning about `Scripts Folder` location was triggered incorrectly.
## New features in 4.6.0
* Added support for NNTP Pipelining which eliminates idle waiting between
requests, significantly improving speeds on high-latency connections.
Read more here: https://sabnzbd.org/wiki/advanced/nntp-pipelining
* Dynamically increase Assembler limits on faster connections.
* Improved disk speed measurement in Status window.
* Enable `verify_xff_header` by default.
* Reduce delays between jobs during post-processing.
* If a download only has `.nzb` files inside, the new downloads
will include the name of the original download.
* Dropped support for Python 3.8.
* Windows: Added Windows ARM (portable) release.
## Bug fixes since 4.5.0
* `Check before download` could get stuck or fail to reject.
* No error was shown in case NZB upload failed.
* Correct mobile layout if `Full Width` is enabled.
* Aborted Direct Unpack could result in no files being unpacked.
* Windows: Tray icon disappears after Explorer restart.
* macOS: Slow to start on some network setups.
## Upgrade notices
* You can directly upgrade from version 3.0.0 and newer.
* Upgrading from older versions will require performing a `Queue repair`.
* Downgrading from version 4.2.0 or newer to 3.7.2 or older will require
performing a `Queue repair` due to changes in the internal data format.
## Known problems and solutions
- Read the file "ISSUES.txt"
* Read `ISSUES.txt` or https://sabnzbd.org/wiki/introduction/known-issues
## Code Signing Policy
Windows code signing is provided by SignPath.io using a SignPath Foundation certificate.
## About
SABnzbd is an open-source cross-platform binary newsreader.
It simplifies the process of downloading from Usenet dramatically, thanks
to its web-based user interface and advanced built-in post-processing options
that automatically verify, repair, extract and clean up posts downloaded
from Usenet.
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)
SABnzbd is an open-source cross-platform binary newsreader.
It simplifies the process of downloading from Usenet dramatically, thanks to its web-based
user interface and advanced built-in post-processing options that automatically verify, repair,
extract and clean up posts downloaded from Usenet.
(c) Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,5 @@
# -*- mode: python -*-
import os
import re
import sys
from PyInstaller.building.api import EXE, COLLECT, PYZ
@@ -8,13 +7,14 @@ from PyInstaller.building.build_main import Analysis
from PyInstaller.building.osx import BUNDLE
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
from builder.constants import EXTRA_FILES, EXTRA_FOLDERS, RELEASE_VERSION
from builder.constants import EXTRA_FILES, EXTRA_FOLDERS, RELEASE_VERSION, RELEASE_VERSION_TUPLE
# Add extra files in the PyInstaller-spec
extra_pyinstaller_files = []
# Add hidden imports
extra_hiddenimports = ["Cheetah.DummyTransaction", "cheroot.ssl.builtin", "certifi"]
extra_hiddenimports.extend(collect_submodules("apprise"))
extra_hiddenimports.extend(collect_submodules("babelfish.converters"))
extra_hiddenimports.extend(collect_submodules("guessit.data"))
@@ -22,9 +22,9 @@ extra_hiddenimports.extend(collect_submodules("guessit.data"))
if sys.platform == "darwin":
extra_hiddenimports.extend(["objc", "PyObjCTools"])
# macOS folders
EXTRA_FOLDERS += ["osx/par2/", "osx/unrar/", "osx/7zip/"]
EXTRA_FOLDERS += ["macos/par2/", "macos/unrar/", "macos/7zip/"]
# Add NZB-icon file
extra_pyinstaller_files.append(("builder/osx/image/nzbfile.icns", "."))
extra_pyinstaller_files.append(("builder/macos/image/nzbfile.icns", "."))
# Version information is set differently on macOS
version_info = None
else:
@@ -40,20 +40,16 @@ else:
)
# Windows
extra_hiddenimports.append("win32timezone")
EXTRA_FOLDERS += ["win/multipar/", "win/par2/", "win/unrar/", "win/7zip/"]
extra_hiddenimports.extend(["win32timezone", "winrt.windows.foundation.collections"])
EXTRA_FOLDERS += ["win/par2/", "win/unrar/", "win/7zip/"]
EXTRA_FILES += ["portable.cmd"]
# Parse the version info
version_regexed = re.search(r"(\d+)\.(\d+)\.(\d+)([a-zA-Z]*)(\d*)", RELEASE_VERSION)
version_tuple = (int(version_regexed.group(1)), int(version_regexed.group(2)), int(version_regexed.group(3)), 0)
# Detailed instructions are in the PyInstaller documentation
# We don't include the alpha/beta/rc in the counters
version_info = VSVersionInfo(
ffi=FixedFileInfo(
filevers=version_tuple,
prodvers=version_tuple,
filevers=RELEASE_VERSION_TUPLE,
prodvers=RELEASE_VERSION_TUPLE,
mask=0x3F,
flags=0x0,
OS=0x40004,
@@ -91,12 +87,15 @@ for folder_item in EXTRA_FOLDERS:
# Add babelfish data files
extra_pyinstaller_files.extend(collect_data_files("babelfish"))
extra_pyinstaller_files.extend(collect_data_files("guessit"))
extra_pyinstaller_files.extend(collect_data_files("apprise"))
extra_pyinstaller_files.extend(collect_data_files("dateutil"))
pyi_analysis = Analysis(
["SABnzbd.py"],
datas=extra_pyinstaller_files,
hiddenimports=extra_hiddenimports,
excludes=["ujson", "FixTk", "tcl", "tk", "_tkinter", "tkinter", "Tkinter"],
excludes=["ujson", "FixTk", "tcl", "tk", "_tkinter", "tkinter", "Tkinter", "pydoc", "pydoc_data.topics"],
module_collection_mode={"apprise.plugins": "py"},
)
pyz = PYZ(pyi_analysis.pure, pyi_analysis.zipped_data)
@@ -113,13 +112,13 @@ exe = EXE(
[],
exclude_binaries=True,
name="SABnzbd",
upx=True,
console=False,
append_pkg=False,
icon="icons/sabnzbd.ico",
contents_directory=".",
version=version_info,
target_arch="universal2",
entitlements_file="builder/osx/entitlements.plist",
entitlements_file="builder/macos/entitlements.plist",
codesign_identity=codesign_identity,
)
@@ -134,9 +133,9 @@ if sys.platform == "win32":
[],
exclude_binaries=True,
name="SABnzbd-console",
upx=True,
append_pkg=False,
icon="icons/sabnzbd.ico",
contents_directory=".",
version=version_info,
)
@@ -145,7 +144,6 @@ if sys.platform == "win32":
pyi_analysis.binaries,
pyi_analysis.zipfiles,
pyi_analysis.datas,
upx=True,
name="SABnzbd-console",
)
@@ -168,14 +166,14 @@ if sys.platform == "darwin":
"NSPersistentStoreTypeKey": "Binary",
}
],
"LSMinimumSystemVersion": "10.9",
"LSMinimumSystemVersion": "10.13",
"LSEnvironment": {"LANG": "en_US.UTF-8", "LC_ALL": "en_US.UTF-8"},
}
app = BUNDLE(
coll,
name="SABnzbd.app",
icon="builder/osx/image/sabnzbdplus.icns",
icon="builder/macos/image/sabnzbdplus.icns",
bundle_identifier="org.sabnzbd.sabnzbd",
info_plist=info_plist,
)

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team (sabnzbd.org)
# Copyright 2008-2025 by The SABnzbd-Team (sabnzbd.org)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -16,6 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import os
import platform
import re
# Constants
VERSION_FILE = "sabnzbd/version.py"
@@ -33,16 +35,26 @@ RELEASE_VERSION = __version__
# Pre-releases are longer than 6 characters (e.g. 3.1.0Beta1 vs 3.1.0, but also 3.0.11)
PRERELEASE = len(RELEASE_VERSION) > 5
# Parse the version info for Windows file properties information
version_regexed = re.search(r"(\d+)\.(\d+)\.(\d+)([a-zA-Z]*)(\d*)", RELEASE_VERSION)
RELEASE_VERSION_TUPLE = (int(version_regexed.group(1)), int(version_regexed.group(2)), int(version_regexed.group(3)), 0)
RELEASE_VERSION_BASE = f"{RELEASE_VERSION_TUPLE[0]}.{RELEASE_VERSION_TUPLE[1]}.{RELEASE_VERSION_TUPLE[2]}"
# Define release name
RELEASE_NAME = "SABnzbd-%s" % RELEASE_VERSION
RELEASE_TITLE = "SABnzbd %s" % RELEASE_VERSION
RELEASE_SRC = RELEASE_NAME + "-src.tar.gz"
RELEASE_BINARY_32 = RELEASE_NAME + "-win32-bin.zip"
RELEASE_BINARY_64 = RELEASE_NAME + "-win64-bin.zip"
RELEASE_INSTALLER = RELEASE_NAME + "-win-setup.exe"
RELEASE_MACOS = RELEASE_NAME + "-osx.dmg"
RELEASE_WIN_BIN_X64 = RELEASE_NAME + "-win64-bin.zip"
RELEASE_WIN_BIN_ARM64 = RELEASE_NAME + "-win-arm64-bin.zip"
RELEASE_WIN_INSTALLER = RELEASE_NAME + "-win-setup.exe"
RELEASE_MACOS = RELEASE_NAME + "-macos.dmg"
RELEASE_README = "README.mkd"
# Detect architecture
RELEASE_WIN_BIN = RELEASE_WIN_BIN_X64
if platform.machine() == "ARM64":
RELEASE_WIN_BIN = RELEASE_WIN_BIN_ARM64
# Used in package.py and SABnzbd.spec
EXTRA_FILES = [
RELEASE_README,

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team (sabnzbd.org)
# Copyright 2008-2025 by The SABnzbd-Team (sabnzbd.org)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -24,7 +24,7 @@ if __name__ == "__main__":
# Check for DMGBuild
try:
import dmgbuild
except:
except Exception:
print("Requires dmgbuild-module, use pip install dmgbuild")
exit()
@@ -39,7 +39,7 @@ if __name__ == "__main__":
# Create sub-folder to upload later
release = RELEASE_VERSION
prod = "SABnzbd-" + release
fileDmg = prod + "-osx.dmg"
fileDmg = prod + "-macos.dmg"
# Path to app file
apppath = "dist/SABnzbd.app"
@@ -48,8 +48,8 @@ if __name__ == "__main__":
readmepath = os.path.join(apppath, "Contents/Resources/README.txt")
# Path to background and the icon
backgroundpath = "builder/osx/image/sabnzbd_new_bg.png"
iconpath = "builder/osx/image/sabnzbdplus.icns"
backgroundpath = "builder/macos/image/sabnzbd_new_bg.png"
iconpath = "builder/macos/image/sabnzbdplus.icns"
# Make DMG
print("Building DMG")

View File

@@ -1,3 +0,0 @@
# Special requirements for macOS universal2 binary release
# This way dependabot can auto-update them
cryptography==41.0.3

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team (sabnzbd.org)
# Copyright 2008-2025 by The SABnzbd-Team (sabnzbd.org)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import glob
import platform
import re
import sys
import os
@@ -28,16 +27,16 @@ import tarfile
import urllib.request
import urllib.error
import configobj
from typing import List
import packaging.version
from constants import (
RELEASE_VERSION,
RELEASE_VERSION_TUPLE,
VERSION_FILE,
RELEASE_README,
RELEASE_NAME,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_WIN_BIN,
RELEASE_WIN_INSTALLER,
ON_GITHUB_ACTIONS,
RELEASE_THIS,
RELEASE_SRC,
@@ -58,16 +57,21 @@ def safe_remove(path):
os.remove(path)
def delete_files_glob(name):
"""Delete one file or set of files from wild-card spec"""
for f in glob.glob(name):
if os.path.exists(f):
os.remove(f)
def delete_files_glob(glob_pattern: str, allow_no_matches: bool = False):
"""Delete one file or set of files from wild-card spec.
We expect to match at least 1 file, to force expected behavior"""
if files_to_remove := glob.glob(glob_pattern):
for path in files_to_remove:
if os.path.exists(path):
os.remove(path)
else:
if not allow_no_matches:
raise FileNotFoundError(f"No files found that match '{glob_pattern}'")
def run_external_command(command: List[str], print_output: bool = True):
def run_external_command(command: list[str], print_output: bool = True, **kwargs):
"""Wrapper to ease the use of calling external programs"""
process = subprocess.Popen(command, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
process = subprocess.Popen(command, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kwargs)
output, _ = process.communicate()
ret = process.wait()
if (output and print_output) or ret != 0:
@@ -104,6 +108,52 @@ def patch_version_file(release_name):
ver.write(version_file)
def test_macos_min_version(binary_path: str):
# Skip check if nothing was set
if macos_min_version := os.environ.get("MACOSX_DEPLOYMENT_TARGET"):
# Skip any arm64 specific files
if "arm64" in binary_path:
print(f"Skipping arm64 binary {binary_path}")
return
# Check minimum macOS version is at least mac OS10.13
# We only check the x86_64 since for arm64 it's always macOS 11+
print(f"Checking if binary supports macOS {macos_min_version} and above: {binary_path}")
otool_output = run_external_command(
[
"otool",
"-arch",
"x86_64",
"-l",
binary_path,
],
print_output=False,
)
# Parse the output for LC_BUILD_VERSION minos
# The output is very large, so that's why we enumerate over it
req_version = packaging.version.parse(macos_min_version)
bin_version = None
lines = otool_output.split("\n")
for line_nr, line in enumerate(lines):
if "LC_VERSION_MIN_MACOSX" in line:
# Display the version in the next lines
bin_version = packaging.version.parse(lines[line_nr + 2].split()[1])
elif "minos" in line:
bin_version = packaging.version.parse(line.split()[1])
if bin_version and bin_version > req_version:
raise ValueError(f"{binary_path} requires {bin_version}, we want {req_version}")
else:
# We got the information we need
break
else:
print(lines)
raise RuntimeError(f"Could not determine minimum macOS version for {binary_path}")
else:
print(f"Skipping macOS version check, MACOSX_DEPLOYMENT_TARGET not set")
def test_sab_binary(binary_path: str):
"""Wrapper to have a simple start-up test for the binary"""
with tempfile.TemporaryDirectory() as config_dir:
@@ -120,7 +170,7 @@ def test_sab_binary(binary_path: str):
try:
urllib.request.urlopen(base_url, timeout=1).read()
break
except:
except Exception:
time.sleep(1)
else:
# Print console output and give some time to print
@@ -196,78 +246,74 @@ if __name__ == "__main__":
if not os.path.exists("locale"):
raise FileNotFoundError("Failed to compile language files")
# Make sure we remove any existing build-folders
safe_remove("build")
safe_remove("dist")
safe_remove(RELEASE_NAME)
# Copy the specification
shutil.copyfile("builder/SABnzbd.spec", "SABnzbd.spec")
if "binary" in sys.argv or "installer" in sys.argv:
if "binary" in sys.argv:
# Must be run on Windows
if sys.platform != "win32":
raise RuntimeError("Binary should be created on Windows")
# Check what architecture we are on
RELEASE_BINARY = RELEASE_BINARY_32
if platform.architecture()[0] == "64bit":
RELEASE_BINARY = RELEASE_BINARY_64
# Make sure we remove any existing build-folders
safe_remove("build")
safe_remove("dist")
# Remove any leftovers
safe_remove(RELEASE_BINARY)
safe_remove(RELEASE_NAME)
safe_remove(RELEASE_WIN_BIN)
# Run PyInstaller and check output
shutil.copyfile("builder/SABnzbd.spec", "SABnzbd.spec")
run_external_command([sys.executable, "-O", "-m", "PyInstaller", "SABnzbd.spec"])
shutil.copytree("dist/SABnzbd-console", "dist/SABnzbd", dirs_exist_ok=True)
safe_remove("dist/SABnzbd-console")
# Remove unwanted DLL's
delete_files_glob("dist/SABnzbd/api-ms-win*.dll")
delete_files_glob("dist/SABnzbd/mfc140u.dll")
delete_files_glob("dist/SABnzbd/ucrtbase.dll")
shutil.rmtree("dist/SABnzbd/Pythonwin")
delete_files_glob("dist/SABnzbd/api-ms-win*.dll", allow_no_matches=True)
delete_files_glob("dist/SABnzbd/ucrtbase.dll", allow_no_matches=True)
# Remove other files we don't need
delete_files_glob("dist/SABnzbd/win32ui.pyd")
delete_files_glob("dist/SABnzbd/winxpgui.pyd")
if "installer" in sys.argv:
# Needs to be run on 64 bit
if RELEASE_BINARY != RELEASE_BINARY_64:
raise RuntimeError("Installer should be created on 64bit Python")
# Compile NSIS translations
safe_remove("NSIS_Installer.nsi")
safe_remove("NSIS_Installer.nsi.tmp")
shutil.copyfile("builder/win/NSIS_Installer.nsi", "NSIS_Installer.nsi")
run_external_command([sys.executable, "tools/make_mo.py", "nsis"])
# Remove 32bit external executables
delete_files_glob("dist/SABnzbd/win/par2/par2.exe")
delete_files_glob("dist/SABnzbd/win/multipar/par2j.exe")
delete_files_glob("dist/SABnzbd/win/unrar/UnRAR.exe")
# Run NSIS to build installer
run_external_command(
[
"makensis.exe",
"/V3",
"/DSAB_PRODUCT=%s" % RELEASE_NAME,
"/DSAB_VERSION=%s" % RELEASE_VERSION,
"/DSAB_FILE=%s" % RELEASE_INSTALLER,
"NSIS_Installer.nsi.tmp",
]
)
# Rename the folder
shutil.copytree("dist/SABnzbd", RELEASE_NAME)
# Test the release
test_sab_binary("dist/SABnzbd/SABnzbd.exe")
# Create the archive
run_external_command(["win/7zip/7za.exe", "a", RELEASE_BINARY, RELEASE_NAME])
run_external_command(["win/7zip/7za.exe", "a", RELEASE_WIN_BIN, "SABnzbd"], cwd="dist")
shutil.move(f"dist/{RELEASE_WIN_BIN}", RELEASE_WIN_BIN)
# Test the release, as the very last step to not mess with any release code
test_sab_binary("dist/SABnzbd/SABnzbd.exe")
if "installer" in sys.argv:
# Check if we have the dist folder
if not os.path.exists("dist/SABnzbd/SABnzbd.exe"):
raise FileNotFoundError("SABnzbd executable not found, run binary creation first")
# Check if we have a signed version
if os.path.exists(f"signed/{RELEASE_WIN_BIN}"):
print("Using signed version of SABnzbd binaries")
safe_remove("dist/SABnzbd")
run_external_command(["win/7zip/7za.exe", "x", "-odist", f"signed/{RELEASE_WIN_BIN}"])
# Make sure it exists
if not os.path.exists("dist/SABnzbd/SABnzbd.exe"):
raise FileNotFoundError("SABnzbd executable not found, signed zip extraction failed")
elif RELEASE_THIS:
raise FileNotFoundError("Signed SABnzbd executable not found, required for release!")
else:
print("Using unsigned version of SABnzbd binaries")
# Compile NSIS translations
safe_remove("NSIS_Installer.nsi")
safe_remove("NSIS_Installer.nsi.tmp")
shutil.copyfile("builder/win/NSIS_Installer.nsi", "NSIS_Installer.nsi")
run_external_command([sys.executable, "tools/make_mo.py", "nsis"])
# Run NSIS to build installer
run_external_command(
[
"makensis.exe",
"/V3",
"/DSAB_VERSION=%s" % RELEASE_VERSION,
"/DSAB_VERSIONKEY=%s" % ".".join(map(str, RELEASE_VERSION_TUPLE)),
"/DSAB_FILE=%s" % RELEASE_WIN_INSTALLER,
"NSIS_Installer.nsi.tmp",
]
)
if "app" in sys.argv:
# Must be run on macOS
@@ -283,14 +329,17 @@ if __name__ == "__main__":
# Otherwise the signature of the main application becomes invalid
if authority:
files_to_sign = [
"osx/par2/par2-turbo",
"osx/par2/arm64/par2-turbo",
"osx/unrar/unrar",
"osx/unrar/arm64/unrar",
"osx/7zip/7zz",
"macos/par2/par2",
"macos/unrar/unrar",
"macos/unrar/arm64/unrar",
"macos/7zip/7zz",
]
for file_to_sign in files_to_sign:
print("Signing %s with hardended runtime" % file_to_sign)
# Make sure it supports the macOS versions we want first
test_macos_min_version(file_to_sign)
# Then sign in
print("Signing %s with hardened runtime" % file_to_sign)
run_external_command(
[
"codesign",
@@ -300,7 +349,7 @@ if __name__ == "__main__":
"--options",
"runtime",
"--entitlements",
"builder/osx/entitlements.plist",
"builder/macos/entitlements.plist",
"-s",
authority,
file_to_sign,
@@ -310,17 +359,21 @@ if __name__ == "__main__":
print("Signed %s!" % file_to_sign)
# Run PyInstaller and check output
shutil.copyfile("builder/SABnzbd.spec", "SABnzbd.spec")
run_external_command([sys.executable, "-O", "-m", "PyInstaller", "SABnzbd.spec"])
# Make sure we created a fully universal2 release when releasing or during CI
if RELEASE_THIS or ON_GITHUB_ACTIONS:
for bin_to_check in glob.glob("dist/SABnzbd.app/Contents/MacOS/**/*.so", recursive=True):
for bin_to_check in glob.glob("dist/SABnzbd.app/**/*.so", recursive=True):
print("Checking if binary is universal2: %s" % bin_to_check)
file_output = run_external_command(["file", bin_to_check], print_output=False)
# Make sure we have both arm64 and x86
if not ("x86_64" in file_output and "arm64" in file_output):
raise RuntimeError("Non-universal2 binary found!")
# Make sure it supports the macOS versions we want
test_macos_min_version(bin_to_check)
# Only continue if we can sign
if authority:
# We use PyInstaller to sign the main SABnzbd executable and the SABnzbd.app
@@ -350,8 +403,8 @@ if __name__ == "__main__":
if authority not in sign_result or "adhoc" in sign_result or "invalid" in sign_result:
raise RuntimeError("Signature of %s seems invalid!" % file_to_check)
# Only notarize for real builds that we want to deploy
if notarization_user and notarization_pass and RELEASE_THIS:
# Always notarize, as newer macOS versions don't allow any code without it
if notarization_user and notarization_pass:
# Prepare zip to upload to notarization service
print("Creating zip to send to Apple notarization service")
# We need to use ditto, otherwise the signature gets lost!
@@ -385,8 +438,6 @@ if __name__ == "__main__":
# Staple the notarization!
print("Approved! Stapling the result to the app")
run_external_command(["xcrun", "stapler", "staple", "dist/SABnzbd.app"])
elif notarization_user and notarization_pass:
print("Notarization skipped, tag commit to trigger notarization!")
else:
print("Notarization skipped, NOTARIZATION_USER or NOTARIZATION_PASS missing.")
else:
@@ -444,7 +495,7 @@ if __name__ == "__main__":
tarinfo.uid = 0
tarinfo.gid = 0
if _file in ("SABnzbd.py", "Sample-PostProc.sh", "make_mo.py", "msgfmt.py"):
# Force Linux/OSX scripts as executable
# Force Linux/macOS scripts as executable
tarinfo.mode = 0o755
else:
tarinfo.mode = 0o644

View File

@@ -1,2 +1,2 @@
PyGithub==1.59.1
praw==7.7.1
PyGithub==2.8.1
praw==7.8.1

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team (sabnzbd.org)
# Copyright 2008-2025 by The SABnzbd-Team (sabnzbd.org)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -19,7 +19,6 @@ import hashlib
import json
import os
import re
import shutil
import xml.etree.ElementTree as ET
import github
@@ -27,24 +26,26 @@ import praw
from constants import (
RELEASE_VERSION,
RELEASE_VERSION_BASE,
PRERELEASE,
RELEASE_SRC,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_WIN_BIN_X64,
RELEASE_WIN_BIN_ARM64,
RELEASE_WIN_INSTALLER,
RELEASE_MACOS,
RELEASE_README,
RELEASE_THIS,
RELEASE_TITLE,
APPDATA_FILE,
ON_GITHUB_ACTIONS,
)
# Verify we have all assets
files_to_check = (
RELEASE_SRC,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_WIN_BIN_X64,
RELEASE_WIN_BIN_ARM64,
RELEASE_WIN_INSTALLER,
RELEASE_MACOS,
RELEASE_README,
)
@@ -54,9 +55,14 @@ for file_to_check in files_to_check:
print("All release files are present")
# Verify that appdata file is updated
if not PRERELEASE:
if not isinstance(ET.parse(APPDATA_FILE).find(f"./releases/release[@version='{RELEASE_VERSION}']"), ET.Element):
raise RuntimeError(f"Could not find {RELEASE_VERSION} in {APPDATA_FILE}")
if not isinstance(ET.parse(APPDATA_FILE).find(f"./releases/release[@version='{RELEASE_VERSION_BASE}']"), ET.Element):
release_missing = f"Could not find {RELEASE_VERSION_BASE} in {APPDATA_FILE}"
if RELEASE_THIS:
raise RuntimeError(release_missing)
elif ON_GITHUB_ACTIONS:
print(f"::warning file={APPDATA_FILE},title=Missing release::{release_missing}")
else:
print(release_missing)
# Calculate hashes for Synology release
with open(RELEASE_SRC, "rb") as inp_file:
@@ -71,7 +77,7 @@ print("----")
# Check if tagged as release and check for token
gh_token = os.environ.get("AUTOMATION_GITHUB_TOKEN", "")
if RELEASE_THIS and gh_token:
gh_obj = github.Github(gh_token)
gh_obj = github.Github(auth=github.Auth.Token(gh_token))
gh_repo = gh_obj.get_repo("sabnzbd/sabnzbd")
# Read the release notes
@@ -82,7 +88,7 @@ if RELEASE_THIS and gh_token:
for release in gh_repo.get_releases():
if release.tag_name == RELEASE_VERSION:
gh_release = release
print("Found existing release %s" % gh_release.title)
print("Found existing release %s" % gh_release.name)
break
else:
# Did not find it, so create the release, use the GitHub tag we got as input
@@ -108,7 +114,7 @@ if RELEASE_THIS and gh_token:
print("Removing existing asset %s " % gh_asset.name)
gh_asset.delete_asset()
# Upload the new one
print("Uploading %s to release %s" % (file_to_check, gh_release.title))
print("Uploading %s to release %s" % (file_to_check, gh_release.name))
gh_release.upload_asset(file_to_check)
# Check if we now have all files
@@ -234,24 +240,29 @@ if RELEASE_THIS and gh_token:
readme_lines = readme_file.readlines()
# Put the download link after the title
readme_lines[2] = "## https://sabnzbd.org/downloads\n"
readme_lines[2] = "## https://sabnzbd.org/downloads\n\n"
# Use the header in the readme as title
title = readme_lines[0]
release_notes_text = "".join(readme_lines[2:])
print("Posting release notes to Reddit")
# Only stable releases to r/usenet
if not PRERELEASE:
print("Posting release notes to Reddit: r/usenet")
submission = subreddit_usenet.submit(title, selftext=release_notes_text)
# Get correct flair-id (required by r/usenet)
for flair in subreddit_usenet.flair.link_templates.user_selectable():
if flair["flair_text"] == "News":
print("Posting to r/usenet")
submission = subreddit_usenet.submit(
title, selftext=release_notes_text, flair_id=flair["flair_template_id"]
)
break
else:
raise ValueError("Could not locate flair_text for posting to r/usenet")
# Cross-post to r/SABnzbd
print("Cross-posting release notes to Reddit: r/sabnzbd")
submission.crosspost(subreddit_sabnzbd)
else:
# Post always to r/SABnzbd
print("Posting release notes to Reddit: r/sabnzbd")
subreddit_sabnzbd.submit(title, selftext=release_notes_text)
# Post always to r/SABnzbd
print("Posting to r/sabnzbd")
subreddit_sabnzbd.submit(title, selftext=release_notes_text)
else:
print("Missing REDDIT_TOKEN")

View File

@@ -1,23 +1,19 @@
# Basic build requirements
# Note that not all sub-dependencies are listed, but only ones we know could cause trouble
pyinstaller==5.13.2
pyinstaller-hooks-contrib==2023.8
altgraph==0.17.3
wrapt==1.15.0
setuptools==68.2.2
certifi
# orjson does not support 32bit Windows, exclude it based on Python-version
# This way we also test ujson on Python 3.8 in the CI-tests
orjson==3.9.7; python_version > '3.8'
pyinstaller==6.17.0
packaging==25.0
pyinstaller-hooks-contrib==2025.10
altgraph==0.17.5
wrapt==2.0.1
setuptools==80.9.0
# For the Windows build
pefile==2023.2.7; sys_platform == 'win32'
pywin32-ctypes==0.2.2; sys_platform == 'win32'
pefile==2024.8.26; sys_platform == 'win32'
pywin32-ctypes==0.2.3; sys_platform == 'win32'
# For the macOS build
dmgbuild==1.6.1; sys_platform == 'darwin'
mac-alias==2.2.2; sys_platform == 'darwin'
macholib==1.16.2; sys_platform == 'darwin'
ds-store==1.3.1; sys_platform == 'darwin'
PyNaCl==1.5.0; sys_platform == 'darwin'
dmgbuild==1.6.6; sys_platform == 'darwin'
mac-alias==2.2.3; sys_platform == 'darwin'
macholib==1.16.4; sys_platform == 'darwin'
ds-store==1.3.2; sys_platform == 'darwin'
PyNaCl==1.6.1; sys_platform == 'darwin'

View File

@@ -29,6 +29,7 @@ Unicode true
!include "nsProcess.nsh"
!include "x64.nsh"
!include "servicelib.nsh"
!include "StdUtils.nsh"
;------------------------------------------------------------------
;
@@ -42,13 +43,47 @@ Unicode true
RMDir /r "${idir}"
!macroend
!define RemovePrevShortcuts "!insertmacro RemovePrevShortcuts"
!macro RemovePrevShortcuts
; Remove shortcuts, starting with current user ones (from old installs)
SetShellVarContext current
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - SafeMode.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - Documentation.url"
RMDir "$SMPROGRAMS\$MUI_TEMP"
Delete "$SMPROGRAMS\Startup\SABnzbd.lnk"
Delete "$DESKTOP\SABnzbd.lnk"
SetShellVarContext all
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - SafeMode.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - Documentation.url"
RMDir "$SMPROGRAMS\$MUI_TEMP"
Delete "$SMPROGRAMS\Startup\SABnzbd.lnk"
Delete "$DESKTOP\SABnzbd.lnk"
!macroend
;------------------------------------------------------------------
; Define names of the product
Name "${SAB_PRODUCT}"
Name "SABnzbd ${SAB_VERSION}"
VIProductVersion "${SAB_VERSIONKEY}"
VIFileVersion "${SAB_VERSIONKEY}"
VIAddVersionKey "Comments" "SABnzbd ${SAB_VERSION}"
VIAddVersionKey "CompanyName" "The SABnzbd-Team"
VIAddVersionKey "FileDescription" "SABnzbd ${SAB_VERSION}"
VIAddVersionKey "FileVersion" "${SAB_VERSION}"
VIAddVersionKey "LegalCopyright" "The SABnzbd-Team"
VIAddVersionKey "ProductName" "SABnzbd ${SAB_VERSION}"
VIAddVersionKey "ProductVersion" "${SAB_VERSION}"
OutFile "${SAB_FILE}"
InstallDir "$PROGRAMFILES\SABnzbd"
;------------------------------------------------------------------
; Some default compiler settings (uncomment and change at will):
SetCompress auto ; (can be off or force)
@@ -105,9 +140,9 @@ Unicode true
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
!insertmacro MUI_PAGE_INSTFILES
; !define MUI_FINISHPAGE_RUN
; !define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
; !define MUI_FINISHPAGE_RUN_TEXT $(MsgRunSAB)
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
!define MUI_FINISHPAGE_RUN_TEXT $(MsgRunSAB)
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(MsgShowRelNote)
!define MUI_FINISHPAGE_LINK $(MsgSupportUs)
@@ -120,12 +155,21 @@ Unicode true
!insertmacro MUI_UNPAGE_COMPONENTS
!insertmacro MUI_UNPAGE_INSTFILES
;------------------------------------------------------------------
; Run as user-level at end of install
; DOES NOT WORK
; Function PageFinishRun
; !insertmacro UAC_AsUser_ExecShell "" "$INSTDIR\SABnzbd.exe" "" "" ""
; FunctionEnd
Function PageFinishRun
; Check if SABnzbd service is installed
!insertmacro SERVICE "installed" "SABnzbd" ""
Pop $0 ;response
${If} $0 == true
; Service is installed, start the service
!insertmacro SERVICE "start" "SABnzbd" ""
${Else}
; Service not installed, run executable as user
${StdUtils.ExecShellAsUser} $0 "$INSTDIR\SABnzbd.exe" "" ""
${EndIf}
FunctionEnd
;------------------------------------------------------------------
@@ -141,18 +185,19 @@ Unicode true
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "Swedish"
!insertmacro MUI_LANGUAGE "Danish"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Norwegian"
!insertmacro MUI_LANGUAGE "Romanian"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "PortugueseBR"
!insertmacro MUI_LANGUAGE "Serbian"
!insertmacro MUI_LANGUAGE "Turkish"
!insertmacro MUI_LANGUAGE "Hebrew"
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_LANGUAGE "Czech"
!insertmacro MUI_LANGUAGE "SimpChinese"
;------------------------------------------------------------------
;Reserve Files
;If you are using solid compression, files that are required before
@@ -170,6 +215,24 @@ Section "SABnzbd" SecDummy
SetOutPath "$INSTDIR"
SetShellVarContext all
DetailPrint $(MsgShutting)
;------------------------------------------------------------------
; Shutdown any running service
!insertmacro SERVICE "stop" "SABnzbd" ""
;------------------------------------------------------------------
; Terminate SABnzbd.exe
loop:
${nsProcess::FindProcess} "SABnzbd.exe" $R0
StrCmp $R0 0 0 endcheck
${nsProcess::CloseProcess} "SABnzbd.exe" $R0
Sleep 500
Goto loop
endcheck:
${nsProcess::Unload}
;------------------------------------------------------------------
; Make sure old versions are gone (reg-key already read in onInt)
StrCmp $PREV_INST_DIR "" noPrevInstallRemove
@@ -200,9 +263,14 @@ Section "SABnzbd" SecDummy
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "URLUpdateInfo" 'https://sabnzbd.org/'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "Comments" 'The automated Usenet download tool'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "DisplayIcon" '$INSTDIR\icons\sabnzbd.ico'
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "EstimatedSize" 25674
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "EstimatedSize" 40674
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "NoRepair" -1
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "NoModify" -1
WriteRegStr HKEY_CURRENT_USER "Software\Classes\AppUserModelId\SABnzbd" "DisplayName" "SABnzbd"
WriteRegStr HKEY_CURRENT_USER "Software\Classes\AppUserModelId\SABnzbd" "IconUri" '$INSTDIR\icons\sabnzbd16_32.ico'
; write out uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
@@ -235,15 +303,13 @@ Function .onInit
${If} ${RunningX64}
StrCpy $INSTDIR "$PROGRAMFILES64\SABnzbd"
${Else}
MessageBox MB_OK $(MsgOnly64bit)
ExecShell "open" "https://sabnzbd.org/downloads"
MessageBox MB_OK|MB_ICONSTOP $(MsgOnly64bit)
Abort
${EndIf}
; Python 3.9 no longer supports Windows 7
${If} ${AtMostWin8}
MessageBox MB_OK $(MsgNoWin7)
ExecShell "open" "https://sabnzbd.org/downloads"
MessageBox MB_OK|MB_ICONSTOP $(MsgNoWin7)
Abort
${EndIf}
@@ -261,8 +327,9 @@ Function .onInit
;------------------------------------------------------------------
; Check what the user has currently set for install options
SetShellVarContext current
IfFileExists "$SMPROGRAMS\Startup\SABnzbd.lnk" 0 endCheckStartup
IfFileExists "$SMPROGRAMS\Startup\SABnzbd.lnk" 0 endCheckStartupCurrent
SectionSetFlags ${startup} 1
endCheckStartupCurrent:
SetShellVarContext all
IfFileExists "$SMPROGRAMS\Startup\SABnzbd.lnk" 0 endCheckStartup
SectionSetFlags ${startup} 1
@@ -270,11 +337,12 @@ Function .onInit
SetShellVarContext current
IfFileExists "$DESKTOP\SABnzbd.lnk" endCheckDesktop 0
SectionSetFlags ${desktop} 0 ; SAB is installed but desktop-icon not, so uncheck it
SetShellVarContext all
IfFileExists "$DESKTOP\SABnzbd.lnk" endCheckDesktop 0
SectionSetFlags ${desktop} 0 ; SAB is installed but desktop-icon not, so uncheck it
; If not present for current user, first check all user folder
SetShellVarContext all
IfFileExists "$DESKTOP\SABnzbd.lnk" endCheckDesktop 0
SectionSetFlags ${desktop} 0 ; SAB is installed but desktop-icon not, so uncheck it
endCheckDesktop:
SetShellVarContext all
Push $1
ReadRegStr $1 HKCR ".nzb" "" ; read current file association
@@ -286,31 +354,6 @@ Function .onInit
; Display language chooser
!insertmacro MUI_LANGDLL_DISPLAY
;------------------------------------------------------------------
; make sure user terminates sabnzbd.exe or else abort
;
loop:
${nsProcess::FindProcess} "SABnzbd.exe" $R0
StrCmp $R0 0 0 endcheck
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION $(MsgCloseSab) IDOK loop IDCANCEL exitinstall
exitinstall:
${nsProcess::Unload}
Abort
endcheck:
;------------------------------------------------------------------
; make sure both services aren't running
;
!insertmacro SERVICE "running" "SABnzbd" ""
Pop $0 ;response
!insertmacro SERVICE "running" "SABHelper" ""
Pop $1
${If} $0 == true
${OrIf} $1 == true
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION $(MsgCloseSab) IDOK loop IDCANCEL exitinstall
; exitinstall already defined above
${EndIf}
;------------------------------------------------------------------
; Tell users about the service change
;
@@ -318,7 +361,8 @@ Function .onInit
Pop $0 ;response
${If} $0 == true
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION $(MsgServChange) IDOK removeservices IDCANCEL exitinstall
; exitinstall already defined above
exitinstall:
Abort
removeservices:
!insertmacro SERVICE "delete" "SABHelper" ""
!insertmacro SERVICE "delete" "SABnzbd" ""
@@ -326,65 +370,30 @@ Function .onInit
FunctionEnd
;------------------------------------------------------------------
; Show the shortcuts at end of install so user can start SABnzbd
; This is instead of us trying to run SAB from the installer
;
Function .onInstSuccess
ExecShell "open" "$SMPROGRAMS\$STARTMENU_FOLDER"
FunctionEnd
;--------------------------------
; begin uninstall settings/section
UninstallText $(MsgUninstall)
Section "un.$(MsgDelProgram)" Uninstall
;make sure sabnzbd.exe isn't running..if so shut it down
DetailPrint $(MsgShutting)
${nsProcess::KillProcess} "SABnzbd.exe" $R0
${nsProcess::Unload}
DetailPrint "Process Killed"
; add delete commands to delete whatever files/registry keys/etc you installed here.
Delete "$INSTDIR\uninstall.exe"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SABnzbd"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd"
DeleteRegKey HKEY_CURRENT_USER "Software\Classes\AppUserModelId\SABnzbd"
DeleteRegKey HKEY_CURRENT_USER "Software\SABnzbd"
${RemovePrev} "$INSTDIR"
${RemovePrevShortcuts}
; Remove firewall entries
liteFirewallW::RemoveRule "$INSTDIR\SABnzbd.exe" "SABnzbd"
liteFirewallW::RemoveRule "$INSTDIR\SABnzbd-console.exe" "SABnzbd-console"
SetShellVarContext all
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - SafeMode.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - Documentation.url"
RMDir "$SMPROGRAMS\$MUI_TEMP"
Delete "$SMPROGRAMS\Startup\SABnzbd.lnk"
Delete "$DESKTOP\SABnzbd.lnk"
SetShellVarContext current
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - SafeMode.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\SABnzbd - Documentation.url"
RMDir "$SMPROGRAMS\$MUI_TEMP"
Delete "$SMPROGRAMS\Startup\SABnzbd.lnk"
Delete "$DESKTOP\SABnzbd.lnk"
DeleteRegKey HKEY_CURRENT_USER "Software\SABnzbd"
${unregisterExtension} ".nzb" "NZB File"
${RefreshShellIcons}
@@ -402,15 +411,17 @@ SectionEnd
;Language strings
LangString MsgShowRelNote ${LANG_ENGLISH} "Show Release Notes"
LangString MsgSupportUs ${LANG_ENGLISH} "Support the project, Donate!"
LangString MsgRunSAB ${LANG_ENGLISH} "Run SABnzbd"
LangString MsgCloseSab ${LANG_ENGLISH} "Please close $\"SABnzbd.exe$\" first"
LangString MsgSupportUs ${LANG_ENGLISH} "Support the project, Donate!"
LangString MsgServChange ${LANG_ENGLISH} "The SABnzbd Windows Service changed in SABnzbd 3.0.0. $\nYou will need to reinstall the SABnzbd service. $\n$\nClick `OK` to remove the existing services or `Cancel` to cancel this upgrade."
LangString MsgOnly64bit ${LANG_ENGLISH} "The installer only supports 64-bit Windows, use the standalone version to run on 32-bit Windows."
LangString MsgOnly64bit ${LANG_ENGLISH} "SABnzbd only supports 64-bit Windows."
LangString MsgNoWin7 ${LANG_ENGLISH} "The installer only supports Windows 8.1 and above, use the standalone legacy version to run on older Windows version."
LangString MsgNoWin7 ${LANG_ENGLISH} "SABnzbd only supports Windows 8.1 and above."
LangString MsgShutting ${LANG_ENGLISH} "Shutting down SABnzbd"
LangString MsgUninstall ${LANG_ENGLISH} "This will uninstall SABnzbd from your system"
@@ -424,10 +435,6 @@ SectionEnd
LangString MsgDelSettings ${LANG_ENGLISH} "Delete Settings"
LangString MsgRemoveOld ${LANG_ENGLISH} "You cannot overwrite an existing installation. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade."
LangString MsgRemoveOld2 ${LANG_ENGLISH} "Your settings and data will be preserved."
LangString MsgLangCode ${LANG_ENGLISH} "en"
Function un.onInit

View File

@@ -0,0 +1,501 @@
#################################################################################
# StdUtils plug-in for NSIS
# Copyright (C) 2004-2018 LoRd_MuldeR <MuldeR2@GMX.de>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# http://www.gnu.org/licenses/lgpl-2.1.txt
#################################################################################
# DEVELOPER NOTES:
# - Please see "https://github.com/lordmulder/stdutils/" for news and updates!
# - Please see "Docs\StdUtils\StdUtils.html" for detailed function descriptions!
# - Please see "Examples\StdUtils\StdUtilsTest.nsi" for usage examples!
#################################################################################
# FUNCTION DECLARTIONS
#################################################################################
!ifndef ___STDUTILS__NSH___
!define ___STDUTILS__NSH___
!define StdUtils.Time '!insertmacro _StdU_Time' #time(), as in C standard library
!define StdUtils.GetMinutes '!insertmacro _StdU_GetMinutes' #GetSystemTimeAsFileTime(), returns the number of minutes
!define StdUtils.GetHours '!insertmacro _StdU_GetHours' #GetSystemTimeAsFileTime(), returns the number of hours
!define StdUtils.GetDays '!insertmacro _StdU_GetDays' #GetSystemTimeAsFileTime(), returns the number of days
!define StdUtils.Rand '!insertmacro _StdU_Rand' #rand(), as in C standard library
!define StdUtils.RandMax '!insertmacro _StdU_RandMax' #rand(), as in C standard library, with maximum value
!define StdUtils.RandMinMax '!insertmacro _StdU_RandMinMax' #rand(), as in C standard library, with minimum/maximum value
!define StdUtils.RandList '!insertmacro _StdU_RandList' #rand(), as in C standard library, with list support
!define StdUtils.RandBytes '!insertmacro _StdU_RandBytes' #Generates random bytes, returned as Base64-encoded string
!define StdUtils.FormatStr '!insertmacro _StdU_FormatStr' #sprintf(), as in C standard library, one '%d' placeholder
!define StdUtils.FormatStr2 '!insertmacro _StdU_FormatStr2' #sprintf(), as in C standard library, two '%d' placeholders
!define StdUtils.FormatStr3 '!insertmacro _StdU_FormatStr3' #sprintf(), as in C standard library, three '%d' placeholders
!define StdUtils.ScanStr '!insertmacro _StdU_ScanStr' #sscanf(), as in C standard library, one '%d' placeholder
!define StdUtils.ScanStr2 '!insertmacro _StdU_ScanStr2' #sscanf(), as in C standard library, two '%d' placeholders
!define StdUtils.ScanStr3 '!insertmacro _StdU_ScanStr3' #sscanf(), as in C standard library, three '%d' placeholders
!define StdUtils.TrimStr '!insertmacro _StdU_TrimStr' #Remove whitspaces from string, left and right
!define StdUtils.TrimStrLeft '!insertmacro _StdU_TrimStrLeft' #Remove whitspaces from string, left side only
!define StdUtils.TrimStrRight '!insertmacro _StdU_TrimStrRight' #Remove whitspaces from string, right side only
!define StdUtils.RevStr '!insertmacro _StdU_RevStr' #Reverse a string, e.g. "reverse me" <-> "em esrever"
!define StdUtils.ValidFileName '!insertmacro _StdU_ValidFileName' #Test whether string is a valid file name - no paths allowed
!define StdUtils.ValidPathSpec '!insertmacro _StdU_ValidPathSpec' #Test whether string is a valid full(!) path specification
!define StdUtils.ValidDomainName '!insertmacro _StdU_ValidDomain' #Test whether string is a valid host name or domain name
!define StdUtils.StrToUtf8 '!insertmacro _StdU_StrToUtf8' #Convert string from Unicode (UTF-16) or ANSI to UTF-8 bytes
!define StdUtils.StrFromUtf8 '!insertmacro _StdU_StrFromUtf8' #Convert string from UTF-8 bytes to Unicode (UTF-16) or ANSI
!define StdUtils.SHFileMove '!insertmacro _StdU_SHFileMove' #SHFileOperation(), using the FO_MOVE operation
!define StdUtils.SHFileCopy '!insertmacro _StdU_SHFileCopy' #SHFileOperation(), using the FO_COPY operation
!define StdUtils.AppendToFile '!insertmacro _StdU_AppendToFile' #Append contents of an existing file to another file
!define StdUtils.ExecShellAsUser '!insertmacro _StdU_ExecShlUser' #ShellExecute() as NON-elevated user from elevated installer
!define StdUtils.InvokeShellVerb '!insertmacro _StdU_InvkeShlVrb' #Invokes a "shell verb", e.g. for pinning items to the taskbar
!define StdUtils.ExecShellWaitEx '!insertmacro _StdU_ExecShlWaitEx' #ShellExecuteEx(), returns the handle of the new process
!define StdUtils.WaitForProcEx '!insertmacro _StdU_WaitForProcEx' #WaitForSingleObject(), e.g. to wait for a running process
!define StdUtils.GetParameter '!insertmacro _StdU_GetParameter' #Get the value of a specific command-line option
!define StdUtils.TestParameter '!insertmacro _StdU_TestParameter' #Test whether a specific command-line option has been set
!define StdUtils.ParameterCnt '!insertmacro _StdU_ParameterCnt' #Get number of command-line tokens, similar to argc in main()
!define StdUtils.ParameterStr '!insertmacro _StdU_ParameterStr' #Get the n-th command-line token, similar to argv[i] in main()
!define StdUtils.GetAllParameters '!insertmacro _StdU_GetAllParams' #Get complete command-line, but without executable name
!define StdUtils.GetRealOSVersion '!insertmacro _StdU_GetRealOSVer' #Get the *real* Windows version number, even on Windows 8.1+
!define StdUtils.GetRealOSBuildNo '!insertmacro _StdU_GetRealOSBld' #Get the *real* Windows build number, even on Windows 8.1+
!define StdUtils.GetRealOSName '!insertmacro _StdU_GetRealOSStr' #Get the *real* Windows version, as a "friendly" name
!define StdUtils.GetOSEdition '!insertmacro _StdU_GetOSEdition' #Get the Windows edition, i.e. "workstation" or "server"
!define StdUtils.GetOSReleaseId '!insertmacro _StdU_GetOSRelIdNo' #Get the Windows release identifier (on Windows 10)
!define StdUtils.GetOSReleaseName '!insertmacro _StdU_GetOSRelIdStr' #Get the Windows release (on Windows 10), as a "friendly" name
!define StdUtils.VerifyOSVersion '!insertmacro _StdU_VrfyRealOSVer' #Compare *real* operating system to an expected version number
!define StdUtils.VerifyOSBuildNo '!insertmacro _StdU_VrfyRealOSBld' #Compare *real* operating system to an expected build number
!define StdUtils.HashText '!insertmacro _StdU_HashText' #Compute hash from text string (CRC32, MD5, SHA1/2/3, BLAKE2)
!define StdUtils.HashFile '!insertmacro _StdU_HashFile' #Compute hash from file (CRC32, MD5, SHA1/2/3, BLAKE2)
!define StdUtils.NormalizePath '!insertmacro _StdU_NormalizePath' #Simplifies the path to produce a direct, well-formed path
!define StdUtils.GetParentPath '!insertmacro _StdU_GetParentPath' #Get parent path by removing the last component from the path
!define StdUtils.SplitPath '!insertmacro _StdU_SplitPath' #Split the components of the given path
!define StdUtils.GetDrivePart '!insertmacro _StdU_GetDrivePart' #Get drive component of path
!define StdUtils.GetDirectoryPart '!insertmacro _StdU_GetDirPart' #Get directory component of path
!define StdUtils.GetFileNamePart '!insertmacro _StdU_GetFNamePart' #Get file name component of path
!define StdUtils.GetExtensionPart '!insertmacro _StdU_GetExtnPart' #Get file extension component of path
!define StdUtils.TimerCreate '!insertmacro _StdU_TimerCreate' #Create a new event-timer that will be triggered periodically
!define StdUtils.TimerDestroy '!insertmacro _StdU_TimerDestroy' #Destroy a running timer created with TimerCreate()
!define StdUtils.ProtectStr '!insertmacro _StdU_PrtctStr' #Protect a given String using Windows' DPAPI
!define StdUtils.UnprotectStr '!insertmacro _StdU_UnprtctStr' #Unprotect a string that was protected via ProtectStr()
!define StdUtils.GetLibVersion '!insertmacro _StdU_GetLibVersion' #Get the current StdUtils library version (for debugging)
!define StdUtils.SetVerbose '!insertmacro _StdU_SetVerbose' #Enable or disable "verbose" mode (for debugging)
#################################################################################
# MACRO DEFINITIONS
#################################################################################
!macro _StdU_Time out
StdUtils::Time /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetMinutes out
StdUtils::GetMinutes /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetHours out
StdUtils::GetHours /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetDays out
StdUtils::GetDays /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_Rand out
StdUtils::Rand /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_RandMax out max
push ${max}
StdUtils::RandMax /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_RandMinMax out min max
push ${min}
push ${max}
StdUtils::RandMinMax /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_RandList count max
push ${max}
push ${count}
StdUtils::RandList /NOUNLOAD
!macroend
!macro _StdU_RandBytes out count
push ${count}
StdUtils::RandBytes /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_FormatStr out format val
push `${format}`
push ${val}
StdUtils::FormatStr /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_FormatStr2 out format val1 val2
push `${format}`
push ${val1}
push ${val2}
StdUtils::FormatStr2 /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_FormatStr3 out format val1 val2 val3
push `${format}`
push ${val1}
push ${val2}
push ${val3}
StdUtils::FormatStr3 /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ScanStr out format input default
push `${format}`
push `${input}`
push ${default}
StdUtils::ScanStr /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ScanStr2 out1 out2 format input default1 default2
push `${format}`
push `${input}`
push ${default1}
push ${default2}
StdUtils::ScanStr2 /NOUNLOAD
pop ${out1}
pop ${out2}
!macroend
!macro _StdU_ScanStr3 out1 out2 out3 format input default1 default2 default3
push `${format}`
push `${input}`
push ${default1}
push ${default2}
push ${default3}
StdUtils::ScanStr3 /NOUNLOAD
pop ${out1}
pop ${out2}
pop ${out3}
!macroend
!macro _StdU_TrimStr var
push ${var}
StdUtils::TrimStr /NOUNLOAD
pop ${var}
!macroend
!macro _StdU_TrimStrLeft var
push ${var}
StdUtils::TrimStrLeft /NOUNLOAD
pop ${var}
!macroend
!macro _StdU_TrimStrRight var
push ${var}
StdUtils::TrimStrRight /NOUNLOAD
pop ${var}
!macroend
!macro _StdU_RevStr var
push ${var}
StdUtils::RevStr /NOUNLOAD
pop ${var}
!macroend
!macro _StdU_ValidFileName out test
push `${test}`
StdUtils::ValidFileName /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ValidPathSpec out test
push `${test}`
StdUtils::ValidPathSpec /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ValidDomain out test
push `${test}`
StdUtils::ValidDomainName /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_StrToUtf8 out str
push `${str}`
StdUtils::StrToUtf8 /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_StrFromUtf8 out trnc str
push ${trnc}
push `${str}`
StdUtils::StrFromUtf8 /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_SHFileMove out from to hwnd
push `${from}`
push `${to}`
push ${hwnd}
StdUtils::SHFileMove /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_SHFileCopy out from to hwnd
push `${from}`
push `${to}`
push ${hwnd}
StdUtils::SHFileCopy /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_AppendToFile out from dest offset maxlen
push `${from}`
push `${dest}`
push ${offset}
push ${maxlen}
StdUtils::AppendToFile /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ExecShlUser out file verb args
push `${file}`
push `${verb}`
push `${args}`
StdUtils::ExecShellAsUser /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_InvkeShlVrb out path file verb_id
push "${path}"
push "${file}"
push ${verb_id}
StdUtils::InvokeShellVerb /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ExecShlWaitEx out_res out_val file verb args
push `${file}`
push `${verb}`
push `${args}`
StdUtils::ExecShellWaitEx /NOUNLOAD
pop ${out_res}
pop ${out_val}
!macroend
!macro _StdU_WaitForProcEx out handle
push `${handle}`
StdUtils::WaitForProcEx /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetParameter out name default
push `${name}`
push `${default}`
StdUtils::GetParameter /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_TestParameter out name
push `${name}`
StdUtils::TestParameter /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ParameterCnt out
StdUtils::ParameterCnt /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_ParameterStr out index
push ${index}
StdUtils::ParameterStr /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetAllParams out truncate
push `${truncate}`
StdUtils::GetAllParameters /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetRealOSVer out_major out_minor out_spack
StdUtils::GetRealOsVersion /NOUNLOAD
pop ${out_major}
pop ${out_minor}
pop ${out_spack}
!macroend
!macro _StdU_GetRealOSBld out
StdUtils::GetRealOsBuildNo /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetRealOSStr out
StdUtils::GetRealOsName /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_VrfyRealOSVer out major minor spack
push `${major}`
push `${minor}`
push `${spack}`
StdUtils::VerifyRealOsVersion /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_VrfyRealOSBld out build
push `${build}`
StdUtils::VerifyRealOsBuildNo /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetOSEdition out
StdUtils::GetOsEdition /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetOSRelIdNo out
StdUtils::GetOsReleaseId /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetOSRelIdStr out
StdUtils::GetOsReleaseName /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_HashText out type text
push `${type}`
push `${text}`
StdUtils::HashText /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_HashFile out type file
push `${type}`
push `${file}`
StdUtils::HashFile /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_NormalizePath out path
push `${path}`
StdUtils::NormalizePath /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetParentPath out path
push `${path}`
StdUtils::GetParentPath /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_SplitPath out_drive out_dir out_fname out_ext path
push `${path}`
StdUtils::SplitPath /NOUNLOAD
pop ${out_drive}
pop ${out_dir}
pop ${out_fname}
pop ${out_ext}
!macroend
!macro _StdU_GetDrivePart out path
push `${path}`
StdUtils::GetDrivePart /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetDirPart out path
push `${path}`
StdUtils::GetDirectoryPart /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetFNamePart out path
push `${path}`
StdUtils::GetFileNamePart /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetExtnPart out path
push `${path}`
StdUtils::GetExtensionPart /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_TimerCreate out callback interval
GetFunctionAddress ${out} ${callback}
push ${out}
push ${interval}
StdUtils::TimerCreate /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_TimerDestroy out timer_id
push ${timer_id}
StdUtils::TimerDestroy /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_PrtctStr out dpsc salt text
push `${dpsc}`
push `${salt}`
push `${text}`
StdUtils::ProtectStr /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_UnprtctStr out trnc salt data
push `${trnc}`
push `${salt}`
push `${data}`
StdUtils::UnprotectStr /NOUNLOAD
pop ${out}
!macroend
!macro _StdU_GetLibVersion out_ver out_tst
StdUtils::GetLibVersion /NOUNLOAD
pop ${out_ver}
pop ${out_tst}
!macroend
!macro _StdU_SetVerbose enable
Push ${enable}
StdUtils::SetVerboseMode /NOUNLOAD
!macroend
#################################################################################
# MAGIC NUMBERS
#################################################################################
!define StdUtils.Const.ShellVerb.PinToTaskbar 0
!define StdUtils.Const.ShellVerb.UnpinFromTaskbar 1
!define StdUtils.Const.ShellVerb.PinToStart 2
!define StdUtils.Const.ShellVerb.UnpinFromStart 3
!endif # !___STDUTILS__NSH___

View File

Binary file not shown.

View File

@@ -1,7 +1,7 @@
##
## Bad URL Fetch Email template for SABnzbd
## This a Cheetah template
## Documentation: http://sabnzbd.wikidot.com/email-templates
## Documentation: https://sabnzbd.org/wiki/extra/email-templates
##
## Newlines and whitespace are significant!
##

View File

@@ -1,7 +1,7 @@
##
## Default Email template for SABnzbd
## This a Cheetah template
## Documentation: http://sabnzbd.wikidot.com/email-templates
## Documentation: https://sabnzbd.org/wiki/extra/email-templates
##
## Newlines and whitespace are significant!
##

View File

@@ -1,7 +1,7 @@
##
## RSS Email template for SABnzbd
## This a Cheetah template
## Documentation: http://sabnzbd.wikidot.com/email-templates
## Documentation: https://sabnzbd.org/wiki/extra/email-templates
##
## Newlines and whitespace are significant!
##

View File

@@ -12,13 +12,13 @@
<div class="modal-body">
</div>
<div class="modal-footer">
<!--#if not $windows#-->
<div class="checkbox">
<label>
<input type="checkbox" id="show_hidden_folders"> <span>$T('hiddenFolders')</span>
</label>
</div>
<!--#end if#-->
<button type="button" class="btn btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> $T('cancel')</button>
<button type="button" class="btn btn-default" id="filebrowser_modal_accept"><span class="glyphicon glyphicon-ok"></span> $T('rss-accept')</button>
</div>

View File

@@ -70,27 +70,7 @@
<script type="text/javascript" src="${root}staticcfg/js/script.js?v=$version"></script>
<script type="text/javascript">
// Set default functions for the autocomplete everywhere
jQuery.extend(jQuery.fn.typeahead.defaults, {
source: function (query, process) {
// If there's no separator, it must be a relative path
if(query.split(folderSeperator).length < 2 && this.\$element.data('initialdir')) {
query = this.\$element.data('initialdir') + folderSeperator + query;
}
// Get info from the API
return jQuery.get(folderBrowseUrl + '&compact=1&term=' + query, function (data) {
return process(data);
});
},
updater: function(item) {
// Is it a relative path?
if(item.indexOf(this.\$element.data('initialdir')) === 0) {
// Remove start
return item.replace(this.\$element.data('initialdir')+folderSeperator, '');
}
// Full path
return item
}
})
// to top right away
if(window.location.hash) {
@@ -112,7 +92,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-logo navbar-logo-small" href="${root}" title="$T('Home')">
<a class="navbar-logo navbar-logo-small" href="${root}" title="$T('Home')" data-placement="bottom">
#include $webdir + "/staticcfg/images/logo-small.svg"#
</a>
</div>

View File

@@ -29,18 +29,8 @@
</tr>
<tr>
<th scope="row">OpenSSL:</th>
<td>
$ssl_version
</td>
<td>$ssl_version</td>
</tr>
<!--#if not $certificate_validation#-->
<tr>
<th scope="row"></th>
<td>
<span class="label label-danger">$T('warning')</span> $T('explain-nosslcontext')
</td>
</tr>
<!--#end if#-->
<!--#if not $windows and not $macos#-->
<tr>
<th scope="row">Par2cmdline-turbo:</th>
@@ -88,8 +78,8 @@
<td><a href="https://github.com/sabnzbd/sabnzbd" target="_blank">https://github.com/sabnzbd/sabnzbd</a></td>
</tr>
<tr>
<th scope="row">$T('menu-irc') </th>
<td><a href="irc://irc.synirc.net/#sabnzbd"><i>#sabnzbd</i> on <i>irc.synirc.net</i></a> $T('or') (<a href="http://sabnzbd.org/live-chat/" target="_blank">webchat</a>)</td>
<th scope="row">$T('menu-live-chat') </th>
<td><a href="https://sabnzbd.org/live-chat/" target="_blank">https://sabnzbd.org/live-chat/</a> (IRC &amp; Discord)</td>
</tr>
<tr>
<th scope="row">$T('menu-issues') </th>
@@ -106,7 +96,7 @@
<div class="colmask">
<div class="padding">
<h5 class="copyright">Copyright &copy; 2007-2023 The SABnzbd-Team (<a href="https://sabnzbd.org/" target="_blank">sabnzbd.org</a>)</h5>
<h5 class="copyright">Copyright &copy; 2007-2025 by The SABnzbd-Team (<a href="https://sabnzbd.org/" target="_blank">sabnzbd.org</a>)</h5>
<p class="copyright"><small>$T('yourRights')</small></p>
</div>

View File

@@ -122,7 +122,7 @@
update: function(event, ui) {
jQuery('.Categories form.sorting-row').each(function(index, elm) {
// Update order of all elements
if(index != elm.order.value) {
if(index !== elm.order.value) {
elm.order.value = index
// Submit changed order
var data = {}

View File

@@ -77,7 +77,7 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="password_file">$T('opt-password_file')</label>
<input type="text" name="password_file" id="password_file" value="$password_file" />
<input type="text" name="password_file" id="password_file" value="$password_file" class="fileBrowserField" data-initialdir="$my_home" data-files="1" />
<span class="desc">$T('explain-password_file')</span>
</div>
<div class="field-pair">
@@ -133,7 +133,7 @@
<script type="text/javascript">
jQuery(document).ready(function() {
// Add autocomplete and file-browser
jQuery('.col1 input[name$="_dir"]').typeahead().fileBrowser();
jQuery('.col1 input[name$="_dir"], #password_file').typeahead().fileBrowser();
jQuery('#purge_log_files').click(function () {
if ( confirm("$T('confirm')") ) {

View File

@@ -26,7 +26,7 @@
</div>
<div class="field-pair">
<label class="config" for="port">$T('opt-port')</label>
<input type="number" name="port" id="port" value="$port" size="8" data-original="$port" />
<input type="number" name="port" id="port" value="$port" size="8" data-original="$port" min="0" max="65535" />
<span class="desc">$T('explain-port')</span>
</div>
<div class="field-pair">
@@ -35,7 +35,7 @@
<span class="desc">$T('explain-enable_https')</span>
<span class="desc"><span class="label label-warning">$T('warning').upper()</span> $T('explain-enable_https_warning')</span>
</div>
<div class="field-pair advanced-settings">
<div class="field-pair">
<label class="config" for="web_dir">$T('opt-web_dir')</label>
<select name="web_dir" id="web_dir">
<!--#for $webline in $web_list#-->
@@ -69,12 +69,12 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="https_port">$T('opt-https_port')</label>
<input type="number" name="https_port" id="https_port" value="$https_port" size="8" data-original="$https_port" />
<input type="number" name="https_port" id="https_port" value="$https_port" size="8" data-original="$https_port" min="0" max="65535" />
<span class="desc">$T('explain-https_port')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="https_cert">$T('opt-https_cert')</label>
<input type="text" name="https_cert" id="https_cert" value="$https_cert" />
<input type="text" name="https_cert" id="https_cert" value="$https_cert" class="fileBrowserField" data-initialdir="$my_lcldata" data-files="1" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
@@ -82,7 +82,7 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="https_key">$T('opt-https_key')</label>
<input type="text" name="https_key" id="https_key" value="$https_key" />
<input type="text" name="https_key" id="https_key" value="$https_key" class="fileBrowserField" data-initialdir="$my_lcldata" data-files="1" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
@@ -90,7 +90,7 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="https_chain">$T('opt-https_chain')</label>
<input type="text" name="https_chain" id="https_chain" value="$https_chain" />
<input type="text" name="https_chain" id="https_chain" value="$https_chain" class="fileBrowserField" data-initialdir="$my_lcldata" data-files="1" />
<span class="desc">$T('explain-https_chain')</span>
</div>
<div class="field-pair">
@@ -136,14 +136,14 @@
</div>
<div class="field-pair">
<label class="config" for="apikey_display">$T('opt-apikey')</label>
<input type="text" id="apikey_display" class="fileBrowserField" value="$apikey" readonly />
<input type="text" id="apikey_display" value="$apikey" readonly />
<button class="btn btn-default show_qrcode" title="$T('explain-qr-code')" rel="$apikey" ><span class="glyphicon glyphicon-qrcode"></span></button>
<button class="btn btn-default generate_key" id="generate_new_apikey" title="$T('button-apikey')"><span class="glyphicon glyphicon-repeat"></span></button>
<span class="desc">$T('explain-apikey')</span>
</div>
<div class="field-pair">
<label class="config" for="nzbkey">$T('opt-nzbkey')</label>
<input type="text" id="nzbkey" class="fileBrowserField" value="$nzb_key" readonly />
<input type="text" id="nzbkey" value="$nzb_key" readonly />
<button class="btn btn-default show_qrcode" title="$T('explain-qr-code')" rel="$nzb_key" ><span class="glyphicon glyphicon-qrcode"></span></button>
<button class="btn btn-default generate_key" id="generate_new_nzbkey" title="$T('button-apikey')"><span class="glyphicon glyphicon-repeat"></span></button>
<span class="desc">$T('explain-nzbkey')</span>
@@ -172,11 +172,10 @@
<option value="1" <!--#if $check_new_rel == 1 then 'selected="selected"' else ""#--> >$T('on')</option>
<option value="2" <!--#if $check_new_rel == 2 then 'selected="selected"' else ""#--> >$T('also-test')</option>
</select>
<span class="desc">$T('explain-check_new_rel')</span>
</div>
<div class="field-pair advanced-settings <!--#if int($certificate_validation) == 0 then "disabled" else ""#-->">
<div class="field-pair advanced-settings">
<label class="config" for="enable_https_verification">$T('opt-enable_https_verification')</label>
<input type="checkbox" name="enable_https_verification" id="enable_https_verification" value="1" <!--#if int($enable_https_verification) > 0 then 'checked="checked"' else ""#--> <!--#if int($certificate_validation) == 0 then "disabled=\"disabled\"" else ""#--> />
<input type="checkbox" name="enable_https_verification" id="enable_https_verification" value="1" <!--#if int($enable_https_verification) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-enable_https_verification')</span>
</div>
<div class="field-pair advanced-settings">
@@ -267,7 +266,7 @@
jQuery(document).ready(function(){
// Show the message about translating when it's non-English
function hideOrShowTranslate() {
if(jQuery('#language').val() == 'en') {
if(jQuery('#language').val() === 'en') {
jQuery('.alert-translate').hide()
} else {
jQuery('.alert-translate').show()
@@ -290,7 +289,7 @@ jQuery(document).ready(function(){
// So when exposed to internet and no password, no external limit or no username/password
var safeCheck = jQuery('#host, #inet_exposure, #${pid}_wu, #${pid}_wp')
function checkSafety() {
if(jQuery('#host').val() != 'localhost' && jQuery('#host').val() != '127.0.0.1') {
if(jQuery('#host').val() !== 'localhost' && jQuery('#host').val() !== '127.0.0.1') {
// No limitation on local-network
if(jQuery('#inet_exposure').val() > 3) {
// And no username and password?
@@ -342,6 +341,9 @@ jQuery(document).ready(function(){
}
});
// Add autocomplete and file-browser
jQuery('.fileBrowserField').typeahead().fileBrowser();
jQuery('.show_qrcode').click(function (e) {
// Show in modal
jQuery('#modal_qr .modal-dialog').width(330)
@@ -375,7 +377,7 @@ jQuery(document).ready(function(){
})
// Only allow re-generate if default certs
if(jQuery('#https_cert').val() != '$def_https_cert_file') {
if(jQuery('#https_cert').val() !== '$def_https_cert_file') {
jQuery('.generate_cert').attr('disabled', 'disabled')
}

View File

@@ -2,19 +2,21 @@
<!--#set global $help_uri = $confighelpuri + "notifications"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<!--#import apprise#-->
<!--#def show_notify_checkboxes($section_label)#-->
<!--#for $type in $notify_types#-->
<div class="field-pair">
<label class="config wide" for="${section_label}_prio_$type">
$T($notify_types[$type]).replace('/', ' / ')
</label>
<input type="checkbox" name="${section_label}_prio_$type" id="${section_label}_prio_$type" value="1" <!--#if int($getVar($section_label + '_prio_' + $type)) > 0 then 'checked="checked"' else ""#--> />
<input type="checkbox" name="${section_label}_prio_$type" id="${section_label}_prio_$type" value="1" <!--#if $getVar($section_label + '_prio_' + $type) then 'checked="checked"' else ""#--> />
</div>
<!--#end for#-->
<!--#end def#-->
<!--#def show_cat_box($section_label)#-->
<div class="col2-cats" <!--#if int($getVar($section_label + '_enable')) > 0 then '' else 'style="display:none"'#-->>
<div class="col2-cats" <!--#if $getVar($section_label + '_enable') then '' else 'style="display:none"'#-->>
<hr>
<b>$T('affectedCat')</b><br/>
<select name="${section_label}_cats" multiple="multiple" class="multiple_cats" size="$len($categories)">
@@ -56,12 +58,12 @@
</div>
<div class="field-pair">
<label class="config" for="email_full">$T('opt-email_full')</label>
<input type="checkbox" name="email_full" id="email_full" value="1" <!--#if int($email_full) > 0 then 'checked="checked"' else ""#--> />
<input type="checkbox" name="email_full" id="email_full" value="1" <!--#if $email_full then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-email_full')</span>
</div>
<div class="field-pair">
<label class="config" for="email_rss">$T('opt-email_rss')</label>
<input type="checkbox" name="email_rss" id="email_rss" value="1" <!--#if int($email_rss) > 0 then 'checked="checked"' else ""#--> />
<input type="checkbox" name="email_rss" id="email_rss" value="1" <!--#if $email_rss then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-email_rss')</span>
</div>
<div class="field-pair">
@@ -105,12 +107,12 @@
<h3>$T('section-NC')</h3>
<table>
<tr>
<td><input type="checkbox" name="ncenter_enable" id="ncenter_enable" value="1" <!--#if int($ncenter_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="ncenter_enable" id="ncenter_enable" value="1" <!--#if $ncenter_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="ncenter_enable"> $T('opt-ncenter_enable')</label></td>
</tr>
</table>
</div>
<div class="col1" <!--#if int($ncenter_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $ncenter_enable then '' else 'style="display:none"'#-->>
<fieldset>
$show_notify_checkboxes('ncenter')
<div class="field-pair no-field-pair-bg">
@@ -130,13 +132,13 @@
<h3>$T('section-AC')</h3>
<table>
<tr>
<td><input type="checkbox" name="acenter_enable" id="acenter_enable" value="1" <!--#if int($acenter_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="acenter_enable" id="acenter_enable" value="1" <!--#if $acenter_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="acenter_enable"> $T('opt-acenter_enable')</label></td>
</tr>
</table>
$show_cat_box('acenter')
</div>
<div class="col1" <!--#if int($acenter_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $acenter_enable then '' else 'style="display:none"'#-->>
<fieldset>
$show_notify_checkboxes('acenter')
<div class="field-pair no-field-pair-bg">
@@ -156,13 +158,13 @@
<h3>$T('section-OSD') <a href="$help_uri#toc4" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<table>
<tr>
<td><input type="checkbox" name="ntfosd_enable" id="ntfosd_enable" value="1" <!--#if int($ntfosd_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="ntfosd_enable" id="ntfosd_enable" value="1" <!--#if $ntfosd_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="ntfosd_enable"> $T('opt-ntfosd_enable')</label></td>
</tr>
</table>
$show_cat_box('ntfosd')
</div>
<div class="col1" <!--#if int($ntfosd_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $ntfosd_enable then '' else 'style="display:none"'#-->>
<fieldset>
$show_notify_checkboxes('ntfosd')
<div class="field-pair no-field-pair-bg">
@@ -176,19 +178,64 @@
</div>
</div>
<!--#end if#-->
<div class="section" id="apprise">
<div class="col2">
<h3>Apprise <a href="$help_uri#apprise" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<table>
<tr>
<td><input type="checkbox" name="apprise_enable" id="apprise_enable" value="1" <!--#if $apprise_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="apprise_enable"> $T('opt-apprise_enable')</label></td>
</tr>
</table>
<p>$T('explain-apprise_enable')</p>
<p>$T('version'): ${apprise.__version__}</p>
$show_cat_box('apprise')
</div>
<div class="col1" <!--#if $apprise_enable then '' else 'style="display:none"'#-->>
<fieldset>
<div class="field-pair">
<label class="config" for="apprise_urls">$T('opt-apprise_urls')</label>
<input type="text" name="apprise_urls" id="apprise_urls" value="$apprise_urls" />
<span class="desc">$T('explain-apprise_urls')</span>
</div>
<div class="field-pair">
<span class="desc">$T('explain-apprise_extra_urls')</span>
</div>
<!--#set $section_label = 'apprise'#-->
<!--#for $type in $notify_types#-->
<div class="field-pair">
<label class="config" for="${section_label}_target_${type}">
$T($notify_types[$type]).replace('/', ' / ')
</label>
<input type="checkbox" name="${section_label}_target_${type}_enable" id="${section_label}_target_${type}_enable" value="1" <!--#if $getVar($section_label + '_target_' + $type + '_enable') then 'checked="checked"' else ""#--> />
<input type="text" name="${section_label}_target_${type}" id="${section_label}_target_${type}" value="$getVar($section_label + '_target_' + $type)" placeholder="$T('opt-apprise_urls')" />
</div>
<!--#end for#-->
<div class="field-pair no-field-pair-bg">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
<button class="btn btn-default" type="button" id="test_apprise"><span class="glyphicon glyphicon-comment"></span> $T('testNotify')</button>
</div>
<div class="field-pair result-box">
<div class="alert"></div>
</div>
</fieldset>
</div>
</div>
<div class="section" id="nscript">
<div class="col2">
<h3>$T('section-NScript') <a href="$help_uri#nscript" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<table>
<tr>
<td><input type="checkbox" name="nscript_enable" id="nscript_enable" value="1" <!--#if int($nscript_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="nscript_enable" id="nscript_enable" value="1" <!--#if $nscript_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="nscript_enable"> $T('opt-nscript_enable')</label></td>
</tr>
</table>
<em>$T('explain-nscript_enable')</em><br><a href="$help_uri#nscript" target="_blank">$T('readwiki')</a>
$show_cat_box('nscript')
</div>
<div class="col1" <!--#if int($nscript_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $nscript_enable then '' else 'style="display:none"'#-->>
<fieldset>
<div class="field-pair">
<label class="config" for="nscript_script">$T('opt-nscript_script')</label>
@@ -202,7 +249,7 @@
<div class="field-pair">
<label class="config" for="nscript_parameters">$T('opt-nscript_parameters')</label>
<input type="text" name="nscript_parameters" id="nscript_parameters" value="$nscript_parameters" />
<span class="desc">$T('Optional') - $T('explain-nscript_parameters')</span>
<span class="desc">$T('Optional') - $T('readwiki')</span>
</div>
$show_notify_checkboxes('nscript')
<div class="field-pair no-field-pair-bg">
@@ -220,14 +267,14 @@
<h3>$T('section-Prowl')</h3>
<table>
<tr>
<td><input type="checkbox" name="prowl_enable" id="prowl_enable" value="1" <!--#if int($prowl_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="prowl_enable" id="prowl_enable" value="1" <!--#if $prowl_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="prowl_enable"> $T('opt-prowl_enable')</label></td>
</tr>
</table>
<em>$T('explain-prowl_enable')</em>
$show_cat_box('prowl')
</div>
<div class="col1" <!--#if int($prowl_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $prowl_enable then '' else 'style="display:none"'#-->>
<fieldset>
<div class="field-pair">
<label class="config" for="prowl_apikey">$T('opt-prowl_apikey')</label>
@@ -241,12 +288,12 @@
$T($notify_types[$type]).replace('/', ' / ')
</label>
<select name="${section_label}_prio_$type" id="${section_label}_prio_$type">
<option value="-3" <!--#if $getVar($section_label + '_prio_' + $type) == "-3" then 'selected="selected"' else ""#--> >$T('prowl-off')</option>
<option value="-2" <!--#if $getVar($section_label + '_prio_' + $type) == "-2" then 'selected="selected"' else ""#--> >$T('prowl-very-low')</option>
<option value="-1" <!--#if $getVar($section_label + '_prio_' + $type) == "-1" then 'selected="selected"' else ""#--> >$T('prowl-moderate')</option>
<option value="0" <!--#if $getVar($section_label + '_prio_' + $type) == "0" then 'selected="selected"' else ""#--> >$T('prowl-normal')</option>
<option value="1" <!--#if $getVar($section_label + '_prio_' + $type) == "1" then 'selected="selected"' else ""#--> >$T('prowl-high')</option>
<option value="2" <!--#if $getVar($section_label + '_prio_' + $type) == "2" then 'selected="selected"' else ""#--> >$T('prowl-emergency')</option>
<option value="-3" <!--#if $getVar($section_label + '_prio_' + $type) == -3 then 'selected="selected"' else ""#--> >$T('prowl-off')</option>
<option value="-2" <!--#if $getVar($section_label + '_prio_' + $type) == -2 then 'selected="selected"' else ""#--> >$T('prowl-very-low')</option>
<option value="-1" <!--#if $getVar($section_label + '_prio_' + $type) == -1 then 'selected="selected"' else ""#--> >$T('prowl-moderate')</option>
<option value="0" <!--#if $getVar($section_label + '_prio_' + $type) == 0 then 'selected="selected"' else ""#--> >$T('prowl-normal')</option>
<option value="1" <!--#if $getVar($section_label + '_prio_' + $type) == 1 then 'selected="selected"' else ""#--> >$T('prowl-high')</option>
<option value="2" <!--#if $getVar($section_label + '_prio_' + $type) == 2 then 'selected="selected"' else ""#--> >$T('prowl-emergency')</option>
</select>
</div>
<!--#end for#-->
@@ -266,14 +313,14 @@
<h3>$T('section-Pushover')</h3>
<table>
<tr>
<td><input type="checkbox" name="pushover_enable" id="pushover_enable" value="1" <!--#if int($pushover_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="pushover_enable" id="pushover_enable" value="1" <!--#if $pushover_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="pushover_enable"> $T('opt-pushover_enable')</label></td>
</tr>
</table>
<em>$T('explain-pushover_enable')</em>
$show_cat_box('pushover')
</div>
<div class="col1" <!--#if int($pushover_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $pushover_enable then '' else 'style="display:none"'#-->>
<fieldset>
<div class="field-pair">
<label class="config" for="pushover_token">$T('opt-pushover_token')</label>
@@ -307,12 +354,12 @@
$T($notify_types[$type]).replace('/', ' / ')
</label>
<select name="${section_label}_prio_$type" id="${section_label}_prio_$type">
<option value="-3" <!--#if $getVar($section_label + '_prio_' + $type) == "-3" then 'selected="selected"' else ""#--> >$T('pushover-off')</option>
<option value="-2" <!--#if $getVar($section_label + '_prio_' + $type) == "-2" then 'selected="selected"' else ""#--> >$T('prowl-very-low')</option>
<option value="-1" <!--#if $getVar($section_label + '_prio_' + $type) == "-1" then 'selected="selected"' else ""#--> >$T('pushover-low')</option>
<option value="0" <!--#if $getVar($section_label + '_prio_' + $type) == "0" then 'selected="selected"' else ""#--> >$T('prowl-normal')</option>
<option value="1" <!--#if $getVar($section_label + '_prio_' + $type) == "1" then 'selected="selected"' else ""#--> >$T('pushover-high')</option>
<option value="2" <!--#if $getVar($section_label + '_prio_' + $type) == "2" then 'selected="selected"' else ""#--> >$T('prowl-emergency')</option>
<option value="-3" <!--#if $getVar($section_label + '_prio_' + $type) == -3 then 'selected="selected"' else ""#--> >$T('pushover-off')</option>
<option value="-2" <!--#if $getVar($section_label + '_prio_' + $type) == -2 then 'selected="selected"' else ""#--> >$T('prowl-very-low')</option>
<option value="-1" <!--#if $getVar($section_label + '_prio_' + $type) == -1 then 'selected="selected"' else ""#--> >$T('pushover-low')</option>
<option value="0" <!--#if $getVar($section_label + '_prio_' + $type) == 0 then 'selected="selected"' else ""#--> >$T('prowl-normal')</option>
<option value="1" <!--#if $getVar($section_label + '_prio_' + $type) == 1 then 'selected="selected"' else ""#--> >$T('pushover-high')</option>
<option value="2" <!--#if $getVar($section_label + '_prio_' + $type) == 2 then 'selected="selected"' else ""#--> >$T('prowl-emergency')</option>
</select>
</div>
<!--#end for#-->
@@ -331,14 +378,14 @@
<h3>$T('section-Pushbullet')</h3>
<table>
<tr>
<td><input type="checkbox" name="pushbullet_enable" id="pushbullet_enable" value="1" <!--#if int($pushbullet_enable) > 0 then 'checked="checked"' else ""#--> /></td>
<td><input type="checkbox" name="pushbullet_enable" id="pushbullet_enable" value="1" <!--#if $pushbullet_enable then 'checked="checked"' else ""#--> /></td>
<td><label for="pushbullet_enable"> $T('opt-pushbullet_enable')</label></td>
</tr>
</table>
<em>$T('explain-pushbullet_enable')</em>
$show_cat_box('pushbullet')
</div>
<div class="col1" <!--#if int($pushbullet_enable) > 0 then '' else 'style="display:none"'#-->>
<div class="col1" <!--#if $pushbullet_enable then '' else 'style="display:none"'#-->>
<fieldset>
<div class="field-pair">
<label class="config" for="pushbullet_apikey">$T('opt-pushbullet_apikey')</label>
@@ -426,7 +473,7 @@ jQuery(document).ready(function(){
}
})
}
jQuery('#test_email, #test_notif, #test_windows, #test_pushbullet, #test_pushover, #test_prowl, #test_osd, #test_nscript').click(function () {
jQuery('#test_email, #test_notif, #test_windows, #test_apprise, #test_pushbullet, #test_pushover, #test_prowl, #test_osd, #test_nscript').click(function () {
testNotification(this)
})
});

View File

@@ -616,7 +616,7 @@ jQuery(document).ready(function(){
// Only the Accept filter needs all the options
jQuery('form[action="upd_rss_filter"]').find('select[name="filter_type"]').change(function() {
jQuery(this).parent().parent().find('select:not([name="filter_type"])').attr('disabled', jQuery(this).val() != "A" && jQuery(this).val() != "S")
jQuery(this).parent().parent().find('select:not([name="filter_type"])').attr('disabled', jQuery(this).val() !== "A" && jQuery(this).val() !== "S")
})
// Trigger on-load for all
jQuery('.disabled_options_rule').find('td select:not([name="filter_type"])').attr('disabled', true)

View File

@@ -117,7 +117,7 @@ else:
jQuery('#arguments').val((jQuery(this).find('option:selected').data('action')))
// Is it speedlimit?
if(jQuery(this).find('option:selected').val() == 'speedlimit') {
if(jQuery(this).find('option:selected').val() === 'speedlimit') {
jQuery('#hidden_arguments').show()
jQuery('#hidden_arguments input').attr('placeholder', 'Bytes/s, "1M" = 1 MB/s, "500K" = 500 KB/s')
} else {

View File

@@ -28,7 +28,7 @@
</label>
<div class="advanced-buttonSeperator"></div>
<div class="chart-selector-container" title="$T('selectedDates')">
<div class="chart-selector-container" title="$T('selectedDates')" data-placement="bottom">
<span class="glyphicon glyphicon-signal"></span>
<!--#set today = datetime.date.today()#-->
<input type="date" name="chart-start" id="chart-start" value="<!--#echo (today-datetime.timedelta(days=30)).strftime('%Y-%m-%d')#-->"> -
@@ -59,7 +59,7 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="port">$T('srv-port')</label>
<input type="number" name="port" id="port" size="8" value="563" min="0" />
<input type="number" name="port" id="port" size="8" value="563" min="0" max="65535" />
</div>
<div class="field-pair">
<label class="config" for="ssl">$T('srv-ssl')</label>
@@ -91,14 +91,15 @@
<label class="config" for="timeout">$T('srv-timeout')</label>
<input type="number" name="timeout" id="timeout" min="20" max="240" /> <i>$T('seconds')</i>
</div>
<div class="field-pair <!--#if int($certificate_validation) == 0 then "disabled" else ""#--> advanced-settings">
<div class="field-pair advanced-settings">
<label class="config" for="ssl_verify">$T('opt-ssl_verify')</label>
<select name="ssl_verify" id="ssl_verify" <!--#if int($certificate_validation) == 0 then "disabled=\"disabled\"" else ""#-->>
<option value="2" selected>$T('ssl_verify-strict')</option>
<option value="1">$T('ssl_verify-normal')</option>
<select name="ssl_verify" id="ssl_verify">
<option value="3" selected>$T('ssl_verify-strict')</option>
<option value="2">$T('ssl_verify-medium')</option>
<option value="1">$T('ssl_verify-minimal')</option>
<option value="0">$T('ssl_verify-disabled')</option>
</select>
<span class="desc">$T('explain-ssl_verify').replace('. ', '.<br/>')</span>
<span class="desc">$T('explain-ssl_verify').replace('-', '<br/>-')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="ssl_ciphers">$T('opt-ssl_ciphers')</label>
@@ -106,11 +107,6 @@
<span class="desc">$T('explain-ssl_ciphers') <br>$T('readwiki')
<a href="https://sabnzbd.org/wiki/advanced/ssl-ciphers" target="_blank">https://sabnzbd.org/wiki/advanced/ssl-ciphers</a></span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="send_group">$T('srv-send_group')</label>
<input type="checkbox" name="send_group" id="send_group" value="1" />
<span class="desc">$T('srv-explain-send_group')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="required">$T('srv-required')</label>
<input type="checkbox" name="required" id="required" value="1" />
@@ -121,6 +117,12 @@
<input type="checkbox" name="optional" id="optional" value="1" />
<span class="desc">$T('explain-optional')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="pipelining_requests">$T('srv-pipelining_requests')</label>
<input type="number" name="pipelining_requests" id="pipelining_requests" min="1" max="20" value="1" />
<span class="desc">$T('explain-pipelining_requests')<br>$T('readwiki')
<a href="https://sabnzbd.org/wiki/advanced/nntp-pipelining" target="_blank">https://sabnzbd.org/wiki/advanced/nntp-pipelining</a></span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="expire_date">$T('srv-expire_date')</label>
<input type="date" name="expire_date" id="expire_date" />
@@ -136,7 +138,7 @@
<textarea name="notes" id="notes" rows="3" cols="50"></textarea>
</div>
<div class="field-pair no-field-pair-bg">
<button class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> $T('button-addServer')</button>
<button class="btn btn-default addNewServer" disabled data-toggle="tooltip" data-placement="top" title="$T('wizard-test-server-required')"><span class="glyphicon glyphicon-plus"></span> $T('button-addServer')</button>
<button class="btn btn-default testServer" type="button"><span class="glyphicon glyphicon-sort"></span> $T('button-testServer')</button>
</div>
<div class="field-pair result-box">
@@ -147,7 +149,7 @@
</div>
</div>
<!--#set $prio_colors = ["#59cc33", "#3366cc","#7f33cc", "#cc33a6", "#cc3333"] #-->
<!--#set $prio_colors = ["#59cc33", "#26a69a", "#3366cc", "#7f33cc", "#cc33a6", "#f39c12", "#cc3333", "#8d6e63"] #-->
<!--#set $cur_prio_color = -1 #-->
<!--#set $last_prio = -1 #-->
<!--#for $cur, $server in enumerate($servers) #-->
@@ -176,6 +178,9 @@
</table>
<button type="button" class="btn btn-default showserver"><span class="glyphicon glyphicon-pencil"></span> $T('showDetails')</button>
<button type="button" class="btn btn-default clrServer"><span class="glyphicon glyphicon-remove"></span> $T('button-clrServer')</button>
<!--#if $server['notes'] #-->
<p>$server['notes'].replace('\n', '<br>')</p>
<!--#end if#-->
</div>
<div class="col1" style="display:none;">
<input type="hidden" name="enable" id="enable$cur" value="$int($server['enable'])" />
@@ -190,7 +195,7 @@
</div>
<div class="field-pair advanced-settings">
<label class="config" for="port$cur">$T('srv-port')</label>
<input type="number" name="port" id="port$cur" value="$server['port']" size="8" min="0" required />
<input type="number" name="port" id="port$cur" value="$server['port']" size="8" min="0" max="65535" required />
</div>
<div class="field-pair">
<label class="config" for="ssl$cur">$T('srv-ssl')</label>
@@ -223,14 +228,15 @@
<input type="number" name="timeout" id="timeout$cur" value="$server['timeout']" min="20" max="240" required /> <i>$T('seconds')</i>
</div>
<div class="field-pair <!--#if int($certificate_validation) == 0 then "disabled" else ""#--> advanced-settings">
<div class="field-pair advanced-settings">
<label class="config" for="ssl_verify$cur">$T('opt-ssl_verify')</label>
<select name="ssl_verify" id="ssl_verify$cur" <!--#if int($certificate_validation) == 0 then "disabled=\"disabled\"" else ""#-->>
<option value="2" <!--#if $server['ssl_verify'] == 2 then 'selected="selected"' else ""#--> >$T('ssl_verify-strict')</option>
<option value="1" <!--#if $server['ssl_verify'] == 1 then 'selected="selected"' else ""#--> >$T('ssl_verify-normal')</option>
<select name="ssl_verify" id="ssl_verify$cur">
<option value="3" <!--#if $server['ssl_verify'] == 3 then 'selected="selected"' else ""#--> >$T('ssl_verify-strict')</option>
<option value="2" <!--#if $server['ssl_verify'] == 2 then 'selected="selected"' else ""#--> >$T('ssl_verify-medium')</option>
<option value="1" <!--#if $server['ssl_verify'] == 1 then 'selected="selected"' else ""#--> >$T('ssl_verify-minimal')</option>
<option value="0" <!--#if $server['ssl_verify'] == 0 then 'selected="selected"' else ""#--> >$T('ssl_verify-disabled')</option>
</select>
<span class="desc">$T('explain-ssl_verify').replace('. ', '.<br/>')</span>
<span class="desc">$T('explain-ssl_verify').replace('-', '<br/>-')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="ssl_ciphers$cur">$T('opt-ssl_ciphers')</label>
@@ -249,9 +255,10 @@
<span class="desc">$T('explain-optional')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="send_group$cur">$T('srv-send_group')</label>
<input type="checkbox" name="send_group" id="send_group$cur" value="1" <!--#if int($server['send_group']) != 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('srv-explain-send_group')</span>
<label class="config" for="pipelining_requests$cur">$T('srv-pipelining_requests')</label>
<input type="number" name="pipelining_requests" id="pipelining_requests$cur" value="$server['pipelining_requests']" min="1" max="20" required />
<span class="desc">$T('explain-pipelining_requests')<br>$T('readwiki')
<a href="https://sabnzbd.org/wiki/advanced/nntp-pipelining" target="_blank">https://sabnzbd.org/wiki/advanced/nntp-pipelining</a></span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="expire_date$cur">$T('srv-expire_date')</label>
@@ -298,7 +305,7 @@
<p><b>$T('srv-expire_date'):</b> $(server['expire_date'])</p>
<!--#end if#-->
<!--#if $server['quota']#-->
<p><b>$T('quota-left'):</b> $(server['quota_left'])B</p>
<p><b>$T('quota-left'):</b> $(server['quota_left'])</p>
<!--#end if#-->
</div>
<div class="server-chart" data-serverid="${cur}">
@@ -469,14 +476,14 @@
When finished loading
**/
jQuery(document).ready(function(){
// Exception when change of priority, reload
jQuery('input[name="priority"], input[name="displayname"]').on('change', function() {
jQuery('.fullform').submit(function() {
// No ajax this time
jQuery('input[name="ajax"]').val('')
// Skip the fancy stuff, just submit
this.submit()
})
// Initialize tooltips
jQuery('[data-toggle="tooltip"]').tooltip()
// Reload form in case we change items that make the servers appear different
jQuery('input[name="priority"], input[name="displayname"], textarea[name="notes"]').on('change', function(event) {
var parentForm = jQuery(event.target).parents("form")
parentForm.unbind("submit")
parentForm.find('input[name="ajax"]').val('')
})
/**
@@ -525,13 +532,13 @@
var portBox = jQuery(this).parent().parent().find('[name="port"]')
if(this.checked) {
// Enabled SSL change port when not already a custom port
if(portBox.val() == '119') {
if(portBox.val() === '119') {
portBox.val('563')
portBox.addClass('port-highlight')
}
} else {
// Remove SSL port
if(portBox.val() == '563') {
if(portBox.val() === '563') {
portBox.val('119')
portBox.addClass('port-highlight')
}
@@ -564,9 +571,26 @@
if(data.value.result) {
resultBox.addClass('alert-success')
resultBox.prepend('<span class="glyphicon glyphicon-ok-sign"></span> ')
// Allow adding the new server if we are in the new-server section
if(theButton.parents("form[action='addServer']").length) {
jQuery(".addNewServer").removeAttr("disabled")
jQuery(".addNewServer").removeAttr("data-toggle")
jQuery(".addNewServer").removeAttr("title")
jQuery(".addNewServer").tooltip("destroy")
}
} else {
resultBox.addClass('alert-danger')
resultBox.prepend('<span class="glyphicon glyphicon-exclamation-sign"></span> ')
// Disable the adding of new server, just to be sure
if(theButton.parents("form[action='addServer']").length) {
jQuery(".addNewServer").attr("disabled", "disabled")
jQuery(".addNewServer").attr("data-toggle", "tooltip")
jQuery(".addNewServer").attr("data-placement", "top")
jQuery(".addNewServer").attr("title", "$T('wizard-test-server-required')")
jQuery(".addNewServer").tooltip()
}
}
});
});
@@ -615,15 +639,15 @@
function receiveMessage(event) {
// Check origin of message for security reasons
if(event.origin === 'https://sabnzbd.org') {
if(event.data == 'show_server') {
if(event.data === 'show_server') {
jQuery('.Servers .server-frame').show()
jQuery('.Servers .server-frame a').click(function () {
localStorage.setItem("server-frame-hide-$version", "hide")
jQuery('.Servers .server-frame').hide()
})
}
if(event.data == 'hide_server') {
// Hide and don't load anymore untill the next release
if(event.data === 'hide_server') {
// Hide and don't load anymore until the next release
jQuery('.Servers .server-frame').hide()
localStorage.setItem("server-frame-hide-$version", "hide")
}

View File

@@ -1,12 +1,11 @@
<!--#set global $pane="Sorting"#-->
<!--#set global $help_uri = $confighelpuri + "sorting"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="padTable section explain-sorting">
<a class="main-helplink" href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
$T('explain-sorting')
</div>
<div class="colmask">
<div class="padTable section">
<a class="main-helplink" href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
$T('explain-sorting')
</div>
<div class="padding alt section">
<button type="button" class="btn btn-default addSorter"><span class="glyphicon glyphicon-plus"></span> $T('add-sorter')</button>
<label for="advanced-settings-button" class="form-control advanced-button ">
@@ -72,7 +71,7 @@
<div class="field-pair">
<label class="config" for="field_sort_string_$cur">$T('sortString')</label>
<input type="text" name="sort_string" id="field_sort_string_$cur" value="$slot.sort_string" required="required" />
<button type="button" title="$T('sort-legenda')" class="btn btn-default patternKey" onclick="jQuery('#pattern_explainer_$cur').toggle(); window.scrollBy(0, 500);">
<button type="button" class="btn btn-default patternKey" onclick="jQuery('#pattern_explainer_$cur').toggle(); window.scrollBy(0, 500);">
<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> $T('sort-legenda')
</button>
</div>
@@ -345,7 +344,7 @@
</div>
<!--#if len($slotinfo) == 1 and ("tv" in $categories or "movies" in $categories)#-->
<div class="section align-center alt sorting-quick-setup">
<div class="section align-center sorting-quick-setup">
<h3>$T('sort-quick-add'):</h3>
<!--#if "tv" in $categories#-->
<form action="save_sorter" method="post" autocomplete="off">
@@ -493,7 +492,7 @@
update: function(event, ui) {
jQuery('.Sorting form.sorting-row').each(function(index, elm) {
// Update order of all elements
if(index != elm.order.value) {
if(index !== elm.order.value) {
elm.order.value = index
// Submit changed order
var data = {}

View File

@@ -41,7 +41,7 @@
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<div class="field-pair advanced-settings">
<label class="config" for="pre_script">$T('opt-pre_script')</label>
<select name="pre_script" id="pre_script">
<!--#for $sc in $scripts#-->
@@ -54,9 +54,22 @@
</select>
<span class="desc">$T('explain-pre_script')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="end_queue_script">$T('opt-end_queue_script')</label>
<select name="end_queue_script" id="end_queue_script">
<!--#for $sc in $scripts#-->
<!--#if $sc.lower() == $end_queue_script.lower()#-->
<option value="$sc" selected="selected">$Tspec($sc)</option>
<!--#else#-->
<option value="$sc">$Tspec($sc)</option>
<!--#end if#-->
<!--#end for#-->
</select>
<span class="desc">$T('explain-end_queue_script')</span>
</div>
<div class="field-pair">
<label class="config" for="propagation_delay">$T('opt-propagation_delay')</label>
<input type="number" name="propagation_delay" id="propagation_delay" value="$propagation_delay" /> <i>$T('minutes')</i>
<input type="number" name="propagation_delay" id="propagation_delay" value="$propagation_delay" min="0" /> <i>$T('minutes')</i>
<span class="desc">$T('explain-propagation_delay')</span>
</div>
<div class="field-pair advanced-settings">
@@ -80,33 +93,39 @@
<option value="0" <!--#if int($no_dupes) == 0 then 'selected="selected"' else ""#--> >$T('nodupes-off')</option>
<option value="4" <!--#if int($no_dupes) == 4 then 'selected="selected"' else ""#--> >$T('nodupes-tag')</option>
<option value="2" <!--#if int($no_dupes) == 2 then 'selected="selected"' else ""#--> >$T('nodupes-pause')</option>
<option value="3" <!--#if int($no_dupes) == 3 then 'selected="selected"' else ""#--> >$T('nodupes-fail')</option>
<option value="3" <!--#if int($no_dupes) == 3 then 'selected="selected"' else ""#--> >$T('fail-to-history')</option>
<option value="1" <!--#if int($no_dupes) == 1 then 'selected="selected"' else ""#--> >$T('nodupes-ignore')</option>
</select>
<span class="desc">$T('explain-no_dupes')</span>
<span class="desc">
$T('explain-no_dupes')<br>
<a href="https://sabnzbd.org/wiki/duplicate-detection" target="_blank">https://sabnzbd.org/wiki/duplicate-detection</a>
</span>
</div>
<div class="field-pair">
<label class="config" for="no_series_dupes">$T('opt-no_series_dupes')</label>
<select name="no_series_dupes" id="no_series_dupes">
<option value="0" <!--#if int($no_series_dupes) == 0 then 'selected="selected"' else ""#--> >$T('nodupes-off')</option>
<option value="4" <!--#if int($no_series_dupes) == 4 then 'selected="selected"' else ""#--> >$T('nodupes-tag')</option>
<option value="2" <!--#if int($no_series_dupes) == 2 then 'selected="selected"' else ""#--> >$T('nodupes-pause')</option>
<option value="3" <!--#if int($no_series_dupes) == 3 then 'selected="selected"' else ""#--> >$T('nodupes-fail')</option>
<option value="1" <!--#if int($no_series_dupes) == 1 then 'selected="selected"' else ""#--> >$T('nodupes-ignore')</option>
<label class="config" for="no_smart_dupes">$T('opt-no_smart_dupes')</label>
<select name="no_smart_dupes" id="no_smart_dupes">
<option value="0" <!--#if int($no_smart_dupes) == 0 then 'selected="selected"' else ""#--> >$T('nodupes-off')</option>
<option value="4" <!--#if int($no_smart_dupes) == 4 then 'selected="selected"' else ""#--> >$T('nodupes-tag')</option>
<option value="2" <!--#if int($no_smart_dupes) == 2 then 'selected="selected"' else ""#--> >$T('nodupes-pause')</option>
<option value="3" <!--#if int($no_smart_dupes) == 3 then 'selected="selected"' else ""#--> >$T('fail-to-history')</option>
<option value="1" <!--#if int($no_smart_dupes) == 1 then 'selected="selected"' else ""#--> >$T('nodupes-ignore')</option>
</select>
<span class="desc">$T('explain-no_series_dupes')</span>
<span class="desc">
$T('explain-no_smart_dupes')<br>
<a href="https://sabnzbd.org/wiki/duplicate-detection" target="_blank">https://sabnzbd.org/wiki/duplicate-detection</a>
</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="series_propercheck">$T('opt-series_propercheck')</label>
<input type="checkbox" name="series_propercheck" id="series_propercheck" value="1" <!--#if int($series_propercheck) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-series_propercheck')</span>
<label class="config" for="dupes_propercheck">$T('opt-dupes_propercheck')</label>
<input type="checkbox" name="dupes_propercheck" id="dupes_propercheck" value="1" <!--#if int($dupes_propercheck) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-dupes_propercheck')</span>
</div>
<div class="field-pair">
<label class="config" for="pause_on_pwrar">$T('opt-pause_on_pwrar')</label>
<select name="pause_on_pwrar" id="pause_on_pwrar">
<option value="0" <!--#if int($pause_on_pwrar) == 0 then 'selected="selected"' else ""#--> >$T('nodupes-off')</option>
<option value="1" <!--#if int($pause_on_pwrar) == 1 then 'selected="selected"' else ""#--> >$T('nodupes-pause')</option>
<option value="2" <!--#if int($pause_on_pwrar) == 2 then 'selected="selected"' else ""#--> >$T('abort')</option>
<option value="2" <!--#if int($pause_on_pwrar) == 2 then 'selected="selected"' else ""#--> >$T('fail-to-history')</option>
</select>
<span class="desc">$T('explain-pause_on_pwrar')</span>
</div>
@@ -124,7 +143,7 @@
<select name="action_on_unwanted_extensions" id="action_on_unwanted_extensions">
<option value="0" <!--#if int($action_on_unwanted_extensions) == 0 then 'selected="selected"' else ""#--> >$T('nodupes-off')</option>
<option value="1" <!--#if int($action_on_unwanted_extensions) == 1 then 'selected="selected"' else ""#--> >$T('nodupes-pause')</option>
<option value="2" <!--#if int($action_on_unwanted_extensions) == 2 then 'selected="selected"' else ""#--> >$T('abort')</option>
<option value="2" <!--#if int($action_on_unwanted_extensions) == 2 then 'selected="selected"' else ""#--> >$T('fail-to-history')</option>
</select>
<span class="desc">$T('explain-action_on_unwanted_extensions')</span>
</div>
@@ -174,12 +193,12 @@
<div class="field-pair advanced-settings <!--#if not $have_nice then "disabled" else "" #-->">
<label class="config" for="nice">$T('opt-nice')</label>
<input type="text" name="nice" id="nice" value="$nice" <!--#if not $have_nice then 'readonly="readonly" disabled="disabled"' else "" #--> />
<span class="desc">$T('explain-nice')</span>
<span class="desc">$T('readwiki')</span>
</div>
<div class="field-pair advanced-settings <!--#if not $have_ionice then "disabled" else "" #-->">
<label class="config" for="ionice">$T('opt-ionice')</label>
<input type="text" name="ionice" id="ionice" value="$ionice" <!--#if not $have_ionice then 'readonly="readonly" disabled="disabled"' else "" #--> />
<span class="desc">$T('explain-ionice')</span>
<span class="desc">$T('readwiki')</span>
</div>
<!--#else#-->
<div class="field-pair advanced-settings">
@@ -191,13 +210,13 @@
<option value="2" <!--#if int($win_process_prio) == 2 then 'selected="selected"' else ""#-->>$T('win_process_prio-low')</option>
<option value="1" <!--#if int($win_process_prio) == 1 then 'selected="selected"' else ""#-->>$T('win_process_prio-idle')</option>
</select>
<span class="desc">$T('explain-win_process_prio')</span>
<span class="desc">$T('readwiki')</span>
</div>
<!--#end if#-->
<div class="field-pair advanced-settings">
<label class="config" for="par_option">$T('opt-par_option')</label>
<input type="text" name="par_option" id="par_option" value="$par_option" />
<span class="desc">$T('explain-par_option')</span>
<span class="desc">$T('readwiki')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="sfv_check">$T('opt-sfv_check')</label>
@@ -240,16 +259,17 @@
<span class="desc">$T('explain-cleanup_list')</span>
</div>
<div class="field-pair">
<label class="config" for="history_retention_select">$T('opt-history_retention')</label>
<input type="hidden" name="history_retention" id="history_retention" value="$history_retention">
<select name="history_retention_select" id="history_retention_select">
<option value="0">$T('history_retention-all')</option>
<option value="n">$T('history_retention-number')</option>
<option value="d">$T('history_retention-days')</option>
<option value="-1">$T('history_retention-none')</option>
<label class="config" for="history_retention_option">$T('opt-history_retention')</label>
<select name="history_retention_option" id="history_retention_option">
<option value="all" <!--#if $auto_sort == "all" then 'selected="selected"' else ""#-->>$T('history_retention-all')</option>
<option value="number-archive" <!--#if $history_retention_option == "number-archive" then 'selected="selected"' else ""#-->>$T('history_retention-number-archive')</option>
<option value="number-delete" <!--#if $history_retention_option == "number-delete" then 'selected="selected"' else ""#-->>$T('history_retention-number-delete')</option>
<option value="days-archive" <!--#if $history_retention_option == "days-archive" then 'selected="selected"' else ""#-->>$T('history_retention-days-archive')</option>
<option value="days-delete" <!--#if $history_retention_option == "days-delete" then 'selected="selected"' else ""#-->>$T('history_retention-days-delete')</option>
<option value="all-archive" <!--#if $history_retention_option == "all-archive" then 'selected="selected"' else ""#-->>$T('history_retention-archive')</option>
<option value="all-delete" <!--#if $history_retention_option == "all-delete" then 'selected="selected"' else ""#-->>$T('history_retention-none')</option>
</select>
<input type="number" id="history_retention_number" name="history_retention_number" min="1">
<span class="desc">$T('explain-history_retention').replace('. ', '.<br/>')</span>
<input type="number" id="history_retention_number" name="history_retention_number" min="1" value="$history_retention_number">
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
@@ -340,52 +360,24 @@
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#history_retention_select, #history_retention_number').on('change', updateHistoryRetention)
jQuery('#history_retention_option').on('change', updateHistoryRetention)
function updateHistoryRetention() {
var retention_setting = jQuery('#history_retention')
var retention_select = jQuery('#history_retention_select').val()
var retention_option = jQuery('#history_retention_option').val()
var retention_number = jQuery('#history_retention_number')
// Keep all or keep none
if(retention_select == "0" || retention_select == "-1") {
if(retention_option === "number-archive" || retention_option === "number-delete") {
retention_number.show()
retention_number.attr('placeholder', '$T('history_retention-limit')')
} else if(retention_option === "days-archive" || retention_option === "days-delete") {
retention_number.show()
retention_number.attr('placeholder', '$T('days').capitalize()')
} else {
retention_number.hide()
retention_number.val('')
retention_number.attr('placeholder', '')
retention_setting.val(retention_select)
} else {
retention_number.show()
// Days or number?
if(retention_select.indexOf("d") !== -1) {
retention_number.attr('placeholder', '$T('days').capitalize()')
if(retention_number.val()) {
retention_setting.val(retention_number.val() + 'd')
} else if(parseInt(retention_setting.val()) > 0) {
retention_number.val(parseInt(retention_setting.val()))
}
} else {
retention_number.attr('placeholder', '$T('history_retention-limit')')
if(retention_number.val()) {
retention_setting.val(retention_number.val())
} else if(parseInt(retention_setting.val()) > 0) {
retention_number.val(parseInt(retention_setting.val()))
}
}
}
}
// Set the history-retention settig
var retention_setting_value = jQuery('#history_retention').val()
if(parseInt(retention_setting_value) > 0) {
// Days or number?
if(retention_setting_value.indexOf("d") !== -1) {
jQuery('#history_retention_select').val("d")
} else {
jQuery('#history_retention_select').val("n")
}
jQuery('#history_retention_number').val(parseInt(retention_setting_value))
} else {
// Keep all or keep none
jQuery('#history_retention_select').val(retention_setting_value)
jQuery('#history_retention_number').hide()
}
updateHistoryRetention()
jQuery('.restoreDefaults').click(function(e) {
// Get section name

View File

@@ -1,3 +1,4 @@
<!DOCTYPE HTML>
<html lang="$active_lang">
<head>
<title>SABnzbd - $T('login')</title>
@@ -36,8 +37,8 @@
<div class="alert alert-danger" role="alert">$error</div>
<!--#end if#-->
<input type="text" class="form-control" name="username" placeholder="$T('srv-username')" required autofocus>
<input type="password" class="form-control" name="password" placeholder="$T('srv-password')" required>
<input type="text" class="form-control" name="username" placeholder="$T('srv-username')" autocomplete="username" required autofocus>
<input type="password" class="form-control" name="password" placeholder="$T('srv-password')" autocomplete="current-password" required>
<button class="btn btn-default"><span class="glyphicon glyphicon-circle-arrow-right"></span> $T('login') </button>
@@ -62,4 +63,4 @@
} catch(err) { }
</script>
</body>
</html>
</html>

View File

@@ -47,9 +47,9 @@ textarea,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>li>a.active,
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-logo:hover,
.quoteBlock,
.selected,
.server-disabled,
#serverResponse,
.table>tbody>tr:nth-child(odd),
@@ -61,30 +61,10 @@ select:hover {
color: #EBEBEB !important;
}
.correct {
border: 2px solid #00cc22 !important;
}
.failed,
.required-star,
.error-text {
.failed {
color: #ff3333 !important;
}
.unselected,
.selected {
border: 1px solid #EBEBEB !important;
color: #EBEBEB !important;
}
.incorrect {
border: 2px solid #ff3333 !important;
}
.disabled-text {
color: #777 !important;
}
#rightGreyText,
small {
color: #c7c7c7 !important;
@@ -107,7 +87,6 @@ select.form-control,
.navbar-default,
.search-box input,
.select,
.Sorting .explain-sorting,
.table-striped>tbody>tr:nth-child(even),
.table>tbody>tr:nth-child(even),
.tab-pane tr:nth-child(odd),
@@ -208,7 +187,7 @@ ul.tabs a,
#subscriptions,
.RSS form[action="add_rss_feed"] tr:nth-child(even),
.Config .table {
border: 1px solid #555555 !important;
border: 1px solid #555555;
}
.Categories form:first-of-type tr:last-of-type,
@@ -288,18 +267,9 @@ col2 h3 a,
fill: #555555;
}
/* Placeholders - Will not work if grouped! */
::-webkit-input-placeholder {
color: #EBEBEB !important;
}
::-moz-placeholder {
color: #EBEBEB !important;
opacity: 1 !important;
}
:-ms-input-placeholder {
::placeholder {
color: #EBEBEB !important;
opacity: 0.5;
}
.tooltip-inner {
@@ -315,6 +285,14 @@ col2 h3 a,
border-top-color: #E4E4E4 !important;
}
.tooltip.left .tooltip-arrow {
border-left-color: #E4E4E4 !important;
}
.tooltip.right .tooltip-arrow {
border-right-color: #E4E4E4 !important;
}
.Special .glyphicon-asterisk {
color: #E4E4E4 !important;
}

View File

@@ -19,6 +19,7 @@ body {
float: left;
overflow: visible;
border: 1px solid #dfdede;
border-bottom: none !important;
background-color: #FFF;
width: 100%
}
@@ -164,6 +165,9 @@ input[type="checkbox"]+.desc {
color: #666;
margin: 1em 0;
}
.col2 p {
margin-left: 3px;
}
.field-pair {
padding: 6px;
clear: both;
@@ -359,10 +363,6 @@ tr.separator {
margin: 5px;
}
.Sorting .explain-sorting {
background-color: #fff;
color: #000;
}
.Sorting .explain-pattern {
border: none;
width: 100%;
@@ -1226,7 +1226,6 @@ input[type="checkbox"] {
}
.value-and-select select {
min-width: 30px;
margin-top: 1px;
}
.dotOne, .dotTwo, .dotThree {

View File

@@ -60,6 +60,7 @@
// Initialize
this.element = $(element);
this.initialDir = null;
this.showFiles = false;
this.currentBrowserPath = null;
this.currentRequest = null;
this.fileBrowserDialog = $('#filebrowser_modal .modal-body');
@@ -99,6 +100,11 @@
this.initialDir = this.element.data('initialdir') + folderSeperator + this.element.val();
}
// Are we selecting files or folders
if(this.element.data('files')) {
this.showFiles = true
}
// Browse
this.browse(this.initialDir , folderBrowseUrl);
@@ -109,13 +115,13 @@
// Remove start
self.currentBrowserPath = self.currentBrowserPath.replace(self.element.data('initialdir')+folderSeperator, '');
// If it's identical to the initial dir the replacement won't work
if(self.currentBrowserPath == self.element.data('initialdir')) {
if(self.currentBrowserPath === self.element.data('initialdir')) {
self.currentBrowserPath = '';
}
}
// Changed?
if(self.element.val() != self.currentBrowserPath) {
if(self.element.val() !== self.currentBrowserPath) {
self.element.val(self.currentBrowserPath);
formHasChanged = true;
}
@@ -144,12 +150,20 @@
// Still loading
if (this.currentRequest) this.currentRequest.abort();
// Show hidden folders on Linux?
var extraHidden = $('#show_hidden_folders').is(':checked') ? '&show_hidden_folders=1' : '';
// Show hidden folders
var params = { name: path}
if($('#show_hidden_folders').is(':checked')) {
params['show_hidden_folders'] = "1"
}
// Show files?
if(this.showFiles) {
params['show_files'] = "1"
}
// Get current folders
this.currentBrowserPath = path;
this.currentRequest = $.getJSON(endpoint + extraHidden, { name: path }, function (data) {
this.currentRequest = $.getJSON(endpoint, params, function (data) {
// Clean
self.fileBrowserDialog.empty();
@@ -157,17 +171,27 @@
var list = $('<div class="list-group">').appendTo(self.fileBrowserDialog);
$.each(data.paths, function (i, entry) {
// Title for first one
if(i == 0) {
if(i === 0) {
self.fileBrowserDialog.prepend($('<h4>').text(entry.current_path))
return
}
// Regular link
link = $('<a class="list-group-item" href="javascript:void(0)" />').click(function () {
self.browse(entry.path, endpoint); }
).text(entry.name);
// Are we looking for files and did we select a file?
if(self.showFiles && !entry.dir) {
// Trigger selection
self.currentBrowserPath = entry.path
$('#filebrowser_modal_accept').click()
} else {
self.browse(entry.path, endpoint);
}
}).text(entry.name);
// Back image
if(entry.name == '..') {
if(entry.name === '..') {
$('<span class="glyphicon glyphicon-arrow-left"></span> ').prependTo(link);
} else if(!entry.dir) {
$('<span class="glyphicon glyphicon-file"></span> ').prependTo(link);
} else {
$('<span class="glyphicon glyphicon-folder-open"></span> ').prependTo(link);
}
@@ -238,8 +262,9 @@ function do_restart() {
// Show overlay
$('.main-restarting').show()
// What template
var switchedHTTPS = ($('#enable_https').is(':checked') == ($('#enable_https').data('original') === undefined))
// Check if we need redirect
// Uses == on purpose, because val() returns string and data() returns int!
var switchedHTTPS = ($('#enable_https').is(':checked') === ($('#enable_https').data('original') === undefined))
var portsUnchanged = ($('#port').val() == $('#port').data('original')) && ($('#https_port').val() == $('#https_port').data('original'))
// Are we on settings page or did nothing change?
@@ -248,7 +273,7 @@ function do_restart() {
var urlTotal = window.location.origin + urlBase
} else {
// Protocol and port depend on http(s) setting
if($('#enable_https').is(':checked') && (window.location.protocol == 'https:' || !$('#https_port').val())) {
if($('#enable_https').is(':checked') && (window.location.protocol === 'https:' || !$('#https_port').val())) {
// Https on and we visited this page from HTTPS
var urlProtocol = 'https:';
var urlPort = $('#https_port').val() ? $('#https_port').val() : $('#port').val();
@@ -297,7 +322,7 @@ function do_restart() {
// Exception if we go from HTTPS to HTTP
// (this is not allowed by browsers and all of the above will be ignored)
if(window.location.protocol != urlProtocol) {
if(window.location.protocol !== urlProtocol) {
// Saftey redirect after 20 sec
setTimeout(function() {
location.href = urlTotal;
@@ -307,7 +332,7 @@ function do_restart() {
});
}
// Remove obfusication
// Remove obfuscation
function removeObfuscation() {
$('input[data-hide]').each(function(index, objInput) {
$(objInput).attr('name', $(objInput).data('hide'))
@@ -323,6 +348,36 @@ function addRowColor() {
})
}
// Set default functions for the autocomplete everywhere
jQuery.extend(jQuery.fn.typeahead.defaults, {
source: function (query, process) {
// If there's no separator, it must be a relative path
if(query.split(folderSeperator).length < 2 && this.$element.data('initialdir')) {
query = this.$element.data('initialdir') + folderSeperator + query;
}
var params = { compact: "1", name: query }
if($('#show_hidden_folders').is(':checked')) {
params['show_hidden_folders'] = "1"
}
if(this.$element.data('files')) {
params['show_files'] = "1"
}
// Get info from the API
return jQuery.get(folderBrowseUrl, params, function (data) {
return process(data["paths"]);
});
},
updater: function(item) {
// Is it a relative path?
if(item.indexOf(this.$element.data('initialdir')) === 0) {
// Remove start
return item.replace(this.$element.data('initialdir') + folderSeperator, '');
}
// Full path
return item
}
})
$(document).ready(function () {
/**
Restart function
@@ -429,12 +484,15 @@ $(document).ready(function () {
$('.advanced-settings').toggle()
addRowColor()
})
if(localStorage.getItem('advanced-settings') == 'true') {
if(localStorage.getItem('advanced-settings') === 'true') {
$('.advanced-settings').show()
$('#advanced-settings-button').prop('checked', true)
addRowColor()
}
addRowColor()
// Add tooltips
jQuery('[title]').tooltip()
});
/*

View File

@@ -1,7 +1,7 @@
<div class="history" id="history-tab" data-bind="visible: hasHistory() || displayTabbed()" style="display: none">
<div class="history" id="history-tab">
<div class="history-header">
<h2>$T('menu-history')</h2>
<a href="#" data-bind="click: history.showMultiEdit">
<h2>$T('menu-history') <small data-bind="visible: history.showArchive()">($T('archive'))</small></h2>
<a href="#" data-bind="click: history.showMultiEdit, visible: hasHistory()">
<span class="glyphicon glyphicon-tasks" data-tooltip="true" data-placement="left" title="$T('Glitter-multiOperations')"></span>
</a>
</div>
@@ -18,7 +18,16 @@
<th style="width: 60px;"></th>
</tr>
</thead>
<tbody data-bind="foreach: history.historyItems">
<!-- ko if: !hasHistory() -->
<tbody class="no-downloads">
<tr>
<td colspan="6" data-bind="attr: { 'colspan': 5 + extraHistoryColumns().length }">
<span>$T('empty')</span>
</td>
</tr>
</tbody>
<!-- /ko -->
<tbody data-bind="foreach: history.historyItems, visible: hasHistory()" style="display: none;">
<tr class="history-item" data-bind="css: {'history-failed-download':failed()}">
<td>
<div data-bind="visible: processingWaiting()">
@@ -61,7 +70,7 @@
<td class="history-completedon row-wrap-text" data-bind="text: completedOn(), attr: { 'data-timestamp': completed }" onclick="showDetails(this)"></td>
<td class="delete">
<label data-bind="visible: parent.isMultiEditing()">
<input type="checkbox" name="multiedit" title="$T('Glitter-multiSelect')" data-bind="click: parent.parent.addMultiEdit, attr: { 'id': 'multiedit_' + id } " />
<input type="checkbox" name="multiedit" title="$T('Glitter-multiSelect')" data-bind="click: parent.addMultiEdit, attr: { 'id': 'multiedit_' + id } " />
</label>
<div class="dropdown" data-bind="visible: !parent.isMultiEditing()">
<a href="#" data-toggle="dropdown" data-bind="click: updateAllHistoryInfo">
@@ -74,13 +83,20 @@
<div class="col-sm-2">$T('name')</div>
<div class="col-sm-10" data-bind="text: historyStatus.name"></div>
</div>
<div class="row" data-bind="visible: historyStatus.time_added">
<div class="col-sm-2">$T('rss-added')</div>
<div class="col-sm-10" data-bind="text: timeAdded(), attr: { 'data-timestamp': historyStatus.time_added }"></div>
</div>
<div class="row">
<div class="col-sm-2">$T('post-Completed')</div>
<div class="col-sm-10" data-bind="text: completedOn, attr: { 'data-timestamp': completed }"></div>
</div>
<div class="row">
<div class="col-sm-2">$T('status')</div>
<div class="col-sm-10" data-bind="text: glitterTranslate.status[historyStatus.status()] ? glitterTranslate.status[historyStatus.status()] : statusText()"></div>
<div class="col-sm-10">
<span data-bind="text: glitterTranslate.status[historyStatus.status()] ? glitterTranslate.status[historyStatus.status()] : statusText()"></span>
<a href="#" class="mark-completed-link" data-bind="visible: failed(), click: markAsCompleted" title="$T('button-mark-completed')"><span class="glyphicon glyphicon-ok"></span> $T('post-Completed')</a>
</div>
</div>
<div class="row">
<div class="col-sm-2">$T('size')</div>
@@ -108,7 +124,7 @@
</div>
<!-- /ko -->
</div>
<a href="#" data-bind="click: deleteSlot">
<a href="#" data-bind="click: parent.triggerRemoveDownload">
<span class="hover-button glyphicon glyphicon-trash" data-bind="css: { 'glyphicon-stop' : processingDownload() == 2, disabled : processingDownload() == 1 }, attr: { title: processingDownload() == 2 ? '$T('abort')' : '$T('nzo-delete')' }"></span>
</a>
</td>
@@ -130,20 +146,22 @@
</ul>
<div class="multioperations-selector" id="history-options">
<a href="#" class="hover-button" title="$T('link-retryAll')" data-tooltip="true" data-placement="left" data-bind="click: history.retryAllFailed"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="hover-button" title="$T('showAllHis') / $T('showFailedHis')" data-tooltip="true" data-placement="left" data-bind="click: history.toggleShowFailed, css: { 'history-options-show-failed': history.showFailed }"><span class="glyphicon glyphicon-exclamation-sign"></span></a>
<a href="#" class="hover-button history-archive" title="$T('showArchive') / $T('showAllHis')" data-tooltip="true" data-placement="top" data-bind="click: history.toggleShowArchive, css: { 'history-options-show-failed': history.showArchive }"><svg viewBox="6 6 36 36" height="14" width="14" class="archive-icon"><path d="M41.09 10.45l-2.77-3.36c-.56-.66-1.39-1.09-2.32-1.09h-24c-.93 0-1.76.43-2.31 1.09l-2.77 3.36c-.58.7-.92 1.58-.92 2.55v25c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4v-25c0-.97-.34-1.85-.91-2.55zm-17.09 24.55l-11-11h7v-4h8v4h7l-11 11zm-13.75-25l1.63-2h24l1.87 2h-27.5z"/></svg></a>
<a href="#" class="hover-button" title="$T('showFailedHis') / $T('showAllHis')" data-tooltip="true" data-placement="top" data-bind="click: history.toggleShowFailed, css: { 'history-options-show-failed': history.showFailed }"><span class="glyphicon glyphicon-exclamation-sign"></span></a>
<a href="#" class="hover-button" title="$T('link-retryAll')" data-tooltip="true" data-placement="top" data-bind="click: history.retryAllFailed"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="hover-button" title="$T('button-mark-completed')" data-bind="visible: (history.isMultiEditing() && hasHistory()), click: history.doMultiMarkCompleted" data-tooltip="true" data-placement="top"><span class="glyphicon glyphicon-ok"></span></a>
<div data-bind="visible: history.isMultiEditing()">
<div data-bind="visible: (history.isMultiEditing() && hasHistory())">
<span class="label label-default" data-bind="text: history.multiEditItems().length">0</span>
<label for="multiedit-checkall-history">
<input type="checkbox" name="multieditCheckAll" id="multiedit-checkall-history" title="$T('Glitter-checkAll')" data-bind="click: checkAllJobs" data-tooltip="true" data-placement="top" />
<input type="checkbox" name="multieditCheckAll" id="multiedit-checkall-history" title="$T('Glitter-checkAll')" data-bind="click: history.checkAllJobs" data-tooltip="true" data-placement="top" />
</label>
</div>
<a href="#" class="hover-button" data-bind="visible: history.isMultiEditing(), click: doMultiDelete">
<a href="#" class="hover-button" title="$T('nzo-delete')" data-bind="visible: (history.isMultiEditing() && hasHistory()), click: history.doMultiDelete" data-tooltip="true" data-placement="top">
<span class="glyphicon glyphicon-trash"></span>
</a>
<a href="#modal-purge-history" class="hover-button" title="$T('purgeHist')" data-bind="visible: !history.isMultiEditing()" data-toggle="modal" data-tooltip="true" data-placement="left">
<a href="#modal-purge-history" class="hover-button" title="$T('purgeHist')" data-bind="visible: !(history.isMultiEditing() && hasHistory())" data-toggle="modal" data-tooltip="true" data-placement="top">
<span class="glyphicon glyphicon-trash"></span>
</a>
</div>
@@ -155,9 +173,3 @@
<span data-bind="text: history.downloadedTotal"></span>B $T('Glitter-total')
</div>
</div>
<div class="info-container history-info" data-bind="visible: !hasHistory() && !displayTabbed()" style="display: none">
<span class="glyphicon glyphicon-save"></span>
<span data-bind="text: history.downloadedToday"></span>B $T('Glitter-today')
<span data-bind="text: history.downloadedMonth"></span>B $T('Glitter-thisMonth')
<span data-bind="text: history.downloadedTotal"></span>B $T('Glitter-total')
</div>

View File

@@ -102,26 +102,15 @@
<li class="divider"></li>
<li class="dropdown-header"><span class="glyphicon glyphicon-off"></span> $T('Glitter-onFinish'):</li>
<li>
<!-- ko if: queue.scriptsListLoaded -->
<select data-bind="value: finishaction, event: { change: setOnQueueFinish }" class="form-control">
<option value=""></option>
<optgroup label="$T('eoq-actions')">
<option value="shutdown_program">$T('shutdownSab')</option>
<!--#if $power_options#-->
<option value="shutdown_pc">$T('shutdownPc')</option>
<option value="standby_pc">$T('standbyPc')</option>
<option value="hibernate_pc">$T('hibernatePc')</option>
<!--#end if#-->
</optgroup>
<optgroup label="$T('eoq-scripts')" data-bind="visible: queue.scriptsList().length > 1">
<!-- ko foreach: queue.scriptsList -->
<!-- ko if: \$data.scriptValue != 'None' -->
<option data-bind="text: \$data.scriptText, attr: { value: 'script_'+\$data.scriptValue } " ></option>
<!-- /ko -->
<!-- /ko -->
</optgroup>
<option value="shutdown_program">$T('shutdownSab')</option>
<!--#if $power_options#-->
<option value="shutdown_pc">$T('shutdownPc')</option>
<option value="standby_pc">$T('standbyPc')</option>
<option value="hibernate_pc">$T('hibernatePc')</option>
<!--#end if#-->
</select>
<!-- /ko -->
</li>
</ul>
</li>

View File

@@ -6,8 +6,12 @@
<span class="glyphicon glyphicon-open"></span> $T('Glitter-notification-uploading') <span class="main-notification-box-file-count"></span>
</div>
<div class="main-notification-box-uploading-failed">
<span class="glyphicon glyphicon-exclamation-sign"></span> $T('Glitter-notification-upload-failed').replace('%s', '') <span class="main-notification-box-file-count"></span>
</div>
<div class="main-notification-box-queue-repair">
<span class="glyphicon glyphicon glyphicon-wrench"></span> $T('Glitter-repairQueue')
<span class="glyphicon glyphicon-wrench"></span> $T('Glitter-repairQueue')
</div>
<div class="main-notification-box-disconnect">
@@ -134,7 +138,7 @@
<div class="col-sm-6">$T('dashboard-systemPerformance') &nbsp; </div>
<div class="col-sm-6 col-dot-overflow" data-bind="visible: hasPerformanceInfo">
<span data-bind="text: statusInfo.pystone"></span>
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest')"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest') (~10 $T('seconds'))"><span class="glyphicon glyphicon-repeat"></span></a>
<small title="$cpumodel $cpusimd" data-tooltip="true">$cpumodel $cpusimd</small>
</div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasPerformanceInfo()">$T('Glitter-loading')<span class="loader-dot-one">.</span><span class="loader-dot-two">.</span><span class="loader-dot-three">.</span></div>
@@ -143,7 +147,7 @@
<div class="col-sm-6">$T('dashboard-downloadDirSpeed') &nbsp; </div>
<div class="col-sm-6 col-dot-overflow" data-bind="visible: hasPerformanceInfo">
<span data-bind="text: statusInfo.downloaddirspeed()"></span> MB/s
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest')"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest') (~10 $T('seconds'))"><span class="glyphicon glyphicon-repeat"></span></a>
<small data-bind="text: statusInfo.downloaddir, attr: { 'data-original-title': statusInfo.downloaddir }" data-tooltip="true"></small>
</div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasPerformanceInfo()">$T('Glitter-loading')<span class="loader-dot-one">.</span><span class="loader-dot-two">.</span><span class="loader-dot-three">.</span></div>
@@ -152,7 +156,7 @@
<div class="col-sm-6">$T('dashboard-completeDirSpeed') &nbsp; </div>
<div class="col-sm-6 col-dot-overflow" data-bind="visible: hasPerformanceInfo">
<span data-bind="text: statusInfo.completedirspeed()"></span> MB/s
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest')"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest') (~10 $T('seconds'))"><span class="glyphicon glyphicon-repeat"></span></a>
<small data-bind="text: statusInfo.completedir, attr: { 'data-original-title': statusInfo.completedir }" data-tooltip="true"></small>
</div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasPerformanceInfo()">$T('Glitter-loading')<span class="loader-dot-one">.</span><span class="loader-dot-two">.</span><span class="loader-dot-three">.</span></div>
@@ -161,11 +165,17 @@
<div class="col-sm-6">$T('dashboard-internetBandwidth') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasPerformanceInfo">
<span data-bind="text: statusInfo.internetbandwidth()"></span> MB/s
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest')"><span class="glyphicon glyphicon-repeat"></span></a>
<a href="#" class="diskspeed-button" data-bind="click: loadStatusInfo" data-tooltip="true" data-placement="right" title="$T('dashboard-repeatTest') (~10 $T('seconds'))"><span class="glyphicon glyphicon-repeat"></span></a>
<small><span data-bind="text: statusInfo.internetbandwidth()*8"></span> Mbps</small>
</div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasPerformanceInfo()">$T('Glitter-loading')<span class="loader-dot-one">.</span><span class="loader-dot-two">.</span><span class="loader-dot-three">.</span></div>
</div>
<div class="row">
<div class="col-sm-6">$T('platform') &nbsp; </div>
<div class="col-sm-6">
$platform
</div>
</div>
<div class="row test-download">
<div class="col-sm-6">$T('dashboard-testDownload') &nbsp; </div>
<div class="col-sm-6">
@@ -225,15 +235,20 @@
</div>
<div class="row" data-bind="visible: serverssl">
<div class="col-sm-6">$T('srv-ssl')</div>
<div class="col-sm-6">
<span class="glyphicon glyphicon-ok"></span> <span data-bind="text: serversslinfo"></span>
<div class="col-sm-6 col-dot-overflow">
<span class="glyphicon glyphicon-ok"></span>
<span data-bind="text: serversslinfo"></span>
</div>
</div>
<div class="row">
<div class="col-sm-6"># $T('connections')</div>
<div class="col-sm-6">
<span data-bind="text: serverconnections().length"></span> /
<span data-bind="text: servertotalconn"></span>
<span data-bind="text: servertotalconn"></span><br>
<!-- ko if: serveripaddress() -->
<span data-bind="text: servercanonname"></span><br>
<span data-bind="text: serveripaddress"></span>
<!-- /ko -->
</div>
</div>
<div class="row">
@@ -249,11 +264,11 @@
</div>
</div>
</div>
<div class="row" data-bind="visible: !isFinite(serveractiveconn())">
<div class="row" data-bind="visible: serverwarning()">
<div class="col-sm-12">
<div class="alert alert-warning">
<span class="glyphicon glyphicon-info-sign"></span>
<span data-bind="text: serveractiveconn()"></span>
<span data-bind="text: serverwarning()"></span>
</div>
</div>
</div>
@@ -523,7 +538,7 @@
<div class="form-group">
<label class="col-sm-4 control-label">$T('category')</label>
<div class="col-sm-6">
<select name="Category" class="form-control" data-bind="options: queue.categoriesList, optionsValue: 'catValue', optionsText: 'catText'"></select>
<select name="Category" class="form-control" data-bind="options: queue.categoriesList, optionsValue: 'catValue', optionsText: 'catText', optionsCaption: ''"></select>
<span class="glyphicon glyphicon-tag"></span>
</div>
</div>
@@ -532,7 +547,7 @@
<div class="col-sm-6">
<!-- This list is different from the one during download! -->
<select name="Priority" class="form-control">
<option value="-100">$T('default')</option>
<option value=""></option>
<option value="2">$T('pr-force')</option>
<option value="1">$T('pr-high')</option>
<option value="0">$T('pr-normal')</option>
@@ -545,14 +560,14 @@
<div class="form-group">
<label class="col-sm-4 control-label">$T('swtag-pp')</label>
<div class="col-sm-6">
<select name="Processing" class="form-control" data-bind="options: queue.processingOptions, optionsValue: 'value', optionsText: 'name', optionsCaption: '$T('default')'"></select>
<select name="Processing" class="form-control" data-bind="options: queue.processingOptions, optionsValue: 'value', optionsText: 'name', optionsCaption: ''"></select>
<span class="glyphicon glyphicon-check"></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">$T('eoq-scripts')</label>
<div class="col-sm-6">
<select name="Post-processing" class="form-control" data-bind="options: queue.scriptsList, optionsCaption: '$T('default')', optionsValue: 'scriptValue', optionsText: 'scriptText', enable: (queue.scriptsList().length > 1)"></select>
<select name="Post-processing" class="form-control" data-bind="options: queue.scriptsList, optionsCaption: '', optionsValue: 'scriptValue', optionsText: 'scriptText', enable: (queue.scriptsList().length > 1)"></select>
<span class="glyphicon glyphicon-flash"></span>
</div>
</div>
@@ -630,6 +645,59 @@
</div>
</div>
<div id="modal-delete-queue-job" class="modal modal-delete-job fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title row-wrap-text">$T('removeNZB-Files')</h4>
</div>
<form data-bind="submit: queue.removeDownloads">
<div class="modal-body">
$T('confirm-delete')
<ul data-bind="foreach: queue.deleteItems">
<li data-bind="text: name"></li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">$T('cancel')</button>
<button type="submit" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> $T('nzo-delete')</button>
</div>
</form>
</div>
</div>
</div>
<div id="modal-delete-history-job" class="modal modal-delete-job fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title row-wrap-text">$T('nzo-delete')</h4>
</div>
<form data-bind="submit: history.removeDownloads">
<div class="modal-body">
$T('confirm-delete')
<ul data-bind="foreach: history.deleteItems">
<li data-bind="text: historyStatus.name"></li>
</ul>
</div>
<div class="modal-footer">
<div class="checkbox" data-bind="visible: !history.showArchive()">
<label>
<input type="checkbox" data-bind="checked: history.permanentlyDelete"> <span>$T('permanently-delete')</span>
</label>
</div>
<button type="button" class="btn btn-default" data-dismiss="modal">$T('cancel')</button>
<button type="submit" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> $T('nzo-delete')</button>
</div>
</form>
</div>
</div>
</div>
<div id="modal-retry-job" class="modal modal-small fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
@@ -660,6 +728,9 @@
</div>
</div>
</fieldset>
<fieldset>
$T('Glitter-retryNoChecks')
</fieldset>
</div>
<div class="modal-footer">
<button class="btn btn-default"><span class="glyphicon glyphicon-repeat"></span> $T('button-retry')</button>
@@ -707,13 +778,13 @@
<td><a href="https://github.com/sabnzbd/sabnzbd" target="_blank">https://github.com/sabnzbd/sabnzbd/</a></td>
</tr>
<tr>
<td><strong>$T('menu-irc'):</strong></td>
<td><strong>$T('menu-live-chat'):</strong></td>
<td><a href="https://sabnzbd.org/live-chat" target="_blank">https://sabnzbd.org/live-chat</a></td>
</tr>
</tbody>
</table>
<hr/>
<p><small>Copyright (C) 2007-2021 The SABnzbd-Team (<a href="https://sabnzbd.org/" target="_blank">sabnzbd.org</a>)<br/>$T('yourRights') </small></p>
<p><small>Copyright &copy; 2007-2025 by The SABnzbd-Team (<a href="https://sabnzbd.org/" target="_blank">sabnzbd.org</a>)<br/>$T('yourRights') </small></p>
</div>
</div>
</div>
@@ -732,11 +803,18 @@
<button type="button" class="btn btn-danger" data-bind="click: history.emptyHistory" data-action="history-purge-completed"><span class="glyphicon glyphicon-floppy-saved"></span> $T('purgeCompl')</button><hr />
<button type="button" class="btn btn-danger" data-bind="click: history.emptyHistory" data-action="history-purge-page"><span class="glyphicon glyphicon-check"></span> $T('purgePage') <span class="label label-default" data-bind="text: history.historyItems().length"></span></button>
</div>
<div class="modal-footer">
<div class="checkbox">
<label>
<input type="checkbox" data-bind="checked: history.permanentlyDelete"> <span>$T('permanently-delete')</span>
</label>
</div>
</div>
</div>
</div>
</div>
<div id="modal_custom_pause" class="modal modal-small fade" tabindex="-1">
<div id="modal-custom-pause" class="modal modal-small fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">

View File

@@ -15,10 +15,10 @@
<span data-bind="text: queueDataLeft"></span> $T('Glitter-left')
</div>
<!-- /ko -->
<!-- ko if: (quotaLimit() != 0) -->
<!-- ko if: (parseInt(quotaLimit()) != 0) -->
<div class="info-container-box">
<span data-bind="css: { 'queue-error-info' : (parseInt(quotaLimitLeft())<=0) }">
<span class="glyphicon glyphicon-log-in"></span> <span data-bind="text: quotaLimitLeft"></span>B / <span data-bind="text: quotaLimit"></span>B $T('quota-left')
<span class="glyphicon glyphicon-log-in"></span> <span data-bind="text: quotaLimitLeft"></span> / <span data-bind="text: quotaLimit"></span> $T('quota-left')
</span>
</div>
<!-- /ko -->
@@ -132,7 +132,7 @@
<td class="timeleft row-wrap-text" data-bind="text: statusText"></td>
<td class="delete">
<label data-bind="visible: parent.isMultiEditing()">
<input type="checkbox" name="multiedit" title="$T('Glitter-multiSelect')" data-bind="click: parent.parent.addMultiEdit, attr: { 'id': 'multiedit_' + id } " />
<input type="checkbox" name="multiedit" title="$T('Glitter-multiSelect')" data-bind="click: parent.addMultiEdit, attr: { 'id': 'multiedit_' + id } " />
</label>
<!-- ko if: !isGrabbing() -->
<div class="dropdown" data-bind="visible: !parent.isMultiEditing()">
@@ -163,7 +163,7 @@
<!-- /ko -->
</div>
<!-- /ko -->
<a href="#" class="hover-button" title="$T('removeNZB-Files')" data-bind="click: removeDownload"><span class="glyphicon glyphicon-trash"></span></a>
<a href="#" class="hover-button" title="$T('removeNZB-Files')" data-bind="click: parent.triggerRemoveDownload"><span class="glyphicon glyphicon-trash"></span></a>
</td>
</tr>
</tbody>
@@ -172,21 +172,27 @@
<form class="multioperations-selector" data-bind="visible: (hasQueue() && queue.isMultiEditing())" style="display: none;">
<div class="add-nzb-inputbox add-nzb-inputbox-small add-nzb-inputbox-options">
<label for="multiedit-checkall-queue">
<input type="checkbox" name="multieditCheckAll" id="multiedit-checkall-queue" title="$T('Glitter-checkAll')" data-bind="click: checkAllJobs" data-tooltip="true" data-placement="top" />
<input type="checkbox" name="multieditCheckAll" id="multiedit-checkall-queue" title="$T('Glitter-checkAll')" data-bind="click: queue.checkAllJobs" data-tooltip="true" data-placement="top" />
</label>
<a href="#" class="hover-button" data-bind="click: doMultiDelete">
<a href="#" class="hover-button" title="$T('removeNZB-Files')" data-bind="click: queue.doMultiDelete" data-tooltip="true" data-placement="top">
<span class="glyphicon glyphicon-trash"></span>
</a>
</div>
<div class="add-nzb-inputbox add-nzb-inputbox-small">
<label for="multiedit-play">
<label for="multiedit-play" data-bind="event: { mousedown: queue.handleMultiEditStatusMouseDown }">
<input type="radio" name="multiedit-status" value="resume" id="multiedit-play" data-bind="event: { change: queue.doMultiEditUpdate }" />
<span class="glyphicon glyphicon-play" title="$T('link-resume')" data-tooltip="true" data-placement="top"></span>
</label>
<label for="multiedit-pause">
<label for="multiedit-pause" data-bind="event: { mousedown: queue.handleMultiEditStatusMouseDown }">
<input type="radio" name="multiedit-status" value="pause" id="multiedit-pause" data-bind="event: { change: queue.doMultiEditUpdate }" />
<span class="glyphicon glyphicon-pause" title="$T('link-pause')" data-tooltip="true" data-placement="top"></span>
</label>
<a href="#" class="hover-button" title="$T('Glitter-top')" data-bind="click: queue.doMultiMoveToTop" data-tooltip="true" data-placement="top">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
<a href="#" class="hover-button" title="$T('Glitter-bottom')" data-bind="click: queue.doMultiMoveToBottom" data-tooltip="true" data-placement="top">
<span class="glyphicon glyphicon-chevron-down"></span>
</a>
<span class="label label-default" data-bind="text: queue.multiEditItems().length">0</span>
</div>
<div class="add-nzb-inputbox-clear"></div>
@@ -221,4 +227,4 @@
<span data-bind="text: page"></span>
</li>
</ul>
</div>
</div>

View File

@@ -52,21 +52,21 @@
var glitterTranslate = new Object();
glitterTranslate.paused = "$T('post-Paused')";
glitterTranslate.left = "$T('Glitter-left')";
glitterTranslate.clearWarn = "$T('confirm')";
glitterTranslate.clearOrphanWarning = "$T('Glitter-clearOrphanWarning')";
glitterTranslate.pausePromptFail = "$T('Glitter-pausePromptFail')"
glitterTranslate.pauseFor = "$T('pauseFor')"
glitterTranslate.minutes = "$T('mins')"
glitterTranslate.shutdown = "$T('shutdownOK?')";
glitterTranslate.restart = "$T('explain-Restart') $T('explain-needNewLogin')".replace(/\<br(\s*\/|)\>/g, '\n');
glitterTranslate.repair = "$T('explain-Repair')".replace(/<br \/>/g, "\n").replace(/&quot;/g,'"');
glitterTranslate.deleteMsg = "$T('nzo-delete')";
glitterTranslate.removeDown = "$T('confirm')";
glitterTranslate.removeDow1 = "$T('confirm')";
glitterTranslate.confirm = "$T('confirm')";
glitterTranslate.markComplete = "$T('button-mark-completed')";
glitterTranslate.renameAbort = "$T('Glitter-confirmAbortDirectUnpack')\n$T('confirm')";
glitterTranslate.retryAll = "$T('link-retryAll')?";
glitterTranslate.fetch = "$T('Glitter-fetch')";
glitterTranslate.checking = "$T('post-Checking')";
glitterTranslate.misingArt = "$T('missingArt')";
glitterTranslate.fetchingURL = "$T('Glitter-addFromURL')"
glitterTranslate.chooseFile = "$T('Glitter-chooseFile')";
glitterTranslate.orphanedJobsMsg = "$T('explain-orphans')";
glitterTranslate.useCache = "$T('explain-cache_limitstr').replace("64M", "256M").replace("128M", "512M")";
@@ -96,6 +96,7 @@
glitterTranslate.status['Unpack'] = "$T('stage-unpack')";
glitterTranslate.status['Deobfuscate'] = "$T('stage-deobfuscate')";
glitterTranslate.status['Script'] = "$T('stage-script')";
glitterTranslate.status['RSS'] = "$T('stage-rss')";
glitterTranslate.status['Source'] = "$T('stage-source')";
glitterTranslate.status['Servers'] = "$T('stage-servers')";
glitterTranslate.status['INFO'] = "$T('log-info')".replace('+', '').toUpperCase();

View File

@@ -58,11 +58,11 @@ function convertHTMLtoText(htmltxt) {
// Function to re-write 0:09:21=>9:21, 0:10:10=>10:10, 0:00:30=>0:30
function rewriteTime(timeString) {
// Remove "0:0" from start
if(timeString.substring(0,3) == '0:0') {
if(timeString.substring(0,3) === '0:0') {
timeString = timeString.substring(3)
}
// Remove "0:" from start
else if(timeString.substring(0,2) == '0:') {
else if(timeString.substring(0,2) === '0:') {
timeString = timeString.substring(2)
}
return timeString
@@ -71,13 +71,13 @@ function rewriteTime(timeString) {
// How to display the date-time?
function displayDateTime(inDate, outFormat, inFormat) {
// What input?
if(inDate == '') {
if(inDate === '') {
var theMoment = moment()
} else {
var theMoment = moment.utc(inDate, inFormat)
}
// Special format or regular format?
if(outFormat == 'fromNow') {
if(outFormat === 'fromNow') {
return theMoment.fromNow()
} else {
return theMoment.local().format(outFormat)
@@ -155,7 +155,7 @@ function setCheckAllState(checkSelector, rangeSelector) {
var nrChecks = allChecks.filter(":checked");
if(nrChecks.length === 0) {
$(checkSelector).prop({'checked': false, 'indeterminate': false})
} else if(nrChecks.length == allChecks.length) {
} else if(nrChecks.length === allChecks.length) {
$(checkSelector).prop({'checked': true, 'indeterminate': false})
} else {
$(checkSelector).prop({'checked': false, 'indeterminate': true})

View File

@@ -57,7 +57,7 @@ function Fileslisting(parent) {
$.each(response.files, function(index, slot) {
// Existing or updating?
var existingItem = ko.utils.arrayFirst(self.fileItems(), function(i) {
return i.nzf_id() == slot.nzf_id;
return i.nzf_id() === slot.nzf_id;
});
if(existingItem) {
@@ -76,7 +76,7 @@ function Fileslisting(parent) {
}
// Check if we show/hide completed
if(localStorageGetItem('showCompletedFiles') == 'No') {
if(localStorageGetItem('showCompletedFiles') === 'No') {
$('.item-files-table tr.files-done').hide();
$('#filelist-showcompleted').removeClass('hover-button')
}
@@ -217,8 +217,8 @@ function FileslistingModel(parent, data) {
self.nzf_id = ko.observable(data.nzf_id);
self.file_age = ko.observable(data.age);
self.mb = ko.observable(data.mb);
self.canselect = ko.observable(data.status != "finished" && data.status != "queued");
self.isdone = ko.observable(data.status == "finished");
self.canselect = ko.observable(data.status !== "finished" && data.status !== "queued");
self.isdone = ko.observable(data.status === "finished");
self.percentage = ko.observable(self.isdone() ? fixPercentages(100) : fixPercentages((100 - (data.mbleft / data.mb * 100)).toFixed(0)));
// Update internally
@@ -227,8 +227,8 @@ function FileslistingModel(parent, data) {
self.nzf_id(data.nzf_id)
self.file_age(data.age)
self.mb(data.mb)
self.canselect(data.status != "finished" && data.status != "queued")
self.isdone(data.status == "finished")
self.canselect(data.status !== "finished" && data.status !== "queued")
self.isdone(data.status === "finished")
// Data is given in MB, would always show 0% for small files even if completed
self.percentage(self.isdone() ? fixPercentages(100) : fixPercentages((100 - (data.mbleft / data.mb * 100)).toFixed(0)))
}
@@ -266,7 +266,7 @@ function paginationModel(parent) {
// Return object for adding
return {
page: pageNr,
isCurrent: pageNr == self.currentPage(),
isCurrent: pageNr === self.currentPage(),
isDots: false,
onclick: function(data) {
self.moveToPage(data.page);
@@ -356,7 +356,7 @@ function paginationModel(parent) {
}
// Change of number of pages?
if(newNrPages != self.nrPages()) {
if(newNrPages !== self.nrPages()) {
// Update
self.nrPages(newNrPages);
}

View File

@@ -9,10 +9,13 @@ function HistoryListModel(parent) {
self.lastUpdate = 0;
self.historyItems = ko.observableArray([])
self.showFailed = ko.observable(false).extend({ persist: 'historyShowFailed' });
self.showArchive = ko.observable(false).extend({ persist: 'historyShowArchive' });
self.permanentlyDelete = ko.observable(false).extend({ persist: 'permanentlyDelete' });
self.isLoading = ko.observable(false).extend({ rateLimit: 100 });
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 400, method: "notifyWhenChangesStop" } });
self.paginationLimit = ko.observable(10).extend({ persist: 'historyPaginationLimit' });
self.totalItems = ko.observable(0);
self.deleteItems = ko.observableArray([]);
self.ppItems = ko.observable(0);
self.pagination = new paginationModel(self);
self.isMultiEditing = ko.observable(false).extend({ persist: 'historyIsMultiEditing' });
@@ -43,7 +46,7 @@ function HistoryListModel(parent) {
var newItems = [];
$.each(data.slots, function(index, slot) {
var existingItem = ko.utils.arrayFirst(self.historyItems(), function(i) {
return i.historyStatus.nzo_id() == slot.nzo_id;
return i.historyStatus.nzo_id() === slot.nzo_id;
});
// Set index in the results
slot.index = index
@@ -59,7 +62,7 @@ function HistoryListModel(parent) {
});
// Remove all items
if(itemIds.length == self.paginationLimit()) {
if(itemIds.length === self.paginationLimit()) {
// Replace it, so only 1 Knockout DOM-update!
self.historyItems(newItems);
newItems = [];
@@ -68,7 +71,7 @@ function HistoryListModel(parent) {
$.each(itemIds, function() {
var id = this.toString();
self.historyItems.remove(ko.utils.arrayFirst(self.historyItems(), function(i) {
return i.historyStatus.nzo_id() == id;
return i.historyStatus.nzo_id() === id;
}));
});
}
@@ -82,7 +85,7 @@ function HistoryListModel(parent) {
if(self.parent.queue.multiEditItems().length > 0) {
$.each(newItems, function() {
var currentItem = this;
self.parent.queue.multiEditItems.remove(function(inList) { return inList.id == currentItem.id; })
self.parent.queue.multiEditItems.remove(function(inList) { return inList.id === currentItem.id; })
})
}
}
@@ -118,6 +121,27 @@ function HistoryListModel(parent) {
self.parent.refresh(true)
});
self.triggerRemoveDownload = function(items) {
// Show and fill modal
self.deleteItems.removeAll()
// Single or multiple items?
if(items.length) {
ko.utils.arrayPushAll(self.deleteItems, items)
} else {
self.deleteItems.push(items)
}
// Show modal or delete right away
if(self.parent.confirmDeleteHistory()) {
// Open modal if desired
$('#modal-delete-history-job').modal("show")
} else {
// Otherwise just submit right away
$('#modal-delete-history-job form').submit()
}
}
// Retry a job
self.retryJob = function(form) {
// Adding a extra retry file happens through this special function
@@ -148,7 +172,7 @@ function HistoryListModel(parent) {
// Searching in history (rate-limited in declaration)
self.searchTerm.subscribe(function() {
// Go back to page 1
if(self.pagination.currentPage() != 1) {
if(self.pagination.currentPage() !== 1) {
// This forces a refresh
self.pagination.moveToPage(1);
} else {
@@ -160,13 +184,13 @@ function HistoryListModel(parent) {
// Clear searchterm
self.clearSearchTerm = function(data, event) {
// Was it escape key or click?
if(event.type == 'mousedown' || (event.keyCode && event.keyCode == 27)) {
if(event.type === 'mousedown' || (event.keyCode && event.keyCode === 27)) {
// Set the loader so it doesn't flicker and then switch
self.isLoading(true)
self.searchTerm('');
}
// Was it click and the field is empty? Then we focus on the field
if(event.type == 'mousedown' && self.searchTerm() == '') {
if(event.type === 'mousedown' && self.searchTerm() === '') {
$(event.target).parents('.search-box').find('input[type="text"]').focus()
return;
}
@@ -176,10 +200,17 @@ function HistoryListModel(parent) {
// Toggle showing failed
self.toggleShowFailed = function(data, event) {
// Set the loader so it doesn't flicker and then switch
self.isLoading(true)
self.showFailed(!self.showFailed())
// Forde hide tooltip so it doesn't linger
// Force hide tooltip so it doesn't linger
$('#history-options a').tooltip('hide')
// Force refresh
self.parent.refresh(true)
}
// Toggle showing archive
self.toggleShowArchive = function(data, event) {
self.showArchive(!self.showArchive())
// Force hide tooltip so it doesn't linger
$('#history-options a').tooltip('hide')
// Force refresh
self.parent.refresh(true)
@@ -201,30 +232,28 @@ function HistoryListModel(parent) {
// Empty history options
self.emptyHistory = function(data, event) {
// Make sure no flickering
self.isLoading(true)
// What event?
var whatToRemove = $(event.target).data('action');
var skipArchive = $('#modal-purge-history input[type="checkbox"]').prop("checked")
var del_files, value;
// Purge failed
if(whatToRemove == 'history-purge-failed') {
if(whatToRemove === 'history-purge-failed') {
del_files = 0;
value = 'failed';
}
// Also remove files
if(whatToRemove == 'history-purgeremove-failed') {
if(whatToRemove === 'history-purgeremove-failed') {
del_files = 1;
value = 'failed';
}
// Remove completed
if(whatToRemove == 'history-purge-completed') {
if(whatToRemove === 'history-purge-completed') {
del_files = 0;
value = 'completed';
}
// Remove the ones on this page
if(whatToRemove == 'history-purge-page') {
if(whatToRemove === 'history-purge-page') {
// List all the ID's
var strIDs = '';
$.each(self.historyItems(), function(index) {
@@ -238,6 +267,7 @@ function HistoryListModel(parent) {
mode: 'history',
name: 'delete',
del_files: 1,
archive: (!skipArchive) * 1,
value: strIDs
}).then(function() {
// Clear search, refresh and hide
@@ -252,8 +282,9 @@ function HistoryListModel(parent) {
callAPI({
mode: 'history',
name: 'delete',
value: value,
del_files: del_files
del_files: del_files,
archive: (!skipArchive) * 1,
value: value
}).then(function() {
self.parent.refresh();
$("#modal-purge-history").modal('hide');
@@ -264,8 +295,184 @@ function HistoryListModel(parent) {
self.showMultiEdit = function() {
self.isMultiEditing(!self.isMultiEditing())
self.multiEditItems.removeAll();
$('.history-table input[name="multiedit"], #history-options #multiedit-checkall').prop({'checked': false, 'indeterminate': false})
$('.history-table input[name="multiedit"], #multiedit-checkall-history').prop({'checked': false, 'indeterminate': false})
}
// Add to the list
self.addMultiEdit = function(item, event) {
// Is it a shift-click?
if(event.shiftKey) {
checkShiftRange('.history-table input[name="multiedit"]');
}
// Add or remove from the list?
if(event.currentTarget.checked) {
// Add item
self.multiEditItems.push(item);
} else {
// Go over them all to know which one to remove
self.multiEditItems.remove(function(inList) { return inList.id == item.id; })
}
// Update check-all buton state
setCheckAllState('#multiedit-checkall-history', '.history-table input[name="multiedit"]')
return true;
}
// Check all
self.checkAllJobs = function(item, event) {
// Get which ones we care about
var allChecks = $('.history-table input[name="multiedit"]').filter(':not(:disabled):visible');
// We need to re-evaltuate the state of this check-all
// Otherwise the 'inderterminate' will be overwritten by the click event!
setCheckAllState('#multiedit-checkall-history', '.history-table input[name="multiedit"]')
// Now we can check what happend
// For when some are checked, or all are checked (but not partly)
if(event.target.indeterminate || (event.target.checked && !event.target.indeterminate)) {
var allActive = allChecks.filter(":checked")
// First remove the from the list
if(allActive.length == self.multiEditItems().length) {
// Just remove all
self.multiEditItems.removeAll();
// Remove the check
allActive.prop('checked', false)
} else {
// Remove them seperate
allActive.each(function() {
// Go over them all to know which one to remove
var item = ko.dataFor(this)
self.multiEditItems.remove(function(inList) { return inList.id == item.id; })
// Remove the check of this one
this.checked = false;
})
}
} else {
// None are checked, so check and add them all
allChecks.prop('checked', true)
allChecks.each(function() { self.multiEditItems.push(ko.dataFor(this)) })
event.target.checked = true
}
// Set state of all the check-all's
setCheckAllState('#multiedit-checkall-history', '.history-table input[name="multiedit"]')
return true;
}
// Remove downloads from history
self.removeDownloads = function(form) {
// Hide modal and show notification
$('#modal-delete-history-job').modal("hide")
showNotification('.main-notification-box-removing')
var strIDsPP = '';
var strIDsHistory = '';
$.each(self.deleteItems(), function(index) {
// Split in jobs that need post-processing aborted, and jobs that need to be deleted
if(this.processingDownload() === 2) {
strIDsPP = strIDsPP + this.id + ',';
// These items should not be listed in the deletedItems later on
// as active post-processing aren't removed from the history output
self.deleteItems.remove(this)
} else {
strIDsHistory = strIDsHistory + this.id + ',';
}
})
// Trigger post-processing aborting
if(strIDsPP !== "") {
callAPI({
mode: 'cancel_pp',
value: strIDsPP
}).then(function(response) {
// Only hide and refresh
self.parent.refresh();
hideNotification()
});
}
if(strIDsHistory !== "") {
var skipArchive = $('#modal-delete-history-job input[type="checkbox"]').prop("checked")
// Permanently delete if we are on the Archive page
if(self.showArchive()) skipArchive = true
callAPI({
mode: 'history',
name: 'delete',
del_files: 1,
archive: (!skipArchive) * 1,
value: strIDsHistory
}).then(function(response) {
self.historyItems.removeAll(self.deleteItems());
self.multiEditItems.removeAll(self.deleteItems())
self.parent.refresh();
hideNotification()
});
}
};
// Delete all selected
self.doMultiDelete = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Trigger modal
self.triggerRemoveDownload(self.multiEditItems())
}
// Mark jobs as completed
self.markAsCompleted = function(items) {
// Confirm
if(!confirm(glitterTranslate.markComplete)) {
return
}
// Single or multiple items?
var strIDs = '';
if(items.length) {
$.each(items, function(index) {
strIDs = strIDs + this.id + ',';
})
} else {
strIDs = items.id
}
// Send the API call
callAPI({
mode: 'history',
name: 'mark_as_completed',
value: strIDs
}).then(function(response) {
// Force refresh to update the UI
self.parent.refresh(true);
});
}
// Mark all selected as completed
self.doMultiMarkCompleted = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Mark them
self.markAsCompleted(self.multiEditItems());
}
// Focus on the confirm button
$('#modal-delete-history-job').on("shown.bs.modal", function() {
$('#modal-delete-history-job .btn[type="submit"]').focus()
})
// On change of page we need to check all those that were in the list!
self.historyItems.subscribe(function() {
// We need to wait until the unit is actually finished rendering
setTimeout(function() {
$.each(self.multiEditItems(), function(index) {
$('#multiedit_' + this.id).prop('checked', true);
})
// Update check-all buton state
setCheckAllState('#multiedit-checkall-history', '.history-table input[name="multiedit"]')
}, 100)
}, null, "arrayChange")
}
/**
@@ -316,14 +523,14 @@ function HistoryModel(parent, data) {
// Waiting?
self.processingWaiting = ko.pureComputed(function() {
return(self.status() == 'Queued')
return(self.status() === 'Queued')
})
// Processing or done?
self.processingDownload = ko.pureComputed(function() {
var status = self.status();
// When we can cancel
if (status === 'Extracting' || status === 'Verifying' || status == 'Repairing' || status === 'Running') {
if (status === 'Extracting' || status === 'Verifying' || status === 'Repairing' || status === 'Running') {
return 2
}
// These cannot be cancelled
@@ -357,7 +564,7 @@ function HistoryModel(parent, data) {
try {
// Extract the Download section
var downloadLog = ko.utils.arrayFirst(self.historyStatus.stage_log(), function(item) {
return item.name() == 'Download'
return item.name() === 'Download'
});
// Extract the speed
return downloadLog.actions()[0].match(/(\S*\s\S+)(?=<br\/>)/)[0]
@@ -366,7 +573,7 @@ function HistoryModel(parent, data) {
return;
case 'category':
// Exception for *
if(self.historyStatus.category() == "*")
if(self.historyStatus.category() === "*")
return glitterTranslate.defaultText
return self.historyStatus.category();
case 'size':
@@ -380,6 +587,11 @@ function HistoryModel(parent, data) {
return displayDateTime(self.completed(), parent.parent.dateFormat(), 'X')
});
// Format time added
self.timeAdded = ko.pureComputed(function() {
return displayDateTime(self.historyStatus.time_added(), parent.parent.dateFormat(), 'X')
});
// Subscribe to retryEvent so we can load the password
self.canRetry.subscribe(function() {
self.updateAllHistory = true;
@@ -395,6 +607,11 @@ function HistoryModel(parent, data) {
$('#modal-retry-job').modal("show")
};
// Mark as completed button
self.markAsCompleted = function() {
parent.markAsCompleted(self);
};
// Update information only on click
self.updateAllHistoryInfo = function(data, event) {
// Show
@@ -431,35 +648,4 @@ function HistoryModel(parent, data) {
return false;
})
}
// Delete button
self.deleteSlot = function(item, event) {
// Confirm?
if(!self.parent.parent.confirmDeleteHistory() || confirm(glitterTranslate.deleteMsg + ":\n" + item.historyStatus.name() + "\n\n" + glitterTranslate.removeDow1)) {
// Are we still processing and it can be stopped?
if(item.processingDownload() == 2) {
callAPI({
mode: 'cancel_pp',
value: self.id
})
// All we can do is wait
} else {
// Delete the item
callAPI({
mode: 'history',
name: 'delete',
del_files: 1,
value: self.id
}).then(function(response) {
if(response.status) {
// Make sure no flickering (if there are more items left) and then remove
self.parent.isLoading(self.parent.totalItems() > 1)
self.parent.historyItems.remove(self);
self.parent.parent.refresh();
}
});
}
}
};
}

View File

@@ -13,7 +13,7 @@ function ViewModel() {
self.useGlobalOptions = ko.observable(true).extend({ persist: 'useGlobalOptions' });
self.refreshRate = ko.observable(1).extend({ persist: 'pageRefreshRate' });
self.dateFormat = ko.observable('fromNow').extend({ persist: 'pageDateFormat' });
self.displayTabbed = ko.observable().extend({ persist: 'displayTabbed' });
self.displayTabbed = ko.observable(false).extend({ persist: 'displayTabbed' });
self.displayCompact = ko.observable(false).extend({ persist: 'displayCompact' });
self.displayFullWidth = ko.observable(false).extend({ persist: 'displayFullWidth' });
self.confirmDeleteQueue = ko.observable(true).extend({ persist: 'confirmDeleteQueue' });
@@ -90,7 +90,7 @@ function ViewModel() {
var speedLimitNumber = Math.round(speedLimitNumberFull * 10) / 10;
// Fix it for lower than 1MB/s
if (bandwithLimitText == 'M' && speedLimitNumber < 1) {
if (bandwithLimitText === 'M' && speedLimitNumber < 1) {
bandwithLimitText = 'K';
speedLimitNumber = Math.round(speedLimitNumberFull * 1024);
}
@@ -120,8 +120,7 @@ function ViewModel() {
// Dynamic history length check
self.hasHistory = ko.pureComputed(function() {
// We also 'have history' if we can't find any results of the search or there are no failed ones
return (self.history.historyItems().length > 0 || self.history.searchTerm() || self.history.showFailed() || self.history.isLoading())
return (self.history.historyItems().length > 0 || self.history.searchTerm() || self.history.isLoading())
})
self.hasWarnings = ko.pureComputed(function() {
@@ -133,100 +132,6 @@ function ViewModel() {
return parseInt(self.nrWarnings()) + self.allMessages().length;
})
self.updateCheckAllButtonState = function(section) {
setCheckAllState(`#multiedit-checkall-${section}`, `.${section}-table input[name="multiedit"]`)
}
// Add queue or history item to multi-edit list
self.addMultiEdit = function(item, event) {
// The parent model is either the queue or history
const model = this.parent;
const section = model.queueItems ? 'queue' : 'history';
if(event.shiftKey) {
checkShiftRange(`.${section}-table input[name="multiedit"]`);
}
if(event.currentTarget.checked) {
model.multiEditItems.push(item);
// History is not editable
// Only the queue will fire the multi-edit update
model.doMultiEditUpdate?.();
} else {
model.multiEditItems.remove(function(inList) { return inList.id == item.id; })
}
self.updateCheckAllButtonState(section);
return true;
}
// Check all queue or history items
self.checkAllJobs = function(item, event) {
const section = event.currentTarget.closest('.multioperations-selector').id === 'history-options' ? 'history' : 'queue';
const model = section === 'history' ? self.history : self.queue;
const allChecks = $(`.${section}-table input[name="multiedit"]`).filter(':not(:disabled):visible');
self.updateCheckAllButtonState(section);
if(event.target.indeterminate || (event.target.checked && !event.target.indeterminate)) {
const allActive = allChecks.filter(":checked")
if(allActive.length === model.multiEditItems().length) {
model.multiEditItems.removeAll();
allActive.prop('checked', false)
} else {
allActive.each(function() {
var item = ko.dataFor(this)
model.multiEditItems.remove(function(inList) { return inList.id === item.id; })
this.checked = false;
})
}
} else {
allChecks.prop('checked', true)
allChecks.each(function() { model.multiEditItems.push(ko.dataFor(this)) })
event.target.checked = true
model.multiEditUpdate?.();
}
self.updateCheckAllButtonState(section);
return true;
}
// Delete all selected queue or history items
self.doMultiDelete = function(item, event) {
const section = event.currentTarget.closest('.multioperations-selector').id === 'history-options' ? 'history' : 'queue';
const model = section === 'history' ? self.history : self.queue;
// Anything selected?
if(model.multiEditItems().length < 1) return;
if(!self.confirmDeleteHistory() || confirm(glitterTranslate.removeDown)) {
let strIDs = '';
$.each(model.multiEditItems(), function() {
strIDs = strIDs + this.id + ',';
})
showNotification('.main-notification-box-removing-multiple', 0, model.multiEditItems().length)
callAPI({
mode: section,
name: 'delete',
del_files: 1,
value: strIDs
}).then(function(response) {
if(response.status) {
// Make sure the history doesnt flicker and then fade-out
model.isLoading(true)
self.refresh()
model.multiEditItems.removeAll();
hideNotification()
}
})
}
}
// Update main queue
self.updateQueue = function(response) {
// Block in case off dragging
@@ -244,7 +149,7 @@ function ViewModel() {
/***
Possible login failure?
***/
if (response.hasOwnProperty('error') && response.error == 'Missing authentication') {
if (response.hasOwnProperty('error') && response.error === 'Missing authentication') {
// Restart
document.location = document.location;
}
@@ -265,7 +170,7 @@ function ViewModel() {
self.diskSpaceLeft1(response.queue.diskspace1_norm)
// Same sizes? Then it's all 1 disk!
if (response.queue.diskspace1 != response.queue.diskspace2) {
if (response.queue.diskspace1 !== response.queue.diskspace2) {
self.diskSpaceLeft2(response.queue.diskspace2_norm)
} else {
self.diskSpaceLeft2('')
@@ -290,7 +195,7 @@ function ViewModel() {
Spark line
***/
// Break the speed if empty queue
if (response.queue.sizeleft == '0 B') {
if (response.queue.sizeleft === '0 B') {
response.queue.kbpersec = 0;
response.queue.speed = '0';
}
@@ -309,9 +214,9 @@ function ViewModel() {
self.speedHistory.push(parseInt(response.queue.kbpersec));
// Is sparkline visible? Not on small mobile devices..
if ($('.sparkline-container').css('display') != 'none') {
if ($('.sparkline-container').css('display') !== 'none') {
// Make sparkline
if (self.speedHistory.length == 1) {
if (self.speedHistory.length === 1) {
// We only use speedhistory from SAB if we use global settings
// Otherwise SAB doesn't know the refresh rate
if (!self.useGlobalOptions()) {
@@ -346,7 +251,7 @@ function ViewModel() {
Speedlimit
***/
// Nothing or 0 means 100%
if(response.queue.speedlimit == '' || response.queue.speedlimit == '0') {
if(response.queue.speedlimit === '' || response.queue.speedlimit === '0') {
self.speedLimitInt(100)
} else {
self.speedLimitInt(parseInt(response.queue.speedlimit));
@@ -369,7 +274,7 @@ function ViewModel() {
// Paused main queue
if (self.downloadsPaused()) {
if (response.queue.pause_int == '0') {
if (response.queue.pause_int === '0') {
timeString = glitterTranslate.paused;
} else {
var pauseSplit = response.queue.pause_int.split(/:/);
@@ -432,13 +337,13 @@ function ViewModel() {
limit: parseInt(self.queue.paginationLimit())
}
if (self.queue.searchTerm()) {
parseSearchQuery(api_call, self.queue.searchTerm(), ["cat", "category", "priority"])
parseSearchQuery(api_call, self.queue.searchTerm(), ["cat", "category", "priority", "status"])
}
var queueApi = callAPI(api_call)
.done(self.updateQueue)
.fail(function(response) {
// Catch the failure of authorization error
if (response.status == 401) {
if (response.status === 401) {
// Stop refresh and reload
clearInterval(self.interval)
location.reload();
@@ -458,10 +363,11 @@ function ViewModel() {
failed_only: self.history.showFailed() * 1,
start: self.history.pagination.currentStart(),
limit: parseInt(self.history.paginationLimit()),
archive: self.history.showArchive() * 1,
last_history_update: self.history.lastUpdate
}
if (self.history.searchTerm()) {
parseSearchQuery(history_call, self.history.searchTerm(), ["cat", "category"])
parseSearchQuery(history_call, self.history.searchTerm(), ["cat", "category", "status"])
}
// History
@@ -488,10 +394,9 @@ function ViewModel() {
api_request[keyword] = parsed_query[keyword]
}
// Special case for priority, dirty replace of string by numeric value
if (keyword == "priority" && api_request["priority"]) {
if (keyword === "priority" && api_request["priority"]) {
for (const prio_name in self.queue.priorityName) {
api_request["priority"] = api_request["priority"].replace(prio_name, self.queue.priorityName[prio_name])
}
}
}
@@ -526,19 +431,17 @@ function ViewModel() {
return;
}
// Show modal
$('#modal_custom_pause').modal('show')
// Focus on the input field
$('#modal_custom_pause').on('shown.bs.modal', function() {
$('#customPauseInput').focus()
})
// Reset on modal close
$('#modal_custom_pause').on('hide.bs.modal', function() {
self.pauseCustom('');
})
$('#modal-custom-pause').modal('show')
}
$('#modal-custom-pause').on('shown.bs.modal', function() {
// Focus on the input field when opening the modal
$('#customPauseInput').focus()
}).on('hide.bs.modal', function() {
// Reset on modal close
self.pauseCustom('');
})
// Update on changes
self.pauseCustom.subscribe(function(newValue) {
// Is it plain numbers?
@@ -550,7 +453,7 @@ function ViewModel() {
// At least 3 charaters
if (newValue.length < 3) {
$('#customPauseOutput').text('').data('time', 0)
$('#modal_custom_pause .btn-default').addClass('disabled')
$('#modal-custom-pause .btn-default').addClass('disabled')
return;
}
@@ -575,11 +478,11 @@ function ViewModel() {
var pauseDuration = Math.round((pauseParsed - Date.parse('now')) / 1000 / 60);
$('#customPauseOutput').html('<span class="glyphicon glyphicon-pause"></span> ' + glitterTranslate.pauseFor + ' ' + pauseDuration + ' ' + glitterTranslate.minutes)
$('#customPauseOutput').data('time', pauseDuration)
$('#modal_custom_pause .btn-default').removeClass('disabled')
$('#modal-custom-pause .btn-default').removeClass('disabled')
} else if (newValue) {
// No..
$('#customPauseOutput').text(glitterTranslate.pausePromptFail)
$('#modal_custom_pause .btn-default').addClass('disabled')
$('#modal-custom-pause .btn-default').addClass('disabled')
}
})
@@ -598,7 +501,7 @@ function ViewModel() {
// Refresh and close the modal
self.refresh()
self.downloadsPaused(true);
$('#modal_custom_pause').modal('hide')
$('#modal-custom-pause').modal('hide')
});
}
}
@@ -606,7 +509,7 @@ function ViewModel() {
// Update the warnings
self.nrWarnings.subscribe(function(newValue) {
// Really any change?
if (newValue == self.allWarnings().length) return;
if (newValue === self.allWarnings().length) return;
// Get all warnings
callAPI({
@@ -628,7 +531,7 @@ function ViewModel() {
type: glitterTranslate.status[warning.type].slice(0, -1),
text: convertHTMLtoText(warning.text).replace(/ /g, '\u00A0').replace(/(?:\r\n|\r|\n)/g, '<br />'),
timestamp: warning.time,
css: (warning.type == "ERROR" ? "danger" : warning.type == "WARNING" ? "warning" : "info"),
css: (warning.type === "ERROR" ? "danger" : warning.type === "WARNING" ? "warning" : "info"),
clear: self.clearWarnings
};
self.allWarnings.push(warningData)
@@ -648,7 +551,7 @@ function ViewModel() {
// Clear messages
self.clearMessages = function(whatToRemove) {
// Remove specifc type of messages
self.allMessages.remove(function(item) { return item.index == whatToRemove });
self.allMessages.remove(function(item) { return item.index === whatToRemove });
// Now so we don't show again today
localStorageSetItem(whatToRemove, Date.now())
}
@@ -659,7 +562,7 @@ function ViewModel() {
if (!self.speedLimitInt()) return;
// Update
if (self.speedLimitInt() != newValue) {
if (self.speedLimitInt() !== newValue) {
callAPI({
mode: "config",
name: "speedlimit",
@@ -732,11 +635,17 @@ function ViewModel() {
return false;
}
// Disable the buttons to prevent multiple uploads
let submit_buttons = $(form).find("input[type='submit']")
submit_buttons.attr("disabled", true)
// Upload file using the method we also use for drag-and-drop
if ($(form.nzbFile)[0].files[0]) {
self.addNZBFromFile($(form.nzbFile)[0].files);
// Hide modal, upload will reset the form
$("#modal-add-nzb").modal("hide");
// Re-enable the buttons
submit_buttons.attr("disabled", false)
} else if ($(form.nzbURL).val()) {
// Or add URL
var theCall = {
@@ -744,15 +653,12 @@ function ViewModel() {
name: $(form.nzbURL).val(),
nzbname: $('#nzbname').val(),
password: $('#password').val(),
script: $('#modal-add-nzb select[name="Post-processing"]').val(),
cat: $('#modal-add-nzb select[name="Category"]').val(),
priority: $('#modal-add-nzb select[name="Priority"]').val(),
pp: $('#modal-add-nzb select[name="Processing"]').val()
pp: $('#modal-add-nzb select[name="Processing"]').val(),
script: $('#modal-add-nzb select[name="Post-processing"]').val(),
}
// Optional, otherwise they get mis-labeled if left empty
if ($('#modal-add-nzb select[name="Category"]').val() != '*') theCall.cat = $('#modal-add-nzb select[name="Category"]').val()
if ($('#modal-add-nzb select[name="Processing"]').val()) theCall.pp = $('#modal-add-nzb select[name="Category"]').val()
// Add
callAPI(theCall).then(function(r) {
// Hide and reset/refresh
@@ -760,6 +666,7 @@ function ViewModel() {
$("#modal-add-nzb").modal("hide");
form.reset()
$('#nzbname').val('')
submit_buttons.attr("disabled", false)
});
}
}
@@ -779,7 +686,7 @@ function ViewModel() {
fileindex++
// Check if it's maybe a folder, we can't handle those
if (!file.type && file.size % 4096 == 0) return;
if (!file.type && file.size % 4096 === 0) return;
// Add notification
showNotification('.main-notification-box-uploading', 0, fileindex)
@@ -790,14 +697,12 @@ function ViewModel() {
data.append("mode", "addfile");
data.append("nzbname", $('#nzbname').val());
data.append("password", $('#password').val());
data.append("script", $('#modal-add-nzb select[name="Post-processing"]').val())
data.append("cat", $('#modal-add-nzb select[name="Category"]').val())
data.append("priority", $('#modal-add-nzb select[name="Priority"]').val())
data.append("pp", $('#modal-add-nzb select[name="Processing"]').val())
data.append("script", $('#modal-add-nzb select[name="Post-processing"]').val())
data.append("apikey", apiKey);
// Optional, otherwise they get mis-labeled if left empty
if ($('#modal-add-nzb select[name="Category"]').val() != '*') data.append("cat", $('#modal-add-nzb select[name="Category"]').val());
if ($('#modal-add-nzb select[name="Processing"]').val()) data.append("pp", $('#modal-add-nzb select[name="Processing"]').val());
// Add this one
$.ajax({
url: "./api",
@@ -821,16 +726,19 @@ function ViewModel() {
$('#nzbname').val('')
$('.btn-file em').html(glitterTranslate.chooseFile + '&hellip;')
}
}).fail(function(xhr, status, error) {
// Update the uploading notification text to show error
showNotification('.main-notification-box-uploading-failed', 0, error)
});
}
// Load status info
self.loadStatusInfo = function(item, event) {
// Full refresh? Only on click and for the status-screen
var statusFullRefresh = (event != undefined) && $('#options-status').hasClass('active');
var statusFullRefresh = (event !== undefined) && $('#options-status').hasClass('active');
// Measure performance? Takes a while
var statusPerformance = (event != undefined) && $(event.currentTarget).hasClass('diskspeed-button');
var statusPerformance = (event !== undefined) && $(event.currentTarget).hasClass('diskspeed-button');
// Make it spin if the user requested it otherwise we don't,
// because browsers use a lot of CPU for the animation
@@ -870,43 +778,7 @@ function ViewModel() {
}
// Update the servers
if (self.statusInfo.servers().length != data.status.servers.length) {
// Empty them, in case of update
self.statusInfo.servers([])
// Initial add
$.each(data.status.servers, function() {
self.statusInfo.servers.push({
'servername': ko.observable(this.servername),
'serveroptional': ko.observable(this.serveroptional),
'serverpriority': ko.observable(this.serverpriority),
'servertotalconn': ko.observable(this.servertotalconn),
'serverssl': ko.observable(this.serverssl),
'serversslinfo': ko.observable(this.serversslinfo),
'serveractiveconn': ko.observable(this.serveractiveconn),
'servererror': ko.observable(this.servererror),
'serveractive': ko.observable(this.serveractive),
'serverconnections': ko.observableArray(this.serverconnections),
'serverbps': ko.observable(this.serverbps)
})
})
} else {
// Update
$.each(data.status.servers, function(index) {
var activeServer = self.statusInfo.servers()[index];
activeServer.servername(this.servername),
activeServer.serveroptional(this.serveroptional),
activeServer.serverpriority(this.serverpriority),
activeServer.servertotalconn(this.servertotalconn),
activeServer.serverssl(this.serverssl),
activeServer.serversslinfo(this.serversslinfo),
activeServer.serveractiveconn(this.serveractiveconn),
activeServer.servererror(this.servererror),
activeServer.serveractive(this.serveractive),
activeServer.serverconnections(this.serverconnections),
activeServer.serverbps(this.serverbps)
})
}
ko.mapping.fromJS(data.status.servers, {}, self.statusInfo.servers)
// Add tooltips to possible new items
if (!isMobile) $('#modal-options [data-tooltip="true"]').tooltip({ trigger: 'hover', container: 'body' })
@@ -922,7 +794,7 @@ function ViewModel() {
var nzbSize = $(event.target).data('size')
// Maybe it was a click on the icon?
if (nzbSize == undefined) {
if (nzbSize === undefined) {
nzbSize = $(event.target.parentElement).data('size')
}
@@ -1004,7 +876,7 @@ function ViewModel() {
$('#options-orphans [data-tooltip="true"]').tooltip('hide')
// Show notification on delete
if ($(htmlElement.currentTarget).data('action') == 'delete_orphan') {
if ($(htmlElement.currentTarget).data('action') === 'delete_orphan') {
showNotification('.main-notification-box-removing', 1000)
} else {
// Adding back to queue
@@ -1026,7 +898,7 @@ function ViewModel() {
// Orphaned folder deletion of all
self.removeAllOrphaned = function() {
if (!self.confirmDeleteHistory() || confirm(glitterTranslate.clearWarn)) {
if (confirm(glitterTranslate.clearOrphanWarning)) {
// Show notification
showNotification('.main-notification-box-removing-multiple', 0, self.statusInfo.folders().length)
// Delete them all
@@ -1043,7 +915,7 @@ function ViewModel() {
// Orphaned folder adding of all
self.addAllOrphaned = function() {
if (!self.confirmDeleteHistory() || confirm(glitterTranslate.clearWarn)) {
if (confirm(glitterTranslate.confirm)) {
// Show notification
showNotification('.main-notification-box-sendback')
// Delete them all
@@ -1218,7 +1090,7 @@ function ViewModel() {
// Reformat and set categories
self.queue.categoriesList($.map(response.config.categories, function(cat) {
// Default?
if(cat.name == '*') return { catValue: '*', catText: glitterTranslate.defaultText };
if(cat.name === '*') return { catValue: '*', catText: glitterTranslate.defaultText };
return { catValue: cat.name, catText: cat.name };
}))
@@ -1230,14 +1102,10 @@ function ViewModel() {
// Reformat script-list
self.queue.scriptsList($.map(script_response.scripts, function(script) {
// None?
if(script == 'None') return { scriptValue: 'None', scriptText: glitterTranslate.noneText };
if(script === 'None') return { scriptValue: 'None', scriptText: glitterTranslate.noneText };
return { scriptValue: script, scriptText: script };
}))
self.queue.scriptsListLoaded(true)
})
} else {
// We can already continue
self.queue.scriptsListLoaded(true)
}
@@ -1314,7 +1182,7 @@ function ViewModel() {
// Orphaned folders? If user clicked away we check again in 5 days
if (self.statusInfo.folders().length >= 3 && orphanMsg) {
// Check if not already there
if (!ko.utils.arrayFirst(self.allMessages(), function(item) { return item.index == 'OrphanedMsg' })) {
if (!ko.utils.arrayFirst(self.allMessages(), function(item) { return item.index === 'OrphanedMsg' })) {
self.allMessages.push({
index: 'OrphanedMsg',
type: glitterTranslate.status['INFO'],
@@ -1326,7 +1194,7 @@ function ViewModel() {
} else {
// Remove any message, if it was there
self.allMessages.remove(function(item) {
return item.index == 'OrphanedMsg';
return item.index === 'OrphanedMsg';
})
}
})

View File

@@ -32,12 +32,12 @@ function QueueListModel(parent) {
// External var's
self.queueItems = ko.observableArray([]);
self.totalItems = ko.observable(0);
self.deleteItems = ko.observableArray([]);
self.isMultiEditing = ko.observable(false).extend({ persist: 'queueIsMultiEditing' });
self.isLoading = ko.observable(false).extend({ rateLimit: 100 });
self.multiEditItems = ko.observableArray([]);
self.categoriesList = ko.observableArray([]);
self.scriptsList = ko.observableArray([]);
self.scriptsListLoaded = ko.observable(false);
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 400, method: "notifyWhenChangesStop" } });
self.paginationLimit = ko.observable(20).extend({ persist: 'queuePaginationLimit' });
self.pagination = new paginationModel(self);
@@ -75,7 +75,7 @@ function QueueListModel(parent) {
$.each(data.slots, function() {
var item = this;
var existingItem = ko.utils.arrayFirst(self.queueItems(), function(i) {
return i.id == item.nzo_id;
return i.id === item.nzo_id;
});
if(existingItem) {
@@ -88,7 +88,7 @@ function QueueListModel(parent) {
});
// Remove all items if there's any
if(itemIds.length == self.paginationLimit()) {
if(itemIds.length === self.paginationLimit()) {
// Replace it, so only 1 Knockout DOM-update!
self.queueItems(newItems);
newItems = [];
@@ -97,7 +97,7 @@ function QueueListModel(parent) {
$.each(itemIds, function() {
var id = this.toString();
self.queueItems.remove(ko.utils.arrayFirst(self.queueItems(), function(i) {
return i.id == id;
return i.id === id;
}));
});
}
@@ -148,6 +148,27 @@ function QueueListModel(parent) {
}
self.triggerRemoveDownload = function(items) {
// Show and fill modal
self.deleteItems.removeAll()
// Single or multiple items?
if(items.length) {
ko.utils.arrayPushAll(self.deleteItems, items)
} else {
self.deleteItems.push(items)
}
// Show modal or delete right away
if(self.parent.confirmDeleteQueue()) {
// Open modal if desired
$('#modal-delete-queue-job').modal("show")
} else {
// Otherwise just submit right away
$('#modal-delete-queue-job form').submit()
}
}
// Save pagination state
self.paginationLimit.subscribe(function(newValue) {
// Save in config if global
@@ -171,7 +192,7 @@ function QueueListModel(parent) {
// Searching in queue (rate-limited in decleration)
self.searchTerm.subscribe(function() {
// Go back to page 1
if(self.pagination.currentPage() != 1) {
if(self.pagination.currentPage() !== 1) {
// This forces a refresh
self.pagination.moveToPage(1);
} else {
@@ -183,12 +204,12 @@ function QueueListModel(parent) {
// Clear searchterm
self.clearSearchTerm = function(data, event) {
// Was it escape key or click?
if(event.type == 'mousedown' || (event.keyCode && event.keyCode == 27)) {
if(event.type === 'mousedown' || (event.keyCode && event.keyCode === 27)) {
self.isLoading(true)
self.searchTerm('');
}
// Was it click and the field is empty? Then we focus on the field
if(event.type == 'mousedown' && self.searchTerm() == '') {
if(event.type === 'mousedown' && self.searchTerm() === '') {
$(event.target).parents('.search-box').find('input[type="text"]').focus()
return;
}
@@ -255,7 +276,7 @@ function QueueListModel(parent) {
// Reset form and remove all checked ones
$form[0].reset();
self.multiEditItems.removeAll();
$('.queue-table input[name="multiedit"], .queue #multiedit-checkall').prop({'checked': false, 'indeterminate': false})
$('.queue-table input[name="multiedit"], #multiedit-checkall-queue').prop({'checked': false, 'indeterminate': false})
// Is the multi-edit in view?
if(($form.offset().top + $form.outerHeight(true)) > ($(window).scrollTop()+$(window).height())) {
@@ -266,6 +287,72 @@ function QueueListModel(parent) {
}
}
// Add to the list
self.addMultiEdit = function(item, event) {
// Is it a shift-click?
if(event.shiftKey) {
checkShiftRange('.queue-table input[name="multiedit"]');
}
// Add or remove from the list?
if(event.currentTarget.checked) {
// Add item
self.multiEditItems.push(item);
// Update them all
self.doMultiEditUpdate();
} else {
// Go over them all to know which one to remove
self.multiEditItems.remove(function(inList) { return inList.id == item.id; })
}
// Update check-all buton state
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
return true;
}
// Check all
self.checkAllJobs = function(item, event) {
// Get which ones we care about
var allChecks = $('.queue-table input[name="multiedit"]').filter(':not(:disabled):visible');
// We need to re-evaltuate the state of this check-all
// Otherwise the 'inderterminate' will be overwritten by the click event!
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
// Now we can check what happend
// For when some are checked, or all are checked (but not partly)
if(event.target.indeterminate || (event.target.checked && !event.target.indeterminate)) {
var allActive = allChecks.filter(":checked")
// First remove the from the list
if(allActive.length == self.multiEditItems().length) {
// Just remove all
self.multiEditItems.removeAll();
// Remove the check
allActive.prop('checked', false)
} else {
// Remove them seperate
allActive.each(function() {
// Go over them all to know which one to remove
var item = ko.dataFor(this)
self.multiEditItems.remove(function(inList) { return inList.id == item.id; })
// Remove the check of this one
this.checked = false;
})
}
} else {
// None are checked, so check and add them all
allChecks.prop('checked', true)
allChecks.each(function() { self.multiEditItems.push(ko.dataFor(this)) })
event.target.checked = true
// Now we fire the update
self.doMultiEditUpdate()
}
// Set state of all the check-all's
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
return true;
}
// Do the actual multi-update immediatly
self.doMultiEditUpdate = function() {
// Anything selected?
@@ -286,14 +373,14 @@ function QueueListModel(parent) {
// All non-category updates need to only happen after a category update
function nonCatUpdates() {
if(newScript != '') {
if(newScript !== '') {
callAPI({
mode: 'change_script',
value: strIDs,
value2: newScript
})
}
if(newPrior != '') {
if(newPrior !== '') {
callAPI({
mode: 'queue',
name: 'priority',
@@ -301,7 +388,7 @@ function QueueListModel(parent) {
value2: newPrior
})
}
if(newProc != '') {
if(newProc !== '') {
callAPI({
mode: 'change_opts',
value: strIDs,
@@ -318,13 +405,13 @@ function QueueListModel(parent) {
// Wat a little and do the refresh
// Only if anything changed!
if(newStatus || newProc != '' || newPrior != '' || newScript != '' || newCat != '') {
if(newStatus || newProc !== '' || newPrior !== '' || newScript !== '' || newCat !== '') {
setTimeout(parent.refresh, 100)
}
}
// What is changed?
if(newCat != '') {
if(newCat !== '') {
callAPI({
mode: 'change_cat',
value: strIDs,
@@ -336,6 +423,103 @@ function QueueListModel(parent) {
}
// Handle mousedown to capture state before change
self.handleMultiEditStatusMouseDown = function(item, event) {
var clickedValue = $(event.currentTarget).find("input").val();
// If this radio was already selected (same value as previous), clear it
if ($('.multioperations-selector input[name="multiedit-status"]:checked').val() === clickedValue) {
// Clear all radio buttons in this group after the click finished
// Hacky, but it works
setTimeout(function () {
$('.multioperations-selector input[name="multiedit-status"]').prop('checked', false);
}, 200)
}
return true;
}
// Remove downloads from queue
self.removeDownloads = function(form) {
// Hide modal and show notification
$('#modal-delete-queue-job').modal("hide")
showNotification('.main-notification-box-removing')
var strIDs = '';
$.each(self.deleteItems(), function(index) {
strIDs = strIDs + this.id + ',';
})
callAPI({
mode: 'queue',
name: 'delete',
del_files: 1,
value: strIDs
}).then(function(response) {
self.queueItems.removeAll(self.deleteItems());
self.multiEditItems.removeAll(self.deleteItems())
self.parent.refresh();
hideNotification()
});
};
// Delete all selected
self.doMultiDelete = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Trigger modal
self.triggerRemoveDownload(self.multiEditItems())
}
// Move all selected to top
self.doMultiMoveToTop = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Move each item to the top, starting from the last one in the sorted list
var arrayList = self.multiEditItems()
var movePromises = [];
for(var i = arrayList.length - 1; i >= 0; i--) {
movePromises.push(callAPI({
mode: "switch",
value: arrayList[i].id,
value2: 0
}));
}
// Wait for all moves to complete then refresh
Promise.all(movePromises).then(function() {
self.parent.refresh();
});
}
// Move all selected to bottom
self.doMultiMoveToBottom = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Move each item to the bottom, starting from the first one in the sorted list
var arrayList = self.multiEditItems()
var movePromises = [];
for(var i = 0; i < arrayList.length; i++) {
movePromises.push(callAPI({
mode: "switch",
value: arrayList[i].id,
value2: self.totalItems() - 1
}));
}
// Wait for all moves to complete then refresh
Promise.all(movePromises).then(function() {
self.parent.refresh();
});
}
// Focus on the confirm button
$('#modal-delete-queue-job').on("shown.bs.modal", function() {
$('#modal-delete-queue-job .btn[type="submit"]').focus()
})
// On change of page we need to check all those that were in the list!
self.queueItems.subscribe(function() {
// We need to wait until the unit is actually finished rendering
@@ -345,7 +529,7 @@ function QueueListModel(parent) {
})
// Update check-all buton state
setCheckAllState('.queue #multiedit-checkall', '.queue-table input[name="multiedit"]')
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
}, 100)
}, null, "arrayChange")
}
@@ -365,8 +549,8 @@ function QueueModel(parent, data) {
self.index = ko.observable(data.index);
self.status = ko.observable(data.status);
self.labels = ko.observableArray(data.labels);
self.isGrabbing = ko.observable(data.status == 'Grabbing' || data.avg_age == '-')
self.isFetchingBlocks = data.status == 'Fetching' || data.priority == 'Repair' // No need to update
self.isGrabbing = ko.observable(data.status === 'Grabbing' || data.avg_age === '-')
self.isFetchingBlocks = data.status === 'Fetching' || data.priority === 'Repair' // No need to update
self.totalMB = ko.observable(parseFloat(data.mb));
self.remainingMB = ko.observable(parseFloat(data.mbleft))
self.missingMB = ko.observable(parseFloat(data.mbmissing))
@@ -377,7 +561,7 @@ function QueueModel(parent, data) {
self.priority = ko.observable(parent.priorityName[data.priority]);
self.script = ko.observable(data.script);
self.unpackopts = ko.observable(parseInt(data.unpackopts)) // UnpackOpts fails if not parseInt'd!
self.pausedStatus = ko.observable(data.status == 'Paused');
self.pausedStatus = ko.observable(data.status === 'Paused');
self.timeLeft = ko.observable(data.timeleft);
// Initially empty
@@ -388,7 +572,7 @@ function QueueModel(parent, data) {
// Color of the progress bar
self.progressColor = ko.computed(function() {
// Checking
if(self.status() == 'Checking') {
if(self.status() === 'Checking') {
return '#58A9FA'
}
// Check for missing data, the value is arbitrary! (2%)
@@ -396,7 +580,7 @@ function QueueModel(parent, data) {
return '#F8A34E'
}
// Set to grey, only when not Force download
if((self.parent.parent.downloadsPaused() && self.priority() != 2) || self.pausedStatus()) {
if((self.parent.parent.downloadsPaused() && self.priority() !== 2) || self.pausedStatus()) {
return '#B7B7B7'
}
// Nothing
@@ -405,6 +589,9 @@ function QueueModel(parent, data) {
// MB's
self.progressText = ko.pureComputed(function() {
if(self.isGrabbing()) {
return glitterTranslate.fetchingURL
}
return (self.totalMB() - self.remainingMB()).toFixed(0) + " MB / " + (self.totalMB() * 1).toFixed(0) + " MB";
})
@@ -424,15 +611,15 @@ function QueueModel(parent, data) {
})
self.statusText = ko.computed(function() {
// Checking
if(self.status() == 'Checking') {
if(self.status() === 'Checking') {
return glitterTranslate.checking
}
// Grabbing
if(self.status() == 'Grabbing') {
if(self.status() === 'Grabbing') {
return glitterTranslate.fetch
}
// Pausing status
if((self.parent.parent.downloadsPaused() && self.priority() != 2) || self.pausedStatus()) {
if((self.parent.parent.downloadsPaused() && self.priority() !== 2) || self.pausedStatus()) {
return glitterTranslate.paused;
}
// Just the time
@@ -442,7 +629,7 @@ function QueueModel(parent, data) {
// Icon to better show force-priority
self.queueIcon = ko.computed(function() {
// Force comes first
if(self.priority() == 2) {
if(self.priority() === 2) {
return 'glyphicon-forward'
}
if(self.pausedStatus()) {
@@ -456,17 +643,17 @@ function QueueModel(parent, data) {
switch(param) {
case 'category':
// Exception for *
if(self.category() == "*")
if(self.category() === "*")
return glitterTranslate.defaultText
return self.category();
case 'priority':
// Onload-exception
if(self.priority() == undefined) return;
return ko.utils.arrayFirst(self.parent.priorityOptions(), function(item) { return item.value == self.priority()}).name;
if(self.priority() === undefined) return;
return ko.utils.arrayFirst(self.parent.priorityOptions(), function(item) { return item.value === self.priority()}).name;
case 'processing':
// Onload-exception
if(self.unpackopts() == undefined) return;
return ko.utils.arrayFirst(self.parent.processingOptions(), function(item) { return item.value == self.unpackopts()}).name;
if(self.unpackopts() === undefined) return;
return ko.utils.arrayFirst(self.parent.processingOptions(), function(item) { return item.value === self.unpackopts()}).name;
case 'scripts':
return self.script();
case 'age':
@@ -482,7 +669,7 @@ function QueueModel(parent, data) {
self.password(data.password);
self.index(data.index);
self.status(data.status)
self.isGrabbing(data.status == 'Grabbing' || data.avg_age == '-')
self.isGrabbing(data.status === 'Grabbing' || data.avg_age === '-')
self.totalMB(parseFloat(data.mb));
self.remainingMB(parseFloat(data.mbleft));
self.missingMB(parseFloat(data.mbmissing))
@@ -493,12 +680,12 @@ function QueueModel(parent, data) {
self.priority(parent.priorityName[data.priority]);
self.script(data.script);
self.unpackopts(parseInt(data.unpackopts)) // UnpackOpts fails if not parseInt'd!
self.pausedStatus(data.status == 'Paused');
self.pausedStatus(data.status === 'Paused');
self.timeLeft(data.timeleft);
// Did the label-list change?
// Otherwise KO will send updates to all texts during refresh()
if(self.rawLabels != data.labels.toString()) {
if(self.rawLabels !== data.labels.toString()) {
// Update
self.labels(data.labels);
self.rawLabels = data.labels.toString();
@@ -523,9 +710,37 @@ function QueueModel(parent, data) {
self.editingName(true)
self.nameForEdit(self.name())
// Select
$(event.target).parents('.name').find('input').select()
}
// Select the input
const $input = $(event.target).parents('.name').find('input');
$input.select();
// Add Tab/Shift+Tab navigation
$input.off('keydown.tabnav').on('keydown.tabnav', function (e) {
if (e.key === 'Tab') {
e.preventDefault();
// Find all rename inputs that are currently visible
const inputs = $('.queue-table input[type="text"]');
const currentIndex = inputs.index(this);
let nextIndex = e.shiftKey ? currentIndex - 1 : currentIndex + 1;
// Wrap around
if (nextIndex >= inputs.length) nextIndex = 0;
if (nextIndex < 0) nextIndex = inputs.length - 1;
// Simulate clicking Rename on the next row
const $nextRow = inputs.eq(nextIndex).closest('tr');
$nextRow.find('.hover-button[title="Rename"]').click();
// Delay focusing to wait for new input to appear
setTimeout(() => {
const $nextInput = $('.queue-table input[type="text"]').eq(nextIndex);
$nextInput.focus().select();
}, 50);
}
});
};
// Catch the submit action
self.editingNameSubmit = function() {
@@ -535,7 +750,7 @@ function QueueModel(parent, data) {
// Do on change
self.nameForEdit.subscribe(function(newName) {
// Anything change or empty?
if(!newName || self.name() == newName) return;
if(!newName || self.name() === newName) return;
// Rename would abort Direct Unpack, so ask if user is sure
if(self.direct_unpack() && !confirm(glitterTranslate.renameAbort)) return;
@@ -607,29 +822,5 @@ function QueueModel(parent, data) {
})
}
// Remove 1 download from queue
self.removeDownload = function(item, event) {
// Confirm and remove
if(!self.parent.parent.confirmDeleteQueue() || confirm(glitterTranslate.deleteMsg + ":\n" + item.name() + "\n\n" + glitterTranslate.removeDow1)) {
var itemToDelete = this;
// Show notification
showNotification('.main-notification-box-removing')
callAPI({
mode: 'queue',
name: 'delete',
del_files: 1,
value: item.id
}).then(function(response) {
// Make sure no flickering (if there are more items left) and then remove
self.parent.isLoading(self.parent.totalItems() > 1)
parent.queueItems.remove(itemToDelete);
parent.multiEditItems.remove(function(inList) { return inList.id == itemToDelete.id; })
self.parent.parent.refresh();
// Hide notifcation
hideNotification()
});
}
};
}

View File

@@ -69,6 +69,10 @@ legend,
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.main-notification-box-uploading-failed {
color: #F95151;
}
.container,
.modal-body,
.modal-footer {
@@ -140,6 +144,12 @@ select.form-control,
color: #EBEBEB;
}
.btn-default:not(.navbar-btn):hover,
select:hover,
input:hover {
background-color: #666666;
}
/* Needed to force the text-color */
.table-striped>tbody>tr:nth-child(odd)>td,
.table>tbody>tr:nth-child(odd)>td,
@@ -200,7 +210,8 @@ tbody .caret {
.info-container,
#modal-options .options-status-box small,
#modal-options #options-status small,
#modal-options .tab-content h4 {
#modal-options .tab-content h4,
h2 small {
color: #D6D6D6;
}
@@ -266,16 +277,11 @@ button:focus {
outline: initial;
}
/* Placeholders - Will not work if grouped! */
::-webkit-input-placeholder {
color: #EBEBEB !important;
.archive-icon {
fill: #EBEBEB;
}
::-moz-placeholder {
color: #EBEBEB !important;
opacity: 1 !important;
}
:-ms-input-placeholder {
color: #EBEBEB !important;
::placeholder {
color: #EBEBEB !important;
opacity: 0.5 !important;
}

View File

@@ -690,6 +690,10 @@ tbody.no-downloads tr td {
border-bottom: 1px solid #F0F0F0 !important;
}
tbody.no-downloads tr td>span {
opacity: 0.7;
}
tbody.no-downloads tr td a {
line-height: 2em;
font-size: 1.5em;
@@ -856,7 +860,7 @@ tr.queue-item>td:first-child>a {
}
.multioperations-selector .add-nzb-inputbox {
width: 20%;
width: 19%;
float: left;
}
@@ -867,7 +871,7 @@ tr.queue-item>td:first-child>a {
}
.multioperations-selector .add-nzb-inputbox-small {
width: 80px;
width: 115px;
float: right;
padding-left: 0;
padding-top: 12px;
@@ -1093,6 +1097,13 @@ tr.queue-item>td:first-child>a {
font-weight: bold;
}
.mark-completed-link {
font-weight: bold !important;
color: #28a745 !important;
text-decoration: underline;
margin-left: 10px;
}
.history-status-hidden {
display: none;
}
@@ -1103,20 +1114,26 @@ tr.queue-item>td:first-child>a {
}
#history-options .hover-button {
padding: 7px 8px 7px 8px;
padding: 7px;
line-height: 1.428571429;
display: inline-block;
}
#history-options .hover-button.history-archive {
line-height: 1em;
vertical-align: middle;
}
#history-options div {
display: inline-block;
vertical-align: middle;
margin-left: 5px;
}
#history-options input[name="multieditCheckAll"] {
vertical-align: middle;
position: relative;
top: -1px;
top: -2px;
margin-left: 8px;
}
@@ -1186,6 +1203,10 @@ tr.queue-item>td:first-child>a {
color: red !important;
}
.history-options-show-failed .archive-icon {
fill: #2bbd43;
}
.processing-download {
width: 16px;
height: 18px;
@@ -1521,6 +1542,34 @@ input[name="nzbURL"] {
transition : border 500ms ease-out;
}
/* DELETE MODAL */
.modal-delete-job ul {
margin-top: 10px;
}
.modal-delete-job li {
word-break: break-all;
}
.modal-delete-job .checkbox {
float: left;
margin: 8px 5px 0px;
}
#modal-purge-history .checkbox {
margin: 0;
}
.modal-delete-job .checkbox input,
#modal-purge-history .checkbox input {
margin-top: 3px;
}
.modal-delete-job .checkbox input+span,
#modal-purge-history .checkbox input+span {
font-weight: bold;
}
/* HELP MODAL */
#modal-help .modal-body {

View File

@@ -7,6 +7,10 @@
padding-right: 8px;
}
.container-full-width .container {
width: 100%;
}
.main-navbar {
margin-top: 0;
padding: 0;
@@ -163,7 +167,7 @@ tr.queue-item>td:first-child>a {
}
.multioperations-selector .add-nzb-inputbox-small {
width: 72px;
width: 115px;
}
.multioperations-selector .add-nzb-inputbox-clear {

View File

@@ -7,7 +7,9 @@
<h1>$T('wizard-quickstart')</h1>
<hr />
<script type="text/javascript">
var txtTestServer = "$T('wizard-server-text')";
var txtChecking = "$T('srv-testing')";
var txtTestRequired = "$T('wizard-test-server-required')";
<!--#include raw $webdir + "/static/javascript/checkserver.js"#-->
</script>
<h3>$T('wizard-server')</h3>
@@ -22,7 +24,7 @@
<div class="form-group">
<label for="host" class="col-sm-4 control-label">$T('srv-host')</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="host" id="host" value="$host" placeholder="$T('wizard-example') news.newshosting.com" />
<input type="text" class="form-control" name="host" id="host" value="$host" placeholder="$T('wizard-example') news.newshosting.com" required />
</div>
</div>
<div class="form-group">
@@ -57,29 +59,31 @@
<div class="form-group">
<label for="port" class="col-sm-4 control-label">$T('srv-port')</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="port" id="port" value="<!--#if $port then $port else '563' #-->" />
<input type="number" class="form-control" name="port" id="port" value="<!--#if $port then $port else '563' #-->" min="0" max="65535" required />
</div>
</div>
<div class="form-group">
<label for="connections" class="col-sm-4 control-label">$T('srv-connections')</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="connections" id="connections" value="<!--#if $connections then $connections else '8'#-->" data-toggle="tooltip" data-placement="right" title="$T('wizard-server-con-explain') $T('wizard-server-con-eg')" />
<input type="number" class="form-control" name="connections" id="connections" value="<!--#if $connections then $connections else '8'#-->" min="1" max="500" data-toggle="tooltip" data-placement="right" title="$T('wizard-server-con-explain') $T('wizard-server-con-eg')" required />
</div>
</div>
<div class="form-group">
<label for="ssl_verify" class="col-sm-4 control-label">$T('opt-ssl_verify')</label>
<div class="col-sm-8">
<select name="ssl_verify" id="ssl_verify" class="form-control" <!--#if int($certificate_validation) == 0 then "disabled=\"disabled\"" else ""#-->>
<option value="2" <!--#if $ssl_verify == 2 then 'selected="selected"' else ""#--> >$T('ssl_verify-strict')</option>
<option value="1" <!--#if $ssl_verify == 1 then 'selected="selected"' else ""#--> >$T('ssl_verify-normal')</option>
<select name="ssl_verify" id="ssl_verify" class="form-control">
<option value="3" <!--#if $ssl_verify == 3 then 'selected="selected"' else ""#--> >$T('ssl_verify-strict')</option>
<option value="2" <!--#if $ssl_verify == 2 then 'selected="selected"' else ""#--> >$T('ssl_verify-medium')</option>
<option value="1" <!--#if $ssl_verify == 1 then 'selected="selected"' else ""#--> >$T('ssl_verify-minimal')</option>
<option value="0" <!--#if $ssl_verify == 0 then 'selected="selected"' else ""#--> >$T('ssl_verify-disabled')</option>
</select>
<span class="desc">$T('explain-ssl_verify').replace('-', '<br/>-')</span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<button id="serverTest" class="btn btn-default"><span class="glyphicon glyphicon-sort"></span> $T('wizard-button-testServer')</button>
<button id="serverTest" class="btn btn-default" data-toggle="tooltip" data-placement="left"><span class="glyphicon glyphicon-sort"></span> $T('wizard-button-testServer')</button>
</div>
<div class="col-sm-8">
<div id="serverResponse" class="well well-sm">$T('wizard-server-text')</div>

View File

@@ -1,9 +1,31 @@
// Variable to track server test results
var serverTestSuccessful = false;
function resetTestResult() {
serverTestSuccessful = false;
$('#serverResponse').html(txtTestServer);
checkRequired();
}
function setTestResult(success) {
serverTestSuccessful = success;
checkRequired();
}
function checkRequired() {
if ($("#host").val() && $("#connections").val()) {
// Check if form is valid using HTML5 validation and if server test passed
if ($("form").get(0).checkValidity() && serverTestSuccessful) {
$("#next-button").removeClass('disabled')
$("#next-button").removeAttr('data-toggle')
$("#next-button").removeAttr('title')
$("#next-button").tooltip('destroy')
return true;
} else {
$("#next-button").addClass('disabled')
$("#next-button").attr('data-toggle', 'tooltip')
$("#next-button").attr('data-placement', 'left')
$("#next-button").attr('title', txtTestRequired)
$("#next-button").tooltip()
return false;
}
}
@@ -12,8 +34,13 @@ $(document).ready(function() {
// Add tooltips
$('[data-toggle="tooltip"]').tooltip()
// On form-submit
// On server test button click
$("#serverTest").click(function() {
// Check HTML5 form validation before testing server
if (!$("form").get(0).reportValidity()) {
return false;
}
$('#serverResponse').html(txtChecking);
$.getJSON(
"../api?mode=config&name=test_server&output=json",
@@ -21,8 +48,10 @@ $(document).ready(function() {
function(result) {
if (result.value.result) {
r = '<span class="success"><span class="glyphicon glyphicon-ok"></span> ' + result.value.message + '</span>';
setTestResult(true);
} else {
r = '<span class="failed"><span class="glyphicon glyphicon-minus-sign"></span> ' + result.value.message + '</span>';
setTestResult(false);
}
r = r.replace('https://sabnzbd.org/certificate-errors', '<a href="https://sabnzbd.org/certificate-errors" class="failed" target="_blank">https://sabnzbd.org/certificate-errors</a>')
$('#serverResponse').html(r);
@@ -31,47 +60,31 @@ $(document).ready(function() {
return false;
});
$("#port, #connections").bind('keyup blur', function() {
if (this.value > 0) {
$(this).removeClass("incorrect");
$(this).addClass("correct");
} else {
$(this).removeClass("correct");
$(this).addClass("incorrect");
}
checkRequired()
});
$("#host, #username, #password").bind('keyup blur', function() {
if (this.value) {
$(this).removeClass("incorrect");
$(this).addClass("correct");
} else {
$(this).removeClass("correct");
$(this).addClass("incorrect");
}
checkRequired();
// Reset test result when any form field changes
$("#host, #username, #password, #port, #connections, #ssl_verify").bind('input change', function() {
resetTestResult();
});
$('#ssl').click(function() {
if(this.checked) {
// Enabled SSL change port when not already a custom port
if($('#port').val() == '119') {
if($('#port').val() === '119') {
$('#port').val('563')
}
} else {
// Remove SSL port
if($('#port').val() == '563') {
if($('#port').val() === '563') {
$('#port').val('119')
}
}
resetTestResult();
})
checkRequired()
$('form').submit(function(event) {
// Double check
if(!checkRequired()) {
// Check if server test passed (HTML5 validation is automatic)
if(!serverTestSuccessful) {
event.preventDefault();
}
})

View File

@@ -88,49 +88,25 @@ label {
float: right;
margin: 0;
}
.desc {
font-size: 12px;
font-style: italic;
}
.align-right {
text-align: right;
}
.align-center {
text-align: center;
}
.unselected,
.selected {
display: inline-block;
}
.unselected {
padding: 6px 10px 6px 10px;
border: 1px solid #636363;
margin-left: 8px;
margin-right: 8px;
color: #636363;
}
.selected {
padding: 6px 10px 6px 10px;
color: white;
background-color: #636363;
border: 1px solid #636363;
margin-left: 8px;
margin-right: 8px;
}
.bigger {
font-size: 14px;
}
.bigger input {
font-size: 16px;
}
.required-star {
color: red;
}
.full-width {
width: 100%;
}
.correct {
border: 2px solid #00cc22;
}
.incorrect {
border: 2px solid red;
}
.hidden {
display: none !important;
}
@@ -146,20 +122,12 @@ label {
.input-group-bw {
width: 150px;
}
.disabled-text {
text-decoration: line-through;
color: #ccc;
}
#serverResponse {
padding: 6px 10px;
}
#host-tip {
margin-bottom: 5px;
}
.error-text {
display: inline;
color: red;
}
#bandwidth {
display: inline-block;
}

View File

@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2022-2023 The SABnzbd-Team (sabnzbd.org) -->
<!-- Copyright 2022-2025 by The SABnzbd-Team (sabnzbd.org) -->
<component type="desktop-application">
<id>org.sabnzbd.sabnzbd</id>
<metadata_license>MIT</metadata_license>
<name>SABnzbd</name>
<summary>Free and easy binary newsreader</summary>
<branding>
<color type="primary" scheme_preference="light">#e7e7e7</color>
<color type="primary" scheme_preference="dark">#444444</color>
</branding>
<description>
<p>
SABnzbd is a free and Open Source web-based binary newsreader,
@@ -17,6 +21,13 @@
and services that help automate the download process.
</p>
</description>
<keywords>
<keyword>usenet</keyword>
<keyword>nzb</keyword>
<keyword>download</keyword>
<keyword>newsreader</keyword>
<keyword>binary</keyword>
</keywords>
<categories>
<category>Network</category>
<category>FileTransfer</category>
@@ -24,17 +35,49 @@
<url type="homepage">https://sabnzbd.org</url>
<url type="bugtracker">https://github.com/sabnzbd/sabnzbd/issues</url>
<url type="vcs-browser">https://github.com/sabnzbd/sabnzbd</url>
<url type="contribute">https://github.com/sabnzbd/sabnzbd</url>
<url type="translate">https://sabnzbd.org/wiki/translate</url>
<url type="donation">https://sabnzbd.org/donate</url>
<url type="help">https://sabnzbd.org/wiki/</url>
<url type="faq">https://sabnzbd.org/wiki/faq</url>
<url type="contact">https://sabnzbd.org/live-chat.html</url>
<releases>
<release version="4.0.3" date="2023-06-16" type="stable"/>
<release version="4.0.2" date="2023-06-09" type="stable"/>
<release version="4.0.1" date="2023-05-01" type="stable"/>
<release version="4.0.0" date="2023-04-28" type="stable"/>
<release version="3.7.2" date="2023-02-05" type="stable"/>
<release version="4.6.0" date="2025-12-24" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.6.0</url>
</release>
<release version="4.5.5" date="2025-10-24" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.5</url>
</release>
<release version="4.5.4" date="2025-10-22" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.4</url>
</release>
<release version="4.5.3" date="2025-08-25" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.3</url>
</release>
<release version="4.5.2" date="2025-07-09" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.2</url>
</release>
<release version="4.5.1" date="2025-04-11" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.1</url>
</release>
<release version="4.5.0" date="2025-04-01" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.5.0</url>
</release>
<release version="4.4.1" date="2024-12-23" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.4.1</url>
</release>
<release version="4.4.0" date="2024-12-09" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.4.0</url>
</release>
<release version="4.3.3" date="2024-08-01" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.3.3</url>
</release>
<release version="4.3.2" date="2024-05-30" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.3.2</url>
</release>
<release version="4.3.1" date="2024-05-03" type="stable">
<url type="details">https://github.com/sabnzbd/sabnzbd/releases/tag/4.3.1</url>
</release>
</releases>
<launchable type="desktop-id">sabnzbd.desktop</launchable>
<provides>
@@ -47,19 +90,69 @@
<control>touch</control>
</supports>
<recommends>
<display_length compare="ge">small</display_length>
<display_length compare="ge">640</display_length>
<internet>always</internet>
</recommends>
<project_license>GPL-2.0-or-later</project_license>
<developer_name>The SABnzbd-Team</developer_name>
<developer id="org.sabnzbd">
<name>The SABnzbd-Team</name>
</developer>
<screenshots>
<screenshot type="default">
<image>https://sabnzbd.org/images/landing/screenshots/interface.png</image>
<caption>Web interface</caption>
<caption>Intuitive interface</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/night-mode.png</image>
<caption>Night mode</caption>
<caption>Also comes in Night-mode</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/add-nzb.png</image>
<caption>Add NZB's or use drag-and-drop!</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/phone-interface.png</image>
<caption>Scales to any screen size</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/history-details.png</image>
<caption>Easy overview of all history details</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/phone-extra.png</image>
<caption>Every option, on every screen size</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/file-lists.png</image>
<caption>Manage a job's individual files</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/set-speedlimit.png</image>
<caption>Easy speed limiting</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/set-options.png</image>
<caption>Quickly change settings</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/dashboard.png</image>
<caption>Easy system check</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/connections-overview.png</image>
<caption>See active connections</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/skin-settings.png</image>
<caption>Customize the interface</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/tabbed.png</image>
<caption>Tabbed-mode</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/set-custom-pause.png</image>
<caption>Specify any pause duration</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/config.png</image>

View File

@@ -1,11 +1,17 @@
[Desktop Entry]
Name=SABnzbd
GenericName=Binary newsreader
GenericName[fr]=Lecteur de newsgroups binaires
GenericName[tr]=İkili haber grupları okuyucusu
Comment=Download from Usenet
Comment[fr]=Télécharger depuis Usenet
Comment[tr]=Usenet ağından dosya indir
Exec=/opt/sabnzbd/SABnzbd.py --browser 1 %F
Icon=sabnzbd
Terminal=false
Type=Application
Categories=Network;FileTransfer;
Keywords=usenet;binaries;download;nzb;nntp;newsreader;
Keywords[fr]=usenet;binaires;télécharger;nzb;nntp;newsreader;
Keywords[tr]=usenet;ikililer;indir;nzb;nntp;okuyucu;
MimeType=application/x-nzb;application/x-compressed-nzb;

View File

@@ -22,6 +22,11 @@ ExecStart=/opt/sabnzbd/SABnzbd.py --disable-file-log --logging 1 --browser 0
User=%I
Type=simple
Restart=on-failure
ProtectSystem=full
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
DevicePolicy=strict
NoNewPrivileges=yes
[Install]
WantedBy=multi-user.target

BIN
macos/7zip/7zz Executable file
View File

Binary file not shown.

144
macos/7zip/License.txt Normal file
View File

@@ -0,0 +1,144 @@
7-Zip for Linux and macOS
~~~~~~~~~~~~~~~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip Copyright (C) 1999-2024 Igor Pavlov.
The licenses for 7zz and 7zzs files are:
- The "GNU LGPL" as main license for most of the code
- The "GNU LGPL" with "unRAR license restriction" for some code
- The "BSD 3-clause License" for some code
- The "BSD 2-clause License" for some code
Redistributions in binary form must reproduce related license information from this file.
Note:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
BSD 3-clause License in 7-Zip code
----------------------------------
The "BSD 3-clause License" is used for the following code in 7z.dll
1) LZFSE data decompression.
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
that also uses the "BSD 3-clause License".
2) ZSTD data decompression.
that code was developed using original zstd decoder code as reference code.
The original zstd decoder code was developed by Facebook Inc,
that also uses the "BSD 3-clause License".
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
Copyright (c) Facebook, Inc. All rights reserved.
Copyright (c) 2023-2024 Igor Pavlov.
Text of the "BSD 3-clause License"
----------------------------------
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---
BSD 2-clause License in 7-Zip code
----------------------------------
The "BSD 2-clause License" is used for the XXH64 code in 7-Zip.
XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet.
Copyright (c) 2012-2021 Yann Collet.
Copyright (c) 2023-2024 Igor Pavlov.
Text of the "BSD 2-clause License"
----------------------------------
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---
unRAR license restriction
-------------------------
The decompression engine for RAR archives was developed using source
code of unRAR program.
All copyrights to original unRAR code are owned by Alexander Roshal.
The license for original unRAR code has the following restriction:
The unRAR sources cannot be used to re-create the RAR compression algorithm,
which is proprietary. Distribution of modified unRAR sources in separate form
or as a part of other software is permitted, provided that it is clearly
stated in the documentation and source comments that the code may
not be used to develop a RAR (WinRAR) compatible archiver.
--

BIN
macos/par2/par2 Executable file
View File

Binary file not shown.

BIN
macos/unrar/arm64/unrar Executable file
View File

Binary file not shown.

BIN
macos/unrar/unrar Executable file
View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -1,88 +0,0 @@
7-Zip
~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip Copyright (C) 1999-2021 Igor Pavlov.
The licenses for 7zz file are:
- The "GNU LGPL" as main license for most of the code
- The "GNU LGPL" with "unRAR license restriction" for some code
- The "BSD 3-clause License" for some code
Redistributions in binary form must reproduce related license information from this file.
Note:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
BSD 3-clause License
--------------------
The "BSD 3-clause License" is used for the code in 7z.dll that implements LZFSE data decompression.
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
that also uses the "BSD 3-clause License":
----
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder(s) nor the names of any contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----
unRAR license restriction
-------------------------
The decompression engine for RAR archives was developed using source
code of unRAR program.
All copyrights to original unRAR code are owned by Alexander Roshal.
The license for original unRAR code has the following restriction:
The unRAR sources cannot be used to re-create the RAR compression algorithm,
which is proprietary. Distribution of modified unRAR sources in separate form
or as a part of other software is permitted, provided that it is clearly
stated in the documentation and source comments that the code may
not be used to develop a RAR (WinRAR) compatible archiver.
--
Igor Pavlov

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -1,10 +1,10 @@
#
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0RC2\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: team@sabnzbd.org\n"
"Language-Team: SABnzbd <team@sabnzbd.org>\n"
@@ -16,7 +16,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -61,7 +61,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -90,7 +90,7 @@ msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"

View File

@@ -1,9 +1,9 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Language-Team: Czech (https://app.transifex.com/sabnzbd/teams/111101/cs/)\n"
"MIME-Version: 1.0\n"
@@ -17,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -62,7 +62,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -91,7 +91,7 @@ msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Danish (https://app.transifex.com/sabnzbd/teams/111101/da/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Standard E-mail-skabelon til SABnzbd\n"
"## Dette er en Cheetah-skabelon\n"
"## Dokumentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Linjeskift og blanktegn har betydning!\n"
"##\n"
"## Dette er e-mail-headerne \n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd har <!--#if $status then \"hentet\" else \"fejlet\" #--> job $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Herefter kommer kroppen, den tomme linje skal være der!\n"
"\n"
"Hej,\n"
"<!--#if $status #-->\n"
"SABnzbd har hentet \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd kunne ikke hente \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Færdig kl. $end_time\n"
"Hentet $size\n"
"\n"
"Resultat af job:\n"
"<!--#for $stage in $stages #-->\n"
"Etape $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Output fra brugerscriptet \"$script\" (Afslutningskode = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Hav det godt!\n"
"<!--#else#-->\n"
"Beklager!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## RSS E-mail-skabelon til SABnzbd\n"
"## Dette er en Cheetah-skabelon\n"
"## Dokumentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Linjeskift og blanktegn har betydning!\n"
"##\n"
"## Dette er e-mai-headere\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd har tilføjet $antal jobs til køen\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Herefter kommer kroppen, den tomme linje skal være der!\n"
"\n"
"Hej,\n"
"\n"
"SABnzbd har tilføjet $antal job(s) til køen.\n"
"De er fra RSS-feedet \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Farvel\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Dårlig URL-hentning af E-mail-skabelon til SABnzbd\n"
"## Dette er en Cheetah-skabelon\n"
"## Dokumentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Linjeskift og blanktegn har betydning!\n"
"##\n"
"## Dette er e-mail-headere\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd kunne ikke hente en NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Herefter kommer kroppen, den tomme linje skal være der!\n"
"\n"
"Hej,\n"
"\n"
"SABnzbd kunne ikke hente NZB fra $url.\n"
"Fejlmeddelelsen er: $msg\n"
"\n"
"Farvel\n"

View File

@@ -1,14 +1,14 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Safihre <safihre@sabnzbd.org>, 2025
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2025\n"
"Language-Team: German (https://app.transifex.com/sabnzbd/teams/111101/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +21,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -109,7 +109,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -161,7 +161,7 @@ msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Spanish (https://app.transifex.com/sabnzbd/teams/111101/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Plantilla de correo predeterminada para SABnzbd\n"
"## This a Cheetah template\n"
"## Documentación: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## !Los saltos de línea y espacios en blanco son significativos¡\n"
"##\n"
"## Cabeceras de correo electrónico\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd <!--#if $status then \"he bajado\" else \"fallo en bajar\" #--> job $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## !Después de esto viene el cuerpo del mensaje, la línea en blanco es necesaria!\n"
"\n"
"Hola,\n"
"<!--#if $status #-->\n"
"SABnzbd he bajado \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd fallo en bajar \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Terminado a las $end_time\n"
"$size bajado\n"
"\n"
"Resultado de la transferencia:\n"
"<!--#for $stage in $stages #-->\n"
"Etapa $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Producción desde el script de usuario \"$script\" (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Que lo disfrutes!\n"
"<!--#else#-->\n"
"Perdon!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Plantilla de correo RSS para SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## !Los saltos de línea y espacios en blanco son significativos¡\n"
"##\n"
"## Cabeceras de correo electrónico\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd he añadido $amount transferencia(s) a la cola\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## !Después de esto viene el cuerpo del mensaje, la línea en blanco es necesaria!\n"
"\n"
"Hola,\n"
"\n"
"SABnzbd he añadido $amount transferencia(s) a la cola.\n"
"Originaron desde el RSS \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
"$job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Adios\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Plantilla de correo para URLs incorrectas de SABnzbd\n"
"## Esta es una plantilla Cheetah\n"
"## Documentación: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Líneas nuevas y espacios en blanco IMPORTAN!\n"
"##\n"
"## Estas son las cabeceras del email\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd ha encontrado un error al recuperar un NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hola,\n"
"\n"
"SABnzbd ha encontrado un error al descargar un NZB desde $url.\n"
"El error ha sido: $msg\n"
"\n"
"Un saludo\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Finnish (https://app.transifex.com/sabnzbd/teams/111101/fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Oletus sähköpostipohja SABnzbd:lle\n"
"## Tämä on Cheetah pohja\n"
"## Dokumentaatio: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Rivinvaihdot ja välilyönnit ovat merkitseviä!\n"
"##\n"
"## Nämä ovat otsaketiedot. Rivien ensimmäisiä sanoja ei saa vaihtaa!\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd on <!--#if $status then \"valmistunut\" else \"epäonnistunut\" #--> työssä $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Tämän jälkeen tulee viestin runko, ensimmäinen rivinvaihto on pakollinen!\n"
"\n"
"Hei,\n"
"<!--#if $status #-->\n"
"SABnzbd on ladannut \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd on epäonnistunut \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#--> latauksessa\n"
"<!--#end if#-->\n"
"Valmistui $end_time\n"
"Ladattu $size\n"
"\n"
"Työn lopputulos:\n"
"<!--#for $stage in $stages #-->\n"
"Tila $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Käyttäjän skriptin tuloste \"$script\" (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Nauti!\n"
"<!--#else#-->\n"
"Pahoittelut!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## RSS sähköpostipohja SABnzbd:lle\n"
"## Tämä on Cheetah pohja\n"
"## Dokumentaatio: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Rivinvaihdot ja välilyönnit ovat merkitseviä!\n"
"##\n"
"## Nämä ovat otsaketiedot. Rivien ensimmäisiä sanoja ei saa vaihtaa!\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd on lisännyt $amount työtä jonoon\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Tämän jälkeen tulee viestin runko, ensimmäinen rivinvaihto on pakollinen!\n"
"\n"
"Hei,\n"
"\n"
"SABnzbd on lisännyt $amount työtä jonoon.\n"
"Ne ovat RSS syötteestä \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Heippa\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,23 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Virheellisen URL-noudon sähköpostin pohja SABnzbd ohjelmalle\n"
"## Tämä on Cheetah pohja\n"
"## Dokumentaatio: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Rivinvaihdot ja välilyönnit ovat merkitseviä!\n"
"##\n"
"## Tässä on sähköpostin otsikkotiedot\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd ei voinut hakea NZB tiedostoa\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Tämän jälkeen tulee viestin sisältö, tyhjä rivi on pakollinen!\n"
"\n"
"Hei,\n"
"\n"
"SABnzbd ei voinut hakea NZB tiedostoa osoitteesta $url.\n"
"Virheviesti: $msg\n"

View File

@@ -1,14 +1,14 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Fred L <88com88@gmail.com>, 2025
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Last-Translator: Fred L <88com88@gmail.com>, 2025\n"
"Language-Team: French (https://app.transifex.com/sabnzbd/teams/111101/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +21,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,45 +60,44 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"#encoding UTF-8\n"
"##\n"
"## Template Email pour SABnzbd\n"
"## Ceci est un template Cheetah\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Modèle d'e-mail par défaut pour SABnzbd\n"
"## Ceci est un modèle Cheetah\n"
"## Documentation : https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Les retours à la ligne et les espaces sont importants !\n"
"##\n"
"## Entêtes de l'email\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd <!--#if $status#-->Succès<!--#else#-->Echec<!--#end if#--> du téléchargement $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Après cela vient le contenu, la ligne vide est nécessaire! \n"
"## Voici les en-têtes de l'email\n"
"À : $to\n"
"De : $from\n"
"Date : $date\n"
"Objet : SABnzbd a <!--#if $status then \"terminé\" else \"n'a pu terminer\" #--> la tâche $name\n"
"X-priorité: 5\n"
"X-MS-priorité: 5\n"
"## Après cela vient le corps du message, la ligne vide est nécessaire !\n"
"\n"
"Bonjour,\n"
"<!--#if $status #-->\n"
"SABnzbd a téléchargé avec succès \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"SABnzbd a téléchargé \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd a téléchargé sans succès \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"SABnzbd n'a pu télécharger \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Terminé à $end_time\n"
"Téléchargé $size\n"
"$size téléchargés\n"
"\n"
"Résultat du téléchargement :\n"
"Résultats de la tâche :\n"
"<!--#for $stage in $stages #-->\n"
"Etape $stage <!--#slurp#-->\n"
"Étape $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Sortie du script utilisateur \"$script\" (Code Retour = $script_ret):\n"
"Résultats du script \"$script\" (Code de sortie = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"A bientôt !\n"
"Amusez-vous bien !\n"
"<!--#else#-->\n"
"Désolé !\n"
"<!--#end if#-->\n"
@@ -108,7 +107,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -132,37 +131,37 @@ msgid ""
"Bye\n"
msgstr ""
"##\n"
"## Template Email pour SABnzbd\n"
"## Ceci est un template Cheetah\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Modèle d'e-mail RSS pour SABnzbd\n"
"## Ceci est un modèle Cheetah\n"
"## Documentation : https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Les retours à la ligne et les espaces sont importants !\n"
"## Les retours à la ligne et espaces sont importants !\n"
"##\n"
"## Entêtes de l'email\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd a ajouté $amount fichier(s) à la file d'attente\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Après cela vient le contenu, la ligne vide est nécessaire!\n"
"## Voici les en-têtes de l'email\n"
"À : $to\n"
"De : $from\n"
"Date : $date\n"
"Objet : SABnzbd a ajouté $amount tâches dans la file d'attente\n"
"X-priorité: 5\n"
"X-MS-priorité: 5\n"
"## Après cela vient le corps du message, la ligne vide est nécessaire !\n"
"\n"
"Bonjour,\n"
"\n"
"SABnzbd a ajouté $amount fichier(s) à la file d'attente.\n"
"Ils proviennent du Flux RSS \"$feed\".\n"
"SABnzbd a ajouté $amount tâche(s) à la file d'attente.\n"
"Elles viennent du flux RSS \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Au Revoir\n"
"Bye\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -183,24 +182,24 @@ msgid ""
"Bye\n"
msgstr ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Modèle d'email d'URL incorrecte pour SABnzbd\n"
"## Ceci est un modèle Cheetah\n"
"## Documentation : https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"## Les retours à la ligne et les espaces sont importants !\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd failed to fetch an NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Voici les en-têtes de l'email\n"
"À : $to\n"
"De : $from\n"
"Date : $date\n"
"Objet : SABnzbd n'a pas réussi à récupérer un NZB\n"
"X-priorité: 5\n"
"X-MS-priorité: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hi,\n"
"Bonjour,\n"
"\n"
"SABnzbd has failed to retrieve the NZB from $url.\n"
"The error message was: $msg\n"
"SABnzbd n'a pas réussi à récupérer le NZB depuis $url.\n"
"Le message d'erreur était : $msg\n"
"\n"
"Bye\n"

View File

@@ -1,27 +1,27 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
# Translators:
# ION, 2020
# Safihre <safihre@sabnzbd.org>, 2025
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: ION, 2020\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2025\n"
"Language-Team: Hebrew (https://app.transifex.com/sabnzbd/teams/111101/he/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: he\n"
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
"Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: 2;\n"
#: email/email.tmpl:1
msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -105,7 +105,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -157,7 +157,7 @@ msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"

113
po/email/it.po Normal file
View File

@@ -0,0 +1,113 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Language-Team: Italian (https://app.transifex.com/sabnzbd/teams/111101/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#: email/email.tmpl:1
msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd has <!--#if $status then \"completed\" else \"failed\" #--> job $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hi,\n"
"<!--#if $status #-->\n"
"SABnzbd has downloaded \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd has failed to download \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Finished at $end_time\n"
"Downloaded $size\n"
"\n"
"Results of the job:\n"
"<!--#for $stage in $stages #-->\n"
"Stage $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Output from user script \"$script\" (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Enjoy!\n"
"<!--#else#-->\n"
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd has added $amount jobs to the queue\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hi,\n"
"\n"
"SABnzbd has added $amount job(s) to the queue.\n"
"They are from RSS feed \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Bye\n"
msgstr ""
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd failed to fetch an NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hi,\n"
"\n"
"SABnzbd has failed to retrieve the NZB from $url.\n"
"The error message was: $msg\n"
"\n"
"Bye\n"
msgstr ""

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Norwegian Bokmål (https://app.transifex.com/sabnzbd/teams/111101/nb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,56 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"#encoding UTF-8\n"
"## Translation by ProtX\n"
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd har <!--#if $status then \"completed\" else \"failed\" #--> jobb $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## After this comes the body, the empty line is required!\n"
"\n"
"Hei,\n"
"<!--#if $status #-->\n"
"SABnzbd har lastet ned \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd mislyktes med å laste ned \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Ferdig $end_time\n"
"Nedlastet $size\n"
"\n"
"Resultat av jobben:\n"
"<!--#for $stage in $stages #-->\n"
"Steg $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Utskrift fra brukerskript \"$script\" (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Gratulerer!\n"
"<!--#else#-->\n"
"Synd!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -132,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd har lagt $amount jobber til køen\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Etter dette kommer meldingen, den tomme linjen er nødvendig!\n"
"\n"
"Hei,\n"
"\n"
"SABnzbd har lagt $amount jobb(er) til køen.\n"
"Disse er fra RSS feeden \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Hade\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -183,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
"## These are the email headers\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd ikke klarte å hente en NZB fil\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Etter dette kommer meldingen, den tomme linjen er nødvendig!\n"
"\n"
"Hei,\n"
"\n"
"SABnzbd klarte ikke å hente NZB fra $url.\n"
"Feilmeldingen var: $msg\n"
"\n"
"Hade\n"

View File

@@ -1,14 +1,14 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Safihre <safihre@sabnzbd.org>, 2025
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2025\n"
"Language-Team: Dutch (https://app.transifex.com/sabnzbd/teams/111101/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +21,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -107,7 +107,7 @@ msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -159,7 +159,7 @@ msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Polish (https://app.transifex.com/sabnzbd/teams/111101/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Domyślny szablon maila w SABnzbd\n"
"## To jest szablon Cheetah\n"
"## Dokumentacja: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Znak nowego wiersza i spacji ma znaczenie!\n"
"##\n"
"## To są nagłowki maila\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd <!--#if $status then \"zakończył\" else \"zakończył z błędem\" #--> zadanie $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Następnie treść maila, wymagana jest pusta linia!\n"
"\n"
"Cześć,\n"
"<!--#if $status #-->\n"
"SABnzbd pobrał \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd nie pobrał \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Zakończono o $end_time\n"
"Pobrano $size\n"
"\n"
"Rezultat zadania:\n"
"<!--#for $stage in $stages #-->\n"
"Etap $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
"$result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Odpowiedź od skryptu \"$script\" (kod wyjścia = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Baw się dobrze!\n"
"<!--#else#-->\n"
"Przykro mi!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Szablon wiadomości RSS dla SABnzbd\n"
"## To jest szablon Cheetah\n"
"## Dokumentacja: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Znak nowego wiersza i spacji ma znaczenie!\n"
"##\n"
"## To są nagłowki maila\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd dodał $amount zadań/zadania do kolejki\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Następnie treść maila, wymagana jest pusta linia!\n"
"\n"
"Cześć,\n"
"\n"
"SABnzbd dodał $amount zadanie/zadań do kolejki.\n"
"Pochodzą one z wiadomości RSS \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
"$job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Nara\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Szablon wiadomości błędnego pobierania URL SABnzbd\n"
"## To jest szablon Cheetah\n"
"## Dokumentacja: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Znaki nowego wiersza i białe znaki mają znaczenie!\n"
"##\n"
"## To są nagłówki wiadomości\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd nie udało się pobrać pliku NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Po tym następuje treść. Pusty wiersz jest wymagany!\n"
"\n"
"Cześć,\n"
"\n"
"SABnzbd nie udało się pobrać pliku NZB z $url.\n"
"Komunikat błędu: $msg\n"
"\n"
"Do usłyszenia.\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/sabnzbd/teams/111101/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Template padrão de e-mail para SABnzbd\n"
"## Este é um template Cheetah\n"
"## Documentação: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Novas linhas e espaços em branco são significativos!\n"
"##\n"
"## Estes são os cabeçalhos de e-mail\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd <!--#if $status then \"completou \" else \"falhou n\" #-->a tarefa $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Depois daqui vem o corpo. A linha vazia é necessária!\n"
"\n"
"Olá,\n"
"<!--#if $status #-->\n"
"SABnzbd baixou \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd falhou no download de \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Completado em $end_time\n"
"Baixados $size\n"
"\n"
"Resultados da tarefa:\n"
"<!--#for $stage in $stages #-->\n"
"Etapa $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Retorno do script de usuário \"$script\" (Código de retorno = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Aproveite!\n"
"<!--#else#-->\n"
"Lamento!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Template de e-mail RSS para SABnzbd\n"
"## Este é um template Cheetah\n"
"## Documentação: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Novas linhas e espaços em branco são significativos!\n"
"##\n"
"## Estes são os cabeçalhos de e-mail\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd adicionou $amount <!--#if $amount == \"1\" then \"tarefa\" else \"tarefas\" #--> à fila\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Depois daqui vem o corpo. A linha vazia é necessária!\n"
"\n"
"Olá,\n"
"\n"
"SABnzbd adicionou $amount <!--#if $amount == \"1\" then \"tarefa\" else \"tarefas\" #--> à fila.\n"
"Elas são do feed RSS \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"Tchau!\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Template de e-mail de busca em URL ruim para SABnzbd\n"
"## Este é um template Cheetah\n"
"## Documentação: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Novas linhas e espaços em branco são significativos!\n"
"##\n"
"## Estes são os cabeçalhos de e-mail\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd falhou ao buscar um NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Depois daqui vem o corpo. A linha vazia é necessária!\n"
"\n"
"Olá,\n"
"\n"
"SABnzbd não conseguiu obter o NZB de $url.\n"
"A mensagem de erro foi: $msg\n"
"\n"
"Tchau!\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Romanian (https://app.transifex.com/sabnzbd/teams/111101/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Șablon Email Original pentru SABnzbd\n"
"## Acesta este un Șablon Cheetah\n"
"## Documentație: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"##Rândurile noi și caracterele spațiu sunt importante!\n"
"##\n"
"## Acestea sunt antetele email\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd <!--#if $status then \"a terminat\" else \"nu a reuşit\" #--> sarcina $name\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## După acesta urmează conţinutul, este necesar o linie goală!\n"
"\n"
"Salut,\n"
"<!--#if $status #-->\n"
"SABnzbd a descărcat \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"SABnzbd nu a reuşit să descarce \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Terminat la $end_time\n"
"Mărime $size\n"
"\n"
"Rezultatele sarcinii:\n"
"<!--#for $stage in $stages #-->\n"
"Stagiu $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Rezultatul script-ului utilizatorului \"$script\" (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Bucuraţi-vă!\n"
"<!--#else#-->\n"
"Ne pare rau!\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,37 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"## Şablon Email RSS pentru SABnzbd\n"
"## Acesta este un şablon Cheetah \n"
"## Documentaţie: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Rândurile noi și caracterele spațiu sunt importante!\n"
"##\n"
"## Acestea sunt antetele email\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd a adăugat $amount sarcini în coadă\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## După acesta urmează conţinutul, este necesar o linie goală!\n"
"\n"
"Salut,\n"
"\n"
"SABnzbd a adăugat $amount sarcină(e) în coadă.\n"
"Ele sunt din fluxuri RSS \"$feed\".\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"La revedere !\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -180,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Adresă URL Greşită şablon Email pentru SABnybd \n"
"## Acesta este un şablon Cheetah\n"
"## Documentaţie : http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Liniile noi şi spaţiile sunt importante!\n"
"##\n"
"## Acestea sunt headerele email\n"
"Către: $to\n"
"De la: $from\n"
"Dată: $date\n"
"Subiect: SABnzbd nu a reuşit să descarce un NZB\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## După aceasta urmează corpul email, linia goală e necesară !\n"
"\n"
"Salut,\n"
"\n"
"SABnzbd nu a putut descărca NZB-ul de la adresa $url.\n"
"Mesajul de eroare a fost: $msg\n"
"\n"
"La revedere!\n"

View File

@@ -1,14 +1,10 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-4.1.0Beta1\n"
"Project-Id-Version: SABnzbd-4.6.0\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Russian (https://app.transifex.com/sabnzbd/teams/111101/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,7 +17,7 @@ msgid ""
"##\n"
"## Default Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -60,54 +56,13 @@ msgid ""
"Sorry!\n"
"<!--#end if#-->\n"
msgstr ""
"##\n"
"## Стандартный шаблон сообщения электронной почты\n"
"## Это шаблон Cheetah\n"
"## Документация: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Новые строки и пробелы имеют значение!\n"
"##\n"
"## Это заголовки электронной почты\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: SABnzbd: задание $name <!--#if $status then \"успешно выполнено\" else \"не удалось выполнить\" #-->\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Теперь следует тело сообщения. Пустая строка является обязательной!\n"
"\n"
"Привет.\n"
"<!--#if $status #-->\n"
"Системой SABnzbd загружено задание «$name» <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#else#-->\n"
"Системе SABnzbd не удалось загрузить «$name» <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
"<!--#end if#-->\n"
"Время окончания загрузки: $end_time\n"
"Загруженный размер: $size\n"
"\n"
"Результаты задания:\n"
"<!--#for $stage in $stages #-->\n"
"Stage $stage <!--#slurp#-->\n"
"<!--#for $result in $stages[$stage]#-->\n"
" $result <!--#slurp#-->\n"
"<!--#end for#-->\n"
"<!--#end for#-->\n"
"<!--#if $script!=\"\" #-->\n"
"Результат выполнения сценария «$script» (Exit code = $script_ret):\n"
"$script_output\n"
"<!--#end if#-->\n"
"<!--#if $status #-->\n"
"Удачи!\n"
"<!--#else#-->\n"
"Сожалеем.\n"
"<!--#end if#-->\n"
#: email/rss.tmpl:1
msgid ""
"##\n"
"## RSS Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -130,38 +85,13 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Шаблон RSS для электронной почты\n"
"## Это шаблон Cheetah\n"
"## Документация: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Новые строки и пробелы имеют значение!\n"
"##\n"
"## Это заголовки электронной почты\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: В очередь загрузки SABnzbd добавлены задания: $amount \n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Теперь следует тело сообщения. Пустая строка является обязательной!\n"
"\n"
"Привет.\n"
"\n"
"В очередь загрузки SABnzbd были добавлены задания: $amount.\n"
"Они были получены из RSS-ленты «$feed».\n"
"<!--#for $job in $jobs#-->\n"
" $job <!--#slurp#-->\n"
"<!--#end for#-->\n"
"\n"
"До свидания\n"
#: email/badfetch.tmpl:1
msgid ""
"##\n"
"## Bad URL Fetch Email template for SABnzbd\n"
"## This a Cheetah template\n"
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
"## Documentation: https://sabnzbd.org/wiki/extra/email-templates\n"
"##\n"
"## Newlines and whitespace are significant!\n"
"##\n"
@@ -181,25 +111,3 @@ msgid ""
"\n"
"Bye\n"
msgstr ""
"##\n"
"## Шаблон электронной почты для излечения неверного URL-адреса\n"
"## Это шаблон Cheetah\n"
"## Документация: http://sabnzbd.wikidot.com/email-templates\n"
"##\n"
"## Новые строки и пробелы имеют значение!\n"
"##\n"
"## Это заголовки электронной почты\n"
"To: $to\n"
"From: $from\n"
"Date: $date\n"
"Subject: Службе SABnzbd не удалось загрузить NZB-файл\n"
"X-priority: 5\n"
"X-MS-priority: 5\n"
"## Теперь следует тело сообщения. Пустая строка является обязательной!\n"
"\n"
"Привет.\n"
"\n"
"Службе SABnzbd не удалось загрузить NZB-файл по адресу $url.\n"
"Сообщение об ошибке: $msg\n"
"\n"
"Конец сообщения\n"

Some files were not shown because too many files have changed in this diff Show More