Compare commits

...

1066 Commits

Author SHA1 Message Date
Safihre
8bd39e4c12 Refactor pre-queue script
[skip ci]
2023-11-22 16:17:19 +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
Safihre
d71f4eb802 Switch to set for server.busy/idle_threads 2023-09-21 22:07:11 +02:00
Safihre
e55756469d Switch to set for nzo.saved_articles 2023-09-21 22:07:05 +02:00
Safihre
3764b705a8 Switch to set for TryList bookkeeping 2023-09-21 22:06:59 +02:00
Safihre
1e4ef9c381 Simplify and speed up calc_age 2023-09-19 21:05:56 +02:00
Safihre
8188d8256a Lock old issues to prevent issue hijacking 2023-09-19 12:35:26 +02:00
Safihre
5fb2fcb059 Mark Downloader.decode method as static
It's even slightly faster.
2023-09-19 11:47:28 +02:00
Safihre
0bb2f677b2 Simplify if-statement in get_articles 2023-09-18 13:23:11 +02:00
Michael Nightingale
4d324de343 Only download force priority items when paused (#2679)
* Fix when downloader paused only download force priority items

* Remove resolved issue
2023-09-18 11:17:52 +02:00
Safihre
8e2972edae Mark test_api_watched_now as xfail
See #2685

This also reverts commit 8643c6b260.
2023-09-18 09:13:05 +02:00
renovate[bot]
550ff83781 Update dependency setuptools to v68.2.2 2023-09-18 04:40:14 +00:00
SABnzbd Automation
db793810eb Update translatable texts
[skip ci]
2023-09-17 19:03:58 +00:00
Safihre
1fb24c5705 Use correct identifier for promo element
Closes #2683
2023-09-17 21:03:13 +02:00
SABnzbd Automation
cbbdfce5cd Update translatable texts
[skip ci]
2023-09-14 15:29:57 +00:00
Safihre
8576e377fa Use correct par2cmdline parameter 2023-09-14 17:28:12 +02:00
SABnzbd Automation
0d500f443f Update translatable texts
[skip ci]
2023-09-13 19:39:47 +00:00
Safihre
bed6dacff2 Detect par2cmdline-turbo instead of mt
Closes #2613
2023-09-13 21:38:11 +02:00
Safihre
8643c6b260 Add debug information to failing test_api_watched_now 2023-09-12 23:08:37 +02:00
Safihre
71e529ebe9 Remove outdated known issue about VPN use 2023-09-12 22:59:15 +02:00
SABnzbd Automation
fc951b964f Update translatable texts
[skip ci]
2023-09-12 20:33:47 +00:00
Safihre
900d3d6b71 Update text files for 4.1.0RC2 2023-09-12 22:32:40 +02:00
Safihre
2b3b5e02f5 Update sabctools to 7.1.2 2023-09-12 21:19:23 +02:00
Safihre
b1b75dcad2 Fail binary build if warning/error is present during test run 2023-09-12 21:18:10 +02:00
SABnzbd Automation
b558b1c6b4 Update translatable texts
[skip ci]
2023-09-11 20:35:47 +00:00
Safihre
9e58b97362 Update text files for 4.1.0RC1 2023-09-11 22:34:54 +02:00
thezoggy
1f4f4f1a5f Add par2cmdline-turbo as option for windows, still default to Multipar (#2674)
* Add par2cmdline as option for windows, still default to multipar.

* Fix tests and do not give par2cmdline long-paths on Windows

* Set enable_multipar to true

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-09-11 22:14:28 +02:00
Anthony Vanelverdinghe
bc705b5563 Use "All Users" locations for shortcuts on Windows (#2677)
* Use "all users" locations for shortcuts on Windows

* Use command inside section/function

* Copy edit

* Take both locations into account
2023-09-11 10:46:34 +02:00
SABnzbd Automation
677850e18a Update translatable texts
[skip ci]
2023-09-11 01:22:19 +00:00
renovate[bot]
1f2c3af660 Update all dependencies 2023-09-11 01:21:37 +00:00
Hans Kristian Rosbach
667ffec667 Add support for finding updated 7-Zip versions on Linux (#2673) 2023-09-04 15:40:26 +02:00
renovate[bot]
9837c23daf Update all dependencies 2023-09-04 01:22:32 +00:00
Safihre
ab3bef3d2f Use par2cmdline-turbo v1.1.0 for macOS release
#2613
2023-09-02 09:32:57 +02:00
Safihre
58cb710d38 Improve Night-mode display of folder selection 2023-09-01 15:34:44 +02:00
Safihre
afbb340f8d Replace $ by jQuery in templates to help IDE's parse the Javascript 2023-09-01 15:26:22 +02:00
Safihre
f378741152 Make server-ad release dependant 2023-09-01 12:29:32 +02:00
Safihre
9f88bda8e5 Remove old upgrade notice from release notes 2023-08-30 15:00:45 +02:00
Safihre
33ebb1593f Small walrus operator refactor 2023-08-30 15:00:27 +02:00
jcfp
b0b91bd002 set per-server connection limit to 500 (#2668) 2023-08-30 11:02:58 +02:00
Safihre
77518cf1f5 Correct title in release notes 2023-08-27 22:32:55 +02:00
SABnzbd Automation
8b329ed602 Update translatable texts
[skip ci]
2023-08-27 20:04:42 +00:00
Safihre
0b27b21e75 Update text files for 4.1.0Beta1 2023-08-27 22:01:56 +02:00
Safihre
d7da55c823 Update macOS Python to 3.11.5 2023-08-27 10:13:28 +02:00
SABnzbd Automation
e6c15e2f73 Update translatable texts
[skip ci]
2023-08-26 19:38:23 +00:00
thezoggy
c3dbd77c17 fixup dark theme handling for config/login with using auto or loading explicit night theme when set, minor dark skin fixes (#2665) 2023-08-26 21:37:43 +02:00
Safihre
f7901711a9 Just skip 7zip unpack if 7zip isn't present 2023-08-25 13:39:55 +02:00
Safihre
ec8fee0a75 Apply correct sanitizer in renamer
Closes #2664
2023-08-25 11:40:55 +02:00
Safihre
ca6ce3af09 Small formatting change 2023-08-25 10:57:20 +02:00
Safihre
65eaf0fc76 Temporarily remove sparse file support
This reverts commit a179f2a895.

Closes #2628
2023-08-25 09:51:40 +02:00
SABnzbd Automation
bfba8d10cf Update translatable texts
[skip ci]
2023-08-25 06:57:48 +00:00
Safihre
6cd89a5614 Restore Enable 7zip text 2023-08-25 08:56:55 +02:00
Safihre
16163c7c5f Do not trigger script-dir in program-dir warning incorrectly
https://forums.sabnzbd.org/viewtopic.php?p=130200
2023-08-23 14:58:03 +02:00
Safihre
0482fbed05 Experiment with Servers text-ad 2023-08-23 14:14:28 +02:00
Safihre
d0f1574893 Further improvements to dark mode 2023-08-22 12:29:54 +02:00
thezoggy
e64167bb99 Cancel purge log should stay on current page (#2660) 2023-08-21 06:30:03 +02:00
SABnzbd Automation
22098c5424 Update translatable texts
[skip ci]
2023-08-21 02:25:26 +00:00
renovate[bot]
273c56aa0b Update all dependencies 2023-08-21 02:24:37 +00:00
Safihre
a951361fa6 Update sabctools to 7.1.1 2023-08-16 09:54:15 +02:00
SABnzbd Automation
2795c3718b Update translatable texts
[skip ci]
2023-08-14 14:59:44 +00:00
Safihre
1a365bdefd Remove unzip support
Closes #2646
2023-08-14 16:58:41 +02:00
SABnzbd Automation
d3db70baab Update translatable texts
[skip ci]
2023-08-14 13:19:40 +00:00
Safihre
20324ad88b Update text files for 4.1.0Alpha1 2023-08-14 15:18:08 +02:00
Safihre
80f34bdf3e Further improve Config Dark Mode 2023-08-14 12:17:46 +02:00
renovate[bot]
f2dbdb95dc Update dependency orjson to v3.9.4 2023-08-14 04:38:56 +00:00
jcfp
0e3893122d ditch call to get_unique_filename in Sorter.rename (#2653) 2023-08-12 11:33:13 +02:00
SABnzbd Automation
831ff6e3ae Update translatable texts
[skip ci]
2023-08-10 20:06:51 +00:00
Safihre
b62d17cbee Convert several statements to walrus operator 2023-08-10 22:06:05 +02:00
Safihre
b95d6cfca0 Filename in NZB subject should be at least 6 characters
Closes #2650 #2649
2023-08-09 15:48:06 +02:00
SABnzbd Automation
d0d1876783 Update translatable texts
[skip ci]
2023-08-09 12:54:11 +00:00
Safihre
df23bf21ea Add option to purge all logs from Config > Folders 2023-08-09 14:53:15 +02:00
Safihre
934561e551 Show text-ad in New Server section 2023-08-09 10:15:07 +02:00
SABnzbd Automation
de6c560027 Update translatable texts
[skip ci]
2023-08-08 12:33:31 +00:00
Safihre
9c582fccc8 Small refactor of name_extractor 2023-08-08 14:32:41 +02:00
Andrew Lavryshyn
cab5c26e3e Add dark mode for wizard, config, and login (#2621)
* feat: add dark mode for wizard, config, and login

* combine the dark skins

* make the buttons the same as in Glitter

* load the night theme based on config setting

* Changes to darkmode

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-08-07 11:34:25 +02:00
Michael Nightingale
cca6dda9e6 Fix quick check of sets with duplicate files (#2645)
* Fix quick check of sets with duplicate files

* Add explanation and example of why sorting par fileset is necessary
2023-08-07 09:48:21 +02:00
renovate[bot]
77aea23007 Update all dependencies 2023-08-07 00:26:40 +00:00
SABnzbd Automation
42c5403bbe Update translatable texts
[skip ci]
2023-08-06 05:38:59 +00:00
thezoggy
b14dacd44d unrar 6.23 (#2647) 2023-08-06 07:38:14 +02:00
thezoggy
abd47ddcf7 add additional common ebook/audiobook (readarr) (#2643) 2023-08-04 22:37:49 +02:00
Safihre
8611e65fc6 Update reference to SABnzbd-Team 2023-08-04 17:12:01 +02:00
SABnzbd Automation
8663fe39e3 Update translatable texts
[skip ci]
2023-08-04 12:28:34 +00:00
Ricardo Christmann
4891213a88 Fix check-all checkbox state (#2639)
* Fix check-all checkbox state

* Refactor check-all fix
2023-08-04 14:27:48 +02:00
Safihre
828ea8e61a flat_unpack was not applied for 7Zip
Closes #2631
2023-08-02 14:32:02 +02:00
Safihre
f6fae7c0b8 Add comment why not all data could be written (#2634) 2023-08-02 14:05:45 +02:00
Michael Nightingale
b4b446e770 Ensure all data is written to file (#2634) 2023-08-02 14:04:43 +02:00
Safihre
9ff4fdaab8 Remove small SyntaxWarninh
Thrown by Python 3.12 in `-X dev` mode.
2023-08-02 13:54:00 +02:00
renovate[bot]
d3bfbb0642 Update dependency cryptography to v41.0.3 [SECURITY] 2023-08-02 08:29:36 +00:00
SABnzbd Automation
57ab0a05f7 Update translatable texts
[skip ci]
2023-07-31 01:32:12 +00:00
renovate[bot]
296aee9757 Update dependency more-itertools to v10 2023-07-31 01:31:29 +00:00
Safihre
3d8c408627 Usernames and passwords were not always sanitized from the log
Closes #2630
2023-07-26 09:51:03 +02:00
renovate[bot]
11cdb24558 Update dependency pyinstaller-hooks-contrib to v2023.6 2023-07-24 00:58:33 +00:00
Safihre
589cc69498 Convert forward slashes to backward slashes in par2 filenames
Closes #2626
2023-07-21 14:19:40 +02:00
SABnzbd Automation
6f17ab1f02 Update translatable texts
[skip ci]
2023-07-21 09:35:04 +00:00
Safihre
7cbbff727f Remove (almost) all references to unused team@sabnzbd.org 2023-07-21 11:33:51 +02:00
Ricardo Christmann
daa07ed2d2 Add multi-select to history (#2607)
* Add multi-select to history

* Fix checkbox state when multi-selecting on queue and history

* Refactor multi-select feat and fix for tabbed layout

* Fix failing ci tests

* Fixes and improvements
2023-07-20 21:41:47 +02:00
Safihre
b3ced3bb40 Restore Series Duplicate detection
Closes #2620
2023-07-19 15:49:01 +02:00
L2501
20127e5bcd add m4b file extension to known extensions (#2625) 2023-07-19 11:31:43 +02:00
Safihre
f7a5e462b7 Update 7zip to 23.01 2023-07-17 08:57:32 +02:00
renovate[bot]
728bc723c2 Update dependency praw to v7.7.1 2023-07-17 00:37:20 +00:00
renovate[bot]
b1f75ec35b Update dependency cryptography to v41.0.2 [SECURITY] 2023-07-15 01:51:06 +00:00
Safihre
1709c778a6 Remove redundant README.txt
Stupid mistake.
2023-07-10 15:27:24 +02:00
Safihre
769e110ffb Remove duplicate Reddit posting 2023-07-10 15:19:54 +02:00
Safihre
a0808d2d4c Release notes were not present in releases 2023-07-10 14:43:45 +02:00
Safihre
59bd38ddc7 Correct finding of release in appdata 2023-07-10 14:23:45 +02:00
renovate[bot]
000ecb5669 Update all dependencies 2023-07-10 02:06:30 +00:00
jcfp
8525f60488 add optional xff header verification to check_access (#2611)
* add optional xff header verification to check_access

* make xff ip checking code more readable
2023-07-05 20:12:59 +02:00
Sander
24329faf5c better docker detections: works for older and newer docker versions (#2606)
* better docker detections: works for Ubuntu 18.04 and 22.04

* DOCKER = False, needed for non-POSIX

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2023-07-03 15:10:34 +02:00
renovate[bot]
4a72c6fdf9 Update all dependencies 2023-07-03 00:54:33 +00:00
jcfp
8235c3048e add a grace period for expected filenames to show up (#2609) 2023-06-29 21:30:56 +02:00
jcfp
209e9f0573 add debug output to help with failures in functional sorting test (#2608) 2023-06-28 16:22:33 +02:00
SABnzbd Automation
9455121647 Update translatable texts
[skip ci]
2023-06-28 09:00:26 +00:00
Safihre
fa7a11617e Move "On failure, try alternative NZB" to Specials
Might be removed later.
2023-06-28 10:57:45 +02:00
Safihre
a6c62bc118 Build binary using Python 3.11.4 2023-06-28 10:00:33 +02:00
Michael Nightingale
dbf4073da4 Fix uu decoding when collapsing of lines starting with a doubled period is required (#2605) 2023-06-27 15:14:11 +02:00
renovate[bot]
552ca12bc1 Update dependency jaraco.functools to v3.8.0 2023-06-26 05:09:31 +00:00
renovate[bot]
e13968eec1 Update all dependencies 2023-06-26 00:40:59 +00:00
Safihre
2ce56c8581 Add newline after link to Downloads page in Reddit post 2023-06-23 21:45:53 +02:00
jcfp
8d6cc8c86a Fix sorting for #2551 (#2598)
* fix #2551

* add test data dirs

* move sorting test data into subdir

* undo change to sabnews.create_nzb
2023-06-23 09:06:57 +02:00
Safihre
488719de1e Convert various re statements to walrus operator 2023-06-21 21:38:32 +02:00
Safihre
8cb4011a44 Check if version is present appdata before releasing 2023-06-19 15:28:07 +02:00
Safihre
9ff0bab873 Additional logging to debug Direct Unpack 2023-06-18 22:17:36 +02:00
François M
3331738f2b Add versions to appdata (#2595) 2023-06-16 19:25:09 +02:00
Safihre
e768ceea96 Lock add/remove_socket in Downloader
See if we can resolve #2591
2023-06-16 15:48:54 +02:00
Safihre
cb4215910c Link to Downloads page was not included in Reddit post 2023-06-16 11:49:02 +02:00
Safihre
b9e014b8bd No longer * import AppKit and Foundation 2023-06-14 12:56:02 +02:00
Safihre
96f0743ce5 Update release script to post directly to r/usenet and include link 2023-06-13 14:00:25 +02:00
renovate[bot]
560766dfa0 Update all dependencies 2023-06-12 00:48:42 +00:00
thezoggy
a2bbccd3ea Unable to modify Sorters (#2587) 2023-06-09 13:51:24 +03:00
Safihre
5570b804ba Correct parameter in release script to merge PR of update 2023-06-07 17:22:28 +02:00
Safihre
3ff1d4b68c Move DirScanner Lock creation 2023-06-06 17:10:01 +02:00
Safihre
d19d3c382c Move ipv6_servers to be a Special bool 2023-06-06 16:53:41 +02:00
SABnzbd Automation
05a68a7506 Update translatable texts
[skip ci]
2023-06-06 14:50:57 +00:00
Safihre
9aacf4c780 Remove load_balancing option 2023-06-06 16:50:06 +02:00
Safihre
0390dc14c5 Remove test_ipv6 2023-06-06 16:32:49 +02:00
Safihre
1ee1ef836a Simplify get_server_addrinfo to just allow enabling or disabling IPv6
Closes #2553
2023-06-06 16:10:30 +02:00
SABnzbd Automation
bf1080ac5a Update translatable texts
[skip ci]
2023-06-06 13:52:44 +00:00
Safihre
ee4fdb9563 Remove useless AMBI_LOCALHOST 2023-06-06 15:51:45 +02:00
Michael Nightingale
a179f2a895 Write articles to correct offsets and use sparse files (#2574)
* Basic direct write implementation

* Correctly track file_position and only write continuous

* Direct write with sparse files

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-06-06 15:49:12 +02:00
Safihre
b4c3a4b19f Only initialize DirScanner Lock after starting event loop 2023-06-05 15:52:34 +02:00
renovate[bot]
71e203f19c Update all dependencies 2023-06-05 02:03:53 +00:00
jcfp
07283ba9ab Fix sorting lowercasing (#2584)
* run lowercasing on season pack setname

* also subject %fn to lowercasing

* add tests

* woops
2023-06-03 16:45:41 +02:00
renovate[bot]
decfb2c168 Update dependency cryptography to v41 [SECURITY] (#2583)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-02 22:49:13 +02:00
Safihre
71778656da Correct reference to removed_from_queue in Direct Unpacker 2023-06-02 22:05:30 +02:00
Safihre
517d6e3e1a Update tests for ppslots 2023-06-02 21:48:44 +02:00
Safihre
e11e9e7201 Force full refresh after changing items-per-page
Closes #2416
2023-06-02 21:34:40 +02:00
Safihre
135b9336a4 Show active jobs post processing in tabbed layout
Closes #2580
2023-06-02 21:29:10 +02:00
Safihre
e0d4d4abbd Use more reliable marker if job is still active 2023-06-02 15:36:38 +02:00
Safihre
422b4fce7b Notification Script did not get environment variables 2023-05-31 21:16:15 +02:00
Safihre
e3a7226648 Move Notification Script Parameters to environment variable
Fixes #2549
2023-05-31 11:35:23 +02:00
Michael Nightingale
5b9fc86319 Fix uu decode workaround (#2573)
* Fix uu decode workaround

* Remove trailing junk test because workaround handles it
2023-05-29 14:20:01 +02:00
renovate[bot]
5afea2d3c7 Update dependency orjson to v3.8.14 2023-05-29 02:10:08 +00:00
SABnzbd Automation
5f942a6943 Update translatable texts
[skip ci]
2023-05-24 15:45:03 +00:00
Safihre
18075c5c51 Print last line in case of error
Closes #2566
2023-05-24 17:44:10 +02:00
Safihre
a728225782 Automatically merge website update during release 2023-05-24 09:38:15 +02:00
Safihre
3e6ae26710 Tray icon could not be disabled on macOS 2023-05-23 21:18:49 +02:00
Safihre
a8a4e442a8 Add PYTHONUNBUFFERED env variable for Python post-processing scripts 2023-05-23 20:34:38 +02:00
Safihre
c16e91734d Catch all errors during rarfile header parsing
Closes #2569
2023-05-22 10:23:28 +02:00
Safihre
bb9ad4b546 Disable buffering in POpen calls
Closes #2567
2023-05-22 10:10:46 +02:00
renovate[bot]
43045e5d4e Update all dependencies 2023-05-22 03:18:21 +00:00
Safihre
63c7dbdb4d Rely on POpen's text mode to handle encoding 2023-05-17 17:08:16 +02:00
Safihre
ef217bba90 Only open pipe for stdin when we actually need it 2023-05-17 16:52:59 +02:00
Safihre
ca9924c38f Only warn about sabctools linking if OpenSSL >= 1.1.1
Relates to #2421
2023-05-17 16:39:06 +02:00
SABnzbd Automation
c3c47507e7 Update translatable texts
[skip ci]
2023-05-16 11:18:41 +00:00
Safihre
dc237c752a Do not push local translations to allow modifications 2023-05-16 13:17:58 +02:00
SABnzbd Automation
08892c71b2 Update translatable texts
[skip ci]
2023-05-16 11:06:46 +00:00
Safihre
026717b7c2 Build binaries without dependencies 2023-05-16 13:05:23 +02:00
Michael Nightingale
be06290f6c Addnzbfile enums and keep empty (#2554)
* Add enum result to add_nzbfile

* Do not delete invalid single file NZBs if file could not be decoded

* Move enum to constants and make it a class
2023-05-15 14:28:49 +02:00
SABnzbd Automation
9ec55478c9 Update translatable texts
[skip ci]
2023-05-15 00:42:16 +00:00
renovate[bot]
4172b4a2a6 Update all dependencies 2023-05-15 00:41:05 +00:00
Safihre
59620c2217 Remove debugging code for Downloader sleep time
Seems your solution worked @puzzledsab!
2023-05-10 21:31:15 +02:00
SABnzbd Automation
c410c646b2 Update translatable texts
[skip ci]
2023-05-10 19:26:14 +00:00
Safihre
0b515996d7 Wrap Downloader in try/except
We need diagnostic info. No clue why we didn't do this before.
Relates to #2559
2023-05-10 21:24:28 +02:00
Safihre
8b9b8319a1 Warn users against using application directory as their Scripts Folder
Closes #2557
2023-05-10 21:16:49 +02:00
Safihre
161cf14519 Disabling a server during download doesn't stop it from downloading
Closes #2555
2023-05-10 10:28:18 +02:00
thezoggy
c6ac09e938 Disable sorting on pattern key so you can select text on it / prevent it from moving. (#2556) 2023-05-10 06:40:53 +02:00
Safihre
fde8f9d133 Allow longer binary startup during release quick-test 2023-05-08 17:04:45 +02:00
SABnzbd Automation
2bd222ca1c Update translatable texts
[skip ci]
2023-05-08 14:57:52 +00:00
Safihre
12228fe1fb Update Watched Folder text to include supported extensions
Relates to #2550
2023-05-08 16:56:32 +02:00
SABnzbd Automation
c63b2592f1 Update translatable texts
[skip ci]
2023-05-08 09:52:03 +00:00
Sander
e65980258c test writing long and unicode filenames (#2542)
* test writing long and unicode filenames

* Update sabnzbd/filesystem.py

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

* Update sabnzbd/filesystem.py

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

* Update sabnzbd/filesystem.py

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

* Update sabnzbd/filesystem.py

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

* test writing long and unicode filenames

* seperate function test_filesystem_capabilities

* rename test_filesystem_capabilities to filesystem_capabilities

* rename filesystem_capabilities to check_filesystem_capabilities

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-05-08 11:50:49 +02:00
SABnzbd Automation
bd0a90d2dd Update translatable texts
[skip ci]
2023-05-08 06:15:40 +00:00
renovate[bot]
33a7e92f4c Update dependency orjson to v3.8.12 2023-05-08 08:14:31 +02:00
Safihre
51d1a1994d Allow for more time to start and shutdown during testing
macOS sometimes needs more time
2023-05-03 14:53:46 +02:00
Safihre
835745e485 Remove PKG-INFO
Closes #2548
2023-05-03 14:25:03 +02:00
Safihre
bcb553d9f9 Move release actions to separate build step 2023-05-03 14:22:50 +02:00
Safihre
b73b8aae6a Post release notes to Reddit after release
Add praw to builder requirements
2023-05-03 14:22:50 +02:00
Safihre
51792e31a8 Add release to PR of new release 2023-05-02 10:45:48 +02:00
Safihre
636a391db3 Update appdata for 4.0.1 release 2023-05-01 21:36:13 +02:00
Safihre
57d5ed2f21 Add Windows Python 3.8 32bit to CI test
Since we also use it for the release.
2023-05-01 21:33:49 +02:00
Safihre
bbb1d1d908 Update sabctools to 7.0.2 2023-05-01 21:29:19 +02:00
François M
c5d8f52f03 Add releases tag (#2539)
* Add 3.7.2 release tag

* Add 4.0.0 placeholder
2023-05-01 21:23:30 +02:00
renovate[bot]
1b49e4a355 Update all dependencies 2023-05-01 02:16:27 +00:00
Safihre
878cb589c3 Show a better crash on Python <3.8 2023-04-30 21:37:16 +02:00
Safihre
53ce88d3d2 Make Config link to wiki dynamic 2023-04-26 22:24:53 +02:00
Safihre
85e9bea9e7 Make sure all paths are unique in deobfuscate
Closes #2535
2023-04-26 17:22:56 +02:00
Safihre
7c7f88ebb5 Correctly set version to 4.1.0-develop 2023-04-26 17:20:11 +02:00
SABnzbd Automation
cbd007b81a Update translatable texts
[skip ci]
2023-04-26 13:28:51 +00:00
Safihre
ac0438de42 Set version to 4.1.0-develop 2023-04-26 15:27:31 +02:00
Safihre
b73699be8d Allow 20 min for CI tests 2023-04-25 17:12:31 +02:00
SABnzbd Automation
bc87b6e955 Update translatable texts
[skip ci]
2023-04-25 14:48:40 +00:00
Safihre
f15155ddc9 Add Keyboard shortcut hint in the Status window
Closes sabnzbd/sabnzbd.github.io/issues/235
2023-04-25 16:47:24 +02:00
renovate[bot]
37b556012e Update all dependencies 2023-04-24 05:38:50 +00:00
SABnzbd Automation
79ba3dd874 Update translatable texts
[skip ci]
2023-04-23 19:40:19 +00:00
Safihre
28795c3158 Re-ordering Sorters was not possible after refactor
Closes #2536
2023-04-23 21:38:57 +02:00
SABnzbd Automation
935d248b53 Update translatable texts
[skip ci]
2023-04-19 14:52:21 +00:00
Safihre
b2103afe30 Update text files for 4.0.0RC1 2023-04-19 16:51:05 +02:00
Safihre
fcbc4e420e Add locking to __reset_nw
Relates to #2533
2023-04-19 13:21:15 +02:00
Safihre
19fcda877f Show Sorting edit details when clicking on display data 2023-04-19 12:35:34 +02:00
SABnzbd Automation
48cd93ef93 Update translatable texts
[skip ci]
2023-04-19 10:19:27 +00:00
Safihre
80fd39826b Add Quick Start suggestions when user has no Sorters defined 2023-04-19 12:17:50 +02:00
Safihre
50c7d1531b Store yEnc-detected begin and size
We will use this later, see #2526
2023-04-17 22:02:09 +02:00
SABnzbd Automation
657c6f2b7d Update translatable texts
[skip ci]
2023-04-17 05:12:52 +00:00
renovate[bot]
e7484fac09 Update all dependencies 2023-04-17 05:11:37 +00:00
Safihre
613ec9c48c Try to fix armhf Snap build 2023-04-14 12:43:41 +02:00
SABnzbd Automation
322050efd8 Update translatable texts
[skip ci]
2023-04-14 09:34:13 +00:00
Safihre
5242368343 Add possibility to mark Option's as non-public
Closes #2489
2023-04-14 11:18:15 +02:00
Safihre
564151e520 Resolve HTML code issues 2023-04-13 13:39:36 +02:00
Safihre
b40220cb73 Only convert old-style sorters if they were enabled 2023-04-13 13:14:18 +02:00
Safihre
2ebac74049 Correct HTML for Sorting page 2023-04-13 12:57:27 +02:00
SABnzbd Automation
8ede63a960 Update translatable texts
[skip ci]
2023-04-12 21:06:53 +00:00
Safihre
38a0cc39e6 Improve preset display for Sorters 2023-04-12 22:28:37 +02:00
SABnzbd Automation
b482b61770 Update translatable texts
[skip ci]
2023-04-12 15:19:07 +00:00
Safihre
36a6f6e151 First refactor of new Sorting page
@jcfp FYI :)
2023-04-12 17:17:51 +02:00
Safihre
0c45883649 Remove Windows firewall rules on uninstall and prevent duplicating them
Closes #2528
2023-04-12 16:12:22 +02:00
renovate[bot]
c243144009 Update all dependencies 2023-04-10 07:24:25 +00:00
Safihre
4e2df006e7 Use correct pip call to update pip itself on Windows 2023-04-08 22:15:55 +02:00
SABnzbd Automation
02964d3bef Update translatable texts
[skip ci]
2023-04-08 20:09:29 +00:00
Safihre
c0e50aac48 Update text files for 4.0.0Beta2 2023-04-08 22:08:18 +02:00
Safihre
6c0804ba4f Correctly handle broken par2 files
Closes #2517
2023-04-07 22:39:32 +02:00
Safihre
708b13dd71 Prevent orphaned Article objects resulting in ghost files
Relates to #2521, #2517
2023-04-06 21:41:40 +02:00
Safihre
eb64e054b5 Refactor par2file 2023-04-06 21:11:34 +02:00
SABnzbd Automation
c42f7f930c Update translatable texts
[skip ci]
2023-04-04 17:36:21 +00:00
Sander
44c1d7306d Bigger files (50 and 100MB) for internet speed testing (#2524)
Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2023-04-04 19:35:06 +02:00
SABnzbd Automation
2413c22a51 Update translatable texts
[skip ci]
2023-04-03 07:37:32 +00:00
Safihre
31fefb4f86 Actually remove the RAR inspection traceback logging 2023-04-03 09:36:25 +02:00
renovate[bot]
745fd81aa1 Update all dependencies 2023-04-03 05:39:09 +00:00
Safihre
f7bf1567c1 Add sleep between Transifex push and pull 2023-04-02 21:30:49 +02:00
Safihre
02021a09b1 Don't show traceback on RAR-inspection failure
Closes #2482
2023-04-02 21:30:49 +02:00
SABnzbd Automation
6411d32228 Update translatable texts
[skip ci]
2023-04-02 19:22:43 +00:00
Safihre
56287e8094 Small refactor of Server-methods 2023-04-02 14:16:02 +02:00
thezoggy
62f70fd628 Set min-width to make macos chrome behave like others (#2518) 2023-03-29 09:16:00 +02:00
Thomas
dcca2c5821 Check for errors when creating the download path (#2516)
Fixes https://github.com/sabnzbd/sabnzbd/issues/2515.
2023-03-28 17:54:39 +02:00
dependabot[bot]
d22f2296c2 Bump actions/stale from 7 to 8 (#2514)
Bumps [actions/stale](https://github.com/actions/stale) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 13:56:25 +02:00
SABnzbd Automation
2e0ea5d085 Update translatable texts
[skip ci]
2023-03-27 05:49:28 +00:00
renovate[bot]
cb4526e8e2 Update all dependencies 2023-03-27 05:48:30 +00:00
puzzledsab
fc3132cd77 Set maximum soft sleep time to 0.15 seconds (#2510) 2023-03-22 21:34:51 +01:00
Michael Nightingale
e474db33ec Check speedlimit after each recv (#2509) 2023-03-20 21:55:10 +01:00
jcfp
6274d2b250 avoid traceback after postproc script (#2508) 2023-03-20 19:28:51 +01:00
puzzledsab
d4bfdaa29e Tweak assembler queue variables for smoother download (#2505) 2023-03-20 08:47:51 +01:00
renovate[bot]
3b7f5f5ce0 Update all dependencies 2023-03-20 05:05:53 +00:00
Safihre
496e2f1840 Bring BPSMeter and Assembler check back in main loop 2023-03-19 22:23:50 +01:00
Safihre
98f3c055d7 Ignore resource fork files created by macOS
Closes #2380
2023-03-19 21:41:31 +01:00
Safihre
7df36ce8b4 switchinterval should be a positive number
Closes #2504
2023-03-17 21:32:23 +01:00
SABnzbd Automation
5deaca45c2 Update translatable texts
[skip ci]
2023-03-16 21:41:31 +00:00
Safihre
e790757855 Update text files for 4.0.0Beta1 2023-03-16 22:40:22 +01:00
jcfp
46b2c6494f only save series_info in the history db for job type "tv" (#2496)
* only save series_info for job type "tv"

* make analyse_show return a dictionary
2023-03-16 22:23:45 +01:00
Sander
c4216a4075 Deobfuscate filenames ON by default (#2493)
* Deobfuscate ON by default

* Correct data test set: filename that is not obfuscated. Except test_par2file

* Correct data test set: filename that is not obfuscated. Except test_par2file

* Commented out test in test_par2file.py

* Commented out test in test_par2file.py

* assert for unicode_rar 我喜欢编程 now working too

---------

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2023-03-15 22:31:09 +01:00
SABnzbd Automation
375412aa42 Update translatable texts
[skip ci]
2023-03-15 17:04:36 +00:00
thezoggy
895ac56eb3 change regex for hash from md5 to more generic to catch more hashes (ex: apikey in rss feed), and hide email_from as well (#2499) 2023-03-15 18:03:22 +01:00
SABnzbd Automation
c593388ec6 Update translatable texts
[skip ci]
2023-03-14 07:05:56 +00:00
jakepez
1c6960fe44 Corrected msgids - msgid "Pause * prioirty jobs" spelling error (#2501)
* Corrected msgid spelling error

* Reverted change to en.po as requested
2023-03-14 08:04:53 +01:00
Safihre
e7ac2ffd6c Broaden renovate trigger window 2023-03-13 12:49:27 +01:00
SABnzbd Automation
df35e54fba Update translatable texts
[skip ci]
2023-03-10 20:37:03 +00:00
puzzledsab
15f757ae04 Make cleanup_list use scandir and keep main nzb directory even if it's empty (#2497)
* Make cleanup_list use scandir and keep main nzb directory even if it's empty

* Use entry.path
2023-03-10 21:35:45 +01:00
Safihre
b7dc15099c Change quote style of Stale action condition 2023-03-10 08:38:37 +01:00
jcfp
dc33c67f48 fix extra info fields for pre-q scripts (#2494) 2023-03-09 17:34:38 +01:00
SABnzbd Automation
89fb517fd1 Update translatable texts
[skip ci]
2023-03-09 13:06:13 +00:00
jcfp
51eb94dbe9 Sorter fixes (#2492)
* fix typos (closes #2488)

* fix logic errors in prepare_extraction_path (closes #2490, closes #2491)
2023-03-09 14:05:01 +01:00
Safihre
03747f618f Do not run Stale action on forks 2023-03-08 09:55:12 +01:00
SABnzbd Automation
8154322448 Update translatable texts
[skip ci]
2023-03-08 08:54:04 +00:00
Safihre
7531ae2749 Replace Stale-bot by Stale-action 2023-03-08 09:52:23 +01:00
SABnzbd Automation
32515172d3 Update translatable texts
[skip ci]
2023-03-06 21:24:14 +00:00
Safihre
3b500ecf69 Update text files for 4.0.0 Alpha 3 2023-03-06 22:23:11 +01:00
SABnzbd Automation
b93dd4751d Update translatable texts
[skip ci]
2023-03-06 21:14:18 +00:00
jcfp
d651f8db34 Replace series/date/movie sorters with a generic one + season pack handling (#2461)
* replace series/date/movie sorters with a generic sorter

* fix test_eval_sort on windoze

* unbreak and de-uglify the fix

* add special setting for season pack sorting

* remove unused import

* replace series/date/movie sorters with a generic sorter

* fix test_eval_sort on windoze

* unbreak and de-uglify the fix

* add special setting for season pack sorting

* remove unused import

* correct type for sort_type entries

* standardize ui

* add visual hints for drag-n-drop

* move presets directly below sort string field

* replace hex with ascii letters to avoid random occurences of (cd|e)[0-9]+

* Some styling things

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-03-06 22:13:12 +01:00
Safihre
3f8f7d21d0 Revert "Make renovate config less strict on when it runs on Monday"
This reverts commit a1d51502c4.
2023-03-06 21:38:05 +01:00
renovate[bot]
824341e396 Update all dependencies 2023-03-06 15:32:27 +00:00
SABnzbd Automation
a972708d69 Update translatable texts
[skip ci]
2023-03-06 01:29:48 +00:00
renovate[bot]
47b305c83b Update all dependencies 2023-03-06 01:28:44 +00:00
SABnzbd Automation
2ec3da18f2 Update translatable texts
[skip ci]
2023-03-02 21:32:12 +00:00
Michael Nightingale
70aea9ac0c Decode articles as they are downloaded (#2476)
* Decode articles as they are downloaded

* Combine the recv and process methods

* Less cryptic futures

* Lock get_article because it can be called by multiple threads within the pool

* Add handle_process_nw_result

* Use add_socket helper

* Lock finish_connect_nw

* Add locks and remove callback

* Use same lock for updating nzo statistics

* Remove None typing

* Add downloader lock

* read_fds by index because it will never fail

* Use downloader lock
2023-03-02 22:31:11 +01:00
Safihre
38270bf4e2 Do not auto-update sabctools
We will do it manually when needed, as it also requires the constants.py value to be updated.
2023-02-28 22:00:04 +01:00
thezoggy
05d58ca0da update unrar to 6.21 (#2479) 2023-02-28 11:42:42 +01:00
Safihre
91aab54b43 Update sabctools 2023-02-28 10:40:20 +00:00
renovate[bot]
25d552c09e Update all dependencies 2023-02-28 10:40:20 +00:00
Safihre
a1d51502c4 Make renovate config less strict on when it runs on Monday 2023-02-24 08:07:35 +01:00
SABnzbd Automation
883d1dfa19 Update translatable texts
[skip ci]
2023-02-22 22:05:59 +00:00
Safihre
f94c48b27c Update text files for 4.0.0 Alpha 2 2023-02-22 23:04:54 +01:00
puzzledsab
0734547aec Make switchinterval configurable (#2473) 2023-02-22 13:22:57 +01:00
puzzledsab
8ab87d9844 Re-add last_max_chunk_size (#2472)
* Update last_max_chunk_size for each call to recv

* Reduce _DEFAULT_CHUNK_SIZE
2023-02-21 08:19:15 +01:00
jcfp
21b3b85e6e convert tests to tavern 2.0.0+ (#2468) 2023-02-20 17:08:22 +00:00
Michael Nightingale
45ccac3bc4 Decode UU with bytearray (#2466)
* Decode UU with bytearray

* Revert changed test
2023-02-19 17:32:02 +01:00
SABnzbd Automation
0b95b0b94b Update translatable texts
[skip ci]
2023-02-19 13:51:37 +00:00
Safihre
501b370dc0 Remove unused sched_converted 2023-02-19 14:44:08 +01:00
Safihre
2058a4b639 Update text files for 4.0.0Alpha1 2023-02-19 14:27:40 +01:00
Safihre
266823a81e Update macOS Python to 3.11.2 2023-02-19 14:07:13 +01:00
puzzledsab
6cd5713baa Translate ascii control chars below value 32 to _ (#2463)
* Translate ascii control chars below value 32

* Try to make code and tests consistent

* More test fixing

* Delete too much

* Different approach

* Finally got it?

* Start from 0

* Convert \0 to _ for all systems

* Check if CH_ILLEGAL_WIN is translated to CH_LEGAL_WIN

* Test specific chars
2023-02-18 22:48:00 +01:00
Safihre
e9038de819 Update sabctools to 6.1.0 2023-02-18 14:48:46 +01:00
Safihre
9129b681dc Only test wiki-entries consistency on develop 2023-02-17 21:50:24 +01:00
SABnzbd Automation
1f2b602638 Update translatable texts
[skip ci]
2023-02-17 07:18:41 +00:00
Michael Nightingale
87d9de1009 Only allocate disk speed random data when required (#2460) 2023-02-17 08:17:33 +01:00
Safihre
81a6db2190 Update test for defaulting to SSL 2023-02-15 23:06:18 +01:00
Michael Nightingale
dbd335fd3b Improve dirscanner performance and reduce system calls (#2434)
* Improve dirscanner performance and reduce system calls

* Break up one liners

* Rename functions and add typings

* yield from instead of looping

* Fix optional typing

* Replace threads with asyncio

* Use full module path

* Replace list comprehension with for loop

* Give other coroutines a chance to run if we ignore a path

* Remove uncesserary unnecessary asyncio.sleep on skipped path

* Catch and report all exceptions within the scanner task to the user to ensure the overall scanner task cannot crash

* Log traceback
2023-02-15 22:57:09 +01:00
Safihre
84fc6e7a7a Enable Newsserver SSL by default 2023-02-15 22:52:32 +01:00
SABnzbd Automation
f851f10ee1 Update translatable texts
[skip ci]
2023-02-14 22:02:17 +00:00
Safihre
0d92d9f9bd Update references to 4.0.x 2023-02-14 22:57:23 +01:00
puzzledsab
73fce52df1 Threaded polling of connections (#2438)
* Threaded polling of connections

* Do speed limit check after handling

* Use ThreadPoolExecutor, remove code for updating recv_threads while running

* Get newswrapper inside try

* Change default settings to 2 threads

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-02-14 22:17:24 +01:00
SABnzbd Automation
14223d239a Update translatable texts
[skip ci]
2023-02-14 20:55:48 +00:00
Safihre
a3daa7b257 Increase threshold for logging excessive sleep time
Closes #2458
2023-02-14 21:54:41 +01:00
SABnzbd Automation
a70f943462 Update translatable texts
[skip ci]
2023-02-13 02:39:27 +00:00
renovate[bot]
a717260574 Update all dependencies 2023-02-13 02:38:27 +00:00
Safihre
90a4898dbd Use walrus operator in several places 2023-02-11 22:34:53 +01:00
Safihre
4543d9e975 Log decode cache limit and assembler trigger 2023-02-11 17:33:24 +01:00
jcfp
2aedd20007 Include https config files in backup (#2450)
* include https config files in backup

* add constants for default https config filenames

* refresh test_config, add coverage for https backup

* remove some unicode from the tests

* On Windows we use long-paths

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2023-02-11 09:21:22 +01:00
renovate[bot]
822e1cbfb5 Update dependency cryptography to v39.0.1 [SECURITY] 2023-02-08 05:40:16 +00:00
puzzledsab
0ec082669d Gradual slowdown on filling queues (#2439)
* Gradual slowdown on filling queues

* Move delayed counters to new slowdown check, otherwise they will rarely trigger

* Simplify the full decoder part a bit

* Reduce sleep aggressiveness a bit

* Make a constant for the queue level slowdown limit

* Rename the slowdown limit variable and put it in constants with the other queue limit variables

* Also constants...

* Make black happy
2023-02-07 23:24:57 +01:00
puzzledsab
5315eeb26b Write first article directly (#2443)
* Write first article directly

* Add first article to assembler in usual place instead of ArticleCache

* Remove redundant deref

* Update comment to reflect new code

* Partly restore old code

* First article should not always be added to the queue if SAB has started downloading the other parts

* Yet another redundant deref :(
2023-02-05 22:29:38 +01:00
puzzledsab
32bd5a4cca Let the assembler write trigger scale with the size of the cache (#2436) 2023-02-05 20:47:27 +01:00
jcfp
e4ec774d16 restore startup history purge (#2449) 2023-02-04 19:13:46 +01:00
puzzledsab
b1ce21ad77 Reduce useless logging (#2448) 2023-02-03 14:14:57 +01:00
puzzledsab
9ab5e86c81 Make downloader use received buffer size to determine if it's ok to sleep (#2424)
* Make downloader use used buffer size to determine if it's ok to sleep

* Log number of times slept and average time slept last 10 seconds

* Log if downloader slept much too long

* Improvements to sleep debugging

* Remove get_stable_speed
2023-02-02 10:25:02 +01:00
renovate[bot]
ea3442ad27 Update dependency setuptools to v67 2023-02-01 19:54:56 +00:00
puzzledsab
e1af02a642 Don't crash on invalid yenc footer (#2440)
* Don't crash on invalid yenc footer

* What he said

* Forgot to remove debug print
2023-02-01 20:44:12 +01:00
Safihre
fe0c4e4f92 Update formatting with black 23 rules 2023-02-01 20:42:06 +01:00
puzzledsab
5e58fdf821 Don't immediately add new article if downloading should be stopped (#2429)
* Don't immediately add new article if downloading should be stopped

* VS Code black and Github black don't agree
2023-01-28 18:42:55 +01:00
SABnzbd Automation
01537c03b1 Update translatable texts
[skip ci]
2023-01-26 22:19:13 +00:00
Safihre
b78f4d13c1 Update Unrar to 6.20
Closes #2325
2023-01-26 23:15:09 +01:00
Safihre
ba68243dc7 Drop official support for Python 3.7 for the next major release 2023-01-25 23:02:33 +01:00
SABnzbd Automation
b742971d9b Update translatable texts
[skip ci]
2023-01-25 21:41:02 +00:00
Safihre
6492cfb430 Update copyright year to 2023 2023-01-25 22:39:49 +01:00
puzzledsab
c229adcbb9 Immediately request new article after the previous was done (#2423)
* Immediately request new article after the previous was done

* Add server.get_article method
2023-01-25 22:36:49 +01:00
puzzledsab
abb08a4589 Various minor changes and fixes (#2422) 2023-01-24 22:40:18 +01:00
Safihre
5ccc124ad4 Print status of OpenSSL link during start-up and request feedback 2023-01-24 17:28:43 +01:00
SABnzbd Automation
db22fea0d1 Update translatable texts
[skip ci]
2023-01-24 16:22:05 +00:00
Safihre
7ebd12ec3d Rename sabyenc3 to sabctools 2023-01-24 17:06:53 +01:00
Safihre
ac0e57726f Replace crc32calc with C-version 2023-01-24 17:06:36 +01:00
Safihre
e3200b1481 Apply changes need for updates to buffer_decode 2023-01-24 17:06:36 +01:00
Safihre
5492935c32 Use buffer-based sabyenc3 2023-01-24 17:06:32 +01:00
puzzledsab
2a67d80057 Stop using 0 as failed and use new crc32 value in SFV check (#2411)
* Stop using 0 as failed and use new crc32 value in SFV check

* Make nzf.crc32sum differentiate between uninitialized, valid and invalid CRC32 value

* Replace crc32sum with assembled and use crc32 value instead
2023-01-24 17:06:32 +01:00
puzzledsab
7956a75344 Call getsize in try and use CRC32 from sabyenc (#2409)
* Call getsize in try and use CRC32 from sabyenc

* Always fail if crc32sum is 0
2023-01-24 17:06:32 +01:00
puzzledsab
cfa82e5086 CRC32 check (#2407)
* Only set on_disk and don't set decoded until article is saved to cache (#2403)

* Mark unavailable articles as saved

* Save broken article if a valid one doesn't exist

* Change bad article message a bit

* Reduce to only set on_disk and don't set decoded until article is saved to cache

* Use CRC32 from PAR2 instead of MD5

* Move crc32calc.py to utils

* Update credits in crc32.py, use crc32 in test_par2file.py

* Various smaller changes to CRC32 patch

* Handle unfinished par2 files better

* Optimized crc32 calculations

* Rename md5sum to crc32sum and include filesize check
2023-01-24 17:06:32 +01:00
Safihre
60291a93c2 Use buffer per connection 2023-01-24 17:06:18 +01:00
Safihre
51fec1c5a0 Use new sabyenc3.unlocked_ssl_recv_into 2023-01-24 17:06:18 +01:00
Safihre
5b8c5e2fd7 Allocate only once a buffer for each connection 2023-01-24 17:06:18 +01:00
renovate[bot]
5a0fd6ee08 chore(deps): update all dependencies 2023-01-23 06:09:10 +00:00
renovate[bot]
d7d3810874 chore(deps): update all dependencies 2023-01-16 00:18:57 +00:00
SABnzbd Automation
f0819c339c Update translatable texts
[skip ci]
2023-01-15 12:36:21 +00:00
Safihre
adcdca6f2e Pin tavern due to incompatibility of tavalidate with tavern>=2.0.0
@jcfp if you ever feel like a refactor of these tests ;)
2023-01-15 13:35:03 +01:00
SABnzbd Automation
efd7d1a4a0 Update translatable texts
[skip ci]
2023-01-11 02:27:37 +00:00
One CD
fc3fa137ac relabel UI button to show "Hidden" instead of "System" (#2410)
- as per: https://forums.sabnzbd.org/viewtopic.php?t=26089
2023-01-11 03:26:25 +01:00
SABnzbd Automation
61e901e07b Update translatable texts
[skip ci]
2023-01-10 08:57:09 +00:00
Safihre
d5dee106d1 Use newer cryptography package 2023-01-10 08:56:11 +00:00
renovate[bot]
00518e1a60 chore(deps): update all dependencies 2023-01-10 08:56:11 +00:00
Michael Reid
129d622015 Ignore file permissions when running unrar (#2401)
* fix: use permission bits from root when doing file recursion

* fix: restrict setting root permissions to files

* Revert "fix: restrict setting root permissions to files"

This reverts commit 0ef72f6038.

* Revert "fix: use permission bits from root when doing file recursion"

This reverts commit 0a1ceff8c0.

* fix: always ignore file attributes on unrar
2023-01-05 23:03:25 +01:00
puzzledsab
4423cbfcf3 Only set on_disk and don't set decoded until article is saved to cache (#2403)
* Mark unavailable articles as saved

* Save broken article if a valid one doesn't exist

* Change bad article message a bit

* Reduce to only set on_disk and don't set decoded until article is saved to cache
2023-01-05 14:39:11 +01:00
SABnzbd Automation
7f0d845dd0 Update translatable texts
[skip ci]
2022-12-31 16:17:05 +00:00
jcfp
bba1c894c5 Refresh and expand the appstream metadata (#2393)
Add supported control methods [1] as well as recommended screen sizes [2] and internet availability. Most of these properties are already in active use by appdata clients such a Gnome's "Software" program. The display size basically says "all but extra-small", where the extra extra-small category is used for tiny devices such a wearables and watches, and is kept as a recommend to not block installs on headless systems.

Also set a vcs-browser URL, and update the contact URL to point to the more generic live-chat page rather than directly to the forums.

[1] https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-control
[2] https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length
2022-12-31 17:14:01 +01:00
SABnzbd Automation
6c197a4a8c Update translatable texts
[skip ci]
2022-12-28 21:33:20 +00:00
Safihre
4ceae8ec31 Update macOS build to Python 3.11.1 2022-12-28 22:28:48 +01:00
SABnzbd Automation
d257f903cc Update translatable texts
[skip ci]
2022-12-28 21:21:26 +00:00
Safihre
69742dd785 Refactor server error message reporting 2022-12-28 22:16:21 +01:00
SABnzbd Automation
92161eae07 Update translatable texts
[skip ci]
2022-12-28 20:59:39 +00:00
Sander
70d5099902 better logging with login from multiple IP (#2370)
* better logging with login from multiple IP

* warning in one line

* warning in one line

* warning in one line

* cleanup

* errormsg in better place

* Patch error

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-12-28 21:56:35 +01:00
thezoggy
de80f4e262 fix typo in default to url input when add nzb modal is shown (#2384) 2022-12-23 07:31:24 +01:00
thezoggy
0f0b8d4528 default to url input when add nzb modal is shown (#2383) 2022-12-22 19:54:50 +00:00
renovate[bot]
e34301fb2f chore(deps): update all dependencies 2022-12-19 13:25:39 +01:00
Safihre
a140c1ddc1 Remove special universal2 build step for orjson on macOS
orjson now provides universal2 wheel
2022-12-16 22:56:17 +01:00
Safihre
b472c615fb Multi-edit applying category + something else can be unpredictable
Closes #2375
2022-12-15 16:39:46 +01:00
Safihre
d41f33775e On mobile disable accept parameter on file inputs
Doesn't work on mobile Safari
See https://forums.sabnzbd.org/viewtopic.php?p=128651
2022-12-15 16:07:29 +01:00
Safihre
c27d60e2b0 Run Windows CI tests on Python 3.11 now lxml is available 2022-12-15 09:57:10 +01:00
Safihre
77fcaf4fca Remove redundant combine_chunk from recv_chunk 2022-12-12 13:58:03 +01:00
renovate[bot]
206dc66f7c Update dependency mac-alias to v2.2.2 2022-12-12 09:08:14 +00:00
puzzledsab
2d267fc50a Put */Default category first in lists (#2372)
* Put * category first in lists

* Seems there is some disagreement on how to format **

* Somewhat shorter version

* Use get_ordered_categories
2022-12-10 21:30:54 +01:00
puzzledsab
5cd5f00df7 Fix division by zero (#2369) 2022-12-10 08:40:30 +01:00
puzzledsab
6a80869861 Put some of the nntp connection handling code in a separate method (#2368) 2022-12-08 19:40:44 +01:00
puzzledsab
fb113514ae More recv_chunk refactoring (#2367) 2022-12-08 15:43:43 +01:00
puzzledsab
91740048c2 Limited refactoring of recv_chunk (#2366)
* Limited refactoring

* Remove explicit setblocking from servertests.py

* Make combine_chunk exactly 5 bytes so we can use ==

* Move timeout down a bit
2022-12-07 20:14:05 +01:00
Safihre
ff2e206229 sys.stdout and sys.stderr not defined by new PyInstaller version
Closes #2360
2022-12-06 17:06:56 +01:00
Jagandeep Brar
5f1f82257b fix: set stage_log to empty array on missing database content (#2364)
Closes #2363
2022-12-06 05:15:37 +01:00
Safihre
3df0fab793 Correctly set non-blocking mode
Relates to #2357
2022-12-05 14:03:41 +01:00
dependabot[bot]
7e7fa62c24 Bump stefanzweifel/git-auto-commit-action from 4.15.4 to 4.16.0 (#2359)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.15.4 to 4.16.0.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.15.4...v4.16.0)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 11:54:38 +01:00
renovate[bot]
6220c00dcb Update all dependencies 2022-12-05 00:40:47 +00:00
Safihre
59a3d58c0f Process feedback on Downloader optimizations 2022-12-01 09:43:35 +01:00
Safihre
d8fb19c26e Use actual data_size in decoder
To be added to sabyenc3 later
2022-11-29 17:05:01 +01:00
Safihre
b0530325c5 Optimize downloader loop
Increase number of pre-fetched articles.
Only update the job download statistics after completing an article instead of after every chunk
2022-11-29 14:38:54 +01:00
Safihre
734a86a248 Optimize synchronized decorator 2022-11-29 13:50:16 +01:00
Safihre
a12d447d95 Optimize the has_forced_items check 2022-11-29 12:27:15 +01:00
puzzledsab
e9578d9aa0 Optimize highest_server (#2350) 2022-11-28 18:07:06 +01:00
renovate[bot]
5fef185a30 Update all dependencies 2022-11-28 01:04:10 +00:00
puzzledsab
ee2b2b2c3a Improve handling of unresolvable news servers (#2347)
* Trying to find cause of git bug #2345

* Try to find IP using happyeyeballs first, fall back to default if it fails

* Fix mistake

* Add host name to connection error message

* Always debug log IP address
2022-11-25 22:47:58 +01:00
Safihre
45d232e401 Scripts set as end-of-queue actions are no longer persistent
https://forums.sabnzbd.org/viewtopic.php?p=128490
2022-11-25 22:33:56 +01:00
Safihre
9a4d56e4e1 Status information was not updated on shortcut-key S
Closes #2346
2022-11-23 10:26:35 +01:00
puzzledsab
63018439c8 Refactor article.get_article (#2344)
* Refactor article.get_article

* Add some tests

* Another test

* Test tries updating

* Fix assignment mistake

* Remove debug logging from get_article
2022-11-21 07:34:20 +01:00
renovate[bot]
b5fef2ecb9 Update all dependencies 2022-11-21 01:22:29 +00:00
puzzledsab
fd3ece31c7 Do a more thorough check when a bad try_list is detected (#2330)
* Do a more thorough check when a bad try_list is detected

* Improve idle job check and fix DNS lookup problem

* Loop through copy of article list and move nzf.reset_try_list below the article check

Closes #2320
2022-11-16 19:51:13 +01:00
SABnzbd Automation
7aa8e3d60d Update translatable texts
[skip ci]
2022-11-16 15:42:50 +00:00
Safihre
9d71b39b31 Remove Queue/History search term exclusion as we do not support it
Closes #2342
2022-11-16 16:42:18 +01:00
Safihre
7cb09a0e0b Priority list in Add NZB window was not correct
Closes #2332
2022-11-14 16:07:41 +01:00
Safihre
fa47448ddc Remove redundant has_bad_articles
Leftover of new-but-failed-quikcheck
2022-11-14 16:00:02 +01:00
thezoggy
be7ae3d151 Tweak so hotkeys update both queue+history for non-tabbed layout. (#2337) 2022-11-14 15:20:07 +01:00
Kian-Meng Ang
fcb3c11203 Fix typos (#2339)
Found via `codespell -S po,interfaces -L
ciph,fo,ro,nd,parm,parms,readd,reenabled,msdos,sav,tage,datas`
2022-11-14 07:21:42 +01:00
renovate[bot]
c63002e145 Update dependency pyinstaller-hooks-contrib to v2022.13 2022-11-14 02:59:03 +00:00
Safihre
7758079efa Disable separateMajorMinor in Renovate config 2022-11-07 21:42:57 +01:00
Safihre
9e43cc30a7 Only run codesign import step if available 2022-11-07 21:37:00 +01:00
dependabot[bot]
40eaf15538 Bump stefanzweifel/git-auto-commit-action from 4.15.3 to 4.15.4 (#2335)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.15.3 to 4.15.4.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.15.3...v4.15.4)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-07 11:40:47 +01:00
renovate[bot]
a6228b43f3 Update all dependencies 2022-11-07 05:26:12 +00:00
SABnzbd Automation
b5fcc90da2 Update translatable texts
[skip ci]
2022-11-07 02:31:55 +00:00
renovate[bot]
c66e80fdaf Update all dependencies 2022-11-07 02:31:21 +00:00
Safihre
7853e1990f Replace apple-actions/import-codesign-certs 2022-11-04 10:11:09 +01:00
SABnzbd Automation
9d52a335c3 Update translatable texts
[skip ci]
2022-11-04 07:58:15 +00:00
Safihre
8597784bc6 Correct tests after server timeout correction 2022-11-03 11:24:36 +01:00
Safihre
557b9ef71d Server timeouts were applied wrongly during testing
Closes #2326
2022-11-03 09:23:17 +01:00
SABnzbd Automation
c7791a478a Update translatable texts
[skip ci]
2022-11-02 21:38:52 +00:00
renovate[bot]
d29a20727b Update dependency cryptography to v38.0.3 [SECURITY] 2022-11-02 21:38:14 +00:00
SABnzbd Automation
a14a2f6c96 Update translatable texts
[skip ci]
2022-11-01 16:26:40 +00:00
thezoggy
cc402e35a1 codespell (#2321)
* ran through codespell to cleanup a bit of typos, excluded a bit to try and avoid any issues

* fix typos - may need review
2022-10-31 22:51:38 +01:00
renovate[bot]
2813c30536 Update all dependencies 2022-10-31 19:10:35 +00:00
dependabot[bot]
8bd0bdf5b2 Bump stefanzweifel/git-auto-commit-action from 4.15.2 to 4.15.3 (#2323)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.15.2 to 4.15.3.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.15.2...v4.15.3)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 12:28:24 +01:00
SABnzbd Automation
26a99443d7 Update translatable texts
[skip ci]
2022-10-29 18:02:15 +00:00
Safihre
6d5aa77dee Set version to 3.8.0-develop
Closes #2319
2022-10-29 20:01:22 +02:00
Safihre
5fa7bea885 Update (almost) all Python versions to 3.11 2022-10-27 08:58:28 +02:00
Safihre
62fb85a94b Update Transifex client to supported version 2022-10-25 20:16:55 +02:00
dependabot[bot]
c840e3485e Bump stefanzweifel/git-auto-commit-action from 4.15.1 to 4.15.2 (#2317)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.15.1...v4.15.2)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 13:01:11 +02:00
renovate[bot]
04c72d51fd Update all dependencies 2022-10-24 01:02:55 +00:00
renovate[bot]
eae1250cac Update all dependencies 2022-10-24 00:48:19 +00:00
dependabot[bot]
634801431d Bump stefanzweifel/git-auto-commit-action from 4.15.0 to 4.15.1 (#2313)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.15.0 to 4.15.1.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.15.0...v4.15.1)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 13:12:04 +02:00
dependabot[bot]
e9a884ab39 Bump syphar/restore-virtualenv from 1.2 to 1.3 (#2312)
Bumps [syphar/restore-virtualenv](https://github.com/syphar/restore-virtualenv) from 1.2 to 1.3.
- [Release notes](https://github.com/syphar/restore-virtualenv/releases)
- [Commits](https://github.com/syphar/restore-virtualenv/compare/v1.2...v1.3)

---
updated-dependencies:
- dependency-name: syphar/restore-virtualenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 13:11:23 +02:00
renovate[bot]
40fc1511d0 Update all dependencies 2022-10-17 02:00:09 +00:00
SABnzbd Automation
8642723c77 Update translatable texts
[skip ci]
2022-10-11 18:16:02 +00:00
Safihre
15ac97e41a Update text files for 3.7.0Beta1 2022-10-11 20:15:14 +02:00
Safihre
8202ae7cf6 PyInstaller now supports Python 3.11 2022-10-10 09:27:26 +02:00
renovate[bot]
1b459460dc Update dependency pyinstaller to v5.5 2022-10-10 01:01:04 +00:00
Safihre
bdf7df9ecd Fix importlib_metadata testing-requirement 2022-10-07 21:10:31 +00:00
renovate[bot]
7e55c6a79d Update all dependencies 2022-10-07 21:10:31 +00:00
thezoggy
183570aaa5 WIN: multipar 1.3.2.5 (#2308) 2022-10-05 13:21:43 +02:00
Safihre
de1d66d4dd Console logging directed to stdout
Closes #2302
2022-09-26 22:21:21 +02:00
dependabot[bot]
0b27e57ad7 Bump stefanzweifel/git-auto-commit-action from 4.14.1 to 4.15.0 (#2303)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.14.1 to 4.15.0.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.14.1...v4.15.0)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 12:59:18 +02:00
renovate[bot]
182bbd43c5 Update all dependencies 2022-09-26 01:33:43 +00:00
Safihre
cdf4d6c5fd Update README badges, include Discord 2022-09-24 22:46:13 +02:00
SABnzbd Automation
86db74c394 Update translatable texts
[skip ci]
2022-09-24 19:44:02 +00:00
Safihre
856e63794b Small refactor of database.py 2022-09-24 21:40:49 +02:00
Safihre
c29a57445a Sanitize RSS-feed name when renaming
Closes #2300
2022-09-23 09:45:20 +02:00
SABnzbd Automation
4aba90ad3f Update translatable texts
[skip ci]
2022-09-22 12:53:52 +00:00
Safihre
4f2b6d4cd7 Update text files for 3.7.0Alpha1 2022-09-22 14:52:44 +02:00
Safihre
92067fa3f3 Build release using Python 3.11 RC 2
Set PYTHONNODEBUGRANGES
Use main pyinstaller branch
rustup target add aarch64-apple-darwin
2022-09-22 14:19:32 +02:00
SABnzbd Automation
c26ea4ceeb Update translatable texts
[skip ci]
2022-09-22 12:13:12 +00:00
Safihre
35ccbff5b9 Update label for System load 2022-09-22 14:12:29 +02:00
SABnzbd Automation
1a265a5176 Update translatable texts 2022-09-22 10:49:38 +00:00
Safihre
ef2d243fa8 Move sysload indicator to status window 2022-09-22 12:48:58 +02:00
Safihre
c2b8fa59a6 Update sabyenc3 to 5.4.4
Only adds Python 3.11 wheels
2022-09-22 12:35:10 +02:00
Safihre
a85f9e39bd Force-downloads can result in extra data downloaded of other jobs 2022-09-22 12:12:42 +02:00
Safihre
a13f8828fb Move Server - Port setting to Advanced settings 2022-09-22 12:02:32 +02:00
Safihre
7d391b8465 Small improvement of BPSMeter.get_sums
Leftover of Python 2 days
2022-09-21 23:06:50 +02:00
Safihre
dbfa7cc4eb Refactor Downloader.bandwidth_perc and bandwidth_limit usage 2022-09-21 22:49:41 +02:00
Safihre
66e99df303 Free Space Detection too strict when using Direct Unpack
Closes #2299
2022-09-21 21:41:24 +02:00
Safihre
77ecf64443 Prevent crash on disappearing Article
Closes #2295
2022-09-21 21:31:02 +02:00
Safihre
f7060804b2 Set logging to info when no file given to deobfuscate
Closes #2297
2022-09-20 10:22:00 +02:00
renovate[bot]
a44a1269c0 Update all dependencies 2022-09-19 01:53:27 +00:00
Safihre
ac6fc37c7d Small improvements of to_units and opts_to_pp 2022-09-16 06:50:48 +02:00
Safihre
9472d65af9 Update output tests to match removed API fields 2022-09-15 22:49:36 +02:00
Safihre
1b4c07f229 Remove categories and scripts from queue-API-call
So we don't check the disk for available scripts every second
2022-09-15 14:49:20 +02:00
Safihre
a645058ae1 Update Snapcraft release process 2022-09-13 16:48:28 +02:00
Safihre
edec6defbb Show the custom job name in case of fetch-failure
Closes #2294
2022-09-12 22:52:44 +02:00
SABnzbd Automation
27b3a3ddef Update translatable texts 2022-09-12 13:58:44 +00:00
Safihre
da0903b8a6 Link to Not-complete info on low article availability 2022-09-12 15:57:57 +02:00
renovate[bot]
a49a3b45e5 Update dependency cryptography to v38 2022-09-12 05:08:14 +00:00
SABnzbd Automation
b9225fb153 Update translatable texts 2022-09-12 03:09:18 +00:00
renovate[bot]
656b7f0948 Update dependency pyinstaller to v5.4.1 2022-09-12 03:08:39 +00:00
SABnzbd Automation
08b249ee09 Update translatable texts 2022-09-08 15:15:35 +00:00
Safihre
5d76ebfe6e Force push requires automation token 2022-09-08 17:14:40 +02:00
Safihre
0d53b12ade Force-push updates to translation files 2022-09-08 17:01:54 +02:00
Safihre
f403e12a2a Add option to specify Backup Folder and clarify scheduler usage
Closes #2288
2022-09-08 16:54:13 +02:00
Safihre
5abce26309 Update build_release.yml
Update the actual macOS build code
2022-09-06 12:35:44 +00:00
Safihre
e73cb0958f Update macOS build script 2022-09-06 12:35:44 +00:00
renovate[bot]
70070e2f1c Update dependency pyinstaller-hooks-contrib to v2022.10 2022-09-06 12:35:44 +00:00
Sander
2685f9adab more some extensions that are non-mainstream (#2285)
Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2022-09-03 16:20:59 +02:00
renovate[bot]
c43e74eabd Update all dependencies 2022-08-29 01:51:48 +00:00
m0vie
b0d3306209 Determine password from <meta> before running preprocessing script (#2282)
This way the environment variable SAB_PASSWORD (whose documentation
says is supplied by user OR the nzb) is filled properly and the
password is available in a preprocessing script.
2022-08-27 20:08:08 +02:00
Safihre
4aaabae109 Pin jaraco.text to lower version due to irrelevant extra dependencies 2022-08-26 11:32:02 +02:00
Safihre
b8188f999e Prevent failure in TestPar2Repair if it takes more than 0 seconds
Closes #2273
2022-08-25 20:28:39 +02:00
Safihre
4dc5ceb9b1 Delete .pyup.yml 2022-08-25 13:20:50 +02:00
Safihre
4f8e5053f7 Update renovate.json (#2280) 2022-08-25 07:23:48 +00:00
renovate[bot]
3d97ce99e1 Update all dependencies 2022-08-24 16:34:41 +00:00
renovate[bot]
8620412b3a Configure Renovate (#2277)
* Add renovate.json

* Create renovate.json

* Delete renovate.json

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-08-24 14:25:35 +00:00
SABnzbd Automation
a6d07d89d0 Update translatable texts 2022-08-22 17:55:36 +00:00
Safihre
a63efcefd6 Make sure also short-dates are detected as YY-MM-DD in Sorting 2022-08-22 19:54:49 +02:00
Safihre
bce9207161 Update backup tests 2022-08-22 10:40:45 +02:00
SABnzbd Automation
12670dedbe Update translatable texts 2022-08-21 20:14:14 +00:00
Safihre
40393f9548 Add Create Backup to Scheduler 2022-08-21 22:13:31 +02:00
Safihre
94cae5f015 Only allow Config-backup to the Complete Folder
Closes #2261
2022-08-21 22:05:42 +02:00
Safihre
8353227f9d No longer install builder requirements during CI 2022-08-20 23:13:38 +02:00
Safihre
5c1d69b934 Run Linux CI tests on Python 3.11 2022-08-20 23:03:40 +02:00
thezoggy
fb04b58b57 selenium syntax update (#2271)
* handle sab path with spaces

* fix py3.10 win "Unable to remove cache dir"

* remove unused imports

* update selenium find_element(s) syntax

* Fix selenium_wrapper usage

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-08-19 22:25:48 +02:00
Safihre
2bb14bba2a Correct: Compressed NZB filename could exceed OS limitation 2022-08-19 13:31:33 +02:00
Safihre
91195eb21b Compressed NZB filename could exceed OS limitation
See https://www.reddit.com/r/SABnzbd/comments/wrserd/importing_nzb_files/
2022-08-19 13:15:38 +02:00
Sander
3b8d6dd3c8 detect and log fully encrypted (obfuscated) rars (#2266)
* detect fully encrypted rars

* debug.warning working, nzo.fail_msg alas is overwritten

* a bit of clean-up

* a bit of clean-up

* the real clean-up

* no intermediate variable

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

* Shorter message

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

* more clean-up

* unittest

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-08-17 02:00:26 +02:00
Safihre
ff2ab2da8d Pyup/scheduled update 2022 08 15 (#2270)
* Update setuptools from 63.4.2 to 65.0.0

* Update orjson from 3.7.11 to 3.7.12

* Update jaraco.text from 3.8.1 to 3.9.0

* Update more-itertools from 8.13.0 to 8.14.0

* Update pytz from 2022.1 to 2022.2.1

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-08-16 20:20:07 +02:00
Sander
85aed457b2 Handle Unicoded filenames add via SAB GUI (cherrypy) (#2268)
* Linux: handle Unicoded filenames add via SAB GUI

* Unittest

* Unittest

* Unittest

* Unittest

* Unittest

* Unittest more

* naming, less code

* even less code

* better unittests

* and less, less code

Closes #2267

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2022-08-15 19:57:58 +02:00
Safihre
d624d1d5b6 Do not repeatedly add password to meta-password list 2022-08-14 11:36:55 +02:00
Safihre
6c6a1049ea Validation error would not be shown on Config General page
Due to #2253
2022-08-12 16:48:30 +02:00
SABnzbd Automation
f380889d98 Update translatable texts 2022-08-12 14:44:22 +00:00
Sander
f61df0e126 Check if host is valid: an IP address, or a name/FQDN that resolves (#2253)
* Check if host is valid: an IP address, or a name/FQDN that resolves

* Check if host is valid: an IP address, or a name/FQDN that resolves

* default to "127.0.0.1"

* default to "127.0.0.1"

* manual black

* manual black

* manual black

* based on feedback, plus back-to-basics

* based on feedback, plus back-to-basics, plus debug logging

* based on feedback, plus back-to-basics, plus debug logging

* based on feedback, plus back-to-basics, plus debug logging

* clean formatting

* clean formatting

Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
2022-08-12 16:43:40 +02:00
Safihre
ffca12123f Update Unrar to 6.11/6.12
Closes #2265
2022-08-12 10:49:10 +02:00
SABnzbd Automation
1077ca3753 Update translatable texts 2022-08-12 08:45:59 +00:00
Safihre
c7189dbceb Graceful log sabyenc decoding (CRC/formatting) errors
Closes sabnzbd/sabyenc#62
2022-08-12 10:43:59 +02:00
SABnzbd Automation
f2361c49b4 Update translatable texts 2022-08-10 06:54:38 +00:00
thezoggy
f84cbb66c3 Add option to replace underscores in folder name. (#2263) 2022-08-10 08:53:54 +02:00
Safihre
e45f254d19 strftime does not require explicit call to localtime 2022-08-09 21:54:04 +02:00
Safihre
b6cd3c0bae Config backup filename in same format as *arr apps
See #2261
2022-08-09 21:51:58 +02:00
pyup.io bot
4a98724a35 Update setuptools from 63.3.0 to 63.4.2 (#2262) 2022-08-09 07:39:49 +02:00
SABnzbd Automation
4680fa5ae9 Update translatable texts 2022-08-05 19:19:00 +00:00
Safihre
458f4e2bdc Remove deprecation notices 2022-08-05 21:18:12 +02:00
Safihre
3357fd81c7 Add Filter and Age columns to Downloaded RSS-feed tab
Closes #2257
2022-08-03 21:58:40 +02:00
Safihre
3ebe277303 Update macOS Python version to 3.10.6 2022-08-02 22:30:26 +02:00
Safihre
29c57dce0f Remove new QuickCheck implementation
See https://github.com/sabnzbd/sabnzbd/discussions/2160
And https://github.com/sabnzbd/sabnzbd/issues/2251
2022-08-02 22:16:21 +02:00
Safihre
27a9330638 Pyup/scheduled update 2022 08 01 (#2260)
* Update pyinstaller from 5.2 to 5.3

* Update setuptools from 63.2.0 to 63.3.0

* Update orjson from 3.7.8 to 3.7.11

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-08-02 20:25:31 +02:00
Safihre
4b42b1f55d Upgrade pip/wheel before installing requirements
Closes #2244
2022-07-26 09:52:58 +02:00
pyup.io bot
db761395e5 Update orjson from 3.7.7 to 3.7.8 (#2250) 2022-07-26 09:51:09 +02:00
Sander
249d73e270 Deobfuscation: comments and logging (#2246)
* Comment block that explains what deobfuscation does

* get better logging (with reason of no deobfuscation), leading to other code structure

* get better logging (with reason of no deobfuscation), leading to other code structure

* get better logging (with reason of no deobfuscation), leading to other code structure

* based on feedback: comment with typical cases to the beginning of function, error logging if file is not given/found, other logical notation in if-statement
2022-07-25 22:19:11 +02:00
Safihre
5d359afedb Downloads in Checking-status were not displayed correctly
Closes #2249
2022-07-25 11:02:26 +02:00
Safihre
5e8e37e6a2 Correctly remove disable_api_key 2022-07-21 21:39:07 +02:00
SABnzbd Automation
a74df6f04f Update translatable texts 2022-07-21 19:30:52 +00:00
Safihre
10991d5472 Remove replace_illegal option 2022-07-21 21:26:30 +02:00
Safihre
b3206fe1db Remove enable_meta option 2022-07-21 21:24:29 +02:00
Safihre
70391ea055 Remove disable_key option 2022-07-21 21:22:19 +02:00
thezoggy
5b69155d49 Tweak hotkeys, add pagination navigation, use jquery.hotkeys (#2235) 2022-07-20 13:38:11 +02:00
pyup.io bot
941bb8adca Scheduled weekly dependency update for week 29 (#2242)
* Update setuptools from 63.1.0 to 63.2.0

* Update cherrypy from 18.7.0 to 18.8.0

* Update jaraco.functools from 3.5.0 to 3.5.1

* Update jaraco.collections from 3.5.1 to 3.5.2

* Update jaraco.text from 3.8.0 to 3.8.1

* Update jaraco.classes from 3.2.1 to 3.2.2

* Update jaraco.context from 4.1.1 to 4.1.2

* Update tempora from 5.0.1 to 5.0.2
2022-07-20 13:36:55 +02:00
Sander
b5eb014084 Only pick biggest file for deobfuscation (#2241)
* Only pick biggest file for deobfuscation

* unit tests working again

* unit tests working again

* get counter nr_files_renamed right

* also deobfuscate sample and other files with same basename

* also deobfuscate sample and other files with same basename

* naming, comments

* unit test with just one small file (should get deobfuscated). Plus improved text/names.

* Moved most typical unit test (test_deobfuscate_big_file_small_accompanying_files() ) more to the top

* Moved most typical unit test (test_deobfuscate_big_file_small_accompanying_files() ) more to the top
2022-07-20 13:36:40 +02:00
jcfp
ee4b9339a7 use OSType in pyfakefs instead of setting separate properties (#2243) 2022-07-19 22:36:44 +02:00
pyup.io bot
3acfe19499 Scheduled weekly dependency update for week 28 (#2239)
* Update cryptography from 37.0.3 to 37.0.4

* Update cryptography from 37.0.3 to 37.0.4

* Update pyinstaller from 5.1 to 5.2

* Update pyinstaller-hooks-contrib from 2022.7 to 2022.8

* Update orjson from 3.7.6 to 3.7.7

* Update cherrypy from 18.6.1 to 18.7.0
2022-07-12 08:09:54 +02:00
pyup.io bot
9bac23b38f Scheduled weekly dependency update for week 27 (#2237)
* Update setuptools from 62.6.0 to 63.1.0

* Update orjson from 3.7.3 to 3.7.6

* Update cffi from 1.15 to 1.15.1

* Update ujson from 5.3.0 to 5.4.0
2022-07-04 23:20:33 +02:00
Safihre
b028258cbd Pyup/scheduled update 2022 06 27 (#2226)
* Update cryptography from 37.0.2 to 37.0.3

* Update cryptography from 37.0.2 to 37.0.3

* Update orjson from 3.7.2 to 3.7.3

* Update chardet from 4.0.0 to 5.0.0

* Force selenium<4.3.0

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-06-28 08:48:45 +02:00
Safihre
4d442159cb Remove unused code 2022-06-22 20:17:29 +02:00
Safihre
181a91ccf6 Prevent crash if DNS lookup fails for external IPv4
Closes #2217
2022-06-21 22:31:01 +02:00
SABnzbd Automation
1c6f2e9d10 Update translatable texts 2022-06-21 07:54:26 +00:00
Safihre
244fe3b116 Remove unused translations from Glitter 2022-06-21 09:52:41 +02:00
Safihre
9ee7391918 Pyup/scheduled update 2022 06 20 (#2215)
* Update setuptools from 62.4.0 to 62.6.0

* Update charset-normalizer from 2.0.12 to 2.1.0

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-06-21 08:32:28 +02:00
Safihre
2eadc3ace6 Merge osx_menu, osx_speed and win_menu into tray_icon
See also #2214
2022-06-21 08:28:09 +02:00
SABnzbd Automation
786b29c18d Update translatable texts 2022-06-19 18:38:48 +00:00
Safihre
315f787d20 Prevent scheduler crash if event is canceled that was no longer queued
https://www.reddit.com/r/SABnzbd/comments/vfa1fr/what_is_causing_this_error_its_not_harming/
2022-06-19 20:38:04 +02:00
Safihre
0347907044 Prevent crash in new Quick-check if file was already moved 2022-06-16 13:53:54 +02:00
Joulinar
f2ae281195 Update sabyenc3 to 5.4.3 (#2209)
* Update requirements.txt

Update requirements sabyenc3 to new version

* Update sabyenc3 to 5.4.3

Update sabyenc3 to 5.4.2
2022-06-15 13:24:12 +02:00
Safihre
a4f76d59b0 Prevent showing crash on Status window during Shutdown 2022-06-14 11:36:00 +02:00
Safihre
52a3e04eae Fix macOS cffi version and test orjson by installing build requirements 2022-06-14 11:26:25 +02:00
pyup.io bot
390abb00df Scheduled weekly dependency update for week 24 (#2208)
* Update pyinstaller-hooks-contrib from 2022.6 to 2022.7

* Update setuptools from 62.3.2 to 62.4.0

* Update pkginfo from 1.8.2 to 1.8.3

* Update orjson from 3.7.1 to 3.7.2
2022-06-14 10:58:38 +02:00
dependabot[bot]
02c50e4b17 Bump actions/setup-python from 3 to 4 (#2207)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 13:35:42 +02:00
Sander
8c8a78c0ab Less narrow exception handling with publicipv4 (#2202)
* wider exception handling

* Easier coding for easier reading

* Easier coding for easier reading

* except Exception:
2022-06-09 20:05:25 +02:00
Safihre
fb75cde710 Print hashes for Synology release 2022-06-09 08:47:17 +02:00
Safihre
fc855dccff Remove enable_https_verification from possible deprecation list 2022-06-07 09:31:22 +02:00
pyup.io bot
3d57def676 Scheduled weekly dependency update for week 23 (#2198)
* Update orjson from 3.6.8 to 3.7.1

* Update jaraco.text from 3.7.0 to 3.8.0
2022-06-06 22:51:42 +02:00
pyup.io bot
74d2da8857 Update pyinstaller-hooks-contrib from 2022.5 to 2022.6 (#2195) 2022-05-31 00:12:43 +02:00
Safihre
8cfd721ef6 Prevent unnecessary update API-calls when searching 2022-05-30 14:48:30 +02:00
Safihre
d4e10f32e7 Added filtering for Queue (category, priority) and History (category)
Closes #1158
2022-05-30 10:55:19 +02:00
Safihre
5a7cff491d Update sabyenc3 to 5.4.2 2022-05-29 14:29:09 +02:00
puzzledsab
392ae695d0 Change variable names from completed to remaining for consistency and fix sort order (#2194) 2022-05-29 13:01:15 +02:00
SABnzbd Automation
b39effc067 Update translatable texts 2022-05-28 18:23:22 +00:00
Safihre
908f4f01cf Update develop branch to 3.7.0-develop 2022-05-28 20:22:43 +02:00
Safihre
8baab13192 Additional refactor of queue sorting 2022-05-27 22:17:05 +02:00
SABnzbd Automation
abb38d3e49 Update translatable texts 2022-05-27 17:50:11 +00:00
puzzledsab
d0016e390a Optimize sort_queue_function (#2192) 2022-05-27 19:49:33 +02:00
puzzledsab
c80012e367 Remove redundant if in _nzo_completed_cmp (#2191) 2022-05-26 22:19:31 +02:00
SABnzbd Automation
19fc60a1d8 Update translatable texts 2022-05-26 09:58:29 +00:00
puzzledsab
487c9e96ce Add sort by completedness (#2186)
* Add sort by completedness

* Change sortCompleted text and move resort code

* Update explain-auto_sort

* Split explain-auto_sort for easier translation update
2022-05-26 11:57:46 +02:00
Safihre
cd337cb164 NZB files not removed when rejected by pre-queue script
Closes #2188
2022-05-24 17:25:47 +02:00
Safihre
5c15747d62 Also check for writing of special characters even if sanitize_safe is on
Relates to #2165
2022-05-24 10:39:35 +02:00
Safihre
7f11e6946b Scheduled weekly dependency update for week 21 (#2189)
* Update pyinstaller from 5.0.1 to 5.1

* Update pyinstaller-hooks-contrib from 2022.4 to 2022.5

* Update setuptools from 62.2.0 to 62.3.2

* Update sabyenc3 from 5.3.0 to 5.4.0

* Update feedparser from 6.0.8 to 6.0.10

* Update ujson from 5.2.0 to 5.3.0

* Update sabyenc3 to 5.4.1

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-05-24 10:16:31 +02:00
SABnzbd Automation
8fa77691d0 Update translatable texts 2022-05-23 14:41:12 +00:00
Safihre
894e5910c3 Also allow "cat" to filter categories on history call 2022-05-23 16:40:16 +02:00
SABnzbd Automation
54f33a72c4 Update translatable texts 2022-05-23 09:26:34 +00:00
Safihre
566f90ff30 Switched noslots and noslots_total
Closes #2187
2022-05-23 11:25:57 +02:00
SABnzbd Automation
debc59744f Update translatable texts 2022-05-19 10:31:16 +00:00
Safihre
33c6ac813c Update text files for 3.6.0RC2 2022-05-19 12:30:35 +02:00
Safihre
04875d07c5 Update sabyenc3 to 5.3.0 2022-05-19 12:20:01 +02:00
SABnzbd Automation
39eb594e12 Update translatable texts 2022-05-18 11:56:30 +00:00
Safihre
2561182126 Remove unused and undocumented API-calls 2022-05-18 13:46:58 +02:00
SABnzbd Automation
a68ab27bac Update translatable texts 2022-05-17 08:33:00 +00:00
Safihre
c27acb0e90 Warn users that we want to remove some settings 2022-05-17 10:32:02 +02:00
SABnzbd Automation
875d1ab952 Update translatable texts 2022-05-17 08:30:21 +00:00
Safihre
3496480254 Remove unused option movie_extra_folder 2022-05-17 10:29:27 +02:00
pyup.io bot
2ca79ab3b9 Scheduled weekly dependency update for week 20 (#2181)
* Update setuptools from 62.1.0 to 62.2.0

* Update puremagic from 1.12 to 1.14
2022-05-17 07:42:11 +02:00
Safihre
51ce7b657c Use directory of Default Category if the NZB-Category doesn't have one
Closes #2179
2022-05-16 13:45:31 +02:00
Safihre
67a34dcc78 Test for consistency of sabyenc3 version between code and requirements 2022-05-16 13:42:20 +02:00
Safihre
81d27ece54 Update BPS when we delay the Downloader due to full queues
Prevents "constant" speed that users see
2022-05-13 16:08:29 +02:00
Koen van Wijngaarden
f3a2e54e61 Disable password manager autofill on socks5 field (#2177)
* disable password manager autofill on socks5 field

* autocomplete="off" in socks5 field
2022-05-12 23:04:59 +02:00
Safihre
1894ed72e3 Move the building of source distribution to macOS job 2022-05-12 16:51:29 +02:00
SABnzbd Automation
64bf7d541e Update translatable texts 2022-05-12 09:33:36 +00:00
Safihre
8beba13430 Update text files for 3.6.0RC1 2022-05-12 11:32:40 +02:00
Safihre
6379869d41 Also create complete directory, if it does not exists 2022-05-12 10:52:28 +02:00
Safihre
5a666a28ef Remove tr language files (empty) 2022-05-12 09:56:54 +02:00
SABnzbd Automation
3c80053010 Update translatable texts 2022-05-12 06:37:57 +00:00
jcfp
7fd4941923 Add bash completion (#2175)
* add bash completion

* restore missing return for --server
2022-05-12 08:37:15 +02:00
SABnzbd Automation
b42e600285 Update translatable texts 2022-05-11 17:41:00 +00:00
Sander
df8859d49e Check filesystem capability for writing and writing filenames with special characters (#2167)
* functions to test directory for writing capabilities

* functions to test directory for writing capabilities

* use checking in postproc, and give warning if needed

* use checking in postproc, and give warning if needed

* put into function, with translatable folder names

* remove test file if still there

* better message formatting

* remove friendly directory name. Less comments

* move stuff into filesystem.py

* clean it up

* unit test for check_directory_writing_capability on tempdir

* unit test for check_directory_writing_capability on tempdir

* unit test for check_directory_writing_capability on tempdir

* unit test for check_directory_writing_capability on tempdir

* unit test for check_directory_writing_capability on tempdir

* Update sabnzbd/filesystem.py

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

* feedback processed

* feedback processed

* feedback processed

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

# Conflicts:
#	sabnzbd/filesystem.py

* typo: uniformed on "writable"

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-05-11 19:40:19 +02:00
Safihre
d62d006398 Do not show extrapar files twice in get_files API-call
Regression from the removal of QNFO tuples.
2022-05-11 14:17:03 +02:00
Safihre
dadf1bdcc1 Use orjson with fallback to ujson/json 2022-05-10 15:04:30 +02:00
pyup.io bot
da961b7722 Scheduled weekly dependency update for week 19 (#2174)
* Update cryptography from 37.0.1 to 37.0.2

* Update cryptography from 37.0.1 to 37.0.2

* Update more-itertools from 8.12.0 to 8.13.0
2022-05-10 03:14:53 +02:00
SABnzbd Automation
087326ed32 Update translatable texts 2022-05-06 18:59:46 +00:00
Safihre
fc9f66e3e2 Update test_par2file 2022-05-06 20:59:02 +02:00
Safihre
cb25e0dcb3 Add test to see if every option has a Wiki-entry
Maybe annoying, but needed.
2022-05-05 12:54:09 +02:00
Safihre
88da458c2b Allow multiple parameters to be passed to par2cmdline/Multipar
Closes #2172
2022-05-05 08:39:09 +02:00
SABnzbd Automation
705b3aa74e Update translatable texts 2022-05-04 14:30:21 +00:00
Safihre
f35bfa45db Update text files for 3.6.0Beta6 2022-05-04 16:29:09 +02:00
SABnzbd Automation
cc59037fbc Update translatable texts 2022-05-04 11:44:09 +00:00
Safihre
1c442128dd Small changes to osxmenu 2022-05-04 13:40:25 +02:00
Safihre
d70d8d34dc Delay in test_adding_nzbs_nzoids to allow transition to History 2022-05-03 09:30:14 +02:00
Safihre
2c972995d3 UnRar on Windows escapes quotes by double quoting them 2022-05-03 09:30:14 +02:00
Safihre
794f6239bb Pyup/scheduled update 2022 05 02 (#2168)
* Update cryptography from 36.0.2 to 37.0.1

* Update cryptography from 36.0.2 to 37.0.1

* Update wrapt from 1.14.0 to 1.14.1

* Update pywin32 from 303 to 304

Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-05-03 08:46:31 +02:00
SABnzbd Automation
5f498c3bb1 Update translatable texts 2022-05-02 10:52:58 +00:00
Safihre
8efce7430f Refactor queue-API data collection and XML output changes 2022-05-02 12:51:56 +02:00
SABnzbd Automation
fa3bf93464 Update translatable texts 2022-04-28 20:12:24 +00:00
Safihre
ff1f0986cf Remove "eta" API-fields from main queue and slots
Please let me know if this is a problem.
2022-04-28 22:11:33 +02:00
SABnzbd Automation
a1601a0c1f Update translatable texts 2022-04-28 20:03:12 +00:00
Safihre
2f457c2721 Remove unused texts from skintext and add test for it 2022-04-28 22:02:31 +02:00
Safihre
02c9d0d387 Keep nzo.md5packs for backwards compatibility 2022-04-28 20:18:31 +02:00
Safihre
9b002fe568 Set minval for num_simd_decoders 2022-04-28 20:15:53 +02:00
Safihre
73ec5df88d Move test_adding_nzbs_nzoids to separate module to have a clean instance 2022-04-28 11:08:50 +02:00
Safihre
82e0635995 Previous tests could break nzo_ids test 2022-04-27 14:30:53 +02:00
SABnzbd Automation
da0ff7be27 Update translatable texts 2022-04-27 06:54:31 +00:00
Safihre
569260b396 Update text files for 3.6.0Beta4 2022-04-27 08:53:32 +02:00
Safihre
bbce0afbf4 Add tests for correct nzo_ids on failed NZBs 2022-04-26 16:00:08 +02:00
Safihre
33022d82c4 Remove undocumented "xcat" API-option 2022-04-26 12:44:43 +02:00
Safihre
a7c29fa317 Refactor NZB rejection, no nzo_ids were returned for Fail to history
See: https://forums.sabnzbd.org/viewtopic.php?p=127386
2022-04-26 12:36:46 +02:00
Safihre
8974944044 Make sure duplicate md5of16k hashes are not used in Quick-check 2022-04-26 08:34:19 +02:00
pyup.io bot
60c86a45da Scheduled weekly dependency update for week 17 (#2163)
* Update pyinstaller from 5.0 to 5.0.1

* Update pyobjc from 8.4.1 to 8.5
2022-04-26 07:09:56 +02:00
Safihre
92883f313a Improve new Quick-check implementation
We only care about missing/broken articles in files that we have par2 for. So we check for each NZF if it has bad articles, and only fail if it is part of a par2 set. Additionally we check if the file size matches the one from par2.

Since this also enables CRC check for sabyenc3, it will be slower and the default of num_simd_decoders is increased to 2.
2022-04-25 13:45:49 +02:00
Safihre
ce4524e2bb Do not show traceback when getipaddress functions timeout 2022-04-21 11:26:17 +02:00
SABnzbd Automation
fdf4242a6c Update translatable texts 2022-04-20 23:44:32 +00:00
Safihre
e44c603ba7 Interface did not default correctly to Glitter - Auto 2022-04-21 01:43:44 +02:00
Safihre
1f30714e17 Move Black to CI Test workflow 2022-04-19 09:43:05 +02:00
SABnzbd Automation
36f32f518f Update translatable texts 2022-04-19 07:39:29 +00:00
Safihre
bdbd02fa0b Warn in case there are no valid servers
https://forums.sabnzbd.org/viewtopic.php?p=127310
2022-04-19 09:38:42 +02:00
pyup.io bot
0a1e018144 Scheduled weekly dependency update for week 16 (#2159)
* Update pyinstaller from 4.10 to 5.0

* Update pyinstaller-hooks-contrib from 2022.3 to 2022.4
2022-04-19 06:38:02 +02:00
dependabot[bot]
601649e028 Bump stefanzweifel/git-auto-commit-action from 4.14.0 to 4.14.1 (#2157)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.14.0...v4.14.1)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-18 15:29:28 +02:00
Sander
7c17dc64c9 Solve traceback and failing GUI when unknown language setting sabnzbd.ini (#2156)
* solve traceback and failing GUI when unknown langauge setting in sabnzbd.ini

* make black happy

* make black happy
2022-04-16 22:17:37 +02:00
SABnzbd Automation
647f04b6f0 Update translatable texts 2022-04-14 11:08:25 +00:00
Safihre
c2102c38f3 Update text files for 3.6.0Beta4 2022-04-14 13:07:45 +02:00
Safihre
6c82e47d32 Add black to test requirements
Not really, but still needed.
2022-04-14 09:53:27 +02:00
Safihre
b53529614e Note that SABnzbd also works with pre-Rust cryptography
Closes #2155
2022-04-14 08:59:03 +02:00
thezoggy
2a25c201a7 Fix category script typeahead alignment (#2153) 2022-04-12 20:41:29 +02:00
Safihre
8f3d5047fc Update test_par2file.py
Update test_par2file.py
2022-04-12 17:02:59 +02:00
Safihre
6a08b5b71b Implement new style Quick-check 2022-04-12 17:02:59 +02:00
Safihre
c08715614a Revert "Use multiple Assemblers in case SIMD is available" 2022-04-12 17:02:59 +02:00
Safihre
ea2b130b57 Mark functional download tests as flaky 2022-04-12 14:33:25 +02:00
Safihre
daa3b25822 Update setuptools from 62.0.0 to 62.1.0 (#2149)
Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-04-12 08:58:42 +02:00
dependabot[bot]
0184e8de2f Bump actions/upload-artifact from 2 to 3 (#2147)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 12:39:36 +02:00
SABnzbd Automation
eec59252f6 Update translatable texts 2022-04-10 09:51:37 +00:00
Safihre
2b7f8fb1c9 Move assembler steps in separate function 2022-04-10 10:46:00 +02:00
SABnzbd Automation
345a37d024 Update translatable texts 2022-04-08 18:56:07 +00:00
Safihre
5f04211c58 Update text files for 3.6.0Beta3 2022-04-08 20:51:10 +02:00
Safihre
80b679e9dc Use multiple Assemblers in case SIMD is available 2022-04-08 18:15:18 +02:00
SABnzbd Automation
e9ecf39d54 Update translatable texts 2022-04-07 20:14:46 +00:00
Safihre
c5a022958c Remove additional unused translations and functions 2022-04-07 22:05:26 +02:00
SABnzbd Automation
97abbafbe9 Update translatable texts 2022-04-07 19:54:51 +00:00
Safihre
776b0367a5 Remove Indexer Integration
Closes #2118
Closes #1317
2022-04-07 21:54:12 +02:00
Safihre
c6822fc4f5 Remove included Deobfuscate.py as it is outdated 2022-04-05 09:48:15 +02:00
SABnzbd Automation
a2f10b5416 Update translatable texts 2022-04-05 07:18:41 +00:00
pyup.io bot
4ea7ce7138 Scheduled weekly dependency update for week 14 (#2141)
* Update pyinstaller-hooks-contrib from 2022.2 to 2022.3

* Update setuptools from 60.10.0 to 62.0.0

* Update cheetah3 from 3.2.6.post1 to 3.2.6.post2

* Stop Cheetah3 updates

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-04-05 09:18:01 +02:00
SABnzbd Automation
ab9842b599 Update translatable texts 2022-04-04 19:44:52 +00:00
Safihre
7bba292f46 Only allow .zip files in Backup-file-picker 2022-04-04 21:44:08 +02:00
SABnzbd Automation
867bbd5326 Update translatable texts 2022-04-01 07:56:54 +00:00
Safihre
2690f26300 Update text files for 3.6.0Beta2 2022-04-01 09:55:42 +02:00
Safihre
b514c81015 Update sabyenc3 to 5.1.6 2022-03-30 23:19:43 +02:00
Safihre
cd75d5acd3 Only handle par2 files that could be parsed
Closes #2132
2022-03-30 23:04:54 +02:00
Safihre
b9a60f598c Also use lower_case_ext validator for quick_check_ext_ignore 2022-03-30 22:59:42 +02:00
Safihre
7b39578461 Use new extension validator and rename ext_rename_ignore
Closes #2139
2022-03-30 22:51:17 +02:00
Sander
8934c29617 User defined extensions (#2135)
* checkdir: is_writable(check_dir: str) -> bool

* user can define well known extensions

* user can define well known extensions

* user can define well known extensions

* user can define well known extensions

* user can define well known extensions

* user can define well known extensions

* user can define well known extensions

* unit-test

* unit-test

* unit-test

* based on feedback

* introduce validation=lower_case_extensions_without_dot to get clean extensions

* introduce validation=lower_case_extensions_without_dot to get clean extensions

* introduce validation=lower_case_extensions_without_dot to get clean extensions
2022-03-30 15:38:07 +02:00
Safihre
dbaed5c8ed Fix werkzeug version due to problem with httpbin 2022-03-28 22:46:54 +02:00
Safihre
5a091d55a6 Make sure all unpack_info messages are strings
Closes #2134
2022-03-26 20:01:38 +01:00
Safihre
a28d7ecfab Update macOS release Python to 3.10.4 2022-03-25 10:53:22 +01:00
Safihre
7dea433f52 Revert cheetah3 to 3.2.6.post1
Closes #2133
2022-03-25 10:07:18 +01:00
Safihre
80a2ffdead Do not put partial NZF in Assembler queue if it's already there 2022-03-23 11:03:02 +01:00
pyup.io bot
e4b5d937d7 Scheduled weekly dependency update for week 12 (#2131)
* Update cryptography from 36.0.1 to 36.0.2

* Update cheetah3 from 3.2.6 to 3.2.6.post2
2022-03-22 11:27:30 +01:00
dependabot[bot]
5806f816b8 Bump setuptools from 60.9.3 to 60.10.0 (#2126)
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.9.3 to 60.10.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v60.9.3...v60.10.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 15:48:03 +01:00
dependabot[bot]
385928c6e5 Bump pyobjc from 8.4 to 8.4.1 (#2125)
Bumps [pyobjc](https://github.com/ronaldoussoren/pyobjc) from 8.4 to 8.4.1.
- [Release notes](https://github.com/ronaldoussoren/pyobjc/releases)
- [Changelog](https://github.com/ronaldoussoren/pyobjc/blob/master/docs/changelog.rst)
- [Commits](https://github.com/ronaldoussoren/pyobjc/compare/v8.4...v8.4.1)

---
updated-dependencies:
- dependency-name: pyobjc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 15:47:55 +01:00
dependabot[bot]
3e1654356d Bump pytz from 2021.3 to 2022.1 (#2124)
Bumps [pytz](https://github.com/stub42/pytz) from 2021.3 to 2022.1.
- [Release notes](https://github.com/stub42/pytz/releases)
- [Commits](https://github.com/stub42/pytz/compare/release_2021.3...release_2022.1)

---
updated-dependencies:
- dependency-name: pytz
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 15:47:48 +01:00
dependabot[bot]
def4d596dc Bump macholib from 1.15.2 to 1.16 (#2123)
Bumps [macholib](https://github.com/ronaldoussoren/macholib) from 1.15.2 to 1.16.
- [Release notes](https://github.com/ronaldoussoren/macholib/releases)
- [Changelog](https://github.com/ronaldoussoren/macholib/blob/master/doc/changelog.rst)
- [Commits](https://github.com/ronaldoussoren/macholib/commits/v1.16)

---
updated-dependencies:
- dependency-name: macholib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 15:47:38 +01:00
dependabot[bot]
a239039a89 Bump cryptography from 36.0.1 to 36.0.2 (#2122)
Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.1 to 36.0.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/36.0.1...36.0.2)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 15:47:00 +01:00
Safihre
1a71265354 Further update pyup.yml 2022-03-21 12:53:41 +01:00
pyup.io bot
9a3a3b0868 Config file for pyup.io (#2130)
* create pyup.io config file

* Update pyup

* Remove dependabot

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-03-21 12:49:05 +01:00
dependabot[bot]
b0a109bd0d Bump actions/cache from 2 to 3 (#2127)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 12:05:32 +01:00
dependabot[bot]
525d10c0ae Bump stefanzweifel/git-auto-commit-action from 4.13.1 to 4.14.0 (#2128)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.13.1 to 4.14.0.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.13.1...v4.14.0)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 12:02:57 +01:00
SABnzbd Automation
8de65d48f3 Update translatable texts 2022-03-18 18:01:01 +00:00
Safihre
a5f21c764c Update text files for 3.6.0Beta1 2022-03-18 18:59:46 +01:00
Safihre
1e4e18e51d Correct refactor mistakes 2022-03-18 18:52:46 +01:00
SABnzbd Automation
281921ec59 Update translatable texts 2022-03-17 11:10:49 +00:00
Safihre
c10efcbf4c Update handling of errors in servertest
Many errors were just thrown on 1 big pile and even connection-errors were accepted as success because all 4xx codes were accepted.
2022-03-17 12:10:04 +01:00
Safihre
661ab24d6f NNTPLib wil be removed in future version of Python 2022-03-17 11:20:02 +01:00
Safihre
4bf33f5a0a Bump sabyenc3 to 5.1.2
See https://github.com/sabnzbd/sabyenc/issues/33
2022-03-16 15:55:30 +01:00
SABnzbd Automation
b256e086c7 Update translatable texts 2022-03-16 10:05:52 +00:00
jcfp
a9470ae959 Ensure sufficient available blocks remain if add_parfile fails (#2119)
* ensure sufficient available blocks remain if add_parfile fails

* replace while loop, drop use of pop()
2022-03-16 11:05:14 +01:00
SABnzbd Automation
100018d6bf Update translatable texts 2022-03-16 08:53:31 +00:00
SABnzbd Automation
7719513c72 Update translatable texts 2022-03-15 20:58:27 +00:00
Safihre
970703671d Revert "Update translatable texts"
This reverts commit 1ffdd53629.
2022-03-15 21:57:45 +01:00
Safihre
6d3a4a391c Catch all sabyenc3 import exceptions 2022-03-15 21:52:30 +01:00
SABnzbd Automation
9838c6a05c Update translatable texts 2022-03-15 20:49:49 +00:00
Safihre
5744b1ae98 Revert "Remove Prowl/Pushover/Pushbullet support"
This reverts commit 97f91e734a.
See #2093
2022-03-15 20:52:51 +01:00
Safihre
879af8744d Reduce default number of decoders now that we have SIMD 2022-03-14 20:34:06 +01:00
Safihre
640f941180 Remove unused truncatedText 2022-03-14 20:15:53 +01:00
Safihre
a48d8b8f6a Catch all errors during startup in test_sab_binary
We can wait 10 seconds in case something is wrong.
2022-03-14 16:43:42 +01:00
Safihre
20d92bf36b Ask for feedback about Indexer Integration
See #2118
2022-03-14 16:40:44 +01:00
Safihre
7f2ab5d629 Remove cache_max, refresh_rate, rating_enable from queue API-call
They are not queue related information
2022-03-14 16:26:35 +01:00
Safihre
bb46b474c3 Small API cleanup 2022-03-14 16:08:05 +01:00
Safihre
5a3e8836e0 Report SIMD set as part of the CPU information 2022-03-14 15:37:30 +01:00
Safihre
e100c4ce7f Correct highlight of pop-up tabs 2022-03-14 13:19:02 +01:00
dependabot[bot]
32b3db80d8 Bump pyobjc from 8.3 to 8.4
Bumps [pyobjc](https://github.com/ronaldoussoren/pyobjc) from 8.3 to 8.4.
- [Release notes](https://github.com/ronaldoussoren/pyobjc/releases)
- [Changelog](https://github.com/ronaldoussoren/pyobjc/blob/master/docs/changelog.rst)
- [Commits](https://github.com/ronaldoussoren/pyobjc/compare/v8.3...v8.4)

---
updated-dependencies:
- dependency-name: pyobjc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:48:53 +01:00
dependabot[bot]
7ac24e69c4 Bump wrapt from 1.13.3 to 1.14.0
Bumps [wrapt](https://github.com/GrahamDumpleton/wrapt) from 1.13.3 to 1.14.0.
- [Release notes](https://github.com/GrahamDumpleton/wrapt/releases)
- [Changelog](https://github.com/GrahamDumpleton/wrapt/blob/develop/docs/changes.rst)
- [Commits](https://github.com/GrahamDumpleton/wrapt/compare/1.13.3...1.14.0)

---
updated-dependencies:
- dependency-name: wrapt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:41:59 +01:00
dependabot[bot]
80f2a5476e Bump sabyenc3 from 5.1.0 to 5.1.1
Bumps [sabyenc3](https://github.com/sabnzbd/sabyenc) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/sabnzbd/sabyenc/releases)
- [Commits](https://github.com/sabnzbd/sabyenc/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: sabyenc3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:41:51 +01:00
Safihre
d27237832e Prevent stall when decoder/assembler queues are full 2022-03-14 08:21:41 +01:00
SABnzbd Automation
73a3ce9889 Update translatable texts 2022-03-13 14:18:02 +00:00
Safihre
ff66b8ec01 Show in the status window why download speed was limited
Set to show if >5 times. Arbitrary number, might change in future.
2022-03-13 15:17:25 +01:00
Safihre
d632084c58 Update URL's to wiki pages 2022-03-13 13:14:57 +01:00
Safihre
4257ff3e67 Forgot to update SABYENC_VERSION_REQUIRED 2022-03-10 17:17:42 +01:00
Safihre
72ca0a6ef7 Update sabyenc3 to 5.1.0 2022-03-10 15:48:52 +01:00
Safihre
5b361a6a2e Jobs waiting to fetch get stuck indefinitely upon restart
Closes #2114
2022-03-10 13:40:02 +01:00
Safihre
40d3a69b1c Prevent Direct Unpack proceeding faster than it should, locking files
Relates to #2113
2022-03-10 13:40:02 +01:00
Safihre
0cc618e1b2 Revert "Revert "Disable buffering when writing files in assembler""
This reverts commit de4ca8e55c.

Turns out not to be the case, see #2113
2022-03-10 13:40:02 +01:00
Safihre
0ee04ada31 Log also the OSError.winerror just to be sure 2022-03-10 08:25:16 +01:00
Safihre
807b1c64dd Update MultiPar to v1.3.2.3
Closes #2097
2022-03-08 10:25:49 +01:00
Safihre
690aad123c No longer build sabyenc3 from sources for the release 2022-03-08 08:40:17 +01:00
Safihre
73b6a3159f Allow longer build timeouts
Especially on macOS this can be really slow on busy days.
2022-03-08 08:37:45 +01:00
Safihre
73e8a18d5a Force codesign_identity to None if not set 2022-03-07 21:48:45 +01:00
dependabot[bot]
e613dda536 Bump pyinstaller from 4.9 to 4.10
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 4.9 to 4.10.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/v4.10/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v4.9...v4.10)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 21:48:45 +01:00
dependabot[bot]
2621b90d3b Bump actions/checkout from 2 to 3 (#2110)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 21:19:37 +01:00
Sander
9e95736b48 In case of sabyenc version mismatch, log the sabyenc file used, to help debugging (#2108) 2022-03-04 17:50:06 +01:00
Safihre
de4ca8e55c Revert "Disable buffering when writing files in assembler"
This reverts commit 3c3aeac93c.

It turns out this causes problems!
2022-03-03 15:44:06 +01:00
Safihre
f4247e0361 Use 1 shared ThreadPoolExecutor instead of ThreadPool (#2103)
See #2103
2022-03-02 10:04:29 +01:00
Safihre
d9df7b66f5 Sign files before handing them over to PyInstaller 2022-03-01 17:38:50 +01:00
Safihre
c5feb5bdc9 Revert "Let PyInstaller sign the macOS executable and the app" 2022-03-01 15:54:29 +01:00
Safihre
ee170d2f51 Update SABYenc to 5.0.1 2022-03-01 14:58:04 +01:00
dependabot[bot]
eea6d07613 Bump actions/setup-python from 2 to 3 (#2101)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 14:37:26 +01:00
dependabot[bot]
4a9a26d470 Bump stefanzweifel/git-auto-commit-action from 4.5.1 to 4.13.1 (#2100)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.5.1 to 4.13.1.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.5.1...v4.13.1)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 14:37:17 +01:00
Safihre
f949487a75 Add dependabot for GitHub Actions 2022-03-01 14:21:15 +01:00
Safihre
d7572c5772 RSS filters At most/least were broken 2022-03-01 08:42:14 +01:00
dependabot[bot]
74e3bbb83b Bump pyobjc from 8.1 to 8.3 (#2099)
Bumps [pyobjc](https://github.com/ronaldoussoren/pyobjc) from 8.1 to 8.3.
- [Release notes](https://github.com/ronaldoussoren/pyobjc/releases)
- [Changelog](https://github.com/ronaldoussoren/pyobjc/blob/master/docs/changelog.rst)
- [Commits](https://github.com/ronaldoussoren/pyobjc/commits/v8.3)

---
updated-dependencies:
- dependency-name: pyobjc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 13:01:07 +01:00
Sander
adaa4cade5 SAB wizard: get_access_info() more robust with try-except (#2090) 2022-02-28 13:00:29 +01:00
Safihre
09e670bce4 Try to fix the functional tests 2022-02-28 12:17:49 +01:00
SABnzbd Automation
d6b601968d Update translatable texts 2022-02-25 22:14:32 +00:00
Safihre
f07db641d4 Set version to 3.6.0-develop and make sure we keep it correct
Relates to Sonarr/Sonarr/4912
Closes sabnzbd/sabnzbd/2095
2022-02-25 23:13:39 +01:00
SABnzbd Automation
1ffdd53629 Update translatable texts 2022-02-24 15:37:29 +00:00
Safihre
97f91e734a Remove Prowl/Pushover/Pushbullet support
Closes #2093
2022-02-24 16:35:37 +01:00
Christopher Kreft
4eee13ac02 #2089 - try to fix build/stage packages for arm64/armhf (#2094)
* #2089 - use snapcraft-preload to rewrite the /dev/shm path dynamically

* #2089 - try to fix build/stage packages for arm64/armhf
2022-02-22 14:50:43 +01:00
Christopher Kreft
5869022a28 #2089 - use snapcraft-preload to rewrite the /dev/shm path dynamically (#2092) 2022-02-22 12:47:24 +01:00
Safihre
19e77590f3 Make sure all extrapars and md5packs are unique
Closes #2084
2022-02-21 11:56:23 +01:00
dependabot[bot]
bc790275aa Bump setuptools from 60.9.0 to 60.9.3 (#2087)
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.9.0 to 60.9.3.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v60.9.0...v60.9.3)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 11:46:38 +01:00
dependabot[bot]
1c35cd9d65 Bump pyinstaller-hooks-contrib from 2022.1 to 2022.2 (#2086)
Bumps [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib) from 2022.1 to 2022.2.
- [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller-hooks-contrib/compare/2022.1...2022.2)

---
updated-dependencies:
- dependency-name: pyinstaller-hooks-contrib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 11:29:02 +01:00
Safihre
d6dd8da81e Prevent crash due to get_formatted_stats returning int 2022-02-20 19:26:39 +01:00
Safihre
d55b23c482 Multiset-unpack with partial failure should correctly be reported
Relates to #2084
2022-02-20 11:05:10 +01:00
Safihre
f95f83c85b Allow longer timeouts for status update
Closes #2066
2022-02-16 16:46:54 +01:00
Safihre
f0fa67d16d Add Debug logging when applying permissions failed 2022-02-16 13:08:50 +01:00
Safihre
89756b7c9e Allow chmod failures if no custom permissions are set
This is the same as before 3.5.0!
2022-02-16 10:38:07 +01:00
Safihre
5f9693cb34 Perform the internetspeed measure in separate thread 2022-02-15 15:37:05 +01:00
Safihre
2856f3af8c Use 1 ThreadPool for all timeout_decorators 2022-02-15 15:05:34 +01:00
Safihre
e7b1db8b09 Prevent logging performance/network measures twice 2022-02-15 10:39:53 +01:00
Sander
48c3a84b85 Logging of performance measurements (#2071)
* logging.debug of all performance measurements

* logging.debug of all performance measurements

* logging.debug of all performance measurements

* logging.debug of all performance measurements

* black black black

* internetspeed ... logging.debug start & done

* internetspeed ... back to total 8 seconds, plus a Note in comments

* no more logging "starting ..."

* change the Note a bit

* internetspeed: correct seconds, and Note

* SAB-standard wording. Plus meausurement of duration, where possibly relevant

* SAB-standard wording. Plus meausurement of duration, where possibly relevant

* shorter variable name for disk writing MB per sec

* shorter variable name for disk writing MB per sec
2022-02-14 21:30:30 +01:00
Safihre
eca3705794 Let PyInstaller sign the macOS executable and the app
It signs the binaries anyway, so let it do it properly.
Verify signature applied by PyInstaller
2022-02-14 15:38:26 +01:00
dependabot[bot]
74fd17d7ac Bump charset-normalizer from 2.0.11 to 2.0.12 (#2077)
Bumps [charset-normalizer](https://github.com/ousret/charset_normalizer) from 2.0.11 to 2.0.12.
- [Release notes](https://github.com/ousret/charset_normalizer/releases)
- [Changelog](https://github.com/Ousret/charset_normalizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ousret/charset_normalizer/compare/2.0.11...2.0.12)

---
updated-dependencies:
- dependency-name: charset-normalizer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:55:33 +01:00
dependabot[bot]
35cbf0ebb4 Bump setuptools from 60.8.1 to 60.9.0 (#2078)
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.8.1 to 60.9.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v60.8.1...v60.9.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:55:21 +01:00
dependabot[bot]
2eb8b8e2b2 Bump puremagic from 1.11 to 1.12 (#2076)
Bumps [puremagic](https://github.com/cdgriffith/puremagic) from 1.11 to 1.12.
- [Release notes](https://github.com/cdgriffith/puremagic/releases)
- [Changelog](https://github.com/cdgriffith/puremagic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cdgriffith/puremagic/compare/1.11...1.12)

---
updated-dependencies:
- dependency-name: puremagic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:54:52 +01:00
dependabot[bot]
883596d1d7 Bump pyinstaller-hooks-contrib from 2022.0 to 2022.1 (#2079)
Bumps [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib) from 2022.0 to 2022.1.
- [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller-hooks-contrib/compare/2022.0...2022.1)

---
updated-dependencies:
- dependency-name: pyinstaller-hooks-contrib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:54:29 +01:00
Wolfgang Scherer
698487377b Do not fail if attribute subject is missing in NZB file-section (#2075)
* Use attribute poster of file element, if attribute subject ist missing

* Don't fail, if subject is missing.

* Textual change

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-02-14 09:15:53 +01:00
jcfp
c3d826df8c set log level of "completed not on fat" to debug 2022-02-10 12:47:19 +01:00
Safihre
d5536ed246 Wait before removing the temporary directory in binary test 2022-02-09 13:05:20 +01:00
Safihre
df077f8ef6 Add small delay to test_download check of result file
To prevent zip-test-failures on Windows.
2022-02-09 12:55:04 +01:00
Safihre
4293a098e3 Fix version of more dependencies 2022-02-09 08:52:12 +01:00
SABnzbd Automation
cf07260186 Update translatable texts 2022-02-07 14:28:21 +00:00
Safihre
9ad5bd477b Correctly handle the transition from download to active post-processing 2022-02-07 15:27:43 +01:00
Safihre
1d2c1dbc6f Restore correct display of Direct Unpack progress 2022-02-07 15:12:13 +01:00
Safihre
8c44c5b79a Correct mistake in 171f04 2022-02-07 11:57:34 +01:00
dependabot[bot]
0c84eb3dd0 Bump pyinstaller from 4.8 to 4.9 in /builder
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 4.8 to 4.9.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/v4.9/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v4.8...v4.9)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 11:51:01 +01:00
dependabot[bot]
869792c09e Bump setuptools from 60.6.0 to 60.8.1 in /builder
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.6.0 to 60.8.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v60.6.0...v60.8.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 11:50:51 +01:00
Safihre
09ab158d66 Prevent Direct Unpack crash on obfuscated posts
Closes #2060
2022-02-07 11:49:57 +01:00
Safihre
f539a8ccda Dependabot update config
It will pick up sub-directories automatically
2022-02-07 11:33:16 +01:00
Safihre
171f049607 Use nzo.deleted instead of nzo.is_gone to prevent assembly during pp
Relates to #2059, #2054 and #1509.
2022-02-07 10:37:28 +01:00
Safihre
43e47e6249 Correct undefined function remove_data 2022-02-05 09:51:45 +01:00
Safihre
afbfe72489 Use notarytool on macOS to do notarization 2022-02-04 22:28:04 +01:00
Safihre
59d042c9a7 Test starting of binary during release building 2022-02-04 21:46:09 +01:00
Safihre
38a613de45 Pin even more requirements
Closes #2056
2022-02-04 10:09:32 +01:00
Safihre
1c27ebc1e4 Add unittests for case where api_warnings is disabled 2022-01-31 10:22:49 +01:00
Safihre
6f1d8a99e7 Do not return access denied message when api_warnings is disabled
Closes #2029
2022-01-31 10:13:07 +01:00
Safihre
8c9e5b4963 Add small delay between volumes in Direct Unpack to prevent UnRar error 2022-01-31 09:23:39 +01:00
Safihre
3c3aeac93c Disable buffering when writing files in assembler 2022-01-30 10:51:48 +01:00
Safihre
846c2761f6 Fix dependencies in requirements.txt and configure dependabot 2022-01-30 09:59:50 +01:00
Safihre
d03eabe4d5 Black formatting update 2022-01-30 09:25:54 +01:00
Safihre
cad9be6e74 RSS feeds with HTML-chars in the feed name would result in crash 2022-01-28 12:36:14 +01:00
SABnzbd Automation
dbb166e94f Update translatable texts 2022-01-28 11:06:30 +00:00
Safihre
6b92922ee5 Test using separate par2 libomp.dylib 2022-01-28 12:05:57 +01:00
Safihre
479431b283 Add M1 (arm64) versions of unrar 6.10 and par2cmdline 0.8.1 2022-01-28 12:05:57 +01:00
Safihre
2ab1a27f8b Update 7zip to 21.07, including universal2 version for macOS 2022-01-28 12:05:57 +01:00
Safihre
8470e61e3f Reduce par2cmdline output log in Debug mode 2022-01-26 16:36:23 +01:00
Safihre
6c6c8c86d8 Rename DARWIN constant to MACOS 2022-01-25 13:44:51 +01:00
SABnzbd Automation
efab6ee229 Update translatable texts 2022-01-25 07:15:06 +00:00
jcfp
72a1173615 add appstream metadata, sample desktop and mimeinfo files (#2040)
* add appstream metadata, sample desktop and mimeinfo files

* remove overlooked plus
2022-01-25 08:14:32 +01:00
Safihre
1dfa3a64a7 Cache whole vitualenv for CI and release building 2022-01-24 14:31:42 +01:00
Safihre
7b36396570 Do not trigger keyboard shortcuts if the user pressed keycombos 2022-01-23 15:00:54 +01:00
Safihre
c1a8470dcf Handle early NNTP 500 Access Denied
Closes #2033
Closes #2034
Removed old code for some attack that could still happen on the regular connect.
2022-01-23 13:54:21 +01:00
Safihre
ba0d9ac834 Do not trigger keyboard shortcuts if the user is typing in text field 2022-01-23 13:27:06 +01:00
SABnzbd Automation
56d0feab12 Update translatable texts 2022-01-22 16:27:12 +00:00
Sven
0674737796 Add keyboard shortcuts (#2031)
* Add keybinds

* Change quote style to match codebase

* Store keyboard binding setting in config

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-01-22 17:26:45 +01:00
SABnzbd Automation
58b632b6c6 Update translatable texts 2022-01-22 16:26:31 +00:00
Safihre
43f3e13491 Prevent extra error when no 7zip is available
Closes #2036, #2035
2022-01-22 17:25:48 +01:00
SABnzbd Automation
7b69060776 Update translatable texts 2022-01-22 08:51:38 +00:00
puzzledsab
75f6cc7f0f Backup and restore admin data (#2023)
* Backup and restore admin data

* Don't import archives containing subpaths

* Show result after uploading

* Use existing upload system and fixed list of admin files

* Fix confusing order of code lines

* Add translations and link from wizard

* Refactoring, change some names and move some code to sabnzbd.config

* Remove unused imports

* Remove queue and scan databases from backup

* Style changes

* Code changes

* Add tests and don't crash if any admin files are missing

* Cleanup

* Small changes and rebase on develop

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-01-22 09:51:01 +01:00
Safihre
8ef8200363 Set Python for macOS release to 3.10.2 2022-01-21 16:53:15 +01:00
Safihre
8b31c38229 Cache pip packages in Github Actions 2022-01-21 16:45:14 +01:00
Safihre
651591a063 Correctly implement skipping duplicate check if the job is forced
Closes #2032
2022-01-21 16:39:08 +01:00
SABnzbd Automation
c86b3c972b Update translatable texts 2022-01-20 09:52:21 +00:00
Safihre
7529297151 Pass nzo to deobfuscate.deobfuscate
Closes #2030
2022-01-20 10:51:34 +01:00
Safihre
2c411e343d Only build 32bit release when we are creating a full release 2022-01-19 17:22:39 +01:00
Safihre
e9d8f6aebd Skip duplicate check for downloads with Force-priority
Closes #2002
2022-01-19 13:06:49 +01:00
SABnzbd Automation
d144582f1c Update translatable texts 2022-01-19 10:14:36 +00:00
Safihre
2d3e703979 List Deobfuscate result in history 2022-01-19 11:12:24 +01:00
SABnzbd Automation
af440ffffa Update translatable texts 2022-01-19 08:32:10 +00:00
Safihre
e129b2df57 Always sanitize config-section name 2022-01-19 09:18:44 +01:00
Safihre
09f2b36920 Style refactor of config.py 2022-01-18 16:39:08 +01:00
Safihre
37af295873 HTML-sanitizer would sanitize the source data
Closes #2026
2022-01-17 14:08:17 +01:00
Safihre
52d21e94d3 Sort sevenset so x.7z.001 is always the first file 2022-01-15 17:09:35 +01:00
Safihre
acd80cc05e Failed 7zip unpack was not reported in the history 2022-01-15 17:04:52 +01:00
Safihre
de48464661 Set version to 3.6.0-develop
Create new wiki-pages later.
2022-01-13 14:56:18 +01:00
Safihre
623cac6220 Use new env-variable to force PyInstaller bootloader from sources 2022-01-13 11:40:26 +01:00
SABnzbd Automation
ad558b4984 Update translatable texts 2022-01-11 10:20:49 +00:00
Safihre
ae0ba59f67 Only update interface settings in the config after fetching them
Closes #2012
2022-01-11 11:19:33 +01:00
Safihre
fd28a8b427 Escape all HTML on template-based pages 2022-01-10 12:14:05 +01:00
Sander
b390e5de98 Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory (#2022)
* Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory

* Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory

* Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory

* Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory

* Do not deobfuscate/rename anything if there is a typical DVD or Bluray directory
2022-01-10 09:26:59 +01:00
Sander
82402abe43 Dont run deobfuscate if dvd or bluray typical directory name (#2020)
* detect DVD/Bluray structure, and do not run deobfuscate on that

* detect DVD/Bluray structure, and do not run deobfuscate on that

* detect DVD/Bluray structure, and do not run deobfuscate on that

* detect DVD/Bluray structure, and do not run deobfuscate on that

* detect IGNORED_MOVIE_FOLDERS in filelist

* detect IGNORED_MOVIE_FOLDERS in filelist

* better code

* better code

* better code

* better code

* better code

* use one-liner

* wording in comment

* unittest for VIDEO_TS

* unittest for VIDEO_TS
2022-01-09 16:25:13 +01:00
SABnzbd Automation
78da7ddb55 Update translatable texts 2022-01-08 13:22:06 +00:00
Safihre
1dd48743c2 Refactor location of functions from __init__ 2022-01-08 14:21:23 +01:00
Safihre
015417d640 Only run macOS universal2-check when running on GitHub or releasing 2022-01-08 13:16:41 +01:00
Safihre
94de00b14c Automatically release latest snap when building a tag 2022-01-08 10:41:45 +01:00
Safihre
4d237c4328 Add unit tests for format_time_left 2022-01-08 09:49:44 +01:00
SABnzbd Automation
b7f721e869 Update translatable texts 2022-01-08 08:46:01 +00:00
Safihre
49ba555fc0 Revert "Change timeleft format from 0:00:00 to 0:00"
Reverts 1d3a922a7b
2022-01-08 09:45:20 +01:00
SABnzbd Automation
cd1b25ec2b Update translatable texts 2022-01-07 08:30:46 +00:00
Safihre
109725fafe Update text files for 3.5.0RC1 2022-01-07 09:29:57 +01:00
Safihre
9c7b61070b Update copyright year to 2022 2022-01-07 09:29:32 +01:00
SABnzbd Automation
8b5a1fef51 Update translatable texts 2022-01-06 21:11:39 +00:00
Safihre
72f8dd5b3a Show an estimated time-left indicator for par2-repair and unrar 2022-01-06 22:10:55 +01:00
Safihre
1d3a922a7b Change timeleft format from 0:00:00 to 0:00 2022-01-06 22:10:55 +01:00
Safihre
ab2b145556 Literal is not supported on Python 3.7 2022-01-06 13:42:52 +01:00
SABnzbd Automation
8960ff5a4d Update translatable texts 2022-01-06 12:10:55 +00:00
Safihre
06b41b1b5a Create directories before moving to new path 2022-01-06 12:53:39 +01:00
Safihre
4277ac65a4 Add ".ssa" as common extension 2022-01-06 12:53:39 +01:00
Safihre
6ed815f1ac Refactor 7zip handling similar to unrar and skip extra join step 2022-01-06 12:53:39 +01:00
Sander
4ebfa6a3d0 more known extensions (#2016)
* more known extensions, based on mime-type extensions

* put NZB detection first
2022-01-06 12:08:08 +01:00
Safihre
529f75467b Multipar does repair broken parts of joinables 2022-01-05 13:43:03 +01:00
Safihre
062895c7ca Catch ValueError for publicipv4 lookup
Closes #2008
2022-01-04 15:13:34 +01:00
SABnzbd Automation
7b174ac498 Update translatable texts 2022-01-04 13:52:51 +00:00
Safihre
beb8f627ee Add unit tests for par2 filejoin 2022-01-04 14:40:44 +01:00
Safihre
1badbaa182 Refactor of postproc and newsunpack functions 2022-01-04 10:47:07 +01:00
Safihre
75f2930f53 Refactor of newsunpacking functions 2022-01-04 10:16:21 +01:00
Safihre
60b746e4dd Refactor par2cmdline processing 2022-01-04 10:16:21 +01:00
Safihre
dbef9af0df Add unit tests for Multipar and par2cmdline processing 2022-01-04 10:16:21 +01:00
SABnzbd Automation
2a5cdf49ad Update translatable texts 2022-01-03 09:44:33 +00:00
Safihre
0bb5432223 Do not apply permissions if not requested by the user, but remove xbits (#2004)
* Do not apply permissions if not requested by the user, but remove xbits

* Verify umask and user-permissions and warn for potential access problems

* Correctly name umask/permissions options

* Apply permissions only on download_dir creation

* Refactor some permissions related actions

* Block setting permissions=0 and only stat when no custom_permissions
2022-01-03 10:43:57 +01:00
SABnzbd Automation
f565a50e90 Update translatable texts 2022-01-01 15:04:17 +00:00
Safihre
0a840228b2 No longer throw warnings/errors during unpacking, only set job status 2022-01-01 16:03:11 +01:00
SABnzbd Automation
37c1964991 Update translatable texts 2022-01-01 14:48:07 +00:00
Sander
f3cd5b06fa 7z password detection relocation (#2009)
* coding style for 7z unpacking

* coding style: better order

* make black happy

* make black happy

* make black happy

* make black happy

* make black happy

* make black happy

* use two standard message so no translations needed

* use two standard message so no translations needed

* setname_from_path(sevenset)

* setname_from_path(sevenset)

* anything ret > 0 is one case
2022-01-01 15:47:33 +01:00
Sander
c735ad5110 to avoid exception when no 7z/7za was found/defined (#2013)
Co-authored-by: SanderJo <sand.e.rjonkers+github@gmail.com>
2022-01-01 10:16:18 +01:00
Graham Morrison
51b27cb002 snap: 7z env and path fix for outdated deb (#2011) 2021-12-31 14:44:12 +01:00
Safihre
0406f1df01 In multi-set fail_msg should only be set for full fail 2021-12-30 14:54:12 +01:00
Safihre
a72401a529 On Retry the number of downloaded bytes could exceed the total bytes 2021-12-30 09:40:40 +01:00
Safihre
406c4d20cf When Retrying a job, finished par2's were still counted as available 2021-12-27 21:54:43 +01:00
SABnzbd Automation
49ef9ae85d Update translatable texts 2021-12-27 14:00:41 +00:00
Safihre
d65eacea41 Correctly parse helpful_warning in extract_pot 2021-12-27 14:59:50 +01:00
SABnzbd Automation
347904297e Update translatable texts 2021-12-27 10:26:41 +00:00
Safihre
404aeb026d Correctly name the helpful_warning function and option
Yes, this will break current users of the old name. Too bad.
2021-12-27 11:25:52 +01:00
Safihre
29df51a4b0 Standardize 7zip version detection 2021-12-27 11:17:55 +01:00
Sander
397cde2be2 bugfix with 7z if ionice is set: command must be a list (#2007) 2021-12-26 22:13:20 +01:00
Sander
a848283d59 Detect another obfuscation pattern (#2005)
* this is obfuscated now: "[BlaBla] something [More] something 5937bc5e32146e.bef89a622e4a23f07b0d3757ad5e8a.a02b264e [Brrr]"

* this is obfuscated now: "[BlaBla] something [More] something 5937bc5e32146e.bef89a622e4a23f07b0d3757ad5e8a.a02b264e [Brrr]"
2021-12-26 17:38:24 +01:00
SABnzbd Automation
80b4582e81 Update translatable texts 2021-12-25 20:08:19 +00:00
Sander
9d5c7d3317 if too little disk space reported by 7z unzipping, report so in GUI (#2000)
* if too little disk space reported by 7z unzipping, report so in GUI

* comment about 7z version needed

* find and print 7z version at startup

* feedback from safihre

* change to existing wording, so no translations needed

* change to existing wording, so no translations needed

* even better wording: re-use existing error message
2021-12-25 21:07:47 +01:00
SABnzbd Automation
b860741ab8 Update translatable texts 2021-12-23 12:50:31 +00:00
Safihre
792825bdaa Update text files for 3.5.0 Beta 3 2021-12-23 13:48:19 +01:00
Graham Morrison
ad2371dc9a snap build fix for snap/snapcraft.yaml (#1998)
* updated snapcraft.yaml.

* snap: updated target builds
2021-12-17 07:45:44 +01:00
Safihre
dfb771a51e Add basic tests of nzbparser 2021-12-16 12:49:16 +01:00
SABnzbd Automation
14a0dbbd5c Update translatable texts 2021-12-16 09:59:55 +00:00
Safihre
bb1c63cc92 Unrar logging of Direct Unpack was not log if it was aborted 2021-12-16 10:58:55 +01:00
Safihre
38ca26e6f3 Basic tests for SevenZip-code 2021-12-12 17:55:42 +01:00
SABnzbd Automation
285d5688f5 Update translatable texts 2021-12-12 14:29:24 +00:00
Safihre
26cdfc2279 Rework adding of NZB's to use filehandlers (#1994)
* Rework adding of NZB's to use filehandlers

* Use zf.open() instead of zf.read()

* Make SevenZip-class compatible with file handler approach

* Do not attempt to overwrite existing admin-NZB

* Reset pointer when checking for incomplete NZB

* No longer check for incomplete NZB

* Refactor of archived NZB handling
2021-12-12 15:28:46 +01:00
Safihre
d915dfc941 NZO URL property was incorrectly filled with filename 2021-12-09 14:55:43 +01:00
puzzledsab
d29bd65f97 Read NZB from file using iterparse (#1992)
* Read XML from file using iterparse

* Ignore XML namespace

* Minor cleanup

* More tweaking

* Small improvements to the NZB-backup process

* Add type-hint and logging of backup

* Don't remove nzo data after failed import

Co-authored-by: Safihre <safihre@sabnzbd.org>
2021-12-08 08:58:30 +01:00
Safihre
81d378498e Automatically retry newswrapper tests 2021-12-06 15:39:30 +01:00
Safihre
d32630c759 Improve stability of the test_newswrapper test 2021-12-03 09:03:43 +01:00
puzzledsab
b8d7ec0723 Add option to preserve paused state after restart (#1990)
* Add option to preserve Downloader run state

* Add updating to set_paused_state

* Restore set_paused_state call

* Messed up again

* Requested changes

* Missed one
2021-12-02 22:09:52 +01:00
Safihre
207c5430c1 Make sure the test-server in test_newswrapper is shut down 2021-12-01 16:35:25 +01:00
Safihre
b922274b61 Update text files for 3.5.0 Beta 2 2021-11-30 16:49:50 +01:00
Safihre
863c0e5eb7 Add unittests for the NNTP SSL/cipher settings 2021-11-30 16:19:16 +01:00
Safihre
46f9956791 Force TLSv1.2 when setting custom ciphers 2021-11-30 16:19:16 +01:00
Safihre
879a6f2552 Always set SSL ciphers to allow TLSv1.2 connections 2021-11-30 16:19:16 +01:00
Safihre
5e3d237c99 HappyEyeBalls used SSL even though it wasn't needed 2021-11-30 16:19:16 +01:00
puzzledsab
1eb83e4eb0 Print low level Windows status error on IOError (#1986)
* Print low level Windows status error on assembler IOError

* Include error code in renamer OSError message
2021-11-30 08:06:11 +01:00
puzzledsab
194c0e6708 Add all passwords to list every time (#1985) 2021-11-28 08:28:10 +01:00
Safihre
a87d38c61f Full Apple M1 compatibility
Closes #1711 (see for more details!)
2021-11-27 16:28:08 +01:00
Safihre
ed0e5bbf9b Add placeholder for SOCKS5 Proxy input 2021-11-22 16:54:19 +01:00
Safihre
2249b623e6 Restore CI functional tests
Use build-in Chrome and ChromeDriver, we shouldn't try to be smarter than GitHub Actions 😉
2021-11-21 13:58:00 +01:00
SABnzbd Automation
854ca5f5d4 Update translatable texts 2021-11-21 08:06:35 +00:00
Safihre
a0a8029c36 Set the minimum supported TLS version the new way 2021-11-21 09:06:00 +01:00
Safihre
e7eec8e4f1 Check for PySocks at start-up to give a nice error 2021-11-21 08:54:21 +01:00
Safihre
a354c1984b Update text files for 3.5.0 Beta 1 2021-11-20 09:49:11 +01:00
Safihre
34799c397c Force compile all Python modules on macOS 2021-11-20 09:31:56 +01:00
Safihre
2c88dddc1e Set selenium-requirement to fix tests 2021-11-20 09:31:41 +01:00
SABnzbd Automation
64b0216ba9 Update translatable texts 2021-11-20 06:06:10 +00:00
puzzledsab
f950520475 Compare variable with int, not string (#1981) 2021-11-20 07:05:34 +01:00
SABnzbd Automation
60f3de2a91 Update translatable texts 2021-11-19 13:39:58 +00:00
puzzledsab
06e13483bd SOCKS 5 support (#1894)
* Add testable socks support

* Messed up merge

* Use proxy for urllib.request.urlopen

* Reset socket before trying to get public IP

* Add socks requirement

* PySocks, not socks?

* Use only PySocks

* Clean up and reduce number of new translations

* Move configuration to special variable socks5_proxy_url

* Remove useless dereferencing

* Catch OSError on proxy preconnect

* Try only setting socks proxy once

* Missed some spots

* Catch all errors for IPv6 checks

* Move proxy initialization up before threads are started

* No special `sock.connect` required for Socks5

* Revert "No special `sock.connect` required for Socks5"

This reverts commit 5e901f8b58.

* Remove callback and ORIGINAL_SOCKET variable

* Move all `sock.connect` code

* Create SSLContext only once for each server

It is re-created if server-settings are updated.

* Add SOCKS5 proxy configuration to General page

* Show if proxy is active in Status-window

Co-authored-by: Safihre <safihre@sabnzbd.org>
2021-11-19 14:39:23 +01:00
Safihre
f00cbe89bc Refactor HappyEyeBalls 2021-11-18 20:27:49 +01:00
SABnzbd Automation
e450f5744b Update translatable texts 2021-11-18 14:27:05 +00:00
jcfp
255242eca5 disable randomisation of directory listings in pyfakefs (#1978) 2021-11-18 15:26:26 +01:00
Safihre
cbeab4dd55 Force rebuild for binary pip-packages 2021-11-16 21:56:10 +01:00
Safihre
6b8506c986 Set target-arch to universal2 for macOS 2021-11-16 21:40:42 +01:00
Safihre
d5d5647b7c Add hidden import of guessit.data 2021-11-16 21:24:35 +01:00
Safihre
1a76de1ca3 Build PyInstaller bootloader from sources to support macOS 10.9 2021-11-16 20:40:24 +01:00
Safihre
1913109623 Add freeze support for multiprocessing
See https://github.com/pyinstaller/pyinstaller/issues/6368
2021-11-16 13:58:12 +01:00
Safihre
e76b4395a7 Remove specific macOS version check
Old macOS versions just have to deal with it
2021-11-15 21:41:31 +01:00
Safihre
6670156397 Correct Scheduler Wiki-URL 2021-11-08 13:15:13 +01:00
Safihre
37b7a77b70 Update snapcraft build 2021-11-07 09:08:43 +01:00
Safihre
ddb5a007a5 Update snapcraft base to Ubuntu 20.04 2021-11-07 08:50:06 +01:00
SABnzbd Automation
8568df4552 Update translatable texts 2021-11-05 06:57:19 +00:00
jcfp
493a5f715c Reintroduce uu support (#1969)
* reintroduce uu support

* housekeeping, bug fixes

* add tests for decode_uu()

* simplify, fix typo

* remove leftover debugging; housekeeping

* oops

* add non-ascii input for test_broken_uu
2021-11-05 07:56:39 +01:00
Safihre
a61b27992e Update code-format to 3.7
No changes really
2021-11-05 07:50:55 +01:00
Safihre
798eec7aa8 Drop (official) Python 3.6 support and run fully on 3.10
Probably still runs, we just don't test it.
2021-11-05 07:45:24 +01:00
Safihre
0d29603e2b portable.cmd was no longer included in Windows release
Closes sabnzbd/sabnzbd.github.io/176
2021-11-03 21:06:28 +01:00
SABnzbd Automation
48882220d6 Update translatable texts 2021-11-02 10:32:30 +00:00
Safihre
b4ad292ec5 Build release using 3.10
Closes #1958
2021-11-02 11:31:43 +01:00
Safihre
b59a14f6b7 Correct "Remove even more unused imports"
My fault.
2021-10-22 10:04:35 +02:00
SABnzbd Automation
80ed385a41 Update translatable texts 2021-10-22 07:52:02 +00:00
Safihre
04cd67b98b Remove even more unused imports 2021-10-22 09:51:24 +02:00
jcfp
68eded2c0c remove unused imports (#1966) 2021-10-19 19:29:54 +02:00
Safihre
389a0d3afa Revert to using regex based sample detection
Closes #1964
2021-10-13 18:24:55 +02:00
Safihre
5a3e4a28fe Solve deprecation warnings 2021-10-12 11:20:33 +02:00
SABnzbd Automation
66b5629a31 Update translatable texts 2021-10-12 07:30:17 +00:00
Safihre
eae77eb236 Prevent double guessit parsing 2021-10-12 09:29:38 +02:00
Safihre
5f44ec8a0d Correct behavior of Sorter when no filename and/or extension is supplied
Closes #1962, #1957
2021-10-08 10:35:06 +02:00
Safihre
9d8c62de6b Only fail jobs if the sorter should have renamed 2021-10-08 10:35:06 +02:00
Safihre
3229fd8d28 Use general detection of RAR-files in file-extension correction
Correct file_extension test
2021-10-08 10:35:06 +02:00
SABnzbd Automation
fdee789637 Update translatable texts 2021-10-08 08:34:20 +00:00
Safihre
c762dda1b1 Fix tavern for Python 3.6 and run tests on Python 3.10 (Linux-only) 2021-10-08 10:33:37 +02:00
SABnzbd Automation
c5c8b902c4 Update translatable texts 2021-10-06 12:36:55 +00:00
Safihre
ee255a5042 Require at least 1 category to be set for Sorting and warn if not set
Before 3.4.0, only for TV sorting we allowed to set 0 categories. But for Movies and Date Sorting we did require at least 1 category to be set. This was harmonized in 3.4.0, breaking existing setups. Added warning for those users.
The Sorting behavior is different from Notifications: in Notifications selecting Default only(!) means to apply it to all categories.
However, that has never been the case for Sorting. So for now added a bit more help texts to the Affected categories box on both pages.
2021-10-06 14:34:15 +02:00
Sander
3952965632 make .cbz a well-known extension, so that no extension is added (#1960) 2021-10-05 22:00:30 +02:00
Safihre
85db706bbe Always require TLS1.2 or higher for NNTP connections 2021-10-05 17:32:39 +02:00
Safihre
ea570442c6 Update Wiki-URL to 3.5 2021-10-05 17:21:29 +02:00
Safihre
9c109b803d Do not fail all jobs if one job fails in order to locate the failing job 2021-10-05 12:29:37 +02:00
Safihre
86f77f8064 Only run Transifex if the TX_TOKEN is set 2021-10-05 12:26:34 +02:00
Sander
81c33d65e4 make .cbr a well-known extension, so that no extension (".rar") is added (#1959) 2021-10-05 10:11:52 +02:00
SABnzbd Automation
a1cf822141 Update translatable texts 2021-10-03 08:06:24 +00:00
Safihre
ce48a9697a Check for puremagic and guessit first and add comments about cherrypy 2021-10-03 10:05:39 +02:00
Safihre
9b22c4b23c Always show number of MB missing
https://forums.sabnzbd.org/viewtopic.php?f=2&t=25573
2021-10-03 09:59:26 +02:00
Safihre
6283b0460a Job failure due to Sorting-problems was not shown in the interface 2021-10-01 15:43:13 +02:00
Safihre
4fe977fa47 rXX files are popular extensions and don't need renames
Closes #1955
2021-09-29 09:17:19 +02:00
SABnzbd Automation
f188e55692 Update translatable texts 2021-09-29 06:37:30 +00:00
Safihre
f5487ed932 Do not search whole file when checking if txt or nzb file 2021-09-29 08:36:48 +02:00
Safihre
c69b25ff0d Only run process_unpacked_par2 when cleanup happened
Relates to https://forums.sabnzbd.org/viewtopic.php?f=1&t=25552
2021-09-29 08:24:27 +02:00
SABnzbd Automation
b608af640f Update translatable texts 2021-09-27 18:22:43 +00:00
puzzledsab
315f1ff3bc Add required server option (#1948)
* Add required server option

* Use plan_resume() instead of the resume_task system

* Retry articles on required servers after connection failure

* Update comment to match new code

* Remove unnecessary try
2021-09-27 20:22:02 +02:00
Safihre
b6c2ac194b Set version information to 3.5.0-develop 2021-09-24 13:41:12 +02:00
Safihre
00570d2089 Make add_parfile return if it could actually add the file
Maybe it was long finished, which could result in crashes.
Closes #1953
2021-09-24 08:57:53 +02:00
Safihre
56375b16fe Do not rename in decode_par2 if the filename didn't change
Closes #1952
2021-09-23 10:00:19 +02:00
347 changed files with 23922 additions and 25970 deletions

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

@@ -0,0 +1,30 @@
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:
- Bug
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
- 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.gg/KQzDe7fvNU
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:
- Feature request
body:
- type: textarea
attributes:
label: Description
validations:
required: true

6
.github/dependabot.yml vendored Normal file
View File

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

40
.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,40 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":disableDependencyDashboard"
],
"schedule": [
"before 8am on Monday"
],
"ignorePaths": [
".github/workflows/**"
],
"pip_requirements": {
"fileMatch": [
"requirements.txt",
"tests/requirements.txt",
"builder/requirements.txt",
"builder/release-requirements.txt",
"builder/osx/requirements.txt"
]
},
"ignoreDeps": [
"jaraco.text",
"sabctools",
"werkzeug"
],
"packageRules": [
{
"matchPackagePatterns": [
"*"
],
"groupName": "all dependencies",
"groupSlug": "all",
"separateMajorMinor": false,
"automerge": true
}
],
"automergeStrategy": "squash",
"platformAutomerge": true
}

23
.github/stale.yml vendored
View File

@@ -1,23 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 21
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- "Feature request"
- "Work in progress"
- "Bug"
# Label to use when marking an issue as stale
staleLabel: "Stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View File

@@ -1,22 +0,0 @@
name: Black Code Formatter
on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
args: >
SABnzbd.py
sabnzbd
scripts
tools
builder
tests
--line-length=120
--target-version=py36
--check
--diff

View File

@@ -2,113 +2,192 @@ name: Build binaries and source distribution
on: [push, pull_request]
# Setting PYTHONNODEBUGRANGES reduces binary size
env:
PYTHONNODEBUGRANGES: 1
jobs:
build_windows:
name: Build Windows binary
runs-on: windows-latest
env:
AUTOMATION_GITHUB_TOKEN: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9 (64bit)
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python 3.12 (64bit)
uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
python-version: "3.12"
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'
# Without dependencies to make sure everything is covered in the requirements.txt
run: |
python --version
pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt
pip install --upgrade -r builder/requirements.txt
- name: Build source distribution
run: python builder/package.py source
- name: Upload source distribution
uses: actions/upload-artifact@v2
with:
path: "*-src.tar.gz"
name: Source distribution
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@v2
uses: actions/upload-artifact@v3
with:
path: "*-win64-bin.zip"
name: Windows Windows standalone binary (64bit)
- name: Upload Windows installer (64bit)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: "*-win-setup.exe"
name: Windows installer
- name: Set up Python 3.8 (32bit and legacy)
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x86
python-version: "3.8"
architecture: "x86"
- name: Cache Python virtualenv (32bit and legacy)
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv-32bit
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
pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt
pip install --upgrade -r builder/requirements.txt
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 (32bit and legacy)
run: python builder/package.py binary
- name: Upload Windows standalone binary (32bit and legacy)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: "*-win32-bin.zip"
name: Windows Windows standalone binary (32bit and legacy)
- name: Prepare official release
if: env.AUTOMATION_GITHUB_TOKEN && startsWith(github.ref, 'refs/tags/')
run: python builder/package.py release
build_macos:
name: Build macOS binary
runs-on: macos-latest
runs-on: macos-11
timeout-minutes: 30
env:
SIGNING_AUTH: ${{ secrets.SIGNING_AUTH }}
NOTARIZATION_USER: ${{ secrets.NOTARIZATION_USER }}
NOTARIZATION_PASS: ${{ secrets.NOTARIZATION_PASS }}
AUTOMATION_GITHUB_TOKEN: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
# 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.9.7
MACOSX_DEPLOYMENT_TARGET: 10.9
PYTHON_VERSION: "3.12.0"
MACOSX_DEPLOYMENT_TARGET: "10.9"
# We need to force compile for universal2 support
CFLAGS: -arch x86_64 -arch arm64
ARCHFLAGS: -arch x86_64 -arch arm64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache Python download
id: cache-python-download
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/python.pkg
key: macOS-Python-${{ env.PYTHON_VERSION }}
key: cache-macOS-Python-${{ env.PYTHON_VERSION }}
- name: Get Python
if: steps.cache-python-download.outputs.cache-hit != 'true'
run: curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macosx10.9.pkg -o ~/python.pkg
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 /
- name: Cache Python virtualenv
uses: syphar/restore-virtualenv@v1.3
id: cache-virtualenv
with:
custom_cache_key_element: "release"
requirement_files: "**/requirements.txt"
- 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/pypa/pip/issues/5453
# 2. We need to build the PyInstaller bootloader:
# https://github.com/pyinstaller/pyinstaller/issues/6235
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
run: |
python3 --version
pip3 install --upgrade pip wheel
pip3 install --upgrade -r requirements.txt
pip3 install --upgrade -r builder/requirements.txt
pip3 install --upgrade -r requirements.txt --no-binary cffi --no-dependencies
pip3 uninstall cryptography -y
pip3 download -r builder/osx/requirements.txt --platform macosx_10_12_universal2 --only-binary :all: --no-dependencies --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
- name: Import macOS codesign certificates
uses: apple-actions/import-codesign-certs@v1
if: env.SIGNING_AUTH
# Taken from https://github.com/Apple-Actions/import-codesign-certs/pull/27 (comments)
env:
CERTIFICATES_P12: ${{ secrets.CERTIFICATES_P12 }}
CERTIFICATES_P12_PASSWORD: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
MACOS_KEYCHAIN_TEMP_PASSWORD: ${{ secrets.MACOS_KEYCHAIN_TEMP_PASSWORD }}
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 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
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$MACOS_KEYCHAIN_TEMP_PASSWORD" build.keychain
- name: Build source distribution
# 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
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
path: "*-src.tar.gz"
name: Source distribution
- name: Build macOS binary
env:
SIGNING_AUTH: ${{ secrets.SIGNING_AUTH }}
NOTARIZATION_USER: ${{ secrets.NOTARIZATION_USER }}
NOTARIZATION_PASS: ${{ secrets.NOTARIZATION_PASS }}
run: |
python3 builder/package.py app
python3 builder/make_dmg.py
- name: Upload macOS binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: "*-osx.dmg"
name: macOS binary (not notarized)
- name: Prepare official release
if: env.AUTOMATION_GITHUB_TOKEN && startsWith(github.ref, 'refs/tags/')
run: python3 builder/package.py release
release:
name: Publish 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
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: dist
- name: Move all artifacts to main folder
run: find dist -type f -exec mv {} . \;
- name: Prepare official release
env:
AUTOMATION_GITHUB_TOKEN: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
REDDIT_TOKEN: ${{ secrets.REDDIT_TOKEN }}
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

@@ -3,37 +3,74 @@ name: CI Tests
on: [push, pull_request]
jobs:
black:
name: Black Code Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
args: >
SABnzbd.py
sabnzbd
scripts
tools
builder
builder/SABnzbd.spec
tests
--line-length=120
--target-version=py38
--check
--diff
test:
name: Test ${{ matrix.name }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-architecture: ["x64"]
name: ["Linux"]
os: [ubuntu-20.04]
include:
- name: macOS
os: macos-latest
python-version: 3.9
python-version: "3.12"
python-architecture: "x64"
- name: Windows
os: windows-latest
python-version: 3.9
python-version: "3.12"
python-architecture: "x64"
- name: Windows (32bit)
os: windows-latest
python-version: "3.8"
python-architecture: "x86"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.python-architecture }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-architecture }}
- name: Install system dependencies
if: runner.os == 'Linux'
run: sudo apt-get install unrar p7zip-full par2 chromium-chromedriver
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"
- name: Install Python dependencies
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
run: |
python --version
pip install --upgrade pip
python -m pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt
pip install --upgrade -r tests/requirements.txt
- name: Test SABnzbd
run: pytest -s

33
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: "Close and lock old issues"
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
jobs:
stale:
name: "Close stale issues"
if: github.repository_owner == 'sabnzbd'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
days-before-stale: 21
days-before-close: 7
stale-issue-label: "Stale"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
exempt-issue-labels: "Feature request, Work in progress, Bug"
lock:
name: "Lock old issues"
if: github.repository_owner == 'sabnzbd'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
log-output: true
issue-inactive-days: 60
pr-inactive-days: 60

View File

@@ -7,30 +7,37 @@ on:
jobs:
translations:
name: Update translatable texts
runs-on: ubuntu-latest
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.AUTOMATION_GITHUB_TOKEN }}
- name: Generate translatable texts
run: |
python3 tools/extract_pot.py
- name: Install Transifex client
# Sudo is needed to link the "tx"-command
run: |
sudo -H python3 -m pip install setuptools wheel
sudo -H python3 -m pip install transifex-client
- 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!
run: |
tx push --source --parallel
tx pull --all --force --parallel
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
./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.5.1
uses: stefanzweifel/git-auto-commit-action@v4.16.0
if: env.TX_TOKEN
with:
commit_message: Update translatable texts
commit_message: |
Update translatable texts
[skip ci]
commit_user_name: SABnzbd Automation
commit_user_email: bugs@sabnzbd.org
commit_author: SABnzbd Automation <bugs@sabnzbd.org>
file_pattern: "po/*.pot po/*.po"
push_options: --force

View File

@@ -1,24 +1,23 @@
[main]
host = https://www.transifex.com
[sabnzbd-translations.po-main-sabnzbd-pot--develop]
[o:sabnzbd:p:sabnzbd-translations:r:po-main-sabnzbd-pot--develop]
file_filter = po/main/<lang>.po
minimum_perc = 0
source_file = po/main/SABnzbd.pot
source_lang = en
type = PO
[sabnzbd-translations.po-email-sabemail-pot--develop]
[o:sabnzbd:p:sabnzbd-translations:r:po-email-sabemail-pot--develop]
file_filter = po/email/<lang>.po
minimum_perc = 0
source_file = po/email/SABemail.pot
source_lang = en
type = PO
[sabnzbd-translations.po-nsis-sabnsis-pot--develop]
[o:sabnzbd:p:sabnzbd-translations:r:po-nsis-sabnsis-pot--develop]
file_filter = po/nsis/<lang>.po
minimum_perc = 0
source_file = po/nsis/SABnsis.pot
source_lang = en
type = PO

View File

@@ -1,7 +1,7 @@
(c) Copyright 2007-2021 by "The SABnzbd-team" <team@sabnzbd.org>
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)
The SABnzbd-team is:
The SABnzbd-Team is:
Active team:
Safihre

View File

@@ -4,7 +4,7 @@
0) LICENSE
-------------------------------------------------------------------------------
(c) Copyright 2007-2021 by "The SABnzbd-team" <team@sabnzbd.org>
(c) Copyright 2007-2023 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,10 +52,10 @@ 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.6 and above is supported.
Only Python 3.8 and above is supported.
On Linux systems you need to install:
par2 unrar unzip python3-setuptools python3-pip
par2 unrar python3-setuptools python3-pip
On non-X86 platforms, for which PyPI does not provide all pre-compiled packages,
you also need to install these development libraries (exact names might differ per platform):

View File

@@ -16,7 +16,7 @@
no_penalties = 1
See: https://sabnzbd.org/wiki/configuration/3.4/special
- Some third-party utilties try to probe SABnzbd API in such a way that you will
- Some third-party utilities try to probe SABnzbd API in such a way that you will
often see warnings about unauthenticated access.
If you are sure these probes are harmless, you can suppress the warnings by
setting the option "api_warnings" to 0.
@@ -48,8 +48,3 @@
You can make SABnzbd wait for a mount of the "temporary download folder" by setting
Config->Special->wait_for_dfolder to 1.
SABnzbd will appear to hang until the drive is mounted.
- If you experience speed-drops to KB/s when using a VPN, try setting the number of connections
to your servers to a total of 7. There is a CPU-usage reduction feature in SABnzbd that
gets confused by the way some VPN's handle the state of a connection. Below 8 connections
this feature is not active.

View File

@@ -1,4 +1,4 @@
(c) Copyright 2007-2021 by "The SABnzbd-team" <team@sabnzbd.org>
(c) Copyright 2007-2023 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

@@ -1,10 +0,0 @@
Metadata-Version: 1.0
Name: SABnzbd
Version: 3.4.1
Summary: SABnzbd-3.4.1
Home-page: https://sabnzbd.org
Author: The SABnzbd Team
Author-email: team@sabnzbd.org
License: GNU General Public License 2 (GPL2 or later)
Description: Fully automated Usenet Binary Downloader
Platform: posix

View File

@@ -1,10 +1,8 @@
SABnzbd - The automated Usenet download tool
============================================
![CI tests](https://github.com/sabnzbd/sabnzbd/workflows/CI%20Tests/badge.svg)
![Build binaries](https://github.com/sabnzbd/sabnzbd/workflows/Build%20binaries%20and%20source%20distribution/badge.svg)
[![License](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[![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)
SABnzbd is an Open Source Binary Newsreader written in Python.
@@ -18,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.6 and higher, often called `python3`)
- `python` (Python 3.8 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)

View File

@@ -1,33 +1,24 @@
Release Notes - SABnzbd 3.4.1
Release Notes - SABnzbd 4.2.0 Alpha 2
=========================================================
## Bugfixes since 3.4.0
- macOS: Failed to run on M1 systems or older macOS versions.
## Changes since 4.1.0
- Numerous smaller performance improvements were made.
- Reduced recursive unpacking to 2 levels, instead of 5.
- IPv6 addresses are preferred during server address selection.
- Stricter check if `Complete Folder` is inside `Download Folder`.
- Windows: Reduced size of installer.
- Windows/macOS: Updated to Python 3.12.
## Changes since 3.3.1
- Extended `Deobfuscate final filenames` to attempt to set the correct
file extension based on the file signature if the file extension is
not present or meaningless.
- Added additional pattern keys that can be used in the `Sort String`
for Sorting, by using the `guessit` package internally for parsing.
- If unpacked files contain `.par2` files they will always be read and
used to rename any matching files.
- Regular expressions can be used to specify `Unwanted extensions`.
- Not all passwords will be tried if a matching one was found.
- Some interface-only options were added as API-call.
- The Plush skin has been removed.
## Bugfixes since 3.3.1
- Duplicate check based on `.nzb` MD5 was performed before it was calculated.
- Enforce `local_ranges` for broadcasts (Bonjour/SSDP).
- Correctly parse the filename in `Content-Disposition` header.
- `Warning` instead of `Info` when there is a restart due to crashed thread.
- Only run Direct Unpack if `enable_unrar` is enabled.
## Bugfixes since 4.1.0
- Multi-select in the queue was broken for some users.
- Prevent crash during saving of configuration.
- Removing a failed download from the history could break active downloads.
## Upgrade notices
- The download statistics file `totals10.sab` is updated in 3.2.x
version. If you downgrade to 3.1.x or lower, detailed download
statistics will be lost.
- Direct upgrade is possible from version 3.0.0 and newer.
Upgrading from older versions will require `Queue repair`.
- Downgrading from version 4.2.0 or newer to 3.7.2 or older will
require `Queue repair` due to changes in the internal data format.
## Known problems and solutions
- Read the file "ISSUES.txt"
@@ -39,4 +30,4 @@ Release Notes - SABnzbd 3.4.1
that automatically verify, repair, extract and clean up posts downloaded
from Usenet.
(c) Copyright 2007-2021 by "The SABnzbd-team" \<team@sabnzbd.org\>
(c) Copyright 2007-2023 by The SABnzbd-Team (sabnzbd.org)

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org>
# Copyright 2007-2023 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
@@ -17,8 +17,10 @@
import sys
if sys.hexversion < 0x03060000:
print("Sorry, requires Python 3.6 or above")
# Trick to show a better message on older Python
# releases that don't support walrus operator
if Python_38_is_required_to_run_SABnzbd := sys.hexversion < 0x03080000:
print("Sorry, requires Python 3.8 or above")
print("You can read more at: https://sabnzbd.org/wiki/installation/install-off-modules")
sys.exit(1)
@@ -32,6 +34,7 @@ import signal
import socket
import platform
import subprocess
import multiprocessing
import ssl
import time
import re
@@ -39,6 +42,7 @@ import gc
from typing import List, Dict, Any
try:
import sabctools
import Cheetah
import feedparser
import configobj
@@ -46,6 +50,9 @@ try:
import portend
import cryptography
import chardet
import guessit
import puremagic
import socks
except ImportError as e:
print("Not all required Python modules are available, please check requirements.txt")
print("Missing module:", e.name)
@@ -60,7 +67,7 @@ from sabnzbd.constants import (
DEF_TIMEOUT,
DEF_LOG_ERRFILE,
DEF_MAIN_TMPL,
DEF_STDINTF,
DEF_STD_WEB_DIR,
DEF_WORKDIR,
DEF_INTERFACES,
DEF_LANGUAGE,
@@ -70,8 +77,9 @@ from sabnzbd.constants import (
MAX_WARNINGS,
RSS_FILE_NAME,
DEF_LOG_FILE,
DEF_STDCONFIG,
DEF_STD_CONFIG,
DEF_LOG_CHERRY,
CONFIG_BACKUP_HTTPS,
)
import sabnzbd.newsunpack
from sabnzbd.misc import (
@@ -87,15 +95,16 @@ from sabnzbd.misc import (
is_localhost,
is_lan_addr,
ip_in_subnet,
helpful_warning,
set_https_verification,
)
from sabnzbd.filesystem import get_ext, real_path, long_path, globber_full, remove_file
from sabnzbd.panic import panic_tmpl, panic_port, panic_host, panic, launch_a_browser
import sabnzbd.config as config
import sabnzbd.cfg
import sabnzbd.downloader
import sabnzbd.notifier as notifier
import sabnzbd.zconfig
from sabnzbd.getipaddress import localipv4, publicipv4, ipv6
from sabnzbd.getipaddress import localipv4, publicipv4, ipv6, dnslookup
from sabnzbd.utils.getperformance import getpystone, getcpu
import sabnzbd.utils.ssdp as ssdp
@@ -106,11 +115,10 @@ try:
import win32event
import win32service
import win32ts
import pywintypes
import servicemanager
from win32com.shell import shell, shellcon
from sabnzbd.utils.apireg import get_connection_info, set_connection_info, del_connection_info
from sabnzbd.utils.apireg import get_connection_info, set_connection_info
import sabnzbd.sabtray
win32api.SetConsoleCtrlHandler(sabnzbd.sig_handler, True)
@@ -129,16 +137,6 @@ def guard_loglevel():
LOG_FLAG = True
def warning_helpful(*args, **kwargs):
"""Wrapper to ignore helpfull warnings if desired"""
if sabnzbd.cfg.helpfull_warnings():
return logging.warning(*args, **kwargs)
return logging.info(*args, **kwargs)
logging.warning_helpful = warning_helpful
class GUIHandler(logging.Handler):
"""Logging handler collects the last warnings/errors/exceptions
to be displayed in the web-gui
@@ -246,7 +244,7 @@ def print_version():
"""
%s-%s
Copyright (C) 2007-2021 The SABnzbd-Team <team@sabnzbd.org>
Copyright (C) 2007-2023 The SABnzbd-Team (sabnzbd.org)
SABnzbd comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. It is licensed under the
@@ -331,8 +329,8 @@ def identify_web_template(key, defweb, wdir):
full_main = real_path(full_dir, DEF_MAIN_TMPL)
if not os.path.exists(full_main):
logging.warning_helpful(T("Cannot find web template: %s, trying standard template"), full_main)
full_dir = real_path(sabnzbd.DIR_INTERFACES, DEF_STDINTF)
helpful_warning(T("Cannot find web template: %s, trying standard template"), full_main)
full_dir = real_path(sabnzbd.DIR_INTERFACES, DEF_STD_WEB_DIR)
full_main = real_path(full_dir, DEF_MAIN_TMPL)
if not os.path.exists(full_main):
logging.exception("Cannot find standard template: %s", full_dir)
@@ -403,16 +401,14 @@ def get_user_profile_paths():
sabnzbd.DIR_HOME = long_path(sabnzbd.DIR_HOME)
return
elif sabnzbd.DARWIN:
home = os.environ.get("HOME")
if home:
elif sabnzbd.MACOS:
if home := os.environ.get("HOME"):
sabnzbd.DIR_LCLDATA = "%s/Library/Application Support/SABnzbd" % home
sabnzbd.DIR_HOME = home
return
else:
# Unix/Linux
home = os.environ.get("HOME")
if home:
if home := os.environ.get("HOME"):
sabnzbd.DIR_LCLDATA = "%s/.%s" % (home, DEF_WORKDIR)
sabnzbd.DIR_HOME = home
return
@@ -424,24 +420,27 @@ def get_user_profile_paths():
def print_modules():
"""Log all detected optional or external modules"""
if sabnzbd.decoder.SABYENC_ENABLED:
# Yes, we have SABYenc, and it's the correct version, so it's enabled
logging.info("SABYenc module (v%s)... found!", sabnzbd.decoder.SABYENC_VERSION)
if sabnzbd.decoder.SABCTOOLS_ENABLED:
# Yes, we have SABCTools, and it's the correct version, so it's enabled
logging.info("SABCTools module (v%s)... found!", sabnzbd.decoder.SABCTOOLS_VERSION)
logging.info("SABCTools module is using SIMD set: %s", sabnzbd.decoder.SABCTOOLS_SIMD)
logging.info("SABCTools module is linked to OpenSSL: %s", sabnzbd.decoder.SABCTOOLS_OPENSSL_LINKED)
# Check if we managed to link, warning for now
# It won't work on OpenSSL < 1.1.1 anyway, so we skip the check there
if not sabnzbd.decoder.SABCTOOLS_OPENSSL_LINKED and ssl.OPENSSL_VERSION_INFO >= (1, 1, 1):
logging.warning(
"Could not link to OpenSSL library, please report here: "
"https://github.com/sabnzbd/sabnzbd/issues/2421"
)
else:
# Something wrong with SABYenc, so let's determine and print what:
if sabnzbd.decoder.SABYENC_VERSION:
# We have a VERSION, thus a SABYenc module, but it's not the correct version
logging.error(
T("SABYenc disabled: no correct version found! (Found v%s, expecting v%s)"),
sabnzbd.decoder.SABYENC_VERSION,
sabnzbd.constants.SABYENC_VERSION_REQUIRED,
)
else:
# No SABYenc module at all
logging.error(
T("SABYenc module... NOT found! Expecting v%s - https://sabnzbd.org/sabyenc"),
sabnzbd.constants.SABYENC_VERSION_REQUIRED,
)
# Wrong SABCTools version, if it was fully missing it would fail to start due to check at the very top
logging.error(
T("SABCTools disabled: no correct version found! (Found v%s, expecting v%s)"),
sabnzbd.decoder.SABCTOOLS_VERSION,
sabnzbd.constants.SABCTOOLS_VERSION_REQUIRED,
)
# Do not allow downloading
sabnzbd.NO_DOWNLOADING = True
@@ -449,7 +448,8 @@ def print_modules():
if sabnzbd.WIN32 and sabnzbd.newsunpack.MULTIPAR_COMMAND:
logging.info("MultiPar binary... found (%s)", sabnzbd.newsunpack.MULTIPAR_COMMAND)
elif sabnzbd.newsunpack.PAR2_COMMAND:
if sabnzbd.newsunpack.PAR2_COMMAND:
logging.info("par2 binary... found (%s)", sabnzbd.newsunpack.PAR2_COMMAND)
else:
logging.error(T("par2 binary... NOT found!"))
@@ -463,26 +463,20 @@ def print_modules():
if sabnzbd.newsunpack.RAR_PROBLEM:
have_str = "%.2f" % (float(sabnzbd.newsunpack.RAR_VERSION) / 100)
want_str = "%.2f" % (float(sabnzbd.constants.REC_RAR_VERSION) / 100)
logging.warning_helpful(
T("Your UNRAR version is %s, we recommend version %s or higher.<br />"), have_str, want_str
)
elif not (sabnzbd.WIN32 or sabnzbd.DARWIN):
helpful_warning(T("Your UNRAR version is %s, we recommend version %s or higher.<br />"), have_str, want_str)
elif not (sabnzbd.WIN32 or sabnzbd.MACOS):
logging.info("UNRAR binary version %.2f", (float(sabnzbd.newsunpack.RAR_VERSION) / 100))
else:
logging.error(T("unrar binary... NOT found"))
# Do not allow downloading
sabnzbd.NO_DOWNLOADING = True
# If available, we prefer 7zip over unzip
if sabnzbd.newsunpack.SEVEN_COMMAND:
logging.info("7za binary... found (%s)", sabnzbd.newsunpack.SEVEN_COMMAND)
if sabnzbd.newsunpack.SEVENZIP_COMMAND:
logging.info("7za binary... found (%s)", sabnzbd.newsunpack.SEVENZIP_COMMAND)
if not (sabnzbd.WIN32 or sabnzbd.MACOS):
logging.info("7za binary version %s", sabnzbd.newsunpack.SEVENZIP_VERSION)
else:
logging.info(T("7za binary... NOT found!"))
if sabnzbd.newsunpack.ZIP_COMMAND:
logging.info("unzip binary... found (%s)", sabnzbd.newsunpack.ZIP_COMMAND)
else:
logging.info(T("unzip binary... NOT found!"))
logging.warning(T("7za binary... NOT found!"))
if not sabnzbd.WIN32:
if sabnzbd.newsunpack.NICE_COMMAND:
@@ -622,7 +616,7 @@ def get_webhost(cherryhost, cherryport, https_port):
browserhost = cherryhost
# Some systems don't like brackets in numerical ipv6
if sabnzbd.DARWIN:
if sabnzbd.MACOS:
cherryhost = cherryhost.strip("[]")
else:
try:
@@ -630,14 +624,10 @@ def get_webhost(cherryhost, cherryport, https_port):
except socket.error:
cherryhost = cherryhost.strip("[]")
if ipv6 and ipv4 and not is_localhost(browserhost):
sabnzbd.AMBI_LOCALHOST = True
logging.info("IPV6 has priority on this system, potential Firefox issue")
if ipv6 and ipv4 and cherryhost == "" and sabnzbd.WIN32:
logging.warning_helpful(T("Please be aware the 0.0.0.0 hostname will need an IPv6 address for external access"))
helpful_warning(T("Please be aware the 0.0.0.0 hostname will need an IPv6 address for external access"))
if cherryhost == "localhost" and not sabnzbd.WIN32 and not sabnzbd.DARWIN:
if cherryhost == "localhost" and not sabnzbd.WIN32 and not sabnzbd.MACOS:
# On the Ubuntu family, localhost leads to problems for CherryPy
ips = ip_extract()
if "127.0.0.1" in ips and "::1" in ips:
@@ -646,7 +636,7 @@ def get_webhost(cherryhost, cherryport, https_port):
browserhost = "127.0.0.1"
# This is to please Chrome on macOS
if cherryhost == "localhost" and sabnzbd.DARWIN:
if cherryhost == "localhost" and sabnzbd.MACOS:
cherryhost = "127.0.0.1"
browserhost = "localhost"
@@ -688,9 +678,9 @@ def is_sabnzbd_running(url):
try:
url = "%s&mode=version" % url
# Do this without certificate verification, few installations will have that
prev = sabnzbd.set_https_verification(False)
prev = set_https_verification(False)
ver = get_from_url(url)
sabnzbd.set_https_verification(prev)
set_https_verification(prev)
return ver and (re.search(r"\d+\.\d+\.", ver) or ver.strip() == sabnzbd.__version__)
except:
return False
@@ -718,10 +708,10 @@ def check_for_sabnzbd(url, upload_nzbs, allow_browser=True):
if is_sabnzbd_running(url):
# Upload any specified nzb files to the running instance
if upload_nzbs:
prev = sabnzbd.set_https_verification(False)
prev = set_https_verification(False)
for f in upload_nzbs:
upload_file_to_sabnzbd(url, f)
sabnzbd.set_https_verification(prev)
set_https_verification(prev)
else:
# Launch the web browser and quit since sabnzbd is already running
# Trim away everything after the final slash in the URL
@@ -762,26 +752,9 @@ def commandline_handler():
serv_opts = [os.path.normpath(os.path.abspath(sys.argv[0]))]
upload_nzbs = []
# macOS binary: get rid of the weird -psn_0_123456 parameter
for arg in sys.argv:
if arg.startswith("-psn_"):
sys.argv.remove(arg)
break
# Ugly hack to remove the extra "SABnzbd*" parameter the Windows binary
# gets when it's restarted
if len(sys.argv) > 1 and "sabnzbd" in sys.argv[1].lower() and not sys.argv[1].startswith("-"):
slice_start = 2
else:
slice_start = 1
# Prepend options from env-variable to options
info = os.environ.get("SABnzbd", "").split()
info.extend(sys.argv[slice_start:])
try:
opts, args = getopt.getopt(
info,
sys.argv[1:],
"phdvncwl:s:f:t:b:2:",
[
"pause",
@@ -864,7 +837,7 @@ def main():
autobrowser = None
autorestarted = False
sabnzbd.MY_FULLNAME = sys.argv[0]
sabnzbd.MY_FULLNAME = __file__
sabnzbd.MY_NAME = os.path.basename(sabnzbd.MY_FULLNAME)
fork = False
pause = False
@@ -932,6 +905,7 @@ def main():
exit_sab(1)
elif opt == "--console":
console_logging = True
sabnzbd.RESTART_ARGS.append(opt)
elif opt in ("-v", "--version"):
print_version()
exit_sab(0)
@@ -976,7 +950,7 @@ def main():
org_dir = os.getcwd()
# Need console logging if requested, for SABnzbd.py and SABnzbd-console.exe
console_logging = console_logging or sabnzbd.MY_NAME.lower().find("-console") > 0 or not hasattr(sys, "frozen")
console_logging = console_logging or sys.executable.endswith("console.exe") or not hasattr(sys, "frozen")
console_logging = console_logging and not sabnzbd.DAEMON
LOGLEVELS = (logging.FATAL, logging.WARNING, logging.INFO, logging.DEBUG)
@@ -993,12 +967,6 @@ def main():
logger.setLevel(logging.WARNING)
logger.addHandler(gui_log)
# Detect CPU architecture and Windows variant
# Use .machine as .processor is not always filled
cpu_architecture = platform.uname().machine
if sabnzbd.WIN32:
sabnzbd.WIN64 = cpu_architecture == "AMD64"
if inifile:
# INI file given, simplest case
inifile = evaluate_inipath(inifile)
@@ -1167,7 +1135,7 @@ def main():
daemonize()
else:
if console_logging:
console = logging.StreamHandler()
console = logging.StreamHandler(stream=sys.stdout)
console.setLevel(LOGLEVELS[logging_level + 1])
console.setFormatter(logging.Formatter(logformat))
logger.addHandler(console)
@@ -1192,7 +1160,7 @@ def main():
logging.info("Arguments = %s", sabnzbd.CMDLINE)
logging.info("Python-version = %s", sys.version)
logging.info("Dockerized = %s", sabnzbd.DOCKER)
logging.info("CPU architecture = %s", cpu_architecture)
logging.info("CPU architecture = %s", platform.uname().machine)
try:
logging.info("Platform = %s - %s", os.name, platform.platform())
@@ -1203,15 +1171,25 @@ def main():
# Find encoding; relevant for external processing activities
logging.info("Preferred encoding = %s", sabnzbd.encoding.CODEPAGE)
# On Linux/FreeBSD/Unix "UTF-8" is strongly, strongly adviced:
if not sabnzbd.WIN32 and not sabnzbd.DARWIN and not ("utf-8" in sabnzbd.encoding.CODEPAGE.lower()):
logging.warning_helpful(
# On Linux/FreeBSD/Unix "UTF-8" is strongly, strongly advised:
if not sabnzbd.WIN32 and not sabnzbd.MACOS and not ("utf-8" in sabnzbd.encoding.CODEPAGE.lower()):
helpful_warning(
T(
"SABnzbd was started with encoding %s, this should be UTF-8. Expect problems with Unicoded file and directory names in downloads."
),
sabnzbd.encoding.CODEPAGE,
)
# Verify umask, we need at least 700
if not sabnzbd.WIN32 and sabnzbd.ORG_UMASK > int("077", 8):
sabnzbd.misc.helpful_warning(
T("Current umask (%o) might deny SABnzbd access to the files and folders it creates."),
sabnzbd.ORG_UMASK,
)
# Log JSON module in case of problems
logging.debug("JSON-module = %s %s", sabnzbd.api.json.__name__, sabnzbd.api.json.__version__)
# SSL Information
logging.info("SSL version = %s", ssl.OPENSSL_VERSION)
@@ -1235,13 +1213,14 @@ def main():
logging.debug("Available certificates = %s", repr(ssl.create_default_context().cert_store_stats()))
# List networking
logging.debug("Local IPv4 address = %s", localipv4())
logging.debug("Public IPv4 address = %s", publicipv4())
logging.debug("IPv6 address = %s", ipv6())
localipv4()
publicipv4()
ipv6()
dnslookup()
# Measure and log system performance measured by pystone and - if possible - CPU model
logging.debug("CPU Pystone available performance = %s", getpystone())
logging.debug("CPU model = %s", getcpu())
# Measure basic system performance measured by pystone and - if possible - CPU model
getpystone()
getcpu()
logging.info("Using INI file %s", inifile)
@@ -1252,15 +1231,15 @@ def main():
os.chdir(sabnzbd.DIR_PROG)
sabnzbd.WEB_DIR = identify_web_template(sabnzbd.cfg.web_dir, DEF_STDINTF, fix_webname(web_dir))
sabnzbd.WEB_DIR_CONFIG = identify_web_template(None, DEF_STDCONFIG, "")
sabnzbd.WEB_DIR = identify_web_template(sabnzbd.cfg.web_dir, DEF_STD_WEB_DIR, fix_webname(web_dir))
sabnzbd.WEB_DIR_CONFIG = identify_web_template(None, DEF_STD_CONFIG, "")
sabnzbd.WIZARD_DIR = os.path.join(sabnzbd.DIR_INTERFACES, "wizard")
sabnzbd.WEB_COLOR = check_template_scheme(sabnzbd.cfg.web_color(), sabnzbd.WEB_DIR)
sabnzbd.cfg.web_color.set(sabnzbd.WEB_COLOR)
# Handle the several tray icons
if sabnzbd.cfg.win_menu() and not sabnzbd.DAEMON and not sabnzbd.WIN_SERVICE:
if sabnzbd.cfg.tray_icon() and not sabnzbd.DAEMON and not sabnzbd.WIN_SERVICE:
if sabnzbd.WIN32:
sabnzbd.WINTRAY = sabnzbd.sabtray.SABTrayThread()
elif sabnzbd.LINUX_POWER and os.environ.get("DISPLAY"):
@@ -1271,7 +1250,7 @@ def main():
from gi.repository import Gtk
import sabnzbd.sabtraylinux
sabnzbd.LINUXTRAY = sabnzbd.sabtraylinux.StatusIcon()
sabnzbd.sabtraylinux.StatusIcon()
except:
logging.info("python3-gi not found, no SysTray.")
@@ -1370,7 +1349,6 @@ def main():
"server.socket_host": cherryhost,
"server.socket_port": cherryport,
"server.shutdown_timeout": 0,
"log.screen": False,
"engine.autoreload.on": False,
"tools.encode.on": True,
"tools.gzip.on": True,
@@ -1382,13 +1360,11 @@ def main():
)
# Do we want CherryPy Logging? Cannot be done via the config
cherrypy.log.screen = False
cherrypy.log.access_log.propagate = False
if cherrypylogging:
sabnzbd.WEBLOGFILE = os.path.join(logdir, DEF_LOG_CHERRY)
cherrypy.log.screen = True
cherrypy.log.access_log.propagate = True
cherrypy.log.access_file = str(sabnzbd.WEBLOGFILE)
else:
cherrypy.log.access_log.propagate = False
# Force mimetypes (OS might overwrite them)
forced_mime_types = {"css": "text/css", "js": "application/javascript"}
@@ -1439,11 +1415,16 @@ def main():
try:
cherrypy.engine.start()
except:
# Since the webserver is started by cherrypy in a separate thread, we can't really catch any
# start-up errors. This try/except only catches very few errors, the rest is only shown in the console.
logging.error(T("Failed to start web-interface: "), exc_info=True)
abort_and_show_error(browserhost, cherryport)
# Wait for server to become ready
cherrypy.engine.wait(cherrypy.process.wspbus.states.STARTED)
# Create a record of the active cert/key/chain files, for use with config.create_config_backup()
if enable_https:
for setting in CONFIG_BACKUP_HTTPS.values():
if full_path := getattr(sabnzbd.cfg, setting).get_path():
sabnzbd.CONFIG_BACKUP_HTTPS_OK.append(full_path)
if sabnzbd.WIN32:
if enable_https:
@@ -1468,6 +1449,9 @@ def main():
if sabnzbd.NO_DOWNLOADING:
return
# Apply proxy, if configured, before main requests are made
sabnzbd.misc.set_socks5_proxy()
# Start all SABnzbd tasks
logging.info("Starting %s-%s", sabnzbd.MY_NAME, sabnzbd.__version__)
try:
@@ -1479,7 +1463,7 @@ def main():
# Upload any nzb/zip/rar/nzb.gz/nzb.bz2 files from file association
if upload_nzbs:
for upload_nzb in upload_nzbs:
sabnzbd.add_nzbfile(upload_nzb)
sabnzbd.nzbparser.add_nzbfile(upload_nzb)
# Set URL for browser
if enable_https:
@@ -1560,7 +1544,7 @@ def main():
# 30 sec polling tasks
if not timer % 10:
# Keep OS awake (if needed)
sabnzbd.keep_awake()
sabnzbd.misc.keep_awake()
# Restart scheduler (if needed)
sabnzbd.Scheduler.restart(plan_restart=False)
# Save config (if needed)
@@ -1585,13 +1569,16 @@ def main():
sys.argv = sabnzbd.RESTART_ARGS
os.chdir(org_dir)
# Restore backup
if sabnzbd.RESTORE_DATA:
config.restore_config_backup(sabnzbd.RESTORE_DATA)
# Binaries require special restart
if hasattr(sys, "frozen"):
if sabnzbd.DARWIN:
if sabnzbd.MACOS:
# On macOS restart of app instead of embedded python
my_name = sabnzbd.MY_FULLNAME.replace("/Contents/MacOS/SABnzbd", "")
my_args = " ".join(sys.argv[1:])
cmd = 'kill -9 %s && open "%s" --args %s' % (os.getpid(), my_name, my_args)
cmd = 'kill -9 %s && open "%s" --args %s' % (os.getpid(), sys.executable, my_args)
logging.info("Launching: %s", cmd)
os.system(cmd)
elif sabnzbd.WIN_SERVICE:
@@ -1608,15 +1595,20 @@ def main():
# Send our final goodbyes!
notifier.send_notification("SABnzbd", T("SABnzbd shutdown finished"), "startup")
logging.info("Leaving SABnzbd")
sys.stderr.flush()
sys.stdout.flush()
sabnzbd.pid_file()
if hasattr(sys, "frozen") and sabnzbd.DARWIN:
try:
sys.stderr.flush()
sys.stdout.flush()
except AttributeError:
# Not supported on Windows binaries
pass
if hasattr(sys, "frozen") and sabnzbd.MACOS:
try:
AppHelper.stopEventLoop()
except:
# Failing AppHelper libary!
# Failing AppHelper library!
os._exit(0)
elif sabnzbd.WIN_SERVICE:
# Do nothing, let service handle it
@@ -1739,6 +1731,9 @@ def handle_windows_service():
if __name__ == "__main__":
# Require for freezing
multiprocessing.freeze_support()
# We can only register these in the main thread
signal.signal(signal.SIGINT, sabnzbd.sig_handler)
signal.signal(signal.SIGTERM, sabnzbd.sig_handler)
@@ -1747,7 +1742,7 @@ if __name__ == "__main__":
if not handle_windows_service():
main()
elif sabnzbd.DARWIN and sabnzbd.FOUNDATION:
elif sabnzbd.MACOS and sabnzbd.FOUNDATION:
# macOS binary runner
from threading import Thread
from PyObjCTools import AppHelper

View File

@@ -1,52 +1,28 @@
# -*- mode: python -*-
import os
import re
import sys
import pkginfo
from PyInstaller.building.api import EXE, COLLECT, PYZ
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
# Add extra files in the PyInstaller-spec
extra_pyinstaller_files = []
# Also modify these in "package.py"!
extra_files = [
"README.txt",
"INSTALL.txt",
"LICENSE.txt",
"GPL2.txt",
"GPL3.txt",
"COPYRIGHT.txt",
"ISSUES.txt",
"PKG-INFO",
]
extra_folders = [
"scripts/",
"licenses/",
"locale/",
"email/",
"interfaces/Glitter/",
"interfaces/wizard/",
"interfaces/Config/",
"scripts/",
"icons/",
]
# Get the version
RELEASE_VERSION = pkginfo.Develop(".").version
# Add hidden imports
extra_hiddenimports = ["Cheetah.DummyTransaction", "cheroot.ssl.builtin", "certifi"]
extra_hiddenimports.extend(collect_submodules("babelfish.converters"))
extra_hiddenimports.extend(collect_submodules("guessit.data"))
# Add platform specific stuff
if sys.platform == "darwin":
extra_hiddenimports.extend(["pyobjc", "objc", "PyObjCTools"])
extra_hiddenimports.extend(["objc", "PyObjCTools"])
# macOS folders
extra_folders += ["osx/par2/", "osx/unrar/", "osx/7zip/"]
EXTRA_FOLDERS += ["osx/par2/", "osx/unrar/", "osx/7zip/"]
# Add NZB-icon file
extra_pyinstaller_files.append(("builder/osx/image/nzbfile.icns", "."))
# Version information is set differently on macOS
@@ -65,7 +41,8 @@ else:
# Windows
extra_hiddenimports.append("win32timezone")
extra_folders += ["win/multipar/", "win/unrar/", "win/7zip/"]
EXTRA_FOLDERS += ["win/multipar/", "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)
@@ -106,9 +83,9 @@ else:
)
# Process the extra-files and folders
for file_item in extra_files:
for file_item in EXTRA_FILES:
extra_pyinstaller_files.append((file_item, "."))
for folder_item in extra_folders:
for folder_item in EXTRA_FOLDERS:
extra_pyinstaller_files.append((folder_item, folder_item))
# Add babelfish data files
@@ -119,22 +96,31 @@ pyi_analysis = Analysis(
["SABnzbd.py"],
datas=extra_pyinstaller_files,
hiddenimports=extra_hiddenimports,
excludes=["FixTk", "tcl", "tk", "_tkinter", "tkinter", "Tkinter"],
excludes=["ujson", "FixTk", "tcl", "tk", "_tkinter", "tkinter", "Tkinter", "pydoc", "pydoc_data.topics"],
)
pyz = PYZ(pyi_analysis.pure, pyi_analysis.zipped_data)
codesign_identity = os.environ.get("SIGNING_AUTH")
if not codesign_identity:
# PyInstaller needs specifically None, not just an empty value
codesign_identity = None
# macOS specific parameters are ignored on other platforms
exe = EXE(
pyz,
pyi_analysis.scripts,
[],
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",
codesign_identity=codesign_identity,
)
coll = COLLECT(exe, pyi_analysis.binaries, pyi_analysis.zipfiles, pyi_analysis.datas, name="SABnzbd")
@@ -148,9 +134,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,
)
@@ -159,7 +145,6 @@ if sys.platform == "win32":
pyi_analysis.binaries,
pyi_analysis.zipfiles,
pyi_analysis.datas,
upx=True,
name="SABnzbd-console",
)
@@ -186,4 +171,10 @@ if sys.platform == "darwin":
"LSEnvironment": {"LANG": "en_US.UTF-8", "LC_ALL": "en_US.UTF-8"},
}
app = BUNDLE(coll, name="SABnzbd.app", icon="builder/osx/image/sabnzbdplus.icns", info_plist=info_plist)
app = BUNDLE(
coll,
name="SABnzbd.app",
icon="builder/osx/image/sabnzbdplus.icns",
bundle_identifier="org.sabnzbd.sabnzbd",
info_plist=info_plist,
)

67
builder/constants.py Normal file
View File

@@ -0,0 +1,67 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import os
# Constants
VERSION_FILE = "sabnzbd/version.py"
APPDATA_FILE = "linux/org.sabnzbd.sabnzbd.appdata.xml"
# To draft a release or not to draft a release?
ON_GITHUB_ACTIONS = os.environ.get("CI", False)
RELEASE_THIS = "refs/tags/" in os.environ.get("GITHUB_REF", "")
# Import version.py without the sabnzbd overhead
with open(VERSION_FILE) as version_file:
exec(version_file.read())
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
# 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_README = "README.mkd"
# Used in package.py and SABnzbd.spec
EXTRA_FILES = [
RELEASE_README,
"README.txt",
"INSTALL.txt",
"LICENSE.txt",
"GPL2.txt",
"GPL3.txt",
"COPYRIGHT.txt",
"ISSUES.txt",
]
EXTRA_FOLDERS = [
"scripts/",
"licenses/",
"locale/",
"email/",
"interfaces/Glitter/",
"interfaces/wizard/",
"interfaces/Config/",
"scripts/",
"icons/",
]

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team <team@sabnzbd.org>
# Copyright 2008-2017 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,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import os
import pkginfo
from constants import RELEASE_VERSION
# We need to call dmgbuild from command-line, so here we can setup how
@@ -37,7 +37,7 @@ if __name__ == "__main__":
# Extract version info and set DMG path
# Create sub-folder to upload later
release = pkginfo.Develop(".").version
release = RELEASE_VERSION
prod = "SABnzbd-" + release
fileDmg = prod + "-osx.dmg"

View File

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

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 The SABnzbd-Team <team@sabnzbd.org>
# Copyright 2008-2017 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
@@ -20,46 +20,35 @@ import platform
import re
import sys
import os
import tempfile
import time
import shutil
import subprocess
import tarfile
import pkginfo
import github
from distutils.dir_util import copy_tree
import urllib.request
import urllib.error
import configobj
from typing import List
VERSION_FILE = "sabnzbd/version.py"
SPEC_FILE = "SABnzbd.spec"
# Also modify these in "SABnzbd.spec"!
extra_files = [
"README.mkd",
"INSTALL.txt",
"LICENSE.txt",
"GPL2.txt",
"GPL3.txt",
"COPYRIGHT.txt",
"ISSUES.txt",
"PKG-INFO",
]
extra_folders = [
"scripts/",
"licenses/",
"locale/",
"email/",
"interfaces/Glitter/",
"interfaces/wizard/",
"interfaces/Config/",
"scripts/",
"icons/",
]
from constants import (
RELEASE_VERSION,
VERSION_FILE,
RELEASE_README,
RELEASE_NAME,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
ON_GITHUB_ACTIONS,
RELEASE_THIS,
RELEASE_SRC,
EXTRA_FILES,
EXTRA_FOLDERS,
)
# Support functions
def safe_remove(path):
"""Remove file without erros if the file doesn't exist
"""Remove file without errors if the file doesn't exist
Can also handle folders
"""
if os.path.exists(path):
@@ -69,19 +58,24 @@ 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):
def run_external_command(command: List[str], print_output: bool = True):
"""Wrapper to ease the use of calling external programs"""
process = subprocess.Popen(command, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
output, _ = process.communicate()
ret = process.wait()
if output:
if (output and print_output) or ret != 0:
print(output)
if ret != 0:
raise RuntimeError("Command returned non-zero exit code %s!" % ret)
@@ -115,6 +109,68 @@ def patch_version_file(release_name):
ver.write(version_file)
def test_sab_binary(binary_path: str):
"""Wrapper to have a simple start-up test for the binary"""
with tempfile.TemporaryDirectory() as config_dir:
sabnzbd_process = subprocess.Popen(
[binary_path, "--browser", "0", "--logging", "2", "--config", config_dir],
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
# Wait for SAB to respond
base_url = "http://127.0.0.1:8080/"
for _ in range(30):
try:
urllib.request.urlopen(base_url, timeout=1).read()
break
except:
time.sleep(1)
else:
# Print console output and give some time to print
print(sabnzbd_process.stdout.read())
time.sleep(1)
raise urllib.error.URLError("Could not connect to SABnzbd")
# Open a number of API calls and pages, to see if we are really up
pages_to_test = [
"",
"wizard",
"config",
"config/server",
"config/categories",
"config/scheduling",
"config/rss",
"config/general",
"config/folders",
"config/switches",
"config/sorting",
"config/notify",
"config/special",
"api?mode=version",
]
for url in pages_to_test:
print("Testing: %s%s" % (base_url, url))
if b"500 Internal Server Error" in urllib.request.urlopen(base_url + url, timeout=1).read():
raise RuntimeError("Crash in %s" % url)
# Parse API-key so we can do a graceful shutdown
sab_config = configobj.ConfigObj(os.path.join(config_dir, "sabnzbd.ini"))
urllib.request.urlopen(base_url + "shutdown/?apikey=" + sab_config["misc"]["api_key"], timeout=10)
sabnzbd_process.wait()
# Print logs for verification
with open(os.path.join(config_dir, "logs", "sabnzbd.log"), "r") as log_file:
# Wait after printing so the output is nicely displayed in case of problems
print(log_text := log_file.read())
time.sleep(5)
# Make sure no extra errors/warnings were reported
if "ERROR" in log_text or "WARNING" in log_text:
raise RuntimeError("Warning or error reported during execution")
if __name__ == "__main__":
# Was any option supplied?
if len(sys.argv) < 2:
@@ -124,31 +180,15 @@ if __name__ == "__main__":
if not os.path.exists("builder"):
raise FileNotFoundError("Run from the main SABnzbd source folder: python builder/package.py")
# Extract version info
RELEASE_VERSION = pkginfo.Develop(".").version
# Check if we have the needed certificates
try:
import certifi
except ImportError:
raise FileNotFoundError("Need certifi module")
# 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_README = "README.mkd"
# Patch release file
patch_version_file(RELEASE_VERSION)
# To draft a release or not to draft a release?
RELEASE_THIS = "refs/tags/" in os.environ.get("GITHUB_REF", "")
# Rename release notes file
safe_remove("README.txt")
shutil.copyfile(RELEASE_README, "README.txt")
@@ -167,7 +207,7 @@ if __name__ == "__main__":
safe_remove(RELEASE_NAME)
# Copy the specification
shutil.copyfile("builder/%s" % SPEC_FILE, SPEC_FILE)
shutil.copyfile("builder/SABnzbd.spec", "SABnzbd.spec")
if "binary" in sys.argv or "installer" in sys.argv:
# Must be run on Windows
@@ -176,8 +216,10 @@ if __name__ == "__main__":
# Check what architecture we are on
RELEASE_BINARY = RELEASE_BINARY_32
BUILDING_64BIT = False
if platform.architecture()[0] == "64bit":
RELEASE_BINARY = RELEASE_BINARY_64
BUILDING_64BIT = True
# Remove any leftovers
safe_remove(RELEASE_BINARY)
@@ -185,23 +227,24 @@ if __name__ == "__main__":
# Run PyInstaller and check output
run_external_command([sys.executable, "-O", "-m", "PyInstaller", "SABnzbd.spec"])
# Use special distutils function to merge the main and console directories
copy_tree("dist/SABnzbd-console", "dist/SABnzbd")
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")
if BUILDING_64BIT:
# These are only present on 64bit (Python 3.9+)
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/PKG-INFO")
delete_files_glob("dist/SABnzbd/win32ui.pyd")
delete_files_glob("dist/SABnzbd/winxpgui.pyd")
# 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")
if "installer" in sys.argv:
# Needs to be run on 64 bit
if RELEASE_BINARY != RELEASE_BINARY_64:
if not BUILDING_64BIT:
raise RuntimeError("Installer should be created on 64bit Python")
# Compile NSIS translations
@@ -210,10 +253,6 @@ if __name__ == "__main__":
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/multipar/par2j.exe")
delete_files_glob("dist/SABnzbd/win/unrar/UnRAR.exe")
# Run NSIS to build installer
run_external_command(
[
@@ -227,11 +266,14 @@ if __name__ == "__main__":
)
# Rename the folder
os.rename("dist/SABnzbd", RELEASE_NAME)
shutil.copytree("dist/SABnzbd", RELEASE_NAME)
# Create the archive
run_external_command(["win/7zip/7za.exe", "a", RELEASE_BINARY, RELEASE_NAME])
# Test the release, as the very last step to not mess with any release code
test_sab_binary("dist/SABnzbd/SABnzbd.exe")
if "app" in sys.argv:
# Must be run on macOS
if sys.platform != "darwin":
@@ -242,19 +284,16 @@ if __name__ == "__main__":
notarization_user = os.environ.get("NOTARIZATION_USER")
notarization_pass = os.environ.get("NOTARIZATION_PASS")
# Run PyInstaller and check output
run_external_command([sys.executable, "-O", "-m", "PyInstaller", "SABnzbd.spec"])
# Only continue if we can sign
# We need to sign all the included binaries before packaging them
# Otherwise the signature of the main application becomes invalid
if authority:
files_to_sign = [
"dist/SABnzbd.app/Contents/MacOS/osx/par2/par2-sl64",
"dist/SABnzbd.app/Contents/MacOS/osx/7zip/7za",
"dist/SABnzbd.app/Contents/MacOS/osx/unrar/unrar",
"dist/SABnzbd.app/Contents/MacOS/SABnzbd",
"dist/SABnzbd.app",
"osx/par2/par2-turbo",
"osx/par2/arm64/par2-turbo",
"osx/unrar/unrar",
"osx/unrar/arm64/unrar",
"osx/7zip/7zz",
]
for file_to_sign in files_to_sign:
print("Signing %s with hardended runtime" % file_to_sign)
run_external_command(
@@ -267,15 +306,55 @@ if __name__ == "__main__":
"runtime",
"--entitlements",
"builder/osx/entitlements.plist",
"-i",
"org.sabnzbd.sabnzbd",
"-s",
authority,
file_to_sign,
],
print_output=False,
)
print("Signed %s!" % file_to_sign)
# Run PyInstaller and check output
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):
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!")
# Only continue if we can sign
if authority:
# We use PyInstaller to sign the main SABnzbd executable and the SABnzbd.app
files_already_signed = [
"dist/SABnzbd.app/Contents/MacOS/SABnzbd",
"dist/SABnzbd.app",
]
for file_to_check in files_already_signed:
print("Checking signature of %s" % file_to_check)
sign_result = run_external_command(
[
"codesign",
"-dv",
"-r-",
file_to_check,
],
print_output=False,
) + run_external_command(
[
"codesign",
"--verify",
"--deep",
file_to_check,
],
print_output=False,
)
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:
# Prepare zip to upload to notarization service
@@ -288,50 +367,24 @@ if __name__ == "__main__":
# Upload to Apple
print("Sending zip to Apple notarization service")
upload_process = run_external_command(
upload_result = run_external_command(
[
"xcrun",
"altool",
"--notarize-app",
"-t",
"osx",
"-f",
"notarytool",
"submit",
notarization_zip,
"--primary-bundle-id",
"org.sabnzbd.sabnzbd",
"-u",
"--apple-id",
notarization_user,
"-p",
"--team-id",
authority,
"--password",
notarization_pass,
"--wait",
],
)
# Extract the notarization ID
m = re.match(".*RequestUUID = (.*?)\n", upload_process, re.S)
if not m:
raise RuntimeError("No UUID created")
uuid = m.group(1)
print("Checking notarization of UUID: %s (every 30 seconds)" % uuid)
notarization_in_progress = True
while notarization_in_progress:
time.sleep(30)
check_status = run_external_command(
[
"xcrun",
"altool",
"--notarization-info",
uuid,
"-u",
notarization_user,
"-p",
notarization_pass,
],
)
notarization_in_progress = "Status: in progress" in check_status
# Check if success
if "Status: success" not in check_status:
if "status: accepted" not in upload_result.lower():
raise RuntimeError("Failed to notarize..")
# Staple the notarization!
@@ -344,6 +397,9 @@ if __name__ == "__main__":
else:
print("Signing skipped, missing SIGNING_AUTH.")
# Test the release, as the very last step to not mess with any release code
test_sab_binary("dist/SABnzbd.app/Contents/MacOS/SABnzbd")
if "source" in sys.argv:
# Prepare Source distribution package.
# We assume the sources are freshly cloned from the repo
@@ -356,15 +412,15 @@ if __name__ == "__main__":
safe_remove(RELEASE_SRC)
# Add extra files and folders need for source dist
extra_folders.extend(["sabnzbd/", "po/", "linux/", "tools/", "tests/"])
extra_files.extend(["SABnzbd.py", "requirements.txt"])
EXTRA_FOLDERS.extend(["sabnzbd/", "po/", "linux/", "tools/", "tests/"])
EXTRA_FILES.extend(["SABnzbd.py", "requirements.txt"])
# Copy all folders and files to the new folder
for source_folder in extra_folders:
copy_tree(source_folder, os.path.join(src_folder, source_folder))
for source_folder in EXTRA_FOLDERS:
shutil.copytree(source_folder, os.path.join(src_folder, source_folder), dirs_exist_ok=True)
# Copy all files
for source_file in extra_files:
for source_file in EXTRA_FILES:
shutil.copyfile(source_file, os.path.join(src_folder, source_file))
# Make sure all line-endings are correct
@@ -404,163 +460,6 @@ if __name__ == "__main__":
# Remove source folder
safe_remove(src_folder)
# Release to github
if "release" in sys.argv:
# 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_repo = gh_obj.get_repo("sabnzbd/sabnzbd")
# Read the release notes
with open(RELEASE_README, "r") as readme_file:
readme_data = readme_file.read()
# 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
# We have to manually check if we already created this release
for release in gh_repo.get_releases():
if release.tag_name == RELEASE_VERSION:
gh_release = release
print("Found existing release %s" % gh_release.title)
break
else:
# Did not find it, so create the release, use the GitHub tag we got as input
print("Creating GitHub release SABnzbd %s" % RELEASE_VERSION)
gh_release = gh_repo.create_git_release(
tag=RELEASE_VERSION,
name=RELEASE_TITLE,
message=readme_data,
draft=True,
prerelease=prerelease,
)
# Fetch existing assets, as overwriting is not allowed by GitHub
gh_assets = gh_release.get_assets()
# Upload the assets
files_to_check = (
RELEASE_SRC,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_MACOS,
RELEASE_README,
)
for file_to_check in files_to_check:
if os.path.exists(file_to_check):
# Check if this file was previously uploaded
if gh_assets.totalCount:
for gh_asset in gh_assets:
if gh_asset.name == file_to_check:
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))
gh_release.upload_asset(file_to_check)
# Check if we now have all files
gh_new_assets = gh_release.get_assets()
if gh_new_assets.totalCount:
all_assets = [gh_asset.name for gh_asset in gh_new_assets]
# Check if we have all files, using set-comparison
if set(files_to_check) == set(all_assets):
print("All assets present, releasing %s" % RELEASE_VERSION)
# Publish release
gh_release.update_release(
tag_name=RELEASE_VERSION,
name=RELEASE_TITLE,
message=readme_data,
draft=False,
prerelease=prerelease,
)
# Update the website
gh_repo_web = gh_obj.get_repo("sabnzbd/sabnzbd.github.io")
# Check if the branch already exists, only create one if it doesn't
skip_website_update = False
try:
gh_repo_web.get_branch(RELEASE_VERSION)
print("Branch %s on sabnzbd/sabnzbd.github.io already exists, skipping update" % RELEASE_VERSION)
skip_website_update = True
except github.GithubException:
# Create a new branch to have the changes
sb = gh_repo_web.get_branch("master")
print("Creating branch %s on sabnzbd/sabnzbd.github.io" % RELEASE_VERSION)
new_branch = gh_repo_web.create_git_ref(ref="refs/heads/" + RELEASE_VERSION, sha=sb.commit.sha)
# Update the files
if not skip_website_update:
# We need bytes version to interact with GitHub
RELEASE_VERSION_BYTES = RELEASE_VERSION.encode()
# Get all the version files
latest_txt = gh_repo_web.get_contents("latest.txt")
latest_txt_items = latest_txt.decoded_content.split()
new_latest_txt_items = latest_txt_items[:2]
config_yml = gh_repo_web.get_contents("_config.yml")
if prerelease:
# If it's a pre-release, we append to current version in latest.txt
new_latest_txt_items.extend([RELEASE_VERSION_BYTES, latest_txt_items[1]])
# And replace in _config.yml
new_config_yml = re.sub(
b"latest_testing: '[^']*'",
b"latest_testing: '%s'" % RELEASE_VERSION_BYTES,
config_yml.decoded_content,
)
else:
# New stable release, replace the version
new_latest_txt_items[0] = RELEASE_VERSION_BYTES
# And replace in _config.yml
new_config_yml = re.sub(
b"latest_testing: '[^']*'",
b"latest_testing: ''",
config_yml.decoded_content,
)
new_config_yml = re.sub(
b"latest_stable: '[^']*'",
b"latest_stable: '%s'" % RELEASE_VERSION_BYTES,
new_config_yml,
)
# Also update the wiki-settings, these only use x.x notation
new_config_yml = re.sub(
b"wiki_version: '[^']*'",
b"wiki_version: '%s'" % RELEASE_VERSION_BYTES[:3],
new_config_yml,
)
# Update the files
print("Updating latest.txt")
gh_repo_web.update_file(
"latest.txt",
"Release %s: latest.txt" % RELEASE_VERSION,
b"\n".join(new_latest_txt_items),
latest_txt.sha,
RELEASE_VERSION,
)
print("Updating _config.yml")
gh_repo_web.update_file(
"_config.yml",
"Release %s: _config.yml" % RELEASE_VERSION,
new_config_yml,
config_yml.sha,
RELEASE_VERSION,
)
# Create pull-request
print("Creating pull request in sabnzbd/sabnzbd.github.io for the update")
gh_repo_web.create_pull(
title=RELEASE_VERSION,
base="master",
body="Automated update of release files",
head=RELEASE_VERSION,
)
else:
print("To push release to GitHub, first tag the commit.")
print("Or missing the AUTOMATION_GITHUB_TOKEN, cannot push to GitHub without it.")
# Reset!
run_git_command(["reset", "--hard"])
run_git_command(["clean", "-f"])

View File

@@ -0,0 +1,2 @@
PyGithub==2.1.1
praw==7.7.1

265
builder/release.py Normal file
View File

@@ -0,0 +1,265 @@
#!/usr/bin/python3 -OO
# Copyright 2008-2017 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import hashlib
import json
import os
import re
import xml.etree.ElementTree as ET
import github
import praw
from constants import (
RELEASE_VERSION,
PRERELEASE,
RELEASE_SRC,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_MACOS,
RELEASE_README,
RELEASE_THIS,
RELEASE_TITLE,
APPDATA_FILE,
)
# Verify we have all assets
files_to_check = (
RELEASE_SRC,
RELEASE_BINARY_32,
RELEASE_BINARY_64,
RELEASE_INSTALLER,
RELEASE_MACOS,
RELEASE_README,
)
for file_to_check in files_to_check:
if not os.path.exists(file_to_check):
raise RuntimeError("Not all release files are present!")
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}")
# Calculate hashes for Synology release
with open(RELEASE_SRC, "rb") as inp_file:
source_data = inp_file.read()
print("---- Synology spksrc digest hashes ---- ")
print(RELEASE_SRC, "SHA1", hashlib.sha1(source_data).hexdigest())
print(RELEASE_SRC, "SHA256", hashlib.sha256(source_data).hexdigest())
print(RELEASE_SRC, "MD5", hashlib.md5(source_data).hexdigest())
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_repo = gh_obj.get_repo("sabnzbd/sabnzbd")
# Read the release notes
with open(RELEASE_README, "r") as readme_file:
readme_data = readme_file.read()
# We have to manually check if we already created this release
for release in gh_repo.get_releases():
if release.tag_name == RELEASE_VERSION:
gh_release = release
print("Found existing release %s" % gh_release.title)
break
else:
# Did not find it, so create the release, use the GitHub tag we got as input
print("Creating GitHub release SABnzbd %s" % RELEASE_VERSION)
gh_release = gh_repo.create_git_release(
tag=RELEASE_VERSION,
name=RELEASE_TITLE,
message=readme_data,
draft=True,
prerelease=PRERELEASE,
)
# Fetch existing assets, as overwriting is not allowed by GitHub
gh_assets = gh_release.get_assets()
# Upload the assets
for file_to_check in files_to_check:
if os.path.exists(file_to_check):
# Check if this file was previously uploaded
if gh_assets.totalCount:
for gh_asset in gh_assets:
if gh_asset.name == file_to_check:
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))
gh_release.upload_asset(file_to_check)
# Check if we now have all files
gh_new_assets = gh_release.get_assets()
if gh_new_assets.totalCount:
all_assets = [gh_asset.name for gh_asset in gh_new_assets]
# Check if we have all files, using set-comparison
if set(files_to_check) == set(all_assets):
print("All assets present, releasing %s" % RELEASE_VERSION)
# Publish release
gh_release.update_release(
tag_name=RELEASE_VERSION,
name=RELEASE_TITLE,
message=readme_data,
draft=False,
prerelease=PRERELEASE,
)
# Update the website
gh_repo_web = gh_obj.get_repo("sabnzbd/sabnzbd.github.io")
# Check if the branch already exists, only create one if it doesn't
skip_website_update = False
try:
gh_repo_web.get_branch(RELEASE_VERSION)
print("Branch %s on sabnzbd/sabnzbd.github.io already exists, skipping update" % RELEASE_VERSION)
skip_website_update = True
except github.GithubException:
# Create a new branch to have the changes
sb = gh_repo_web.get_branch("master")
print("Creating branch %s on sabnzbd/sabnzbd.github.io" % RELEASE_VERSION)
new_branch = gh_repo_web.create_git_ref(ref="refs/heads/" + RELEASE_VERSION, sha=sb.commit.sha)
# Update the files
if not skip_website_update:
# We need bytes version to interact with GitHub
RELEASE_VERSION_BYTES = RELEASE_VERSION.encode()
# Get all the version files
latest_txt = gh_repo_web.get_contents("latest.txt")
latest_txt_items = latest_txt.decoded_content.split()
new_latest_txt_items = latest_txt_items[:2]
config_yml = gh_repo_web.get_contents("_config.yml")
if PRERELEASE:
# If it's a pre-release, we append to current version in latest.txt
new_latest_txt_items.extend([RELEASE_VERSION_BYTES, latest_txt_items[1]])
# And replace in _config.yml
new_config_yml = re.sub(
b"latest_testing: '[^']*'",
b"latest_testing: '%s'" % RELEASE_VERSION_BYTES,
config_yml.decoded_content,
)
else:
# New stable release, replace the version
new_latest_txt_items[0] = RELEASE_VERSION_BYTES
# And replace in _config.yml
new_config_yml = re.sub(
b"latest_testing: '[^']*'",
b"latest_testing: ''",
config_yml.decoded_content,
)
new_config_yml = re.sub(
b"latest_stable: '[^']*'",
b"latest_stable: '%s'" % RELEASE_VERSION_BYTES,
new_config_yml,
)
# Also update the wiki-settings, these only use x.x notation
new_config_yml = re.sub(
b"wiki_version: '[^']*'",
b"wiki_version: '%s'" % RELEASE_VERSION_BYTES[:3],
new_config_yml,
)
# Update the files
print("Updating latest.txt")
gh_repo_web.update_file(
"latest.txt",
"Release %s: latest.txt" % RELEASE_VERSION,
b"\n".join(new_latest_txt_items),
latest_txt.sha,
RELEASE_VERSION,
)
print("Updating _config.yml")
gh_repo_web.update_file(
"_config.yml",
"Release %s: _config.yml" % RELEASE_VERSION,
new_config_yml,
config_yml.sha,
RELEASE_VERSION,
)
# Create pull-request
print("Creating pull request in sabnzbd/sabnzbd.github.io for the update")
update_pr = gh_repo_web.create_pull(
title="Release %s" % RELEASE_VERSION,
base="master",
body="Automated update of release files",
head=RELEASE_VERSION,
)
# Merge pull-request
print("Merging pull request in sabnzbd/sabnzbd.github.io for the update")
update_pr.merge(merge_method="squash")
# Only with GitHub success we proceed to Reddit
if reddit_token := os.environ.get("REDDIT_TOKEN", ""):
# Token format (without whitespace):
# {
# "client_id":"XXX",
# "client_secret":"XXX",
# "user_agent":"SABnzbd release script",
# "username":"Safihre",
# "password":"XXX"
# }
credentials = json.loads(reddit_token)
reddit = praw.Reddit(**credentials)
subreddit_sabnzbd = reddit.subreddit("sabnzbd")
subreddit_usenet = reddit.subreddit("usenet")
# Read the release notes
with open(RELEASE_README, "r") as readme_file:
readme_lines = readme_file.readlines()
# Put the download link after the title
readme_lines[2] = "## https://sabnzbd.org/downloads\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:
# 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")
# Post always to r/SABnzbd
print("Posting to r/sabnzbd")
subreddit_sabnzbd.submit(title, selftext=release_notes_text)
else:
print("Missing REDDIT_TOKEN")
else:
print("To push release to GitHub, first tag the commit.")
print("Or missing the AUTOMATION_GITHUB_TOKEN, cannot push to GitHub without it.")

View File

@@ -1,9 +1,28 @@
# Basic build requirements
pyinstaller==4.2
setuptools
pkginfo
# Note that not all sub-dependencies are listed, but only ones we know could cause trouble
pyinstaller==6.2.0
packaging==23.2
pyinstaller-hooks-contrib==2023.10
altgraph==0.17.4
wrapt==1.16.0
setuptools==68.2.2
certifi
pygithub
# For the OSX build specific
dmgbuild; sys_platform == 'darwin'
# Required on 32bit Windows, exclude it based on Python-version
importlib_metadata==6.8.0; python_version < '3.10'
importlib_resources==6.1.1; python_version < '3.10'
zipp==3.17.0; python_version < '3.10'
# orjson does not support 32bit Windows, also exclude based on Python-version
orjson==3.9.10; python_version > '3.8'
# For the Windows build
pefile==2023.2.7; sys_platform == 'win32'
pywin32-ctypes==0.2.2; 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.3; sys_platform == 'darwin'
ds-store==1.3.1; sys_platform == 'darwin'
PyNaCl==1.5.0; sys_platform == 'darwin'

View File

@@ -1,6 +1,6 @@
; -*- coding: utf-8 -*-
;
; Copyright 2008-2015 The SABnzbd-Team <team@sabnzbd.org>
; Copyright 2008-2015 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
@@ -32,7 +32,7 @@ Unicode true
;------------------------------------------------------------------
;
; Marco for removing existing and the current installation
; Macro for removing existing and the current installation
; It shared by the installer and the uninstaller.
;
!define RemovePrev "!insertmacro RemovePrev"
@@ -56,7 +56,7 @@ Unicode true
CRCCheck on ; (can be off)
AutoCloseWindow false ; (can be true for the window go away automatically at end)
ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
SetDateSave off ; (can be on to have files restored to their orginal date)
SetDateSave off ; (can be on to have files restored to their original date)
WindowIcon on
SpaceTexts none
@@ -66,7 +66,6 @@ Unicode true
RequestExecutionLevel admin
FileErrorText "If you have no admin rights, try to install into a user directory."
;------------------------------------------------------------------
;Variables
Var MUI_TEMP
@@ -169,29 +168,33 @@ Unicode true
Section "SABnzbd" SecDummy
SetOutPath "$INSTDIR"
SetShellVarContext all
;------------------------------------------------------------------
; Make sure old versions are gone (reg-key already read in onInt)
StrCmp $PREV_INST_DIR "" noPrevInstallRemove
${RemovePrev} "$PREV_INST_DIR"
Goto continueSetupAfterRemove
;------------------------------------------------------------------
; Add firewall rules for new installs
noPrevInstallRemove:
liteFirewallW::AddRule "$INSTDIR\SABnzbd.exe" "SABnzbd"
liteFirewallW::AddRule "$INSTDIR\SABnzbd-console.exe" "SABnzbd-console"
continueSetupAfterRemove:
; add files / whatever that need to be installed here.
File /r "dist\SABnzbd\*"
;------------------------------------------------------------------
; Add firewall rules
liteFirewallW::AddRule "$INSTDIR\SABnzbd.exe" "SABnzbd"
liteFirewallW::AddRule "$INSTDIR\SABnzbd-console.exe" "SABnzbd-console"
;------------------------------------------------------------------
; Add to registery
; Add to registry
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\SABnzbd" "" "$INSTDIR"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\SABnzbd" "Installer Language" "$(MsgLangCode)"
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "DisplayName" "SABnzbd ${SAB_VERSION}"
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "DisplayVersion" '${SAB_VERSION}'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "Publisher" 'The SABnzbd Team'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "Publisher" 'The SABnzbd-Team'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "HelpLink" 'https://forums.sabnzbd.org/'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "URLInfoAbout" 'https://sabnzbd.org/wiki/'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SABnzbd" "URLUpdateInfo" 'https://sabnzbd.org/'
@@ -248,7 +251,7 @@ Function .onInit
; Change settings based on if SAB was already installed
ReadRegStr $PREV_INST_DIR HKEY_LOCAL_MACHINE "SOFTWARE\SABnzbd" ""
StrCmp $PREV_INST_DIR "" noPrevInstall
; We want to use the user's costom dir if he used one
; We want to use the user's custom dir if he used one
StrCmp $PREV_INST_DIR "$PROGRAMFILES\SABnzbd" noSpecialDir
StrCmp $PREV_INST_DIR "$PROGRAMFILES64\SABnzbd" noSpecialDir
; Set what the user had before
@@ -257,10 +260,18 @@ Function .onInit
;------------------------------------------------------------------
; Check what the user has currently set for install options
SetShellVarContext current
IfFileExists "$SMPROGRAMS\Startup\SABnzbd.lnk" 0 endCheckStartup
SectionSetFlags ${startup} 1
SetShellVarContext all
IfFileExists "$SMPROGRAMS\Startup\SABnzbd.lnk" 0 endCheckStartup
SectionSetFlags ${startup} 1
endCheckStartup:
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
endCheckDesktop:
@@ -328,12 +339,11 @@ FunctionEnd
UninstallText $(MsgUninstall)
Section "un.$(MsgDelProgram)" Uninstall
;make sure sabnzbd.exe isnt running..if so shut it down
;make sure sabnzbd.exe isn't running..if so shut it down
${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"
@@ -341,6 +351,26 @@ Section "un.$(MsgDelProgram)" Uninstall
${RemovePrev} "$INSTDIR"
; 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"

View File

@@ -12,10 +12,10 @@
<div class="modal-body">
</div>
<div class="modal-footer">
<!--#if not $nt#-->
<!--#if not $windows#-->
<div class="checkbox">
<label>
<input type="checkbox" id="show_hidden_folders"> <span>$T('systemFolders')</span>
<input type="checkbox" id="show_hidden_folders"> <span>$T('hiddenFolders')</span>
</label>
</div>
<!--#end if#-->

View File

@@ -34,6 +34,9 @@
<link rel="stylesheet" type="text/css" href="${root}staticcfg/bootstrap/css/bootstrap.min.css?v=$version" />
<link rel="stylesheet" type="text/css" href="${root}staticcfg/css/chartist.min.css" />
<link rel="stylesheet" type="text/css" href="${root}staticcfg/css/style.css?v=$version" />
<!--#if $color_scheme not in ('Light', '') #-->
<link rel="stylesheet" type="text/css" href="${root}staticcfg/css/${color_scheme}.css?v=$version"/>
<!--#end if#-->
<link rel="shortcut icon" href="${root}staticcfg/ico/favicon.ico?v=$version" />
@@ -67,14 +70,14 @@
<script type="text/javascript" src="${root}staticcfg/js/script.js?v=$version"></script>
<script type="text/javascript">
// Set default functions for the autocomplete everywhere
\$.extend(\$.fn.typeahead.defaults, {
jQuery.extend(jQuery.fn.typeahead.defaults, {
source: function (query, process) {
// If there's no seperator, it must be a relative path
// 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 \$.get(folderBrowseUrl + '&compact=1&term=' + query, function (data) {
return jQuery.get(folderBrowseUrl + '&compact=1&term=' + query, function (data) {
return process(data);
});
},
@@ -181,7 +184,7 @@
</a>
</li>
<li>
<a href="$helpuri$help_uri" target="_blank">
<a href="$help_uri" target="_blank">
<span class="glyphicon glyphicon-question-sign"></span>
<strong>$T('menu-help')</strong>
</a>

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Config"#-->
<!--#set global $help_uri="configuration/3.4/configure"#-->
<!--#set global $help_uri = $confighelpuri + "configure"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<!--#from sabnzbd.encoding import CODEPAGE#-->
@@ -25,7 +25,7 @@
</tr>
<tr>
<th scope="row">$T('pythonVersion'): </th>
<td>$sys.version[:120] [$CODEPAGE]</td>
<td>$sys.version [$CODEPAGE]</td>
</tr>
<tr>
<th scope="row">OpenSSL:</th>
@@ -41,43 +41,25 @@
</td>
</tr>
<!--#end if#-->
<!--#if not $nt and not $darwin#-->
<!--#if not $windows and not $macos#-->
<tr>
<th scope="row">$T('opt-multicore-par2')</th>
<th scope="row">Par2cmdline-turbo:</th>
<td>
<!--#if $have_mt_par2#-->
<!--#if $have_par2_turbo#-->
<span class="glyphicon glyphicon-ok"></span>
<!--#else#-->
<span class="label label-warning">$T('notAvailable')</span> $T('explain-getpar2mt')
<a href="${helpuri}installation/multicore-par2" target="_blank">${helpuri}installation/multicore-par2</a>
<span class="label label-warning">$T('notAvailable')</span> $T('explain-getpar2turbo')<br>
<a href="https://sabnzbd.org/wiki/installation/par2cmdline-turbo" target="_blank">https://sabnzbd.org/wiki/installation/par2cmdline-turbo</a>
<!--#end if#-->
</td>
</tr>
<!--#end if#-->
<!--#if not $have_sabyenc#-->
<tr>
<th scope="row">SABYenc:</th>
<td>
<span class="label label-danger">$T('notAvailable')</span>
<a href="$helpuri$help_uri#no_sabyenc" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
</td>
</tr>
<!--#end if#-->
<!--#if not $have_unzip and not $have_7zip #-->
<tr>
<th scope="row">$T('opt-enable_unzip'):</th>
<td>
<span class="label label-warning">$T('notAvailable')</span>
<a href="${helpuri}installation/install-off-modules#toc8" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
</td>
</tr>
<!--#end if#-->
<!--#if not $have_7zip #-->
<tr>
<th scope="row">$T('opt-enable_7zip'):</th>
<td>
<span class="label label-warning">$T('notAvailable')</span>
<a href="${helpuri}installation/install-off-modules#toc8" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<a href="https://sabnzbd.org/wiki/installation/install-off-modules#toc8" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
</td>
</tr>
<!--#end if#-->
@@ -123,8 +105,8 @@
</div>
<div class="colmask">
<div class="padding alt">
<h5 class="copyright">Copyright &copy; 2007-2021 The SABnzbd Team &lt;<a href="mailto:team@sabnzbd.org">team@sabnzbd.org</a>&gt;</h5>
<div class="padding">
<h5 class="copyright">Copyright &copy; 2007-2023 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

@@ -1,15 +1,16 @@
<!--#set global $pane="Categories"#-->
<!--#set global $help_uri="configuration/3.4/categories"#-->
<!--#set global $help_uri = $confighelpuri + "categories"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="colmask">
<div class="section">
<div class="padTable"> <a class="main-helplink" href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<div class="padTable">
<a class="main-helplink" href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<p>$T('explain-catTags2')<br/>$T('explain-catTags')</p>
<hr>
<h5 class="darkred"><strong>$T('explain-relFolder'):</strong> <span class="path">$defdir</span></h5>
<!--#for $cur, $slot in enumerate($slotinfo)#-->
<!--#set $cansort = $slot.name != '*' and $slot.name != ''#-->
<form action="save" method="get" <!--#if $cansort#-->class="sorting-row"<!--#end if#-->>
<form action="save" method="post" <!--#if $cansort#-->class="sorting-row"<!--#end if#-->>
<table class="catTable">
<!--#if $cur == 0#-->
<tr>
@@ -104,29 +105,29 @@
</div>
<script type="text/javascript" src="${root}staticcfg/js/jquery-ui.min.js"></script>
<script type="text/javascript">
\$(document).ready(function() {
\$('.delCat').click(function() {
var theForm = \$(this).closest("form");
jQuery(document).ready(function() {
jQuery('.delCat').click(function() {
var theForm = jQuery(this).closest("form");
theForm.attr("action", "delete").submit();
});
// Add autocomplete and file-browser
\$('.fileBrowserSmall').typeahead().fileBrowser();
jQuery('.fileBrowserSmall').typeahead({appendTo: 'body'}).fileBrowser();
// Make categories sortable
\$('.padTable').sortable({
jQuery('.padTable').sortable({
items: '.sorting-row',
containment: '.colmask',
axis: 'y',
update: function(event, ui) {
\$('.Categories form.sorting-row').each(function(index, elm) {
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 = {}
\$(elm).extractFormDataTo(data);
\$.ajax({
jQuery(elm).extractFormDataTo(data);
jQuery.ajax({
type: "GET",
url: window.location.pathname + 'save',
data: data,

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Folders"#-->
<!--#set global $help_uri="configuration/3.4/folders"#-->
<!--#set global $help_uri = $confighelpuri + "folders"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="colmask">
@@ -14,7 +14,7 @@
<input type="hidden" id="ajax" name="ajax" value="1" />
<div class="section">
<div class="col2">
<h3>$T('userFolders') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('userFolders') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p>$T('explain-folderConfig')</p>
</div><!-- /col2 -->
<div class="col1">
@@ -35,7 +35,8 @@
<div class="field-pair">
<label class="config" for="complete_dir">$T('opt-complete_dir')</label>
<input type="text" name="complete_dir" id="complete_dir" value="$complete_dir" data-initialdir="$my_home" />
<span class="desc">$T('explain-complete_dir')</span>
<a class="btn btn-default" href="${root}config/sorting/"><span class="glyphicon glyphicon-sort-by-alphabet"></span> $T('cmenu-sorting')</a>
<span class="desc">$T('explain-complete_dir') <br/> $T('explain-complete_dir-sorting')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="complete_free">$T('opt-complete_free')</label>
@@ -47,7 +48,7 @@
<input type="checkbox" name="fulldisk_autoresume" id="fulldisk_autoresume" value="1" <!--#if int($fulldisk_autoresume) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-fulldisk_autoresume')</span>
</div>
<!--#if not $nt#-->
<!--#if not $windows#-->
<div class="field-pair advanced-settings">
<label class="config" for="permissions">$T('opt-permissions')</label>
<input type="text" name="permissions" id="permissions" value="$permissions" class="smaller_input" />
@@ -57,7 +58,7 @@
<div class="field-pair">
<label class="config" for="dirscan_dir">$T('opt-dirscan_dir')</label>
<input type="text" name="dirscan_dir" id="dirscan_dir" value="$dirscan_dir" data-initialdir="$my_home" />
<span class="desc">$T('explain-dirscan_dir')</span>
<span class="desc">$T('explain-dirscan_dir').replace(".nzb", $file_exts)</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="dirscan_speed">$T('opt-dirscan_speed')</label>
@@ -90,7 +91,7 @@
</div><!-- /section -->
<div class="section advanced-settings">
<div class="col2">
<h3>$T('systemFolders') <a href="$helpuri$help_uri#toc1" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('systemFolders') <a href="$help_uri#toc1" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p>$T('explain-folderConfig')</p>
</div><!-- /col2 -->
<div class="col1">
@@ -104,9 +105,15 @@
<span class="desc">$T('explain-admin_dir1')</span>
<span class="desc">$T('explain-admin_dir2')</span>
</div>
<div class="field-pair">
<label class="config" for="backup_dir">$T('opt-backup_dir')</label>
<input type="text" name="backup_dir" id="backup_dir" value="$backup_dir" data-initialdir="$my_home" />
<span class="desc">$T('explain-backup_dir')</span>
</div>
<div class="field-pair">
<label class="config" for="log_dir">$T('opt-log_dir')</label>
<input type="text" name="log_dir" id="log_dir" value="$log_dir" data-initialdir="$my_lcldata" />
<a class="btn btn-default" id="purge_log_files" href="${root}"><span class="glyphicon glyphicon-trash"></span> $T('purge_log_files')</a>
<span class="desc">$T('explain-log_dir')</span>
</div>
<div class="field-pair">
@@ -126,7 +133,19 @@
<script type="text/javascript">
jQuery(document).ready(function() {
// Add autocomplete and file-browser
\$('.col1 input[name$="_dir"]').typeahead().fileBrowser();
jQuery('.col1 input[name$="_dir"]').typeahead().fileBrowser();
jQuery('#purge_log_files').click(function () {
if ( confirm("$T('confirm')") ) {
$.ajax({
type: "POST",
url: "../../api",
data: {mode: 'config', name: 'purge_log_files', output: 'json', apikey: jQuery('#apikey').val()}
})
} else {
return false;
}
})
})
</script>
<!--#include $webdir + "/_inc_footer_uc.tmpl"#-->

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="General"#-->
<!--#set global $help_uri="configuration/3.4/general"#-->
<!--#set global $help_uri = $confighelpuri + "general"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="colmask">
@@ -9,215 +9,247 @@
</label>
</div>
<form action="saveGeneral" method="post" name="fullform" class="fullform" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" id="ajax" name="ajax" value="1" />
<input type="hidden" name="output" value="json" />
<div class="section">
<div class="col2">
<h3>$T('webServer') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p><b>$T('restartRequired')</b></p>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="host">$T('opt-host')</label>
<input type="text" name="host" id="host" value="$host" />
<span class="desc">$T('explain-host')</span>
</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" />
<span class="desc">$T('explain-port')</span>
</div>
<div class="field-pair">
<label class="config" for="enable_https">$T('opt-enable_https')</label>
<input type="checkbox" name="enable_https" id="enable_https" value="1" <!--#if int($enable_https) > 0 then 'checked="checked" data-original="1"' else ""#-->/>
<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">
<label class="config" for="web_dir">$T('opt-web_dir')</label>
<select name="web_dir" id="web_dir">
<!--#for $webline in $web_list#-->
<!--#if $webline.lower() == $web_dir.lower()#-->
<option value="$webline" selected="selected">$webline</option>
<!--#else#-->
<option value="$webline">$webline</option>
<!--#end if#-->
<!--#end for#-->
</select>
<span class="desc">$T('explain-web_dir')&nbsp;&nbsp;<a href="$caller_url">$caller_url</a></span>
</div>
<div class="field-pair">
<label class="config" for="language">$T('opt-language')</label>
<select name="language" id="language" class="select">
<!--#for $webline in $lang_list#-->
<!--#if $webline[0].lower() == $language.lower()#-->
<option value="$webline[0]" selected="selected">$webline[1]</option>
<!--#else#-->
<option value="$webline[0]">$webline[1]</option>
<!--#end if#-->
<!--#end for#-->
</select>
<span class="desc">$T('explain-language')</span>
<div class="alert alert-info alert-translate">
$T('explain-ask-language') <a href="https://sabnzbd.org/wiki/translate" target="_blank" class="alert-link">https://sabnzbd.org/wiki/translate</a>
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" id="ajax" name="ajax" value="1" />
<input type="hidden" name="output" value="json" />
<div class="section">
<div class="col2">
<h3>$T('webServer') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p><b>$T('restartRequired')</b></p>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="host">$T('opt-host')</label>
<input type="text" name="host" id="host" value="$host" />
<span class="desc">$T('explain-host')</span>
</div>
</div>
<div class="field-pair advanced-settings">
<h5 class="darkred nomargin">$T('base-folder'): <span class="path">$my_lcldata</span></h5>
</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" />
<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" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
<span class="desc">$T('explain-https_cert')</span>
</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" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
<span class="desc">$T('explain-https_key')</span>
</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" />
<span class="desc">$T('explain-https_chain')</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
<button class="btn btn-default sabnzbd_restart"><span class="glyphicon glyphicon-refresh"></span> $T('button-restart') SABnzbd</button>
</div>
</fieldset>
</div>
</div>
<div class="section">
<div class="col2">
<h3>$T('security') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p><b>$T('restartRequired')</b></p>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<!-- Tricks to avoid browser auto-fill, fixed on-submit with javascript -->
<div class="field-pair">
<label class="config" for="${pid}_wu">$T('opt-web_username')</label>
<input type="text" name="${pid}_wu" id="${pid}_wu" value="$username" data-hide="username" />
<span class="desc">$T('explain-web_username')</span>
</div>
<div class="field-pair">
<label class="config" for="${pid}_wp">$T('opt-web_password')</label>
<input type="text" name="${pid}_wp" id="${pid}_wp" value="$password" data-hide="password" />
<span class="desc">$T('explain-web_password')</span>
</div>
<div class="field-pair">
<label class="config" for="inet_exposure">$T('opt-inet_exposure')</label>
<select name="inet_exposure" id="inet_exposure" class="select">
<optgroup label="API">
<option value="0" <!--#if $inet_exposure == 0 then 'selected="selected"' else ""#-->>$T('inet-local')</option>
<option value="1" <!--#if $inet_exposure == 1 then 'selected="selected"' else ""#-->>$T('inet-nzb')</option>
<option value="2" <!--#if $inet_exposure == 2 then 'selected="selected"' else ""#-->>$T('inet-api')</option>
<option value="3" <!--#if $inet_exposure == 3 then 'selected="selected"' else ""#-->>$T('inet-fullapi')</option>
</optgroup>
<optgroup label="$T('inet-fullapi') &amp; $T('opt-web_dir')">
<option value="4" <!--#if $inet_exposure == 4 then 'selected="selected"' else ""#-->>$T('inet-ui')</option>
<option value="5" <!--#if $inet_exposure == 5 then 'selected="selected"' else ""#-->>$T('inet-ui') - $T('inet-external_login')</option>
</optgroup>
<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" />
<span class="desc">$T('explain-port')</span>
</div>
<div class="field-pair">
<label class="config" for="enable_https">$T('opt-enable_https')</label>
<input type="checkbox" name="enable_https" id="enable_https" value="1" <!--#if int($enable_https) > 0 then 'checked="checked" data-original="1"' else ""#-->/>
<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">
<label class="config" for="web_dir">$T('opt-web_dir')</label>
<select name="web_dir" id="web_dir">
<!--#for $webline in $web_list#-->
<!--#if $webline.lower() == $web_dir.lower()#-->
<option value="$webline" selected="selected">$webline</option>
<!--#else#-->
<option value="$webline">$webline</option>
<!--#end if#-->
<!--#end for#-->
</select>
<span class="desc">$T('explain-inet_exposure')</span>
</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 />
<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 />
<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>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('cmenu-switches') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="auto_browser">$T('opt-auto_browser')</label>
<input type="checkbox" name="auto_browser" id="auto_browser" value="1" <!--#if int($auto_browser) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-auto_browser')</span>
</div>
<div class="field-pair">
<label class="config" for="check_new_rel">$T('opt-check_new_rel')</label>
<select name="check_new_rel" id="check_new_rel">
<option value="0" <!--#if $check_new_rel == 0 then 'selected="selected"' else ""#--> >$T('off')</option>
<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 ""#-->">
<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 ""#--> />
<span class="desc">$T('explain-enable_https_verification')</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('tuning') <a href="$helpuri$help_uri#toc2" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair value-and-select">
<label class="config" for="bandwidth_max_value">$T('opt-bandwidth_max')</label>
<input type="number" name="bandwidth_max_value" id="bandwidth_max_value" class="smaller_input" />
<select name="bandwidth_max_dropdown" id="bandwidth_max_dropdown">
<option value="">B/s</option>
<option value="K">KB/s</option>
<option value="M" selected>MB/s</option>
</select>
<input type="hidden" name="bandwidth_max" id="bandwidth_max" value="$bandwidth_max" />
</div>
<div class="field-pair advanced-settings">
<label class="config" for="bandwidth_perc">$T('opt-bandwidth_perc')</label>
<input type="number" name="bandwidth_perc" id="bandwidth_perc" value="$bandwidth_perc" step="10" min="0" max="100"/>
<span class="desc">$T('explain-bandwidth_perc')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="cache_limit">$T('opt-cache_limitstr')</label>
<input type="text" name="cache_limit" id="cache_limit" value="$cache_limit" class="smaller_input" />
<span class="desc">$T('explain-cache_limitstr').replace("64M", "256M").replace("128M", "512M")</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<span class="desc">$T('explain-web_dir')&nbsp;&nbsp;<a href="$caller_url">$caller_url</a></span>
</div>
<div class="field-pair">
<label class="config" for="language">$T('opt-language')</label>
<select name="language" id="language" class="select">
<!--#for $webline in $lang_list#-->
<!--#if $webline[0].lower() == $language.lower()#-->
<option value="$webline[0]" selected="selected">$webline[1]</option>
<!--#else#-->
<option value="$webline[0]">$webline[1]</option>
<!--#end if#-->
<!--#end for#-->
</select>
<span class="desc">$T('explain-language')</span>
<div class="alert alert-info alert-translate">
$T('explain-ask-language') <a href="https://sabnzbd.org/wiki/translate" target="_blank" class="alert-link">https://sabnzbd.org/wiki/translate</a>
</div>
</div>
<div class="field-pair advanced-settings">
<h5 class="darkred nomargin">$T('base-folder'): <span class="path">$my_lcldata</span></h5>
</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" />
<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" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
<span class="desc">$T('explain-https_cert')</span>
</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" />
<button class="btn btn-default generate_cert" title="$T('explain-new-cert')">
<span class="glyphicon glyphicon-repeat"></span>
</button>
<span class="desc">$T('explain-https_key')</span>
</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" />
<span class="desc">$T('explain-https_chain')</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
<button class="btn btn-default sabnzbd_restart"><span class="glyphicon glyphicon-refresh"></span> $T('button-restart') SABnzbd</button>
</div>
</fieldset>
</div>
</div>
<div class="section">
<div class="col2">
<h3>$T('security') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<p><b>$T('restartRequired')</b></p>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<!-- Tricks to avoid browser auto-fill, fixed on-submit with javascript -->
<div class="field-pair">
<label class="config" for="${pid}_wu">$T('opt-web_username')</label>
<input type="text" name="${pid}_wu" id="${pid}_wu" value="$username" data-hide="username" />
<span class="desc">$T('explain-web_username')</span>
</div>
<div class="field-pair">
<label class="config" for="${pid}_wp">$T('opt-web_password')</label>
<input type="text" name="${pid}_wp" id="${pid}_wp" value="$password" data-hide="password" />
<span class="desc">$T('explain-web_password')</span>
</div>
<div class="field-pair">
<label class="config" for="inet_exposure">$T('opt-inet_exposure')</label>
<select name="inet_exposure" id="inet_exposure" class="select">
<optgroup label="API">
<option value="0" <!--#if $inet_exposure == 0 then 'selected="selected"' else ""#-->>$T('inet-local')</option>
<option value="1" <!--#if $inet_exposure == 1 then 'selected="selected"' else ""#-->>$T('inet-nzb')</option>
<option value="2" <!--#if $inet_exposure == 2 then 'selected="selected"' else ""#-->>$T('inet-api')</option>
<option value="3" <!--#if $inet_exposure == 3 then 'selected="selected"' else ""#-->>$T('inet-fullapi')</option>
</optgroup>
<optgroup label="$T('inet-fullapi') &amp; $T('opt-web_dir')">
<option value="4" <!--#if $inet_exposure == 4 then 'selected="selected"' else ""#-->>$T('inet-ui')</option>
<option value="5" <!--#if $inet_exposure == 5 then 'selected="selected"' else ""#-->>$T('inet-ui') - $T('inet-external_login')</option>
</optgroup>
</select>
<span class="desc">$T('explain-inet_exposure')</span>
</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 />
<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 />
<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>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('cmenu-switches') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="auto_browser">$T('opt-auto_browser')</label>
<input type="checkbox" name="auto_browser" id="auto_browser" value="1" <!--#if int($auto_browser) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-auto_browser')</span>
</div>
<div class="field-pair">
<label class="config" for="check_new_rel">$T('opt-check_new_rel')</label>
<select name="check_new_rel" id="check_new_rel">
<option value="0" <!--#if $check_new_rel == 0 then 'selected="selected"' else ""#--> >$T('off')</option>
<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 ""#-->">
<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 ""#--> />
<span class="desc">$T('explain-enable_https_verification')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="socks5_proxy_url">$T('opt-socks5_proxy_url')</label>
<input type="text" name="socks5_proxy_url" id="socks5_proxy_url" value="$socks5_proxy_url" autocomplete="off" placeholder="socks5://user:pass@hostname:port" />
<span class="desc">$T('explain-socks5_proxy_url') <br/>$T('readwiki')</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('tuning') <a href="$help_uri#toc2" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair value-and-select">
<label class="config" for="bandwidth_max_value">$T('opt-bandwidth_max')</label>
<input type="number" name="bandwidth_max_value" id="bandwidth_max_value" class="smaller_input" />
<select name="bandwidth_max_dropdown" id="bandwidth_max_dropdown">
<option value="">B/s</option>
<option value="K">KB/s</option>
<option value="M" selected>MB/s</option>
</select>
<input type="hidden" name="bandwidth_max" id="bandwidth_max" value="$bandwidth_max" />
</div>
<div class="field-pair advanced-settings">
<label class="config" for="bandwidth_perc">$T('opt-bandwidth_perc')</label>
<input type="number" name="bandwidth_perc" id="bandwidth_perc" value="$bandwidth_perc" step="10" min="0" max="100"/>
<span class="desc">$T('explain-bandwidth_perc')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="cache_limit">$T('opt-cache_limitstr')</label>
<input type="text" name="cache_limit" id="cache_limit" value="$cache_limit" class="smaller_input" />
<span class="desc">$T('explain-cache_limitstr').replace("64M", "256M").replace("128M", "512M")</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
</form>
<form action="uploadConfig" method="post" name="fullform" class="fullform" autocomplete="off" enctype="multipart/form-data">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="ajax" value="1" />
<input type="hidden" name="output" value="json" />
<div class="section">
<div class="col2">
<h3>$T('backup') <a href="$help_uri#toc3" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="create_backup">$T('create-backup')</label>
<span class="desc"><button class="btn btn-default createBackup" type="button" id="create_backup"><span class="glyphicon glyphicon glyphicon-import"></span> $T('create-backup')</button></span>
<span class="desc">$T('explain-create_backup')</span>
</div>
<div class="field-pair">
<label class="config" for="config_backup_file">$T('restore-backup')</label>
<input type="file" accept=".zip" name="config_backup_file" id="config_backup_file" />
<span class="desc">$T('restartRequired')</span>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-open"></span> $T('restore-backup')</button>
</div>
</fieldset>
</div>
</div>
</form>
</div><!-- /colmask -->
@@ -232,41 +264,41 @@
</div>
<script type="text/javascript">
\$(document).ready(function(){
jQuery(document).ready(function(){
// Show the message about translating when it's non-English
function hideOrShowTranslate() {
if(\$('#language').val() == 'en') {
\$('.alert-translate').hide()
if(jQuery('#language').val() === 'en') {
jQuery('.alert-translate').hide()
} else {
\$('.alert-translate').show()
jQuery('.alert-translate').show()
}
}
\$('#language').on('change', function() {
jQuery('#language').on('change', function() {
// Show message
hideOrShowTranslate()
// Re-load page on submit
\$('.fullform').submit(function() {
jQuery('.fullform').submit(function() {
// Skip the fancy stuff, just submit
this.submit()
})
// No JSON reponse
\$('#ajax').val('')
// No JSON response
jQuery('#ajax').val('')
})
hideOrShowTranslate()
// Highlight in case user is not safe
// So when exposed to internet and no password, no external limit or no username/password
var safeCheck = \$('#host, #inet_exposure, #${pid}_wu, #${pid}_wp')
var safeCheck = jQuery('#host, #inet_exposure, #${pid}_wu, #${pid}_wp')
function checkSafety() {
if(\$('#host').val() != 'localhost' && \$('#host').val() != '127.0.0.1') {
if(jQuery('#host').val() !== 'localhost' && jQuery('#host').val() !== '127.0.0.1') {
// No limitation on local-network
if(\$('#inet_exposure').val() > 3) {
if(jQuery('#inet_exposure').val() > 3) {
// And no username and password?
if(!\$('#${pid}_wu').val() || !\$('#${pid}_wp').val()) {
if(!jQuery('#${pid}_wu').val() || !jQuery('#${pid}_wp').val()) {
// Add warning icon if not there already
if(!\$('.host-warning').length) {
if(!jQuery('.host-warning').length) {
safeCheck.after('<span class="glyphicon glyphicon-alert host-warning"></span>')
\$('.host-warning').tooltip({'title': '$T('checkSafety')'})
jQuery('.host-warning').tooltip({'title': '$T('checkSafety')'})
safeCheck.addClass('host-warning-highlight')
}
return
@@ -274,57 +306,57 @@
}
}
// Remove warnings
\$('.host-warning').remove()
jQuery('.host-warning').remove()
safeCheck.removeClass('host-warning-highlight')
}
checkSafety()
safeCheck.on('change', checkSafety)
// Click functions
\$('#apikey, #nzbkey').click(function () { \$(this).select() });
jQuery('#apikey, #nzbkey').click(function () { jQuery(this).select() });
\$('#generate_new_apikey').click(function () {
jQuery('#generate_new_apikey').click(function () {
if (confirm("$T('confirm')")) {
$.ajax({
type: "POST",
url: "../../api",
data: {mode:'config', name:'set_apikey', apikey: \$('#apikey').val()},
data: {mode:'config', name:'set_apikey', apikey: jQuery('#apikey').val()},
success: function(msg){
\$('#apikey').val(msg);
jQuery('#apikey').val(msg);
document.location = document.location;
}
});
}
});
\$('#generate_new_nzbkey').click(function () {
jQuery('#generate_new_nzbkey').click(function () {
if (confirm("$T('confirm')")) {
$.ajax({
type: "POST",
url: "../../api",
data: { mode:'config', name:'set_nzbkey', apikey: \$('#apikey').val() },
data: { mode:'config', name:'set_nzbkey', apikey: jQuery('#apikey').val() },
success: function(msg){
\$('#nzbkey').val(msg);
jQuery('#nzbkey').val(msg);
document.location = document.location;
}
});
}
});
\$('.show_qrcode').click(function (e) {
jQuery('.show_qrcode').click(function (e) {
// Show in modal
\$('#modal_qr .modal-dialog').width(330)
\$('#modal_qr .modal-body').html('').qrcode({
jQuery('#modal_qr .modal-dialog').width(330)
jQuery('#modal_qr .modal-body').html('').qrcode({
"size": 280,
"color": "#3a3",
"text": \$(this).attr('rel')
"text": jQuery(this).attr('rel')
});
\$('#modal_qr').modal('show');
jQuery('#modal_qr').modal('show');
// No save on this button click
e.preventDefault();
});
\$('.generate_cert').click(function(e) {
jQuery('.generate_cert').click(function(e) {
if(!confirm('$T('explain-new-cert')')) {
return;
}
@@ -333,7 +365,7 @@
$.ajax({
type: "POST",
url: "../../api",
data: { mode: 'config', name: 'regenerate_certs', apikey: \$('#apikey').val() },
data: { mode: 'config', name: 'regenerate_certs', apikey: jQuery('#apikey').val() },
success: function(msg) {
do_restart()
}
@@ -343,30 +375,44 @@
})
// Only allow re-generate if default certs
if(\$('#https_cert').val() != 'server.cert') {
\$('.generate_cert').attr('disabled', 'disabled')
if(jQuery('#https_cert').val() !== '$def_https_cert_file') {
jQuery('.generate_cert').attr('disabled', 'disabled')
}
// Parse the text
var bandwidthLimit = \$('#bandwidth_max').val()
var bandwidthLimit = jQuery('#bandwidth_max').val()
if(bandwidthLimit) {
var bandwithLimitNumber = parseFloat(bandwidthLimit)
var bandwithLimitText = bandwidthLimit.replace(/[^a-zA-Z]+/g, '');
if(bandwithLimitNumber) {
\$('#bandwidth_max_value').val(bandwithLimitNumber)
\$('#bandwidth_max_dropdown').val(bandwithLimitText)
jQuery('#bandwidth_max_value').val(bandwithLimitNumber)
jQuery('#bandwidth_max_dropdown').val(bandwithLimitText)
}
}
// Update the value
\$('#bandwidth_max_value, #bandwidth_max_dropdown').on('change', function() {
if(\$('#bandwidth_max_value').val()) {
\$('#bandwidth_max').val(\$('#bandwidth_max_value').val() + \$('#bandwidth_max_dropdown').val())
jQuery('#bandwidth_max_value, #bandwidth_max_dropdown').on('change', function() {
if(jQuery('#bandwidth_max_value').val()) {
jQuery('#bandwidth_max').val(jQuery('#bandwidth_max_value').val() + jQuery('#bandwidth_max_dropdown').val())
} else {
\$('#bandwidth_max').val('')
jQuery('#bandwidth_max').val('')
}
})
jQuery('#create_backup').click(function () {
$.ajax({
type: "POST",
url: "../../api",
data: {mode:'config', name:'create_backup', output:'json', apikey: jQuery('#apikey').val()},
success: function(data) {
if(data.value.result) {
alert("$T('backup'):\n" + data.value.message)
} else {
alert("$T('button-failed')")
}
}
});
});
});
</script>

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Email"#-->
<!--#set global $help_uri="configuration/3.4/notifications"#-->
<!--#set global $help_uri = $confighelpuri + "notifications"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<!--#def show_notify_checkboxes($section_label)#-->
@@ -17,11 +17,12 @@
<div class="col2-cats" <!--#if int($getVar($section_label + '_enable')) > 0 then '' else 'style="display:none"'#-->>
<hr>
<b>$T('affectedCat')</b><br/>
<select name="${section_label}_cats" multiple="multiple" class="multiple_cats">
<select name="${section_label}_cats" multiple="multiple" class="multiple_cats" size="$len($categories)">
<!--#for $ct in $categories#-->
<option value="$ct" <!--#if $ct in $getVar($section_label + '_cats') then 'selected="selected"' else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</select>
<p>$T('defaultNotifiesAll')</p>
</div>
<!--#end def#-->
@@ -32,14 +33,15 @@
<input type="hidden" id="ajax" name="ajax" value="1" />
<div class="section" id="email">
<div class="col2">
<h3>$T('cmenu-email') <a href="$helpuri$help_uri#toc0" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('cmenu-email') <a href="$help_uri#toc0" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<div class="col2-cats" <!--#if int($email_endjob) > 0 then '' else 'style="display:none"'#-->>
<b>$T('affectedCat')</b><br/>
<select name="email_cats" multiple="multiple" class="multiple_cats">
<select name="email_cats" multiple="multiple" class="multiple_cats" size="$len($categories)">
<!--#for $ct in $categories#-->
<option value="$ct" <!--#if $ct in $email_cats then 'selected="selected"' else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</select>
<p>$T('defaultNotifiesAll')</p>
</div>
</div>
<div class="col1">
@@ -47,9 +49,9 @@
<div class="field-pair">
<label class="config" for="email_endjob">$T('opt-email_endjob')</label>
<select name="email_endjob" id="email_endjob">
<option value="0" <!--#if int($email_endjob) == "0" then 'selected="selected"' else ""#--> >$T('email-never')</option>
<option value="1" <!--#if int($email_endjob) == "1" then 'selected="selected"' else ""#--> >$T('email-always')</option>
<option value="2" <!--#if int($email_endjob) == "2" then 'selected="selected"' else ""#--> >$T('email-errorOnly')</option>
<option value="0" <!--#if int($email_endjob) == 0 then 'selected="selected"' else ""#--> >$T('email-never')</option>
<option value="1" <!--#if int($email_endjob) == 1 then 'selected="selected"' else ""#--> >$T('email-always')</option>
<option value="2" <!--#if int($email_endjob) == 2 then 'selected="selected"' else ""#--> >$T('email-errorOnly')</option>
</select>
</div>
<div class="field-pair">
@@ -122,7 +124,7 @@
</div>
</div>
<!--#end if#-->
<!--#if $nt#-->
<!--#if $windows#-->
<div class="section">
<div class="col2">
<h3>$T('section-AC')</h3>
@@ -151,7 +153,7 @@
<!--#if $have_ntfosd#-->
<div class="section">
<div class="col2">
<h3>$T('section-OSD') <a href="$helpuri$help_uri#toc4" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<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>
@@ -176,14 +178,14 @@
<!--#end if#-->
<div class="section" id="nscript">
<div class="col2">
<h3>$T('section-NScript')</h3>
<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><label for="nscript_enable"> $T('opt-nscript_enable')</label></td>
</tr>
</table>
<em>$T('explain-nscript_enable')</em><br><a href="$helpuri$help_uri#nscript" target="_blank">$T('readwiki')</a>
<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"'#-->>
@@ -365,24 +367,24 @@
</div><!-- /colmask -->
<script type="text/javascript">
\$(document).ready(function(){
jQuery(document).ready(function(){
// Expand on enable
\$('.col2 input[name$="enable"]').change(function() {
jQuery('.col2 input[name$="enable"]').change(function() {
if(this.checked) {
\$(this).parents('.section').find('.col1').show()
\$(this).parents('.col2').find('.col2-cats').show()
jQuery(this).parents('.section').find('.col1').show()
jQuery(this).parents('.col2').find('.col2-cats').show()
} else {
\$(this).parents('.section').find('.col1').hide()
\$(this).parents('.col2').find('.col2-cats').hide()
jQuery(this).parents('.section').find('.col1').hide()
jQuery(this).parents('.col2').find('.col2-cats').hide()
}
\$('form').submit()
jQuery('form').submit()
addRowColor()
})
\$('#email_endjob').change(function() {
if(\$(this).val() > 0) {
\$(this).parents('.section').find('.col2-cats').show()
jQuery('#email_endjob').change(function() {
if(jQuery(this).val() > 0) {
jQuery(this).parents('.section').find('.col2-cats').show()
} else {
\$(this).parents('.section').find('.col2-cats').hide()
jQuery(this).parents('.section').find('.col2-cats').hide()
}
})
@@ -391,27 +393,27 @@
**/
function testNotification(buttonObj) {
// Confirm?
if(\$(buttonObj).attr('rel')) {
if(!confirm(\$(buttonObj).attr('rel'))) return false;
if(jQuery(buttonObj).attr('rel')) {
if(!confirm(jQuery(buttonObj).attr('rel'))) return false;
}
// Disable button and get the data
\$(buttonObj).attr("disabled", "disabled")
\$(buttonObj).find('span').toggleClass('glyphicon-comment glyphicon-refresh spin-glyphicon')
jQuery(buttonObj).attr("disabled", "disabled")
jQuery(buttonObj).find('span').toggleClass('glyphicon-comment glyphicon-refresh spin-glyphicon')
var data = { mode: buttonObj.id, apikey: '$apikey', output: 'json' };
\$(buttonObj).parents('.section').extractFormDataTo(data);
jQuery(buttonObj).parents('.section').extractFormDataTo(data);
// Clear up the box
resultBox = \$(buttonObj).parents('.section').find('.result-box .alert');
resultBox = jQuery(buttonObj).parents('.section').find('.result-box .alert');
// Get the request
\$.ajax({
jQuery.ajax({
type: "GET",
url: "../../api",
data: data
}).then(function(data) {
// Remove disabled and make the box
\$(buttonObj).removeAttr("disabled")
\$(buttonObj).find('span').toggleClass('glyphicon-comment glyphicon-refresh spin-glyphicon')
jQuery(buttonObj).removeAttr("disabled")
jQuery(buttonObj).find('span').toggleClass('glyphicon-comment glyphicon-refresh spin-glyphicon')
resultBox.removeClass('alert-success alert-danger').show()
if(data.status) {
resultBox.addClass('alert-success')
@@ -424,7 +426,7 @@
}
})
}
\$('#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_pushbullet, #test_pushover, #test_prowl, #test_osd, #test_nscript').click(function () {
testNotification(this)
})
});

View File

@@ -1,12 +1,12 @@
<!--#set global $pane="RSS"#-->
<!--#set global $help_uri="configuration/3.4/rss"#-->
<!--#set global $help_uri = $confighelpuri + "rss"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<!--#import html#-->
<div class="colmask">
<!--#if not $active_feed#-->
<div class="section">
<div class="padTable">
<a class="main-helplink" href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<a class="main-helplink" href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<p>$T('explain-RSS')</p>
<form action="add_rss_feed" method="post" autocomplete="off">
<input type="hidden" name="apikey" value="$apikey" />
@@ -53,7 +53,7 @@
</td>
<td class="title">
<a href="?feed=$rss[$feed_item]['link']" class="subscription-title path feed <!--#if int($rss[$feed_item]['enable']) != 0 then 'feed_enabled' else 'feed_disabled'#-->">
$feed_item
$feed_item_html
</a>
</td>
<td class="controls">
@@ -102,10 +102,10 @@
</div>
<!--#end if#-->
<!--#if $active_feed#-->
<!--#set $feed = $active_feed#-->
<!--#set $feed = html.unescape($active_feed)#-->
<div class="section rss-section">
<div class="padTable">
<a class="main-helplink" href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<a class="main-helplink" href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
<h2 class="nomargin activeRSS">
<a href="${root}config/rss/">$T('cmenu-rss')</a> &raquo;
$active_feed
@@ -113,12 +113,12 @@
<!--#if $error#-->
<div class="alert alert-danger">
<span class="glyphicon glyphicon-exclamation-sign"></span>
<!--#echo html.escape($error)#-->
$error
</div>
<!--#end if#-->
<form action="upd_rss_feed" method="post">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="feed" value="$feed" />
<input type="hidden" name="feed" value="$active_feed" />
<input type="hidden" name="uri" value="$rss[$feed]['uris']" />
<table class="catTable">
<thead>
@@ -210,7 +210,7 @@
<form action="upd_rss_filter" method="post">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="index" value="$rss[$feed]['filtercount']" />
<input type="hidden" name="feed" value="$feed" />
<input type="hidden" name="feed" value="$active_feed" />
<table class="catTable">
<tbody>
<tr>
@@ -286,7 +286,7 @@
<form action="upd_rss_filter" method="post" autocomplete="off">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="index" value="$fnum" />
<input type="hidden" name="feed" value="$feed" />
<input type="hidden" name="feed" value="$active_feed" />
<table class="catTable">
<tbody>
<tr class="<!--#if $odd then " alt " else " "#--> <!--#if $filter[3]!="A" and $filter[3]!="S" then 'disabled_options_rule' else ""#-->">
@@ -302,8 +302,8 @@
<option value="M" <!--#if $filter[3]=="M" then 'selected="selected"' else ""#-->> $T('rss-must')</option>
<option value="R" <!--#if $filter[3]=="R" then 'selected="selected"' else ""#-->> $T('rss-reject')</option>
<option value="C" <!--#if $filter[3]=="C" then 'selected="selected"' else ""#-->> $T('rss-mustcat')</option>
<option value=">" <!--#if $filter[3]==">" then 'selected="selected"' else ""#-->> $T('rss-atleast')</option>
<option value="<" <!--#if $filter[3]=="<" then 'selected="selected"' else ""#-->> $T('rss-atmost')</option>
<option value=">" <!--#if $filter[3]=="&gt;" then 'selected="selected"' else ""#-->> $T('rss-atleast')</option>
<option value="<" <!--#if $filter[3]=="&lt;" then 'selected="selected"' else ""#-->> $T('rss-atmost')</option>
<option value="F" <!--#if $filter[3]=="F" then 'selected="selected"' else ""#-->> $T('rss-from')</option>
<option value="S" <!--#if $filter[3]=="S" then 'selected="selected"' else ""#-->> $T('rss-from-show') ($T('rss-accept'))</option>
</select>
@@ -363,13 +363,13 @@
<!--#end for#-->
<form action="download_rss_feed" method="post">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="feed" value="$feed" />
<input type="hidden" name="feed" value="$active_feed" />
<div class="padding">
<button type="button" class="btn btn-default testFeed" rel="$feed"><span class="glyphicon glyphicon-sort"></span> $T('button-preFeed')</button>
<button type="button" class="btn btn-default testFeed" rel="$active_feed"><span class="glyphicon glyphicon-sort"></span> $T('button-preFeed')</button>
<button type="submit" class="btn btn-default Save"><span class="glyphicon glyphicon-forward"></span> $T('button-forceFeed')</button>
<button type="button" class="btn btn-default cleanFeed"><span class="glyphicon glyphicon-trash"></span> $T('button-clear') $T('rss-done')</button>
<!--#if $evalButton#-->
<button type="button" class="btn btn-default evalFeed" rel="$feed"><span class="glyphicon glyphicon-ok-circle"></span> $T('button-evalFeed')</button>
<button type="button" class="btn btn-default evalFeed" rel="$active_feed"><span class="glyphicon glyphicon-ok-circle"></span> $T('button-evalFeed')</button>
<!--#end if#-->
</div>
</form>
@@ -402,7 +402,7 @@
<tr class="infoTableSeperator">
<td>
<form action="download" method="get">
<input type="hidden" value="$feed" name="feed" />
<input type="hidden" value="$active_feed" name="feed" />
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="url" value="$job['url']" />
<input type="hidden" name="nzbname" value="$job['nzbname']" />
@@ -446,7 +446,7 @@
<tr class="infoTableSeperator">
<td>
<form action="download" method="get">
<input type="hidden" value="$feed" name="feed" />
<input type="hidden" value="$active_feed" name="feed" />
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="url" value="$job['url']" />
<input type="hidden" name="nzbname" value="$job['nzbname']" />
@@ -475,24 +475,28 @@
<div class="tab-pane padTable" id="rss-tab-done">
<!--#if $downloaded#-->
<form action="clean_rss_jobs" method="post">
<input type="hidden" value="$feed" name="feed" />
<input type="hidden" value="$active_feed" name="feed" />
<input type="hidden" name="apikey" value="$apikey" />
<table class="catTable">
<thead>
<tr>
<th class="default-sort">$T('rss-added')</th>
<th>$T('rss-filter')</th>
<th>$T('size')</th>
<th width="60%">$T('sort-title')</th>
<th>$T('category')</th>
<th>$T('nzo-age')</th>
<th>$T('source')</th>
</tr>
</thead>
<!--#for $job in $downloaded#-->
<tr class="infoTableSeperator">
<td data-sort-value="$job['time_downloaded_ms']">$job['time_downloaded']</td>
<td>$job['rule'] $job['skip']</td>
<td data-sort-value="$job['size']">$job['size_units']</td>
<td>$job['title']</td>
<td>$job['cat']</td>
<td data-sort-value="$job['age_ms']">$job['age']</td>
<td data-sort-value="$job['baselink']" title="$job['baselink']">
<!--#if not $job['infourl']#-->
<div class="favicon source-icon" style="background-image: url(//$job['baselink']/favicon.ico);" data-domain="$job['baselink']"></div>
@@ -547,43 +551,43 @@ function urlencode(str) {
return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
}
\$(document).ready(function(){
\$('.favicon').each(function(i, theContainer) {
jQuery(document).ready(function(){
jQuery('.favicon').each(function(i, theContainer) {
// Easy favicon grabber
var favUrl = '//' + \$(theContainer).data('domain') + '/favicon.ico'
var favUrl = '//' + jQuery(theContainer).data('domain') + '/favicon.ico'
// Does the image exist? Otherwise place a glyphicon
var testFavImg = new Image();
testFavImg.src = favUrl;
testFavImg.onerror = function (evt){
\$(theContainer).append('<span class="glyphicon glyphicon-list"></span>')
jQuery(theContainer).append('<span class="glyphicon glyphicon-list"></span>')
}
})
\$('.tabs a').click(function (e) {
jQuery('.tabs a').click(function (e) {
e.preventDefault()
\$(this).tab('show')
jQuery(this).tab('show')
})
\$('.editFeed').click(function(){
var oldURI = \$(this).prev().val();
var whichFeed = \$(this).attr("rel");
jQuery('.editFeed').click(function(){
var oldURI = jQuery(this).prev().val();
var whichFeed = jQuery(this).attr("rel");
// Fill the values
\$('#feed_edit_name_label').text(whichFeed)
\$('#feed_edit_old_name').val(whichFeed)
\$('#feed_edit_new_name').val(whichFeed)
\$('#feed_edit_url').val(oldURI)
jQuery('#feed_edit_name_label').text(whichFeed)
jQuery('#feed_edit_old_name').val(whichFeed)
jQuery('#feed_edit_new_name').val(whichFeed)
jQuery('#feed_edit_url').val(oldURI)
// Show the modal
\$('#rss_edit_modal').modal('show');
jQuery('#rss_edit_modal').modal('show');
});
\$('.delFeed').click(function(e){
jQuery('.delFeed').click(function(e){
e.preventDefault();
if ( confirm("$T('confirm')") ) {
var whichFeed = \$(this).attr("rel");
\$.ajax({
var whichFeed = jQuery(this).attr("rel");
jQuery.ajax({
type: "POST",
url: "del_rss_feed",
data: {feed: whichFeed, apikey: "$apikey" }
@@ -596,9 +600,9 @@ function urlencode(str) {
}
});
\$('.toggleFeedCheckbox').click(function(){
var whichFeed = \$(this).attr("rel");
\$.ajax({
jQuery('.toggleFeedCheckbox').click(function(){
var whichFeed = jQuery(this).attr("rel");
jQuery.ajax({
type: "POST",
url: "toggle_rss_feed",
data: {feed: whichFeed, apikey: "$apikey" }
@@ -611,34 +615,34 @@ function urlencode(str) {
});
// Only the Accept filter needs all the options
\$('form[action="upd_rss_filter"]').find('select[name="filter_type"]').change(function() {
\$(this).parent().parent().find('select:not([name="filter_type"])').attr('disabled', \$(this).val() != "A" && \$(this).val() != "S")
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")
})
// Trigger on-load for all
\$('.disabled_options_rule').find('td select:not([name="filter_type"])').attr('disabled', true)
jQuery('.disabled_options_rule').find('td select:not([name="filter_type"])').attr('disabled', true)
function setActiveIcon(objButton) {
// Let's make it look like things are happening!
\$(objButton).attr('disabled', true)
\$(objButton).find('span').remove()
\$(objButton).prepend('<span class="glyphicon glyphicon-transfer"></span>')
jQuery(objButton).attr('disabled', true)
jQuery(objButton).find('span').remove()
jQuery(objButton).prepend('<span class="glyphicon glyphicon-transfer"></span>')
}
// Enable sorting and set default
if (\$('#rss-tab-matched table').length) {
\$('#rss-tab-matched table').tablesort().data('tablesort').sort(\$('#rss-tab-matched th.default-sort'), 'desc');
if (jQuery('#rss-tab-matched table').length) {
jQuery('#rss-tab-matched table').tablesort().data('tablesort').sort(jQuery('#rss-tab-matched th.default-sort'), 'desc');
}
if (\$('#rss-tab-not-matched table').length) {
\$('#rss-tab-not-matched table').tablesort().data('tablesort').sort(\$('#rss-tab-not-matched th.default-sort'), 'desc');
if (jQuery('#rss-tab-not-matched table').length) {
jQuery('#rss-tab-not-matched table').tablesort().data('tablesort').sort(jQuery('#rss-tab-not-matched th.default-sort'), 'desc');
}
if (\$('#rss-tab-done table').length) {
\$('#rss-tab-done table').tablesort().data('tablesort').sort(\$('#rss-tab-done th.default-sort'), 'desc');
if (jQuery('#rss-tab-done table').length) {
jQuery('#rss-tab-done table').tablesort().data('tablesort').sort(jQuery('#rss-tab-done th.default-sort'), 'desc');
}
\$('.testFeed').click(function(){
jQuery('.testFeed').click(function(){
setActiveIcon(this)
var whichFeed = \$(this).attr("rel");
\$.ajax({
var whichFeed = jQuery(this).attr("rel");
jQuery.ajax({
type: "POST",
url: "test_rss_feed",
data: {feed: whichFeed, apikey: "$apikey" }
@@ -650,34 +654,34 @@ function urlencode(str) {
});
});
\$('.cleanFeed').click(function(){
jQuery('.cleanFeed').click(function(){
setActiveIcon(this)
var theForm = \$(this).closest("form");
var theForm = jQuery(this).closest("form");
theForm.attr("action", "clean_rss_jobs").submit();
});
\$('.evalFeed').click(function(){
jQuery('.evalFeed').click(function(){
setActiveIcon(this)
var theForm = \$(this).closest("form");
var theForm = jQuery(this).closest("form");
theForm.attr("action", "eval_rss_feed").submit();
});
\$('.delFilter').click(function(){
var theForm = \$(this).closest("form");
jQuery('.delFilter').click(function(){
var theForm = jQuery(this).closest("form");
theForm.attr("action", "del_rss_filter").submit();
});
\$('form[action="download"]').ajaxForm({
jQuery('form[action="download"]').ajaxForm({
datatype: 'json',
beforeSubmit: function (_, form) {
\$(form).find('button').attr("disabled", "disabled")
jQuery(form).find('button').attr("disabled", "disabled")
// Remove icon and add new one
\$(form).find('button span').remove()
\$(form).find('button').prepend('<span class="glyphicon glyphicon-transfer"></span>')
jQuery(form).find('button span').remove()
jQuery(form).find('button').prepend('<span class="glyphicon glyphicon-transfer"></span>')
},
success: function (_, _, _, form) {
// Set success
\$(form).find('button').html('<span class="glyphicon glyphicon-ok"></span> $T('rss-added')')
jQuery(form).find('button').html('<span class="glyphicon glyphicon-ok"></span> $T('rss-added')')
}
});

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Scheduling"#-->
<!--#set global $help_uri="configuration/3.4s/scheduling"#-->
<!--#set global $help_uri = $confighelpuri + "scheduling"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<%
@@ -15,7 +15,7 @@ else:
<div class="colmask">
<div class="section">
<div class="col2">
<h3>$T('addSchedule') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('addSchedule') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<form action="addSchedule" method="post" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
@@ -112,32 +112,32 @@ else:
</div><!-- /section -->
</div><!-- /colmask -->
<script type="text/javascript">
\$('#action').on('change', function() {
jQuery('#action').on('change', function() {
// Set the action
\$('#arguments').val((\$(this).find('option:selected').data('action')))
jQuery('#arguments').val((jQuery(this).find('option:selected').data('action')))
// Is it speedlimit?
if(\$(this).find('option:selected').val() == 'speedlimit') {
\$('#hidden_arguments').show()
\$('#hidden_arguments input').attr('placeholder', 'Bytes/s, "1M" = 1 MB/s, "500K" = 500 KB/s')
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 {
\$('#hidden_arguments').hide()
\$('#hidden_arguments input').attr('placeholder', '')
jQuery('#hidden_arguments').hide()
jQuery('#hidden_arguments input').attr('placeholder', '')
}
/* Arguments - since we only have speedlimit with arguments, disabled for now
if(\$(this).find('option:selected').data('noarg')) {
\$('#hidden_arguments').hide()
if(jQuery(this).find('option:selected').data('noarg')) {
jQuery('#hidden_arguments').hide()
} else {
\$('#hidden_arguments').show()
jQuery('#hidden_arguments').show()
}*/
})
\$('[name="schedenabled"]').click(function() {
\$.ajax({
jQuery('[name="schedenabled"]').click(function() {
jQuery.ajax({
type: "POST",
url: "toggleSchedule",
data: {line: \$(this).val(), apikey: "$apikey" }
data: {line: jQuery(this).val(), apikey: "$apikey" }
}).done(function() {
// Let us leave!
formWasSubmitted = true;

View File

@@ -1,17 +1,25 @@
<!--#set global $pane="Servers"#-->
<!--#set global $help_uri="configuration/3.4/servers"#-->
<!--#set global $help_uri = $confighelpuri + "servers"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<!--#import json#-->
<!--#import datetime#-->
<script type="text/javascript" xmlns="http://www.w3.org/1999/html">
<script type="text/javascript">
// Define variable needed for the server-statistics
var serverBandwithData = {}
var serverArticleTries = {}
var serverArticleFailed = {}
// Keep track of all used hostnames
var hostnames = ""
</script>
<div class="server-frame">
<a href="#">&times;</a>
<iframe></iframe>
</div>
<div class="colmask">
<div class="padding alt section">
<button type="button" class="btn btn-default" id="addServerButton"><span class="glyphicon glyphicon-plus"></span> $T('button-addServer')</button>
@@ -29,7 +37,7 @@
</div>
<div class="section" id="addServerContent" style="display: none;">
<div class="col2">
<h3>$T('addServer') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('addServer') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div>
<div class="col1">
<form action="addServer" method="post" autocomplete="off" onsubmit="removeObfuscation();">
@@ -49,27 +57,27 @@
<label class="config" for="host">$T('srv-host')</label>
<input type="text" name="host" id="host" required />
</div>
<div class="field-pair">
<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="119" min="0" />
<input type="number" name="port" id="port" size="8" value="563" min="0" />
</div>
<div class="field-pair">
<label class="config" for="ssl">$T('srv-ssl')</label>
<input type="checkbox" name="ssl" id="ssl" value="1" />
<input type="checkbox" name="ssl" id="ssl" value="1" checked />
<span class="desc">$T('explain-ssl')</span>
</div>
<!-- Tricks to avoid browser auto-fill, fixed on-submit with javascript -->
<div class="field-pair">
<label class="config" for="${pid}_00">$T('srv-username')</label>
<input type="text" name="${pid}_00" id="${pid}_00" data-hide="username" />
<label class="config" for="${pid}_000">$T('srv-username')</label>
<input type="text" name="${pid}_000" id="${pid}_000" data-hide="username" />
</div>
<div class="field-pair">
<label class="config" for="${pid}_01">$T('srv-password')</label>
<input type="text" name="${pid}_01" id="${pid}_01" data-hide="password" />
<label class="config" for="${pid}_001">$T('srv-password')</label>
<input type="text" name="${pid}_001" id="${pid}_001" data-hide="password" />
</div>
<div class="field-pair">
<label class="config" for="connections">$T('srv-connections')</label>
<input type="number" name="connections" id="connections" min="1" max="1000" value="8" required />
<input type="number" name="connections" id="connections" min="1" max="500" value="8" required />
</div>
<div class="field-pair">
<label class="config" for="priority">$T('srv-priority')</label>
@@ -96,13 +104,18 @@
<label class="config" for="ssl_ciphers">$T('opt-ssl_ciphers')</label>
<input type="text" name="ssl_ciphers" id="ssl_ciphers" />
<span class="desc">$T('explain-ssl_ciphers') <br>$T('readwiki')
<a href="${helpuri}advanced/ssl-ciphers" target="_blank">${helpuri}advanced/ssl-ciphers</a></span>
<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" />
<span class="desc">$T('explain-required')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="optional">$T('srv-optional')</label>
<input type="checkbox" name="optional" id="optional" value="1" />
@@ -142,11 +155,11 @@
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="output" value="json" />
<input type="hidden" name="server" value="$server['name']" />
<input type="hidden" id="ajax" name="ajax" value=1 />
<input type="hidden" name="ajax" value=1 />
<div class="section <!--#if int($server['enable']) == 0 then 'server-disabled' else ""#-->">
<div class="col2 <!--#if int($server['enable']) == 0 then 'server-disabled' else ""#-->">
<h3 title="$server['displayname']">$server['displayname'] <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3 title="$server['displayname']">$server['displayname'] <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<!--#if int($server['enable']) != 0 #-->
<!--#if $last_prio != $server['priority'] and $cur_prio_color+1 < len($prio_colors) #-->
<!--#set $cur_prio_color = $cur_prio_color+1 #-->
@@ -175,7 +188,7 @@
<label class="config" for="host$cur">$T('srv-host')</label>
<input type="text" name="host" id="host$cur" value="$server['host']" required />
</div>
<div class="field-pair">
<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 />
</div>
@@ -195,7 +208,7 @@
</div>
<div class="field-pair">
<label class="config" for="connections$cur">$T('srv-connections')</label>
<input type="number" name="connections" id="connections$cur" value="$server['connections']" min="1" max="1000" required />
<input type="number" name="connections" id="connections$cur" value="$server['connections']" min="1" max="500" required />
</div>
<div class="field-pair">
<label class="config" for="priority$cur">$T('srv-priority')</label>
@@ -220,10 +233,15 @@
<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>
<input type="text" name="ssl_ciphers" id="ssl_ciphers" value="$server['ssl_ciphers']" />
<label class="config" for="ssl_ciphers$cur">$T('opt-ssl_ciphers')</label>
<input type="text" name="ssl_ciphers" id="ssl_ciphers$cur" value="$server['ssl_ciphers']" />
<span class="desc">$T('explain-ssl_ciphers') <br>$T('readwiki')
<a href="${helpuri}advanced/ssl-ciphers" target="_blank">${helpuri}advanced/ssl-ciphers</a></span>
<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="required$cur">$T('srv-required')</label>
<input type="checkbox" name="required" id="required$cur" value="1" <!--#if int($server['required']) != 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-required')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="optional$cur">$T('srv-optional')</label>
@@ -249,7 +267,7 @@
<label class="config" for="notes$cur">$T('srv-notes')</label>
<textarea name="notes" id="notes$cur" rows="3" cols="50">$server['notes']</textarea>
</div>
<div class="field-pair">
<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 testServer" type="button"><span class="glyphicon glyphicon-sort"></span> $T('button-testServer')</button>
<button class="btn btn-default delServer"><span class="glyphicon glyphicon-trash"></span> $T('button-delServer')</button>
@@ -273,7 +291,8 @@
<p title="$T('readwiki')">
<b>$T('srv-article-availability'):</b><br/>
$T('selectedDates'): <span id="server-article-value-${cur}"></span>
$T('selectedDates'): <span id="server-article-value-${cur}"></span><br/>
<a href="https://sabnzbd.org/not-complete" id="server-article-not-complete-${cur}" target="_blank">https://sabnzbd.org/not-complete</a>
</p>
<!--#if $server['expire_date']#-->
<p><b>$T('srv-expire_date'):</b> $(server['expire_date'])</p>
@@ -290,6 +309,9 @@
serverBandwithData[${cur}] = <!--#echo json.dumps($server['amounts'][4])#-->
serverArticleTries[${cur}] = <!--#echo json.dumps($server['amounts'][5])#-->
serverArticleFailed[${cur}] = <!--#echo json.dumps($server['amounts'][6])#-->
<!--#if int($server['enable']) != 0#-->
hostnames += ",$server['host']"
<!--#end if#-->
</script>
<!--#end if#-->
</div>
@@ -327,8 +349,8 @@
function showCharts() {
// Get the constants
const startDate = new Date(\$('#chart-start').val())
const endDate = new Date(\$('#chart-end').val())
const startDate = new Date(jQuery('#chart-start').val())
const endDate = new Date(jQuery('#chart-end').val())
const oneDay = 24 * 60 * 60 * 1000
const nrDays = Math.round((endDate-startDate)/oneDay)
@@ -339,8 +361,8 @@
var maxBandwith = 0
// For each chart
\$('.server-chart').each(function(j, elemn) {
const server_id = \$(elemn).data('serverid')
jQuery('.server-chart').each(function(j, elemn) {
const server_id = jQuery(elemn).data('serverid')
var totalBandwithThisRange = 0
var totalArticlesTriedThisRange = 0
var totalArticlesFailedThisRange = 0
@@ -383,7 +405,7 @@
}
// Update the text value
\$('#server-bandwith-value-' + server_id).text(filesize(totalBandwithThisRange, {round: 1}))
jQuery('#server-bandwith-value-' + server_id).text(filesize(totalBandwithThisRange, {round: 1}))
// Calculate article success ratio, if available
var articleRatio = Math.round(100 * (1 - totalArticlesFailedThisRange/totalArticlesTriedThisRange))
@@ -391,14 +413,17 @@
// If values were missing
if(!isNaN(articleRatio)) {
// Use filesize to convert to unit-display
\$('#server-article-value-' + server_id).text('$T("srv-articles-tried")'.replace('%f', articleRatio).replace('%d', filesize(totalArticlesTriedThisRange, {unix: true, round: 0, spacer: "", base: 1})))
jQuery('#server-article-value-' + server_id).text('$T("srv-articles-tried")'.replace('%f', articleRatio).replace('%d', filesize(totalArticlesTriedThisRange, {unix: true, round: 0, spacer: "", base: 1})))
// If we have a low value, we link them to the website
if(articleRatio > 60) jQuery('#server-article-not-complete-' + server_id).hide()
} else {
\$('#server-article-value-' + server_id).text('$T("notAvailable")')
jQuery('#server-article-value-' + server_id).text('$T("notAvailable")')
jQuery('#server-article-not-complete-' + server_id).hide()
}
// Save bandwidth data in a very ugly way, but we need to do this
// so we can calculate the maximum Y-axis for all graphs
\$(elemn).data("chart-data", data)
jQuery(elemn).data("chart-data", data)
})
// Set the maximum
@@ -406,11 +431,11 @@
chartOptions.axisY.low = 0
// Update all the axis with the largest value and draw the graph
\$('.server-chart').each(function(j, elemn) {
const server_id = \$(elemn).data('serverid')
jQuery('.server-chart').each(function(j, elemn) {
const server_id = jQuery(elemn).data('serverid')
// Show the chart
chart = new Chartist.Line('#server-chart-'+server_id, \$(elemn).data("chart-data"), chartOptions)
chart = new Chartist.Line('#server-chart-'+server_id, jQuery(elemn).data("chart-data"), chartOptions)
chart.on('created', function(context) {
// Make sure to add this as the first child so it's at the bottom
context.svg.elem('rect', {
@@ -422,15 +447,15 @@
stroke: '#b9b9b9',
'stroke-width': '1px'
}, '', context.svg, true)
\$('#server-chart-'+server_id+' .ct-label.ct-vertical').each(function(index, elmn) {
jQuery('#server-chart-'+server_id+' .ct-label.ct-vertical').each(function(index, elmn) {
elmn.innerHTML = filesize(elmn.innerHTML, {round: 1}).replace(' ','')
})
});
})
// Limit input to sensible values
\$('#chart-start').attr("max", \$('#chart-end').val())
\$('#chart-end').attr("min", \$('#chart-start').val())
jQuery('#chart-start').attr("max", jQuery('#chart-end').val())
jQuery('#chart-end').attr("min", jQuery('#chart-start').val())
}
// Need to mitigate timezone effects!
@@ -443,12 +468,12 @@
/**
When finished loading
**/
\$(document).ready(function(){
jQuery(document).ready(function(){
// Exception when change of priority, reload
\$('input[name="priority"], input[name="displayname"]').on('change', function() {
\$('.fullform').submit(function() {
jQuery('input[name="priority"], input[name="displayname"]').on('change', function() {
jQuery('.fullform').submit(function() {
// No ajax this time
\$('input[name="ajax"]').val('')
jQuery('input[name="ajax"]').val('')
// Skip the fancy stuff, just submit
this.submit()
})
@@ -457,7 +482,7 @@
/**
Update charts when changed
**/
\$('#chart-start, #chart-end').on('change', function(elemn) {
jQuery('#chart-start, #chart-end').on('change', function(elemn) {
showCharts()
// Lets us leave (needs to be called after the change event)
@@ -472,16 +497,16 @@
/**
Click events
**/
\$('.showserver').click(function () {
if(\$(this).parent().hasClass('server-disabled')) {
\$(this).parent().parent().toggleClass('server-disabled')
jQuery('.showserver').click(function () {
if(jQuery(this).parent().hasClass('server-disabled')) {
jQuery(this).parent().parent().toggleClass('server-disabled')
}
\$(this).parent().next().toggle();
\$(this).parent().next().next().toggle();
if (\$(this).text().indexOf("$T('showDetails')") > 0) {
\$(this).html(\$(this).html().replace("$T('showDetails')", "$T('hideDetails')"));
jQuery(this).parent().next().toggle();
jQuery(this).parent().next().next().toggle();
if (jQuery(this).text().indexOf("$T('showDetails')") > 0) {
jQuery(this).html(jQuery(this).html().replace("$T('showDetails')", "$T('hideDetails')"));
} else {
\$(this).html(\$(this).html().replace("$T('hideDetails')", "$T('showDetails')"));
jQuery(this).html(jQuery(this).html().replace("$T('hideDetails')", "$T('showDetails')"));
// Recalculate the charts if changed while details were open
showCharts()
}
@@ -489,24 +514,24 @@
addRowColor()
});
\$('#addServerButton').click(function(){
\$('#addServerContent').show();
jQuery('#addServerButton').click(function(){
jQuery('#addServerContent').show();
// Add coloring
addRowColor()
});
\$('[name="ssl"]').click(function() {
jQuery('[name="ssl"]').click(function() {
// Use CSS transitions to do some highlighting
var portBox = \$(this).parent().parent().find('[name="port"]')
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')
}
@@ -515,16 +540,16 @@
})
// Testing servers
\$('.testServer').click(function(event){
jQuery('.testServer').click(function(event){
removeObfuscation()
var theButton = \$(this)
var theButton = jQuery(this)
var resultBox = theButton.parents('.col1').find('.result-box .alert');
theButton.attr("disabled", "disabled")
theButton.find('span').toggleClass('glyphicon-sort glyphicon-refresh spin-glyphicon')
\$.ajax({
jQuery.ajax({
type: "POST",
url: "../../api",
data: "mode=config&name=test_server&" + \$(this).parents('form:first').serialize()
data: "mode=config&name=test_server&" + jQuery(this).parents('form:first').serialize()
}).then(function(data) {
// Let's replace the link
msg = data.value.message.replace('https://sabnzbd.org/certificate-errors', '<a href="https://sabnzbd.org/certificate-errors" class="alert-link" target="_blank">https://sabnzbd.org/certificate-errors</a>')
@@ -535,7 +560,7 @@
theButton.removeAttr("disabled")
theButton.find('span').toggleClass('glyphicon-sort glyphicon-refresh spin-glyphicon')
// Succes or not?
// Success or not?
if(data.value.result) {
resultBox.addClass('alert-success')
resultBox.prepend('<span class="glyphicon glyphicon-ok-sign"></span> ')
@@ -546,9 +571,9 @@
});
});
\$('.delServer').click(function(){
jQuery('.delServer').click(function(){
if( confirm("$T('confirm')") ) {
\$(this).parents('form:first').attr('action','delServer').submit();
jQuery(this).parents('form:first').attr('action','delServer').submit();
// Let us leave!
formWasSubmitted = true;
formHasChanged = false;
@@ -557,9 +582,9 @@
return false;
});
\$('.clrServer').click(function(){
jQuery('.clrServer').click(function(){
if( confirm("$T('confirm')") ) {
\$(this).parents('form:first').attr('action','clrServer').submit();
jQuery(this).parents('form:first').attr('action','clrServer').submit();
// Let us leave!
formWasSubmitted = true;
formHasChanged = false;
@@ -568,9 +593,9 @@
return false;
});
\$('.toggleServerCheckbox').click(function(){
var whichServer = \$(this).attr("name");
\$.ajax({
jQuery('.toggleServerCheckbox').click(function(){
var whichServer = jQuery(this).attr("name");
jQuery.ajax({
type: "POST",
url: "toggleServer",
data: {server: whichServer, apikey: "$apikey" }
@@ -581,6 +606,35 @@
setTimeout(function() { location.reload(); }, 100)
});
});
// Show text-ad if there is space
if((jQuery("body").width() - jQuery("#content").width())/2 > (jQuery('.Servers .server-frame').width() + 40)) {
// Do not show if dismissed previously
if(localStorage.getItem("server-frame-hide-$version") === null) {
// Let the page on the server tell us if we need to show
function receiveMessage(event) {
// Check origin of message for security reasons
if(event.origin === 'https://sabnzbd.org') {
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
jQuery('.Servers .server-frame').hide()
localStorage.setItem("server-frame-hide-$version", "hide")
}
}
}
window.addEventListener("message", receiveMessage, false);
// NOTE: The hash-part cannot be seen by the server, so we don't know which hostnames you use!
jQuery('.Servers .server-frame iframe').attr("src", "https://sabnzbd.org/servers#$active_lang" + hostnames)
}
}
});
</script>

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Special"#-->
<!--#set global $help_uri="configuration/3.4/special"#-->
<!--#set global $help_uri = $confighelpuri + "special"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="colmask">
@@ -10,7 +10,7 @@
</div>
<div class="section">
<div class="col2">
<h3>$T('sptag-boolean') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('sptag-boolean') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
@@ -33,7 +33,7 @@
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('sptag-entries') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('sptag-entries') <a href="$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>

View File

@@ -1,5 +1,5 @@
<!--#set global $pane="Switches"#-->
<!--#set global $help_uri="configuration/3.4/switches"#-->
<!--#set global $help_uri = $confighelpuri + "switches"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->
<div class="colmask">
@@ -14,19 +14,10 @@
<input type="hidden" name="output" value="json" />
<div class="section advanced-settings">
<div class="col2">
<h3>$T('swtag-server') <a href="$helpuri$help_uri#toc1" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('swtag-server') <a href="$help_uri#toc1" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="load_balancing">$T('opt-load_balancing')</label>
<select name="load_balancing" id="load_balancing">
<option value="0" <!--#if $load_balancing == 0 then 'selected="selected"' else ""#--> >$T('no-load-balancing')</option>
<option value="1" <!--#if $load_balancing == 1 then 'selected="selected"' else ""#--> >$T('load-balancing')</option>
<option value="2" <!--#if $load_balancing == 2 then 'selected="selected"' else ""#--> >$T('load-balancing-happy-eyeballs')</option>
</select>
<span class="desc">$T('explain-load_balancing')</span>
</div>
<div class="field-pair">
<label class="config" for="max_art_tries">$T('opt-max_art_tries')</label>
<input type="number" name="max_art_tries" id="max_art_tries" value="$max_art_tries" min="2" max="2000" />
@@ -46,11 +37,11 @@
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('swtag-queue') <a href="$helpuri$help_uri#toc2" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('swtag-queue') <a href="$help_uri#toc2" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</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#-->
@@ -63,6 +54,19 @@
</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>
@@ -141,6 +145,7 @@
<label class="config" for="auto_sort">$T('opt-auto_sort')</label>
<select name="auto_sort" id="auto_sort">
<option value="">$T('default')</option>
<option value="remaining asc" <!--#if $auto_sort == "remaining asc" then 'selected="selected"' else ""#--> >$T('Glitter-sortRemaining')</option>
<option value="avg_age desc" <!--#if $auto_sort == "avg_age desc" then 'selected="selected"' else ""#--> >$T('Glitter-sortAgeAsc')</option>
<option value="avg_age asc" <!--#if $auto_sort == "avg_age asc" then 'selected="selected"' else ""#--> >$T('Glitter-sortAgeDesc')</option>
<option value="name asc" <!--#if $auto_sort == "name asc" then 'selected="selected"' else ""#--> >$T('Glitter-sortNameAsc')</option>
@@ -148,7 +153,7 @@
<option value="size asc" <!--#if $auto_sort == "size asc" then 'selected="selected"' else ""#--> >$T('Glitter-sortSizeAsc')</option>
<option value="size desc" <!--#if $auto_sort == "size desc" then 'selected="selected"' else ""#--> >$T('Glitter-sortSizeDesc')</option>
</select>
<span class="desc">$T('explain-auto_sort')</span>
<span class="desc">$T('explain-auto_sort') $T('explain-auto_sort_remaining')</span>
</div>
<div class="field-pair">
<label class="config" for="direct_unpack">$T('opt-direct_unpack')</label>
@@ -164,7 +169,7 @@
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('swtag-pp') <a href="$helpuri$help_uri#toc3" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('swtag-pp') <a href="$help_uri#toc3" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
@@ -178,7 +183,7 @@
<input type="checkbox" name="enable_all_par" id="enable_all_par" value="1" <!--#if int($enable_all_par) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-enable_all_par').replace('. ', '.<br/>')</span>
</div>
<!--#if not $nt#-->
<!--#if not $windows#-->
<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 "" #--> />
@@ -232,11 +237,6 @@
<input type="checkbox" name="script_can_fail" id="script_can_fail" value="1" <!--#if int($script_can_fail) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-script_can_fail')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="new_nzb_on_failure">$T('opt-new_nzb_on_failure')</label>
<input type="checkbox" name="new_nzb_on_failure" id="new_nzb_on_failure" value="1" <!--#if int($new_nzb_on_failure) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-new_nzb_on_failure')</span>
</div>
<div class="field-pair">
<label class="config" for="ignore_samples">$T('opt-ignore_samples')</label>
<input type="checkbox" name="ignore_samples" id="ignore_samples" value="1" <!--#if int($ignore_samples) > 0 then 'checked="checked"' else ""#--> />
@@ -247,11 +247,6 @@
<input type="checkbox" name="deobfuscate_final_filenames" id="deobfuscate_final_filenames" value="1" <!--#if int($deobfuscate_final_filenames) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-deobfuscate_final_filenames') $T('explain-deobfuscate_final_filenames-ext')</span>
</div>
<div class="field-pair advanced-settings">
<label class="config" for="enable_meta">$T('opt-enable_meta')</label>
<input type="checkbox" name="enable_meta" id="enable_meta" value="1" <!--#if int($enable_meta) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-enable_meta').replace('. ', '.<br/>')</span>
</div>
<div class="field-pair">
<label class="config" for="cleanup_list">$T('opt-cleanup_list')</label>
<input type="text" name="cleanup_list" id="cleanup_list" value="$cleanup_list"/>
@@ -278,7 +273,7 @@
</div><!-- /section -->
<div class="section advanced-settings">
<div class="col2">
<h3>$T('swtag-naming') <a href="$helpuri$help_uri#toc4" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('swtag-naming') <a href="$help_uri#toc4" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
@@ -292,12 +287,17 @@
<input type="checkbox" name="replace_spaces" id="replace_spaces" value="1" <!--#if int($replace_spaces) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-replace_spaces')</span>
</div>
<div class="field-pair">
<label class="config" for="replace_underscores">$T('opt-replace_underscores')</label>
<input type="checkbox" name="replace_underscores" id="replace_underscores" value="1" <!--#if int($replace_underscores) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-replace_underscores')</span>
</div>
<div class="field-pair">
<label class="config" for="replace_dots">$T('opt-replace_dots')</label>
<input type="checkbox" name="replace_dots" id="replace_dots" value="1" <!--#if int($replace_dots) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-replace_dots')</span>
</div>
<!--#if not $nt#-->
<!--#if not $windows#-->
<div class="field-pair">
<label class="config" for="sanitize_safe">$T('opt-sanitize_safe')</label>
<input type="checkbox" name="sanitize_safe" id="sanitize_safe" value="1" <!--#if int($sanitize_safe) > 0 then 'checked="checked"' else ""#--> />
@@ -313,7 +313,7 @@
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('swtag-quota') <a href="$helpuri$help_uri#toc5" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<h3>$T('swtag-quota') <a href="$help_uri#toc5" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
@@ -348,156 +348,18 @@
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
<div class="section">
<div class="col2">
<h3>$T('swtag-indexing') <a href="$helpuri$help_uri#toc6" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
</div><!-- /col2 -->
<div class="col1">
<fieldset>
<div class="field-pair">
<label class="config" for="rating_enable">$T('opt-rating_enable')</label>
<input type="checkbox" name="rating_enable" id="rating_enable" value="1" <!--#if int($rating_enable) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-rating_enable').replace('. ', '.<br/>')</span>
</div>
<div class="field-pair">
<label class="config" for="rating_api_key">$T('opt-rating_api_key')</label>
<input type="text" name="rating_api_key" id="rating_api_key" value="$rating_api_key" />
<span class="desc">$T('explain-rating_api_key')</span>
</div>
<div class="field-pair">
<label class="config" for="rating_filter_enable">$T('opt-rating_filter_enable')</label>
<input type="checkbox" name="rating_filter_enable" id="rating_filter_enable" value="1" <!--#if int($rating_filter_enable) > 0 then 'checked="checked"' else ""#--> />
<span class="desc">$T('explain-rating_filter_enable')</span>
</div>
<div class="field-pair" id="rating_filter_abort">
<label class="config">$T('opt-rating_filter_abort_if')</label>
<div class="rating-filter">
<p>
<label for="rating_filter_abort_video">$T('opt-rating_filter_video')</label>
<select name="rating_filter_abort_video" id="rating_filter_abort_video">
<option value="0" <!--#if $rating_filter_abort_video == 0 then 'selected="selected"' else ""#--> >$T('notUsed')</option>
<!--#for $val in $range(1, 10)#--><option value="$val" <!--#if $rating_filter_abort_video == $val then 'selected="selected"' else ""#--> >$val $T('orLess')</option><!--#end for#-->
</select>
</p>
<p>
<label for="rating_filter_abort_audio">$T('opt-rating_filter_audio')</label>
<select name="rating_filter_abort_audio" id="rating_filter_abort_audio">
<option value="0" <!--#if $rating_filter_abort_audio == 0 then 'selected="selected"' else ""#--> >$T('notUsed')</option>
<!--#for $val in $range(1, 10)#--><option value="$val" <!--#if $rating_filter_abort_audio == $val then 'selected="selected"' else ""#--> >$val $T('orLess')</option><!--#end for#-->
</select>
</p>
<p>
<span>
<input type="checkbox" value="1" id="rating_filter_abort_encrypted" name="rating_filter_abort_encrypted" <!--#if int($rating_filter_abort_encrypted) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_abort_encrypted">$T('opt-rating_filter_passworded')</label>
</span>
<span>
<input type="checkbox" value="1" id="rating_filter_abort_encrypted_confirm" name="rating_filter_abort_encrypted_confirm" <!--#if int($rating_filter_abort_encrypted_confirm) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_abort_encrypted_confirm">$T('opt-rating_filter_confirmed')</label>
</span>
</p>
<p>
<span>
<input type="checkbox" value="1" id="rating_filter_abort_spam" name="rating_filter_abort_spam" <!--#if int($rating_filter_abort_spam) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_abort_spam">$T('opt-rating_filter_spam')</label>
</span>
<span>
<input type="checkbox" value="1" id="rating_filter_abort_spam_confirm" name="rating_filter_abort_spam_confirm" <!--#if int($rating_filter_abort_spam_confirm) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_abort_spam_confirm">$T('opt-rating_filter_confirmed')</label>
</span>
</p>
<p>
<input type="checkbox" value="1" id="rating_filter_abort_downvoted" name="rating_filter_abort_downvoted" <!--#if int($rating_filter_abort_downvoted) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_abort_downvoted">$T('opt-rating_filter_downvoted')</label>
</p>
<p>
<label for="rating_filter_abort_keywords">$T('opt-rating_filter_keywords')</label>
<input type="text" name="rating_filter_abort_keywords" id="rating_filter_abort_keywords" value="$rating_filter_abort_keywords"/>
<span class="desc">$T('explain-rating_filter_keywords')</span>
</p>
</div>
</div>
<div class="field-pair" id="rating_filter_pause">
<label class="config">$T('opt-rating_filter_pause_if')</label>
<div class="rating-filter">
<p>
<label for="rating_filter_pause_video">$T('opt-rating_filter_video')</label>
<select name="rating_filter_pause_video" id="rating_filter_pause_video">
<option value="0" <!--#if $rating_filter_pause_video == 0 then 'selected="selected"' else ""#--> >$T('notUsed')</option>
<!--#for $val in $range(1, 10)#--><option value="$val" <!--#if $rating_filter_pause_video == $val then 'selected="selected"' else ""#--> >$val $T('orLess')</option><!--#end for#-->
</select>
</p>
<p>
<label for="rating_filter_pause_audio">$T('opt-rating_filter_audio')</label>
<select name="rating_filter_pause_audio" id="rating_filter_pause_audio">
<option value="0" <!--#if $rating_filter_pause_audio == 0 then 'selected="selected"' else ""#--> >$T('notUsed')</option>
<!--#for $val in $range(1, 10)#--><option value="$val" <!--#if $rating_filter_pause_audio == $val then 'selected="selected"' else ""#--> >$val $T('orLess') </option><!--#end for#-->
</select>
</p>
<p>
<span>
<input type="checkbox" value="1" id="rating_filter_pause_encrypted" name="rating_filter_pause_encrypted" <!--#if int($rating_filter_pause_encrypted) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_pause_encrypted">$T('opt-rating_filter_passworded')</label>
</span>
<span>
<input type="checkbox" value="1" id="rating_filter_pause_encrypted_confirm" name="rating_filter_pause_encrypted_confirm" <!--#if int($rating_filter_pause_encrypted_confirm) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_pause_encrypted_confirm">$T('opt-rating_filter_confirmed')</label>
</span>
</p>
<p>
<span>
<input type="checkbox" value="1" id="rating_filter_pause_spam" name="rating_filter_pause_spam" <!--#if int($rating_filter_pause_spam) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_pause_spam">$T('opt-rating_filter_spam')</label>
</span>
<span>
<input type="checkbox" value="1" id="rating_filter_pause_spam_confirm" name="rating_filter_pause_spam_confirm" <!--#if int($rating_filter_pause_spam_confirm) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_pause_spam_confirm">$T('opt-rating_filter_confirmed')</label>
</span>
</p>
<p>
<input type="checkbox" value="1" id="rating_filter_pause_downvoted" name="rating_filter_pause_downvoted" <!--#if int($rating_filter_pause_downvoted) > 0 then 'checked="checked"' else ""#--> />
<label for="rating_filter_pause_downvoted">$T('opt-rating_filter_downvoted')</label>
</p>
<p>
<label for="rating_filter_pause_keywords">$T('opt-rating_filter_keywords')</label>
<input type="text" name="rating_filter_pause_keywords" id="rating_filter_pause_keywords" value="$rating_filter_pause_keywords"/>
<span class="desc">$T('explain-rating_filter_keywords')</span>
</p>
</div>
</div>
<div class="field-pair">
<button class="btn btn-default saveButton"><span class="glyphicon glyphicon-ok"></span> $T('button-saveChanges')</button>
</div>
</fieldset>
</div><!-- /col1 -->
</div><!-- /section -->
</form>
</div><!-- /colmask -->
<script type="text/javascript">
\$(document).ready(function() {
if (!\$('#rating_filter_enable').is(":checked")) {
\$("#rating_filter_abort").hide();
\$("#rating_filter_pause").hide();
}
\$('#rating_filter_enable').change(function () {
if (\$(this).is(":checked")) {
\$("#rating_filter_abort").show();
\$("#rating_filter_pause").show();
}
else {
\$("#rating_filter_abort").hide();
\$("#rating_filter_pause").hide();
}
});
\$('#history_retention_select, #history_retention_number').on('change', updateHistoryRetention)
jQuery(document).ready(function() {
jQuery('#history_retention_select, #history_retention_number').on('change', updateHistoryRetention)
function updateHistoryRetention() {
var retention_setting = \$('#history_retention')
var retention_select = \$('#history_retention_select').val()
var retention_number = \$('#history_retention_number')
var retention_setting = jQuery('#history_retention')
var retention_select = jQuery('#history_retention_select').val()
var retention_number = jQuery('#history_retention_number')
// Keep all or keep none
if(retention_select == "0" || retention_select == "-1") {
if(retention_select === "0" || retention_select === "-1") {
retention_number.hide()
retention_number.val('')
retention_number.attr('placeholder', '')
@@ -523,24 +385,24 @@
}
}
// Set the history-retention settig
var retention_setting_value = \$('#history_retention').val()
var retention_setting_value = jQuery('#history_retention').val()
if(parseInt(retention_setting_value) > 0) {
// Days or number?
if(retention_setting_value.indexOf("d") !== -1) {
\$('#history_retention_select').val("d")
jQuery('#history_retention_select').val("d")
} else {
\$('#history_retention_select').val("n")
jQuery('#history_retention_select').val("n")
}
\$('#history_retention_number').val(parseInt(retention_setting_value))
jQuery('#history_retention_number').val(parseInt(retention_setting_value))
} else {
// Keep all or keep none
\$('#history_retention_select').val(retention_setting_value)
\$('#history_retention_number').hide()
jQuery('#history_retention_select').val(retention_setting_value)
jQuery('#history_retention_number').hide()
}
\$('.restoreDefaults').click(function(e) {
jQuery('.restoreDefaults').click(function(e) {
// Get section name
var sectionName = \$(this).parents('.section').find('.col2 h3').text().trim()
var sectionName = jQuery(this).parents('.section').find('.col2 h3').text().trim()
// Confirm?
if(!confirm("$T('explain-restoreDefaults') \""+sectionName+"\"\n$T('confirm')")) return false
@@ -548,11 +410,11 @@
// Need to get all the input values, so same way as saving normally
var key_container = {}
\$(this).parents('.section').extractFormDataTo(key_container);
jQuery(this).parents('.section').extractFormDataTo(key_container);
key_container = Object.keys(key_container)
// Send request
\$.ajax({
jQuery.ajax({
type: "GET",
url: "../../api",
data: "mode=set_config_default&apikey=${apikey}&output=json&keyword=" + key_container.join('&keyword=')

View File

@@ -15,6 +15,9 @@
<link rel="stylesheet" type="text/css" href="../staticcfg/bootstrap/css/bootstrap.min.css?v=$version" />
<link rel="stylesheet" type="text/css" href="../staticcfg/css/login.css?v=$version" />
<!--#if $color_scheme not in ('Light', '') #-->
<link rel="stylesheet" type="text/css" href="../staticcfg/css/${color_scheme}.css?v=$version"/>
<!--#end if#-->
<script type="text/javascript" src="../staticcfg/js/jquery-3.5.1.min.js?v=$version"></script>
<script type="text/javascript" src="../staticcfg/bootstrap/js/bootstrap.min.js?v=$version"></script>
@@ -47,14 +50,14 @@
</div>
<script type="text/javascript">
// Tooltip
\$('[data-toggle="tooltip"]').tooltip()
jQuery('[data-toggle="tooltip"]').tooltip()
// Try-catch in case somebody disabled localstorage
try {
// Set what was done previously
\$('input[type="checkbox"]').prop('checked', localStorage.getItem("remember_me") === 'true')
jQuery('input[type="checkbox"]').prop('checked', localStorage.getItem("remember_me") === 'true')
// Store if we change something
\$('input[type="checkbox"]').on('change', function() {
localStorage.setItem("remember_me", \$(this).is(':checked'));
jQuery('input[type="checkbox"]').on('change', function() {
localStorage.setItem("remember_me", jQuery(this).is(':checked'));
})
} catch(err) { }
</script>

View File

@@ -0,0 +1 @@
@import url('Night.css') screen and (prefers-color-scheme: dark);

View File

@@ -0,0 +1,319 @@
body {
background-color: black;
color: #EBEBEB !important;
}
a:not(.btn) {
color: #63a7e1;
}
.btn {
box-shadow: 1px 1px 1px rgba(255, 255, 255, .1) !important;
}
.btn:not(.btn-danger),
.btn-default,
input,
select,
textarea,
.advanced-button,
.list-group-item {
border-color: #252525 !important;
}
#addFeed,
#addFeedContent,
.section {
border-bottom: 1px solid #555555;
}
.col2 p,
.col2-cats {
color: #AAA;
}
.col2 h3 {
background: none repeat scroll 0 0 #555555;
}
.catTable,
.dropdown-menu,
.dropdown-menu .divider,
.even,
.Key tr:nth-child(odd),
.language:hover,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:focus,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>li>a.active,
.navbar-default .navbar-nav>li>a:hover,
.navbar-logo:hover,
.quoteBlock,
.selected,
.server-disabled,
#serverResponse,
.table>tbody>tr:nth-child(odd),
.table-striped>tbody>tr:nth-child(odd),
ul.tabs li.active a,
select[disabled],
select:hover {
background-color: #444444 !important;
color: #EBEBEB !important;
}
.correct {
border: 2px solid #00cc22 !important;
}
.failed,
.required-star,
.error-text {
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;
}
.Categories form.sorting-row:nth-child(2n-1) tr,
.advanced-button,
.advanced-buttonSeperator,
.alt,
.infoTableSeperator.alt,
.btn:not(.btn-danger),
.btn-default.disabled:active,
.btn-default.disabled:focus,
.btn-default.disabled:hover,
a.btn.btn-default,
select.form-control,
.form-control[disabled],
.input-group-addon,
#inner,
.navbar-default,
.search-box input,
.select,
.table-striped>tbody>tr:nth-child(even),
.table>tbody>tr:nth-child(even),
.tab-pane tr:nth-child(odd),
textarea,
ul.tabs a.active,
a.list-group-item,
.dropdown-menu>li>a,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="password"],
input[disabled],
textarea,
select {
background-color: #555555;
color: #EBEBEB;
}
.btn:hover:not(.btn-danger),
.btn-default:hover,
.tab-content .catTable tr:hover td,
input:hover,
textarea:hover,
a.list-group-item:hover,
select:hover,
textarea:hover,
input[type="date"]:hover,
input[type="datetime"]:hover,
input[type="datetime-local"]:hover,
input[type="email"]:hover,
input[type="month"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="text"]:hover,
input[type="time"]:hover,
input[type="url"]:hover,
input[type="week"]:hover,
textarea:focus,
select:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus {
background-color: #666;
color: #EBEBEB;
}
.btn-default:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
border-color: #707070 !important;
outline: initial !important;
box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3) !important;
}
.modal-backdrop {
background-color: #262626 !important;
}
.Key tr {
border: none;
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.infoTableSeperator,
.modal-footer,
.data-row {
border-top: 1px solid #555555;
}
hr {
border-top: 1px solid #555555;
}
.btn-danger {
border-color: #7b2b28;
}
.tab-content .catTable tbody,
ul.tabs a,
.colmask,
#subscriptions,
.RSS form[action="add_rss_feed"] tr:nth-child(even),
.Config .table {
border: 1px solid #555555 !important;
}
.Categories form:first-of-type tr:last-of-type,
.default,
.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
background-color: #696969;
}
.activeRSS,
.activeRSS a,
.activeRSS a:visited,
.btn-default,
.checkbox label,
.feed-row td,
.help-block,
#content,
.navbar-default .navbar-nav>li>a,
.navbar-default .navbar-nav>li>a>.glyphicon,
.path,
.Servers .ct-label,
.time,
.main-restarting.in,
#search-dropdown .dropdown-header,
ul.tabs a,
a.wizard-advanced-settings,
.quoteBlock a,
a.main-helplink,
col2 h3 a,
.text-center a,
.text-center a:hover {
color: #EBEBEB;
}
.container,
#content {
background-color: unset !important;
}
#content>div.colmask>div:nth-child(3) {
border-bottom: 1px solid #555555 !important;
}
.Servers .ct-series-a .ct-line,
.Servers .ct-series-a .ct-point {
stroke: #EBEBEB;
}
#inner,
.colmask {
background-color: #303030;
}
.modal-header {
background-color: #3C3C3C;
}
.modal-content,
.modal-body,
.modal-footer {
background-color: #727272;
}
#modal_qr .modal-body {
background-color: #EBEBEB;
}
.form-signin .btn.btn-default {
color: black;
}
.rss-icon-svg {
fill: white;
}
.rss-symbol {
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 {
color: #EBEBEB !important;
}
.tooltip-inner {
background-color: #E4E4E4 !important;
color: #000 !important;
}
/* for login */
.tooltip.bottom .tooltip-arrow {
border-bottom-color: #E4E4E4 !important;
}
/* config>general - host-warning */
.tooltip.top .tooltip-arrow {
border-top-color: #E4E4E4 !important;
}
.Special .glyphicon-asterisk {
color: #E4E4E4 !important;
}

View File

@@ -7,7 +7,10 @@ body {
border-radius: 0 !important;
}
.btn, .btn:hover, .btn:active, .btn:focus {
.btn,
.btn:hover,
.btn:active,
.btn:focus {
box-shadow: 1px 1px 1px rgba(0,0,0,.1) !important;
background-color: white !important;
}
@@ -38,7 +41,7 @@ body {
}
.text-center a:hover {
color: black !important;
color: black;
}
.form-signin .alert {

View File

@@ -89,15 +89,20 @@ body {
display: block;
position: static;
float: right;
color: black !important;
color: black;
padding: 0px;
font-size: 1.2em;
}
.example {
background-color: #fefeee;
}
.presets strong {
display: inline-block;
width: 75px;
}
.presets {
margin-bottom: -6px;
max-width: 60%;
}
.presets input {
margin: 2px 0;
@@ -139,6 +144,9 @@ label.wide,
font-size: 12px;
font-style: italic;
}
.desc .btn {
font-style: normal;
}
.desc.narrow {
margin: 0 0 0 200px!important;
}
@@ -169,8 +177,8 @@ input[type="checkbox"]+.desc {
background-color: #F8F8F8;
}
.field-pair:last-child,
.no-field-pair-bg {
background-color: transparent;
.field-pair.no-field-pair-bg {
background-color: transparent !important;
}
.alt,
.infoTableSeperator.alt {
@@ -217,10 +225,38 @@ input[type='checkbox'] {
padding: 0;
margin-left: 5px;
}
textarea:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="email"]:hover, input[type="month"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="time"]:hover, input[type="url"]:hover, input[type="week"]:hover, textarea:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus {
textarea:hover,
input[type="date"]:hover,
input[type="datetime"]:hover,
input[type="datetime-local"]:hover,
input[type="email"]:hover,
input[type="month"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="text"]:hover,
input[type="time"]:hover,
input[type="url"]:hover,
input[type="week"]:hover,
textarea:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus {
background-color: #fffff0;
border: 1px solid #aaa;
}
.col1 input[type='checkbox'] {
position: absolute;
top: auto!important;
@@ -323,6 +359,49 @@ tr.separator {
margin: 5px;
}
.Sorting .explain-pattern {
border: none;
width: 100%;
}
.Sorting .pattern-table {
border:1px solid #ccc;
}
.Sorting .sorter-switch {
margin-right: 0.2em;
}
.Sorting .sorter-switch-container {
margin: 10px 0px;
height: 1.5em;
display: block;
}
.Sorting .sorter-placeholder {
position: relative;
}
.Sorting .sorter-placeholder:after {
content: "\e034";
font-family: "Glyphicons Halflings";
background: unset;
text-align: center;
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
border-radius: 15px;
border: 1px dashed #444;
}
.Sorting .glyphicon-option-vertical {
margin-top: 1.5em;
margin-right: 0.2em;
cursor: move;
}
.Sorting form:not(.sorting-row) .glyphicon-option-vertical {
visibility: hidden;
}
.Sorting .sorting-quick-setup {
padding: 1.5em 2em 3em
}
.RSS .rss-section input[type="text"] {
max-width: 180px;
}
@@ -418,6 +497,9 @@ tr.separator {
.align-center {
text-align: center;
}
.valign-top {
vertical-align: top;
}
.nowrap {
white-space: nowrap;
}
@@ -724,41 +806,6 @@ ul.tabs li.active a {
.checkbox-days label {
padding: 2px 20px;
}
.rating-filter {
float: left;
}
.rating-filter p {
margin: 0 0 10px 0;
}
.rating-filter select {
vertical-align: middle;
}
.rating-filter input {
vertical-align: middle;
margin-top: -1px;
}
.rating-filter label {
display: inline-block;
padding-left: 0px;
width: 100px;
}
.rating-filter input[type="checkbox"] {
display: inline;
}
.rating-filter input[type="checkbox"] + label {
padding-left: 20px;
padding-top: 5px;
width: auto;
}
.rating-filter p > span:first-child {
float: left;
width: 130px;
}
.rating-filter .desc {
display: block;
margin: 0px;
padding-left: 103px;
}
/** EDITS 2015 **/
* {
@@ -816,6 +863,7 @@ select {
vertical-align:middle;
max-width: 100%;
min-height: 34px;
min-width: 55px;
font-size: 13px;
background-color: white;
}
@@ -962,7 +1010,7 @@ input[type="checkbox"] {
}
*/
.navbar-default .navbar-nav>li>a {
color: black !important;
color: black;
}
.navbar-default .navbar-nav>li>a:hover,
@@ -999,6 +1047,32 @@ input[type="checkbox"] {
margin: 10px 0px;
}
.Servers .server-frame {
position: relative;
width: 220px;
height: 325px;
margin-bottom: -325px;
left: -240px;
display: none;
}
.Servers .server-frame a {
color: black !important;
text-decoration: none !important;
opacity: 0.8;
font-size: 2em;
font-family: arial, sans-serif !important;
position: absolute;
right: 5px;
top: -5px;
}
.Servers .server-frame iframe {
width: 100%;
height: 100%;
border: 0;
}
.Servers .col2 .label {
margin-top: 8px;
font-size: 0.85em;
@@ -1280,6 +1354,12 @@ html[dir="rtl"] .Scheduling form[action="addSchedule"] input[type="checkbox"] {
padding: 0px 15px 10px;
width: inherit;
}
.Sorting .glyphicon-option-vertical {
display: none;
}
.Sorting .sorter h3 {
cursor: move;
}
}
@media screen and (max-width: 768px) {

View File

@@ -109,13 +109,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;
}
@@ -157,7 +157,7 @@
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
}
@@ -166,7 +166,7 @@
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 {
$('<span class="glyphicon glyphicon-folder-open"></span> ').prependTo(link);
@@ -203,7 +203,12 @@ $.fn.extractFormDataTo = function(target) {
var selects = $("select", this);
selects.each(function (i,elem) {
target[elem.name] = elem.value;
if (elem.selectedOptions.length > 1) {
// Handle <select multiple="multiple">
target[elem.name] = Array.from(elem.selectedOptions).map(({ value }) => value).toString();
} else {
target[elem.name] = elem.value;
}
});
return this;
@@ -215,7 +220,7 @@ $.fn.extractFormDataTo = function(target) {
* (c) 2015 SABnzbd Team, Inc. All rights reserved.
*/
function config_success() {
$('.saveButton').each(function () {
$('.saveButton[disabled=disabled]').each(function () {
$(this).removeAttr("disabled").html('<span class="glyphicon glyphicon-ok"></span> '+configTranslate.saveChanges);
});
// Let us leave!
@@ -223,7 +228,7 @@ function config_success() {
formHasChanged = false;
}
function config_failure() {
$('.saveButton').each(function () {
$('.saveButton[disabled=disabled]').each(function () {
$(this).removeAttr("disabled").addClass('btn-danger').html('<span class="glyphicon glyphicon-remove"></span> '+configTranslate.failed);
});
// Can't go yet..
@@ -234,8 +239,8 @@ function do_restart() {
$('.main-restarting').show()
// What template
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'))
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?
if(!$('body').hasClass('General') || (!switchedHTTPS && portsUnchanged)) {
@@ -243,7 +248,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();
@@ -292,7 +297,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;
@@ -345,8 +350,9 @@ $(document).ready(function () {
datatype: 'json',
// But first remove Obfuscation!
beforeSerialize: removeObfuscation,
beforeSubmit: function () {
$('.saveButton').each(function () {
beforeSubmit: function (arr, form, options) {
// Only in the current form
form.find('.saveButton').each(function () {
$(this).attr("disabled", "disabled").removeClass('btn-danger').html('<span class="glyphicon glyphicon-transfer"></span> ' + configTranslate.saving);
});
},
@@ -407,7 +413,7 @@ $(document).ready(function () {
$('input[type="checkbox"]').parents('label').addClass('config-hover')
// Disable sections
var checkDisabled = '#rating_enable, #enable_tv_sorting, #enable_movie_sorting, #enable_date_sorting'
var checkDisabled = '#enable_tv_sorting, #enable_movie_sorting, #enable_date_sorting'
$(checkDisabled).on('change', function() {
$(this).parent().nextAll().toggleClass('disabled')
@@ -423,7 +429,7 @@ $(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()

View File

@@ -9,7 +9,7 @@ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE B
1. Definitions
1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("syncing") will be considered an Adaptation for the purpose of this License.
2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
@@ -44,7 +44,7 @@ The above rights may be exercised in all media and formats whether now known or
5. Representations, Warranties and Disclaimer
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

View File

@@ -1,5 +1,10 @@
<div class="history" id="history-tab" data-bind="visible: hasHistory() || displayTabbed()" style="display: none">
<h2>$T('menu-history')</h2>
<div class="history-header">
<h2>$T('menu-history')</h2>
<a href="#" data-bind="click: history.showMultiEdit">
<span class="glyphicon glyphicon-tasks" data-tooltip="true" data-placement="left" title="$T('Glitter-multiOperations')"></span>
</a>
</div>
<table class="table table-hover history-table paginated">
<thead>
<tr>
@@ -41,102 +46,11 @@
</span>
</div>
</td>
<td class="name" data-bind="css: { 'name-has-ratings' : historyStatus.has_rating }">
<td class="name">
<div class="row-wrap-text">
<a class="retry-buttontext" href="#" data-bind="visible: (failed() && canRetry()), click: retry">$T('button-retry')</a>
<span data-bind="text: historyStatus.name, attr: { 'title': historyStatus.name() }"></span>
</div>
<!-- ko if: historyStatus.has_rating -->
<div class="dropdown history-ratings">
<a href="#" class="name-icons hover-button" data-toggle="dropdown" onclick="keepOpen(this)">
<span class="glyphicon glyphicon-thumbs-up"></span> <span data-bind="text: historyStatus.rating_avg_vote_up"></span>
<span class="glyphicon glyphicon-thumbs-down"></span> <span data-bind="text: historyStatus.rating_avg_vote_down"></span>
</a>
<ul class="dropdown-menu history-ratings-menu">
<li>
<form class="history-ratings-basic">
<label>
<input type="radio" value="up" data-bind="attr: { 'name': 'ratings-status-'+nzo_id, 'checked': historyStatus.rating_user_vote() == 1 }, event: { change: setUserVote }" />
<span class="glyphicon glyphicon-thumbs-up"></span>
<span data-bind="text: historyStatus.rating_avg_vote_up"></span>
</label>
<label>
<input type="radio" value="down" data-bind="attr: { 'name': 'ratings-status-'+nzo_id, 'checked': historyStatus.rating_user_vote() == 2 }, event: { change: setUserVote }" />
<span class="glyphicon glyphicon-thumbs-down"></span>
<span data-bind="text: historyStatus.rating_avg_vote_down"></span>
</label>
<label>
<span class="glyphicon glyphicon-facetime-video"></span>
<select name="ratings-video" data-bind="value: historyStatus.rating_user_video, event: { change: setUserRating }, disable: historyStatus.rating_user_video">
<option value="">&nbsp;</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</label>
<label>
<span class="glyphicon glyphicon-volume-up"></span>
<select name="ratings-audio" data-bind="value: historyStatus.rating_user_audio, event: { change: setUserRating }, disable: historyStatus.rating_user_audio">
<option value="">&nbsp;</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</label>
<!-- ko if: historyStatus.url_info -->
<a href="#" target="_blank" data-bind="attr: { 'href':historyStatus.url_info }" title="$T('Glitter-openInfoURL')"><span class="glyphicon glyphicon-globe"></span></a>
<!-- /ko -->
</form>
</li>
<li class="divider"></li>
<li>
<form class="history-ratings-report" data-bind="submit: setUserReport">
<strong>$T('report')</strong>
<br />
<label>
<input type="radio" name="rating_flag" value="spam" /> $T('spam')
</label>
<br />
<label>
<input type="radio" name="rating_flag" value="encrypted" /> $T('encrypted')
</label>
<br />
<label>
<input type="radio" name="rating_flag" value="expired" /> $T('expired')
<select name="ratings-report-expired-server" class="ratings-report-hidden form-control" data-bind="options: \$parent.servers, optionsText: 'host', optionsValue: 'host', optionsCaption: '$T('nzo-all')'"></select>
</label>
<br />
<label>
<input type="radio" name="rating_flag" value="other" /> $T('otherProblem')
<input type="text" class="form-control ratings-report-hidden" name="ratings-report-other" />
</label>
<br />
<label>
<input type="radio" name="rating_flag" value="comment" /> $T('comment')
<input type="text" class="form-control ratings-report-hidden" name="ratings-report-comment" />
</label>
<br />
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> $T('send')</button>
</form>
</li>
</ul>
</div>
<!-- /ko -->
</td>
<td class="status row-wrap-text" data-bind="text: statusText()" onclick="showDetails(this)"></td>
<!-- ko foreach: parent.parent.extraHistoryColumns -->
@@ -146,7 +60,10 @@
<!-- /ko -->
<td class="history-completedon row-wrap-text" data-bind="text: completedOn(), attr: { 'data-timestamp': completed }" onclick="showDetails(this)"></td>
<td class="delete">
<div class="dropdown">
<label data-bind="visible: parent.isMultiEditing()">
<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">
<span class="caret"></span>
</a>
@@ -177,7 +94,7 @@
<div class="col-sm-2">$T('srv-password')</div>
<div class="col-sm-10" data-bind="text: historyStatus.password"></div>
</div>
<div class="row">
<div class="row" data-bind="visible: historyStatus.storage() || historyStatus.path()">
<div class="col-sm-2">$T('msg-path')</div>
<div class="col-sm-10" data-bind="text: historyStatus.storage() == '' ? historyStatus.path : historyStatus.storage"></div>
</div>
@@ -215,7 +132,20 @@
<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="#modal-purge-history" class="hover-button" title="$T('purgeHist')" data-toggle="modal" data-tooltip="true" data-placement="left"><span class="glyphicon glyphicon-trash"></span></a>
<div data-bind="visible: history.isMultiEditing()">
<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: history.checkAllJobs" data-tooltip="true" data-placement="top" />
</label>
</div>
<a href="#" class="hover-button" data-bind="visible: history.isMultiEditing(), click: history.doMultiDelete">
<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">
<span class="glyphicon glyphicon-trash"></span>
</a>
</div>
<div class="info-container history-info">

View File

@@ -43,7 +43,7 @@
<button type="button" class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" onclick="keepOpen(this)">
<span class="caret"></span>
</button>
<a href="#" class="max-speed-input-clear hover-button" data-bind="click: clearSpeedLimit, visible:(speedLimit() != 100)" style="display: none;">
<a href="#" class="max-speed-input-clear hover-button" data-bind="click: clearSpeedLimit, visible:(speedLimit() < 100 && speedLimit() > 0)" style="display: none;">
<span class="glyphicon glyphicon-link"></span>
</a>
<div class="dropdown-menu max-speed-input">
@@ -81,7 +81,7 @@
<li data-tooltip="true" data-placement="bottom" title="SABnzbd $T('menu-config')">
<a href="./config/"><span class="glyphicon glyphicon-cog"></span></a>
</li>
<li class="dropdown main-menu-link" data-bind="css: { 'active-on-queue-finish-menu': onQueueFinish()}">
<li class="dropdown main-menu-link" data-bind="css: { 'active-on-queue-finish-menu': finishaction()}">
<a href="#" data-toggle="dropdown" onclick="keepOpen(this)">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@@ -102,23 +102,14 @@
<li class="divider"></li>
<li class="dropdown-header"><span class="glyphicon glyphicon-off"></span> $T('Glitter-onFinish'):</li>
<li>
<select data-bind="value: onQueueFinish, event: { change: setOnQueueFinish }" class="form-control">
<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 != glitterTranslate.noneText -->
<option data-bind="text: \$data, attr: { value: 'script_'+\$data } " ></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>
</li>
</ul>

View File

@@ -1,6 +1,6 @@
<!--#from sabnzbd.constants import VALID_ARCHIVES, VALID_NZB_FILES#-->
<!--#set $file_exts = ', '.join(VALID_NZB_FILES + VALID_ARCHIVES)#-->
<!-- Notifcation box -->
<!-- Notification box -->
<div class="main-notification-box" style="display: none">
<div class="main-notification-box-uploading">
<span class="glyphicon glyphicon-open"></span> $T('Glitter-notification-uploading') <span class="main-notification-box-file-count"></span>
@@ -85,6 +85,11 @@
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="options-status">
<div class="row" data-bind="visible: statusInfo.active_socks5_proxy">
<div class="col-sm-6">$T('opt-socks5_proxy_url') &nbsp </div>
<div class="col-sm-6" data-bind="visible: hasStatusInfo, text: statusInfo.active_socks5_proxy"></div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasStatusInfo()">$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('dashboard-localIP4') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasStatusInfo, text: !statusInfo.localipv4() ? '$T('dashboard-connectionError')' : statusInfo.localipv4(), css: { 'options-bad-status' : !statusInfo.localipv4() }"></div>
@@ -102,7 +107,7 @@
</div>
<div class="row">
<div class="col-sm-6">$T('dashboard-NameserverDNS') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasStatusInfo, text: !statusInfo.dnslookup() ? '$T('dashboard-connectionError')' : statusInfo.dnslookup(), css: { 'options-bad-status' : (statusInfo.dnslookup() != 'OK') }"></div>
<div class="col-sm-6" data-bind="visible: hasStatusInfo, text: !statusInfo.dnslookup() ? '$T('dashboard-connectionError')' : 'OK', css: { 'options-bad-status' : !statusInfo.dnslookup() }"></div>
<div class="col-sm-6 col-loading" data-bind="visible: !hasStatusInfo()">$T('Glitter-loading')<span class="loader-dot-one">.</span><span class="loader-dot-two">.</span><span class="loader-dot-three">.</span></div>
</div>
<hr/>
@@ -112,30 +117,43 @@
<span data-bind="text: cacheSize"></span> (<span data-bind="text: cacheArticles"></span> $T('Glitter-articles'))
</div>
</div>
<div class="row" data-bind="visible: statusInfo.loadavg()">
<div class="col-sm-6">$T('dashboard-loadavg') &nbsp; </div>
<div class="col-sm-6">
<span data-bind="text: statusInfo.loadavg"></span>
</div>
</div>
<div class="row" data-bind="visible: statusInfo.delayed_assembler() > 5">
<div class="col-sm-6">$T('dashboard-delayed') &nbsp; </div>
<div class="col-sm-6">
<span data-bind="visible: statusInfo.delayed_assembler() > 5">$T('dashboard-delayed-disk')</span>
<small data-bind="visible: statusInfo.delayed_assembler() > 5">(<span data-bind="text: statusInfo.delayed_assembler"></span>x)</small>
</div>
</div>
<div class="row">
<div class="col-sm-6">$T('dashboard-systemPerformance') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasPerformanceInfo">
<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>
<small data-bind="truncatedText: statusInfo.cpumodel, length: 25, attr: { 'data-original-title': statusInfo.cpumodel }" data-tooltip="true"></small>
<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>
</div>
<div class="row">
<div class="col-sm-6">$T('dashboard-downloadDirSpeed') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasPerformanceInfo">
<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>
<small>(<span data-bind="truncatedText: statusInfo.downloaddir, length: 24, attr: { 'data-original-title': statusInfo.downloaddir }" data-tooltip="true"></span>)</small>
<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>
</div>
<div class="row">
<div class="col-sm-6">$T('dashboard-completeDirSpeed') &nbsp; </div>
<div class="col-sm-6" data-bind="visible: hasPerformanceInfo">
<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>
<small>(<span data-bind="truncatedText: statusInfo.completedir, length: 24, attr: { 'data-original-title': statusInfo.completedir }" data-tooltip="true"></span>)</small>
<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>
</div>
@@ -144,7 +162,7 @@
<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>
<small>(<span data-bind="text: statusInfo.internetbandwidth()*8"></span> Mbps)</small>
<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>
@@ -154,7 +172,6 @@
<a href="#" class="btn btn-default" data-bind="click: testDownload" data-size="100MB" data-tooltip="true" data-placement="top" title="$T('dashboard-testDownload-explain')"><span class="glyphicon glyphicon-download-alt"></span> 100 MB</a>
<a href="#" class="btn btn-default" data-bind="click: testDownload" data-size="1000MB" data-tooltip="true" data-placement="top" title="$T('dashboard-testDownload-explain')"><span class="glyphicon glyphicon-download-alt"></span> 1 GB</a>
<a href="#" class="btn btn-default" data-bind="click: testDownload" data-size="10GB" data-tooltip="true" data-placement="top" title="$T('dashboard-testDownload-explain')"><span class="glyphicon glyphicon-download-alt"></span> 10 GB</a>
</div>
</div>
<hr />
@@ -177,7 +194,7 @@
<div class="col-sm-6">
<div class="input-group" data-tooltip="true" data-placement="top" title="$T('logging')">
<span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
<select class="form-control" data-bind="value: statusInfo.loglevel">
<select class="form-control" data-bind="value: loglevel">
<option value="0">$T('log-errWarn')</option>
<option value="1">$T('log-info')</option>
<option value="2">$T('log-debug')</option>
@@ -208,15 +225,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">
@@ -232,11 +254,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>
@@ -348,7 +370,6 @@
</select>
</div>
</div>
<div class="options-switch"></div>
<div class="form-group">
<label class="col-sm-6 control-label">$T('Glitter-dateFormat')</label>
<div class="col-sm-4">
@@ -435,6 +456,16 @@
<input type="checkbox" name="confirmDeleteHistory" value="true" data-bind="checked: confirmDeleteHistory" />
</div>
</div>
<div class="form-group form-checkbox">
<label class="col-sm-6 control-label">
$T("Glitter-keyboardShortcuts")
<span class="glyphicon glyphicon-question-sign" data-tooltip="true" data-placement="top" data-html="true"
data-original-title="P: $T('link-pause')<br>A: $T('Glitter-addNZB')<br>S: $T('Glitter-statusInterfaceOptions')<br>C: $T('menu-config')<br>$T('Glitter-keyboardShortcuts-arrows')"></span>
</label>
<div class="col-sm-4">
<input type="checkbox" name="keyboardShortcuts" value="true" data-bind="checked: keyboardShortcuts" />
</div>
</div>
</form>
</div>
</div>
@@ -497,14 +528,22 @@
<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'"></select>
<span class="glyphicon glyphicon-tag"></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">$T('priority')</label>
<div class="col-sm-6">
<select name="Priority" class="form-control" data-bind="options: queue.priorityOptions, optionsValue: 'value', optionsText: 'name', optionsCaption: '$T('default')'"></select>
<!-- This list is different from the one during download! -->
<select name="Priority" class="form-control">
<option value="-100">$T('default')</option>
<option value="2">$T('pr-force')</option>
<option value="1">$T('pr-high')</option>
<option value="0">$T('pr-normal')</option>
<option value="-1">$T('pr-low')</option>
<option value="-2" >$T('pr-paused')</option>
</select>
<span class="glyphicon glyphicon-sort-by-attributes-alt"></span>
</div>
</div>
@@ -518,7 +557,7 @@
<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')', enable: (queue.scriptsList().length > 1)"></select>
<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>
<span class="glyphicon glyphicon-flash"></span>
</div>
</div>
@@ -679,7 +718,7 @@
</tbody>
</table>
<hr/>
<p><small>Copyright (C) 2007-2021 The SABnzbd Team &lt;team@sabnzbd.org&gt;<br/>$T('yourRights') </small></p>
<p><small>Copyright (C) 2007-2021 The SABnzbd-Team (<a href="https://sabnzbd.org/" target="_blank">sabnzbd.org</a>)<br/>$T('yourRights') </small></p>
</div>
</div>
</div>

View File

@@ -9,12 +9,6 @@
</a>
</div>
<!-- /ko -->
<!--#if $loadavg#-->
<div class="info-container-box" title="$T('ft-sysload') - $T('menu-config') &#10140; $T('cmenu-special') &#10140; show_sysload">
<span class="glyphicon glyphicon-record"></span>
<span data-bind="text: systemLoad"></span>
</div>
<!--#end if#-->
<!-- ko if: (queueDataLeft() != '') -->
<div class="info-container-box">
<span class="glyphicon glyphicon-save"></span>
@@ -52,6 +46,7 @@
<span class="glyphicon glyphicon-tasks" data-tooltip="true" data-placement="left" title="$T('Glitter-multiOperations')"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#" data-action="sortRemainingAsc" data-bind="click: queue.queueSorting">$T('Glitter-sortRemaining')</a></li>
<li><a href="#" data-action="sortAgeAsc" data-bind="click: queue.queueSorting">$T('Glitter-sortAgeAsc')</a></li>
<li><a href="#" data-action="sortAgeDesc" data-bind="click: queue.queueSorting">$T('Glitter-sortAgeDesc')</a></li>
<li><a href="#" data-action="sortNameAsc" data-bind="click: queue.queueSorting">$T('Glitter-sortNameAsc')</a></li>
@@ -162,7 +157,7 @@
</li>
<li title="$T('eoq-scripts')" data-tooltip="true" data-placement="left">
<span class="glyphicon glyphicon-flash"></span>
<select name="Post-processing" class="form-control" data-bind="options: parent.scriptsList, value: script, event: { change: changeScript }, enable: (parent.scriptsList().length > 1)"></select>
<select name="Post-processing" class="form-control" data-bind="options: parent.scriptsList, value: script, optionsValue: 'scriptValue', optionsText: 'scriptText', event: { change: changeScript }, enable: (parent.scriptsList().length > 1)"></select>
</li>
</ul>
<!-- /ko -->
@@ -176,8 +171,8 @@
<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">
<input type="checkbox" name="multieditCheckAll" id="multiedit-checkall" title="$T('Glitter-checkAll')" data-bind="click: queue.checkAllJobs" data-tooltip="true" data-placement="top" />
<label for="multiedit-checkall-queue">
<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: queue.doMultiDelete">
<span class="glyphicon glyphicon-trash"></span>
@@ -209,7 +204,7 @@
</div>
<div class="add-nzb-inputbox" data-tooltip="true" data-placement="top" title="$T('eoq-scripts')">
<span class="glyphicon glyphicon-flash"></span>
<select name="Post-processing" class="form-control" data-bind="options: queue.scriptsList, optionsCaption: '', event: { change: queue.doMultiEditUpdate }"></select>
<select name="Post-processing" class="form-control" data-bind="options: queue.scriptsList, optionsValue: 'scriptValue', optionsText: 'scriptText', optionsCaption: '', event: { change: queue.doMultiEditUpdate }"></select>
</div>
<div class="clearfix"></div>
</form>

View File

@@ -65,17 +65,9 @@
glitterTranslate.renameAbort = "$T('Glitter-confirmAbortDirectUnpack')\n$T('confirm')";
glitterTranslate.retryAll = "$T('link-retryAll')?";
glitterTranslate.fetch = "$T('Glitter-fetch')";
glitterTranslate.encrypted = "$T('Glitter-encrypted')";
glitterTranslate.duplicate = "$T('Glitter-duplicate')";
glitterTranslate.tooLarge = "$T('Glitter-tooLarge')";
glitterTranslate.unwanted = "$T('Glitter-unwanted')";
glitterTranslate.incomplete = "$T('Glitter-incomplete')";
glitterTranslate.filtered = "$T('Glitter-filtered')";
glitterTranslate.waitSec = "$T('Glitter-waitSec')";
glitterTranslate.checking = "$T('post-Checking')";
glitterTranslate.misingArt = "$T('missingArt')";
glitterTranslate.noSelect = "$T('Glitter-noSelect')";
glitterTranslate.sendThanks = "$T('Glitter-sendThanks')";
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")";
@@ -103,6 +95,7 @@
glitterTranslate.status['Repair'] = "$T('stage-repair')";
glitterTranslate.status['Filejoin'] = "$T('stage-filejoin')";
glitterTranslate.status['Unpack'] = "$T('stage-unpack')";
glitterTranslate.status['Deobfuscate'] = "$T('stage-deobfuscate')";
glitterTranslate.status['Script'] = "$T('stage-script')";
glitterTranslate.status['Source'] = "$T('stage-source')";
glitterTranslate.status['Servers'] = "$T('stage-servers')";
@@ -124,14 +117,16 @@
glitterTranslate.priority['Stop'] = "$T('pr-stop')";
</script>
<!-- Inclusion is faster than external scripts. We load momentJS locale seperatly so failure won't break anything -->
<!-- Inclusion is faster than external scripts. We load momentJS locale separately so failure won't break anything -->
<script type="text/javascript">
<!--#include raw $webdir + "/static/javascripts/jquery-3.5.1.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/jquery-ui.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/jquery.peity.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/jquery.hotkeys.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/moment-2.26.0.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/knockout-3.5.1.min.js"#-->
<!--#include raw $webdir + "/static/javascripts/knockout-extensions.js"#-->
<!--#include raw $webdir + "/static/javascripts/search-query-parser.js"#-->
<!--#include raw $webdir + "/static/bootstrap/js/bootstrap.min.js"#-->
<!--#include $webdir + "/static/javascripts/glitter.js"#-->
</script>
@@ -151,10 +146,10 @@
<a href="#queue-tab" data-toggle="tab">$T('menu-queue') <span class="badge" data-bind="text: queue.totalItems"></span></a>
</li>
<li>
<a href="#history-tab" data-toggle="tab">$T('menu-history')<span class="badge" data-bind="text: history.totalItems"></span></a>
<a href="#history-tab" data-toggle="tab">$T('menu-history') <span class="badge badge-info" data-bind="text: history.ppItems, visible: history.ppItems"></span><span class="badge" data-bind="text: history.totalItems"></span></a>
</li>
<li>
<a href="#queue-messages" data-toggle="tab">$T('warnings')<span class="badge" data-bind="text: hasMessages, css: { 'badge-warning': hasMessages() }"></span></a>
<a href="#queue-messages" data-toggle="tab">$T('warnings') <span class="badge" data-bind="text: hasMessages, css: { 'badge-warning': hasMessages() }"></span></a>
</li>
</ul>
</div>

View File

@@ -24,7 +24,7 @@ if(isMobile) {
}
// Basic API-call
function callAPI(data) {
function callAPI(data, timeout = 10000) {
// Fill basis var's
data.output = "json";
data.apikey = apiKey;
@@ -33,24 +33,7 @@ function callAPI(data) {
type: "GET",
cache: false,
data: data,
timeout: 10000 // Wait a little longer on mobile connections
});
return $.when(ajaxQuery);
}
// Special API call
function callSpecialAPI(url, data) {
// Did we get input?
if(data == undefined) data = {};
// Fill basis var's
data.output = "json";
data.apikey = apiKey;
var ajaxQuery = $.ajax({
url: url,
type: "GET",
cache: false,
data: data
timeout: timeout
});
return $.when(ajaxQuery);
@@ -75,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
@@ -88,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)
@@ -172,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);
@@ -294,7 +294,7 @@ function paginationModel(parent) {
self.nrPages(1)
self.currentStart(0);
// Are we on next page?
// Are we on next page? Bad!
if(self.currentPage() > 1) {
// Force full update
parent.parent.refresh(true);
@@ -302,9 +302,6 @@ function paginationModel(parent) {
// Move to current page
self.currentPage(1);
// Force full update
parent.parent.refresh(true);
} else {
// Calculate number of pages needed
var newNrPages = Math.ceil(parent.totalItems() / parent.paginationLimit())
@@ -359,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

@@ -10,10 +10,13 @@ function HistoryListModel(parent) {
self.historyItems = ko.observableArray([])
self.showFailed = ko.observable(false).extend({ persist: 'historyShowFailed' });
self.isLoading = ko.observable(false).extend({ rateLimit: 100 });
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 200, method: "notifyWhenChangesStop" } });
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 400, method: "notifyWhenChangesStop" } });
self.paginationLimit = ko.observable(10).extend({ persist: 'historyPaginationLimit' });
self.totalItems = ko.observable(0);
self.ppItems = ko.observable(0);
self.pagination = new paginationModel(self);
self.isMultiEditing = ko.observable(false).extend({ persist: 'historyIsMultiEditing' });
self.multiEditItems = ko.observableArray([]);
// Download history info
self.downloadedToday = ko.observable();
@@ -40,7 +43,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
@@ -56,7 +59,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 = [];
@@ -65,7 +68,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;
}));
});
}
@@ -79,7 +82,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.nzo_id; })
self.parent.queue.multiEditItems.remove(function(inList) { return inList.id === currentItem.id; })
})
}
}
@@ -93,6 +96,7 @@ function HistoryListModel(parent) {
History information
***/
self.totalItems(data.noofslots);
self.ppItems(data.ppslots)
self.downloadedToday(data.day_size);
self.downloadedWeek(data.week_size);
self.downloadedMonth(data.month_size);
@@ -110,6 +114,8 @@ function HistoryListModel(parent) {
value: newValue
})
}
// Update pagination and counters
self.parent.refresh(true)
});
// Retry a job
@@ -139,28 +145,28 @@ function HistoryListModel(parent) {
form.reset()
}
// Searching in history (rate-limited in decleration)
// Searching in history (rate-limited in declaration)
self.searchTerm.subscribe(function() {
// Make sure we refresh
self.lastUpdate = 0
self.parent.refresh();
// Go back to page 1
if(self.pagination.currentPage() != 1) {
if(self.pagination.currentPage() !== 1) {
// This forces a refresh
self.pagination.moveToPage(1);
} else {
// Make sure we refresh
self.parent.refresh(true);
}
})
// 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('');
self.parent.refresh()
}
// 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;
}
@@ -203,28 +209,28 @@ function HistoryListModel(parent) {
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) {
// Only append when it's a download that can be deleted
if(!this.processingDownload() && !this.processingWaiting()) {
strIDs = strIDs + this.nzo_id + ',';
strIDs = strIDs + this.id + ',';
}
})
// Send the command
@@ -253,6 +259,124 @@ function HistoryListModel(parent) {
$("#modal-purge-history").modal('hide');
});
};
// Show the input checkbox
self.showMultiEdit = function() {
self.isMultiEditing(!self.isMultiEditing())
self.multiEditItems.removeAll();
$('.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;
}
// Delete all selected
self.doMultiDelete = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
// Need confirm
if(!self.parent.confirmDeleteHistory() || confirm(glitterTranslate.removeDown)) {
// List all the ID's
var strIDs = '';
$.each(self.multiEditItems(), function(index) {
strIDs = strIDs + this.id + ',';
})
// Show notification
showNotification('.main-notification-box-removing-multiple', 0, self.multiEditItems().length)
// Remove
callAPI({
mode: 'history',
name: 'delete',
del_files: 1,
value: strIDs
}).then(function(response) {
if(response.status) {
// Make sure the queue doesnt flicker and then fade-out
// Make sure no flickering (if there are more items left) and then remove
self.isLoading(self.totalItems() > 1)
self.parent.refresh();
// Empty it
self.multiEditItems.removeAll();
// Hide notification
hideNotification()
}
})
}
}
// 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")
}
/**
@@ -266,7 +390,7 @@ function HistoryModel(parent, data) {
// If we update the full set every time it uses lot of CPU
// The Status/Actionline/scriptline/completed we do update every time
// When clicked on the more-info button we load the rest again
self.nzo_id = data.nzo_id;
self.id = data.nzo_id;
self.index = data.index;
self.updateAllHistory = false;
self.hasDropdown = ko.observable(false);
@@ -303,14 +427,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
@@ -344,7 +468,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]
@@ -353,7 +477,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':
@@ -375,7 +499,7 @@ function HistoryModel(parent, data) {
// Re-try button
self.retry = function() {
// Set JOB-id
$('#modal-retry-job input[name="retry_job_id"]').val(self.nzo_id)
$('#modal-retry-job input[name="retry_job_id"]').val(self.id)
// Set password
$('#retry_job_password').val(self.historyStatus.password())
// Open modal
@@ -424,10 +548,10 @@ function HistoryModel(parent, data) {
// 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) {
if(item.processingDownload() === 2) {
callAPI({
mode: 'cancel_pp',
value: self.nzo_id
value: self.id
})
// All we can do is wait
} else {
@@ -436,12 +560,13 @@ function HistoryModel(parent, data) {
mode: 'history',
name: 'delete',
del_files: 1,
value: self.nzo_id
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.multiEditItems.remove(function(inList) { return inList.id === self.id; })
self.parent.parent.refresh();
}
});
@@ -449,103 +574,4 @@ function HistoryModel(parent, data) {
}
};
// User voting
self.setUserVote = function(item, event) {
// Send vote
callAPI({
mode: 'queue',
name: 'rating',
type: 'vote',
setting: $(event.target).val(),
value: self.nzo_id
}).then(function(response) {
// Update all info
self.updateAllHistory = true;
self.parent.parent.refresh(true)
})
}
// User rating
self.setUserRating = function(item, event) {
// Audio or video
var changeWhat = 'audio';
if($(event.target).attr('name') == 'ratings-video') {
changeWhat = 'video';
}
// Only on user-event, not the auto-fired ones
if(!event.originalEvent) return;
// Send vote
callAPI({
mode: 'queue',
name: 'rating',
type: changeWhat,
setting: $(event.target).val(),
value: self.nzo_id
}).then(function(response) {
// Update all info
self.updateAllHistory = true;
self.parent.parent.refresh(true)
})
}
// User comment
self.setUserReport = function(form) {
// What are we reporting?
var userReport = $(form).find('input[name="rating_flag"]:checked').val();
var userDetail = '';
// Anything selected?
if(!userReport) {
alert(glitterTranslate.noSelect)
return;
}
// Extra info?
if(userReport == 'comment') userDetail = $(form).find('input[name="ratings-report-comment"]').val();
if(userReport == 'other') userDetail = $(form).find('input[name="ratings-report-other"]').val();
// Exception for servers
if(userReport == 'expired') {
// Which server?
userDetail = $(form).find('select[name="ratings-report-expired-server"]').val();
// All?
if(userDetail == "") {
// Loop over all servers
$.each(parent.parent.servers, function(index, server) {
// Set timeout because simultanious requests don't work (yet)
setTimeout(function() {
submitUserReport(server.name)
}, index * 1500)
})
} else {
// Just the one server
submitUserReport(userDetail)
}
} else {
submitUserReport(userDetail)
}
// After all, close it
form.reset();
$(form).parent().parent().dropdown('toggle');
alert(glitterTranslate.sendThanks)
function submitUserReport(theDetail) {
// Send note
callAPI({
mode: 'queue',
name: 'rating',
type: 'flag',
setting: userReport,
detail: theDetail,
value: self.nzo_id
})
}
return false
}
}

View File

File diff suppressed because it is too large Load Diff

View File

@@ -6,8 +6,6 @@ function QueueListModel(parent) {
var self = this;
self.parent = parent;
self.dragging = false;
self.rawCatList = [];
self.rawScriptList = [];
// Because SABNZB returns the name
// But when you want to set Priority you need the number..
@@ -39,7 +37,7 @@ function QueueListModel(parent) {
self.multiEditItems = ko.observableArray([]);
self.categoriesList = ko.observableArray([]);
self.scriptsList = ko.observableArray([]);
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 200, method: "notifyWhenChangesStop" } });
self.searchTerm = ko.observable('').extend({ rateLimit: { timeout: 400, method: "notifyWhenChangesStop" } });
self.paginationLimit = ko.observable(20).extend({ persist: 'queuePaginationLimit' });
self.pagination = new paginationModel(self);
@@ -66,31 +64,6 @@ function QueueListModel(parent) {
return i.id;
});
// Did the category-list change?
// Otherwise KO will send updates to all <select> for every refresh()
if(self.rawCatList != data.categories.toString()) {
// Reformat categories
self.categoriesList($.map(data.categories, function(cat) {
// Default?
if(cat == '*') return { catValue: '*', catText: glitterTranslate.defaultText };
return { catValue: cat, catText: cat };
}))
// Update
self.rawCatList = data.categories.toString();
}
// Did the script-list change?
if(self.rawScriptList != data.scripts.toString()) {
// Reformat script-list
self.scriptsList($.map(data.scripts, function(script) {
// Default?
if(script == 'None') return glitterTranslate.noneText;
return script;
}))
// Update
self.rawScriptList = data.scripts.toString();
}
// Set limit
self.totalItems(data.noofslots);
@@ -101,7 +74,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) {
@@ -114,7 +87,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 = [];
@@ -123,7 +96,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;
}));
});
}
@@ -185,6 +158,8 @@ function QueueListModel(parent) {
value: newValue
})
}
// Update pagination and counters
self.parent.refresh(true)
});
// Do we show search box. So it doesn't dissapear when nothing is found
@@ -194,24 +169,25 @@ function QueueListModel(parent) {
// Searching in queue (rate-limited in decleration)
self.searchTerm.subscribe(function() {
// Refresh now
self.parent.refresh();
// Go back to page 1
if(self.pagination.currentPage() != 1) {
if(self.pagination.currentPage() !== 1) {
// This forces a refresh
self.pagination.moveToPage(1);
} else {
// Refresh now
self.parent.refresh();
}
})
// 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('');
self.parent.refresh()
}
// 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;
}
@@ -226,6 +202,10 @@ function QueueListModel(parent) {
// What action?
var sort, dir;
switch($(event.currentTarget).data('action')) {
case 'sortRemainingAsc':
sort = 'remaining';
dir = 'asc';
break;
case 'sortAgeAsc':
sort = 'avg_age';
dir = 'desc';
@@ -274,7 +254,7 @@ function QueueListModel(parent) {
// Reset form and remove all checked ones
$form[0].reset();
self.multiEditItems.removeAll();
$('.delete input[name="multiedit"], #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())) {
@@ -304,7 +284,7 @@ function QueueListModel(parent) {
}
// Update check-all buton state
setCheckAllState('#multiedit-checkall', '.queue-table input[name="multiedit"]')
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
return true;
}
@@ -315,7 +295,7 @@ function QueueListModel(parent) {
// 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-table input[name="multiedit"]')
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)
@@ -347,7 +327,7 @@ function QueueListModel(parent) {
self.doMultiEditUpdate()
}
// Set state of all the check-all's
setCheckAllState('#multiedit-checkall', '.queue-table input[name="multiedit"]')
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
return true;
}
@@ -364,57 +344,64 @@ function QueueListModel(parent) {
var newStatus = $('.multioperations-selector input[name="multiedit-status"]:checked').val()
// List all the ID's
var strIDs = '';
var strIDs = '';
$.each(self.multiEditItems(), function(index) {
strIDs = strIDs + this.id + ',';
})
// All non-category updates need to only happen after a category update
function nonCatUpdates() {
if(newScript !== '') {
callAPI({
mode: 'change_script',
value: strIDs,
value2: newScript
})
}
if(newPrior !== '') {
callAPI({
mode: 'queue',
name: 'priority',
value: strIDs,
value2: newPrior
})
}
if(newProc !== '') {
callAPI({
mode: 'change_opts',
value: strIDs,
value2: newProc
})
}
if(newStatus) {
callAPI({
mode: 'queue',
name: newStatus,
value: strIDs
})
}
// Wat a little and do the refresh
// Only if anything changed!
if(newStatus || newProc !== '' || newPrior !== '' || newScript !== '' || newCat !== '') {
setTimeout(parent.refresh, 100)
}
}
// What is changed?
if(newCat != '') {
if(newCat !== '') {
callAPI({
mode: 'change_cat',
value: strIDs,
value2: newCat
})
}
if(newScript != '') {
callAPI({
mode: 'change_script',
value: strIDs,
value2: newScript
})
}
if(newPrior != '') {
callAPI({
mode: 'queue',
name: 'priority',
value: strIDs,
value2: newPrior
})
}
if(newProc != '') {
callAPI({
mode: 'change_opts',
value: strIDs,
value2: newProc
})
}
if(newStatus) {
callAPI({
mode: 'queue',
name: newStatus,
value: strIDs
})
}).then(nonCatUpdates)
} else {
nonCatUpdates()
}
// Wat a little and do the refresh
// Only if anything changed!
if(newStatus || newProc != '' || newPrior != '' || newScript != '' || newCat != '') {
setTimeout(parent.refresh, 100)
}
}
// Selete all selected
// Delete all selected
self.doMultiDelete = function() {
// Anything selected?
if(self.multiEditItems().length < 1) return;
@@ -459,7 +446,7 @@ function QueueListModel(parent) {
})
// Update check-all buton state
setCheckAllState('#multiedit-checkall', '.queue-table input[name="multiedit"]')
setCheckAllState('#multiedit-checkall-queue', '.queue-table input[name="multiedit"]')
}, 100)
}, null, "arrayChange")
}
@@ -479,8 +466,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))
@@ -491,7 +478,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
@@ -502,7 +489,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%)
@@ -510,7 +497,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
@@ -519,6 +506,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";
})
@@ -531,23 +521,22 @@ function QueueModel(parent, data) {
return self.name()
})
self.missingText = ko.pureComputed(function() {
// Check for missing data, the value is arbitrary! (1%)
if(self.missingMB()/self.totalMB() > 0.01) {
// Check for missing data, can show 0 if article-size is smaller than 500K, but we accept that
if(self.missingMB()) {
return self.missingMB().toFixed(0) + ' MB ' + glitterTranslate.misingArt
}
return;
})
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
@@ -557,7 +546,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()) {
@@ -571,17 +560,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':
@@ -597,7 +586,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))
@@ -608,12 +597,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();
@@ -650,7 +639,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;
@@ -694,8 +683,6 @@ function QueueModel(parent, data) {
})
}
self.changeScript = function(item) {
// Not on empty handlers
if(!item.script() || parent.scriptsList().length <= 1) return;
callAPI({
mode: 'change_script',
value: item.id,
@@ -742,7 +729,7 @@ function QueueModel(parent, data) {
// 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; })
parent.multiEditItems.remove(function(inList) { return inList.id === itemToDelete.id; })
self.parent.parent.refresh();
// Hide notifcation
hideNotification()

View File

@@ -0,0 +1,12 @@
/*
* jQuery Hotkeys Plugin
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Based upon the plugin by Tzury Bar Yochay:
* https://github.com/tzuryby/jquery.hotkeys
*
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/
!function(c){function e(e){var o,f;"string"==typeof e.data&&(e.data={keys:e.data}),e.data&&e.data.keys&&"string"==typeof e.data.keys&&(o=e.handler,f=e.data.keys.toLowerCase().split(" "),e.handler=function(a){if(this===a.target||!(/textarea|select/i.test(a.target.nodeName)||c.hotkeys.options.filterTextInputs&&-1<c.inArray(a.target.type,c.hotkeys.textAcceptingInputTypes))){var s="keypress"!==a.type&&c.hotkeys.specialKeys[a.which],e=String.fromCharCode(a.which).toLowerCase(),r="",t={};c.each(["alt","ctrl","shift"],function(e,t){a[t+"Key"]&&s!==t&&(r+=t+"+")}),a.metaKey&&!a.ctrlKey&&"meta"!==s&&(r+="meta+"),a.metaKey&&"meta"!==s&&-1<r.indexOf("alt+ctrl+shift+")&&(r=r.replace("alt+ctrl+shift+","hyper+")),s?t[r+s]=!0:(t[r+e]=!0,t[r+c.hotkeys.shiftNums[e]]=!0,"shift+"===r&&(t[c.hotkeys.shiftNums[e]]=!0));for(var i=0,n=f.length;i<n;i++)if(t[f[i]])return o.apply(this,arguments)}})}c.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],options:{filterTextInputs:!0}},c.each(["keydown","keyup","keypress"],function(){c.event.special[this]={add:e}})}(jQuery||this.jQuery||window.jQuery);

View File

@@ -1,15 +1,3 @@
ko.bindingHandlers.truncatedText = {
update: function(element, valueAccessor, allBindingsAccessor) {
var value = ko.utils.unwrapObservable(valueAccessor());
if (!value) return
var length = ko.utils.unwrapObservable(allBindingsAccessor().length) || ko.bindingHandlers.truncatedText.defaultLength,
truncatedValue = value.length > length ? convertHTMLtoText(value.substring(0, Math.min(value.length, length))) + "&hellip;" : convertHTMLtoText(value);
ko.bindingHandlers.html.update(element, function() {
return truncatedValue;
});
},
defaultLength: 15
};
ko.bindingHandlers.truncatedTextCenter = {
update: function(element, valueAccessor, allBindingsAccessor) {
var value = ko.utils.unwrapObservable(valueAccessor())

View File

@@ -0,0 +1,317 @@
/*!
* search-search-query-parser.js
* Copyright(c) 2014-2019
* MIT Licensed
*
* Modified for SABnzbd use!
* Adapted to use without NPM.
*/
function search_query_parse(string, options) {
// Set a default options object when none is provided
if (!options) {
options = {offsets: true};
} else {
// If options offsets was't passed, set it to true
options.offsets = (typeof options.offsets === 'undefined' ? true : options.offsets)
}
if (!string) {
string = '';
}
// When no keywords or ranges set, treat as a simple string
else if (!options.keywords && !options.ranges && !options.tokenize) {
return string;
}
// Otherwise parse the advanced query syntax
else {
// Our object to store the query object
var query = {text: []};
// When offsets is true, create their array
if (options.offsets) {
query.offsets = [];
}
var exclusion = {};
var terms = [];
// Get a list of search terms respecting single and double quotes
var regex = /(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|\S+|\S+:\S+/g;
/*
Removed exclusion matching for SABnzbd, original regex:
var regex = /(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g;
See: https://github.com/sabnzbd/sabnzbd/issues/2342
*/
var match;
while ((match = regex.exec(string)) !== null) {
var term = match[0];
var sepIndex = term.indexOf(':');
if (sepIndex !== -1) {
var split = term.split(':'),
key = term.slice(0, sepIndex),
val = term.slice(sepIndex + 1);
// Strip surrounding quotes
val = val.replace(/^\"|\"$|^\'|\'$/g, '');
// Strip backslashes respecting escapes
val = (val + '').replace(/\\(.?)/g, function (s, n1) {
switch (n1) {
case '\\':
return '\\';
case '0':
return '\u0000';
case '':
return '';
default:
return n1;
}
});
terms.push({
keyword: key,
value: val,
offsetStart: match.index,
offsetEnd: match.index + term.length
});
} else {
var isExcludedTerm = false;
/*
Removed for SABnzbd
See: https://github.com/sabnzbd/sabnzbd/issues/2342
if (term[0] === '-') {
isExcludedTerm = true;
term = term.slice(1);
}
*/
// Strip surrounding quotes
term = term.replace(/^\"|\"$|^\'|\'$/g, '');
// Strip backslashes respecting escapes
term = (term + '').replace(/\\(.?)/g, function (s, n1) {
switch (n1) {
case '\\':
return '\\';
case '0':
return '\u0000';
case '':
return '';
default:
return n1;
}
});
if (isExcludedTerm) {
if (exclusion['text']) {
if (exclusion['text'] instanceof Array) {
exclusion['text'].push(term);
} else {
exclusion['text'] = [exclusion['text']];
exclusion['text'].push(term);
}
} else {
// First time seeing an excluded text term
exclusion['text'] = term;
}
} else {
terms.push({
text: term,
offsetStart: match.index,
offsetEnd: match.index + term.length
});
}
}
}
// Reverse to ensure proper order when pop()'ing.
terms.reverse();
// For each search term
var term;
while (term = terms.pop()) {
// When just a simple term
if (term.text) {
// We add it as pure text
query.text.push(term.text);
// When offsets is true, push a new offset
if (options.offsets) {
query.offsets.push(term);
}
}
// We got an advanced search syntax
else {
var key = term.keyword;
// Check if the key is a registered keyword
options.keywords = options.keywords || [];
var isKeyword = false;
var isExclusion = false;
if (!/^-/.test(key)) {
isKeyword = !(-1 === options.keywords.indexOf(key));
} else if (key[0] === '-') {
var _key = key.slice(1);
isKeyword = !(-1 === options.keywords.indexOf(_key))
if (isKeyword) {
key = _key;
isExclusion = true;
}
}
// Check if the key is a registered range
options.ranges = options.ranges || [];
var isRange = !(-1 === options.ranges.indexOf(key));
// When the key matches a keyword
if (isKeyword) {
// When offsets is true, push a new offset
if (options.offsets) {
query.offsets.push({
keyword: key,
value: term.value,
offsetStart: isExclusion ? term.offsetStart + 1 : term.offsetStart,
offsetEnd: term.offsetEnd
});
}
var value = term.value;
// When value is a thing
if (value.length) {
// Get an array of values when several are there
var values = value.split(',');
if (isExclusion) {
if (exclusion[key]) {
// ...many times...
if (exclusion[key] instanceof Array) {
// ...and got several values this time...
if (values.length > 1) {
// ... concatenate both arrays.
exclusion[key] = exclusion[key].concat(values);
} else {
// ... append the current single value.
exclusion[key].push(value);
}
}
// We saw that keyword only once before
else {
// Put both the current value and the new
// value in an array
exclusion[key] = [exclusion[key]];
exclusion[key].push(value);
}
}
// First time we see that keyword
else {
// ...and got several values this time...
if (values.length > 1) {
// ...add all values seen.
exclusion[key] = values;
}
// Got only a single value this time
else {
// Record its value as a string
if (options.alwaysArray) {
// ...but we always return an array if option alwaysArray is true
exclusion[key] = [value];
} else {
// Record its value as a string
exclusion[key] = value;
}
}
}
} else {
// If we already have seen that keyword...
if (query[key]) {
// ...many times...
if (query[key] instanceof Array) {
// ...and got several values this time...
if (values.length > 1) {
// ... concatenate both arrays.
query[key] = query[key].concat(values);
} else {
// ... append the current single value.
query[key].push(value);
}
}
// We saw that keyword only once before
else {
// Put both the current value and the new
// value in an array
query[key] = [query[key]];
query[key].push(value);
}
}
// First time we see that keyword
else {
// ...and got several values this time...
if (values.length > 1) {
// ...add all values seen.
query[key] = values;
}
// Got only a single value this time
else {
if (options.alwaysArray) {
// ...but we always return an array if option alwaysArray is true
query[key] = [value];
} else {
// Record its value as a string
query[key] = value;
}
}
}
}
}
}
// The key allows a range
else if (isRange) {
// When offsets is true, push a new offset
if (options.offsets) {
query.offsets.push(term);
}
var value = term.value;
// Range are separated with a dash
var rangeValues = value.split('-');
// When both end of the range are specified
// keyword:XXXX-YYYY
query[key] = {};
if (2 === rangeValues.length) {
query[key].from = rangeValues[0];
query[key].to = rangeValues[1];
}
// When pairs of ranges are specified
// keyword:XXXX-YYYY,AAAA-BBBB
else if (!rangeValues.length % 2) {
}
// When only getting a single value,
// or an odd number of values
else {
query[key].from = value;
}
} else {
// We add it as pure text
var text = term.keyword + ':' + term.value;
query.text.push(text);
// When offsets is true, push a new offset
if (options.offsets) {
query.offsets.push({
text: text,
offsetStart: term.offsetStart,
offsetEnd: term.offsetEnd
});
}
}
}
}
// Concatenate all text terms if any
if (query.text.length) {
if (!options.tokenize) {
query.text = query.text.join(' ').trim();
}
}
// Just remove the attribute text when it's empty
else {
delete query.text;
}
// Return forged query object
query.exclude = exclusion;
return query;
}
}

View File

@@ -94,7 +94,8 @@ legend,
.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover,
.nav-tabs>li>a:hover {
.nav-tabs>li>a:hover,
.nav-tabs>li>a:focus {
background-color: #ddd;
color: #555 !important;
box-shadow: 0px -1px 1px 1px rgba(0,0,0,0.15);

View File

@@ -442,7 +442,7 @@ tbody>tr>td:last-child {
.container-tabbed #queue-tab,
.container-tabbed #queue-tab,
.container-tabbed #queue-messages,
.container-tabbed .history h2,
.container-tabbed .history-header h2,
.container-tabbed .queue h2,
.history-queue-swicher {
display: none;
@@ -494,6 +494,10 @@ tbody>tr>td:last-child {
background-color: #d9534f !important;
}
.history-queue-swicher .badge-info {
background-color: #58A9FA !important;
}
.history-queue-swicher .badge {
margin-left: 4px;
}
@@ -986,8 +990,27 @@ tr.queue-item>td:first-child>a {
position: relative;
}
.history h2 {
.history-header {
clear: left;
width: 100%;
display: flex;
justify-content: space-between;
}
.history-header a {
align-self: center;
margin-right: 2px;
font-size: 12px;
}
.container-tabbed .history-header {
display: inline;
}
.container-tabbed .history-header a {
position: absolute;
right: 0;
top: 10px;
}
.history-table {
@@ -1009,10 +1032,6 @@ tr.queue-item>td:first-child>a {
font-weight: bold;
}
.history-table td.name.name-has-ratings .row-wrap-text {
max-width: calc(100% - 80px) ;
}
.history-failed-download:hover .retry-button .glyphicon:before,
.retry-button:hover .glyphicon:before {
content: " \e030 ";
@@ -1077,83 +1096,6 @@ tr.queue-item>td:first-child>a {
.history-status-hidden {
display: none;
}
.history-ratings {
display: inline-block;
}
.history-ratings.open a {
opacity: 1;
}
.history-ratings .name-icons {
float: none !important;
}
.history-ratings-menu {
width: 300px;
padding: 10px;
margin-top: 4px !important;
}
.history-ratings-menu .divider {
background-color: black;
}
.history-ratings-menu label {
margin-right: 12px;
font-weight: normal;
}
.history-ratings-basic input[type="radio"] {
display: none;
}
.history-ratings-basic input[type="radio"]+span {
opacity: 0.6;
cursor: pointer;
font-size: 1.3em;
font-weight: bold;
top: 3px;
margin-left: 3px;
}
.history-ratings-basic input[type="radio"]+span+span {
opacity: 0.3;
}
.history-ratings-basic input[type="radio"]:checked+span,
.history-ratings-basic input[type="radio"]:checked+span+span {
opacity: 1;
}
.history-ratings-basic .history-ratings-spacer {
margin-left: 10px;
}
.history-ratings-basic select {
margin-left: 3px;
background-color: transparent;
border: 1px solid #ccc;
}
.history-ratings-basic select:disabled {
background-color: #F5F5F5;
}
.history-ratings-report label {
width: 100%;
}
.history-ratings-report .ratings-report-hidden {
display: none;
}
.history-ratings-report input[type="radio"]:checked+input,
.history-ratings-report input[type="radio"]:checked+select {
display: block;
}
#history-options {
margin-top: 0;
margin-left: 10px;
@@ -1166,6 +1108,18 @@ tr.queue-item>td:first-child>a {
display: inline-block;
}
#history-options div {
display: inline-block;
margin-left: 5px;
}
#history-options input[name="multieditCheckAll"] {
vertical-align: middle;
position: relative;
top: -1px;
margin-left: 8px;
}
#history-options .hover-button span {
top: 2px;
}
@@ -1370,6 +1324,12 @@ tr.queue-item>td:first-child>a {
padding-top: 3px;
}
#modal-options .col-dot-overflow {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#modal-options #options-status .glyphicon:not(.glyphicon-comment) {
margin-right: 5px;
margin-left: 3px;
@@ -1954,10 +1914,6 @@ input[name="nzbURL"] {
#feedback-slider {
display: none;
}
.glyphicon-facetime-video {
top: 2px;
}
}
@media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:portrait) {
@@ -2036,7 +1992,6 @@ a:focus {
text-decoration: none;
}
.glyphicon-volume-up,
.glyphicon-trash {
top: 2px;
}
@@ -2105,15 +2060,6 @@ a:focus {
content: '';
}
.history-ratings-menu:after {
right: inherit !important;
left: 23px;
}
.history-ratings-menu:before {
right: inherit !important;
left: 22px;
}
.open > .dropdown-menu {
opacity: 1;
visibility: visible;

View File

@@ -180,14 +180,6 @@ tr.queue-item>td:first-child>a {
min-width: 0px;
}
.history-table .history-ratings {
display: none;
}
.name-has-ratings .row-wrap-text {
max-width: calc(100% - 1px) !important;
}
.history-table .delete .dropdown-menu {
width: 100%;
left: 0;

View File

@@ -1,5 +1,5 @@
#
# Copyright 2009 The SABnzbd-Team <team@sabnzbd.org>
# Copyright 2009 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

@@ -5,6 +5,9 @@
<title>$T('wizard-quickstart')</title>
<link rel="stylesheet" type="text/css" href="../staticcfg/bootstrap/css/bootstrap.min.css?v=$version"/>
<link rel="stylesheet" type="text/css" href="static/style.css?v=$version"/>
<!--#if $color_scheme not in ('Light', '') #-->
<link rel="stylesheet" type="text/css" href="../staticcfg/css/${color_scheme}.css?v=$version"/>
<!--#end if#-->
<link rel="shortcut icon" href="../staticcfg/ico/favicon.ico?v=$version" />
<script type="text/javascript" src="../staticcfg/js/jquery-3.5.1.min.js?v=$version"></script>
<script type="text/javascript" src="../staticcfg/bootstrap/js/bootstrap.min.js?v=$version"></script>

View File

@@ -26,12 +26,13 @@
</div>
<hr />
<div class="row">
<div class="col-xs-4 text-center">
<div class="col-md-4 text-center">
<a class="btn btn-danger" href="../shutdown/?apikey=$apikey&amp;pid=$pid"><span class="glyphicon glyphicon-remove"></span> $T('wizard-exit')</a>
</div>
<div class="col-xs-4 text-center">
<div class="col-md-4 text-center">
<a class="btn btn-default" href="../config/general/#config_backup_file"><span class="glyphicon glyphicon-open"></span> $T('restore-backup')</a>
</div>
<div class="col-xs-4 text-center">
<div class="col-md-4 text-center">
<button class="btn btn-default">$T('wizard-start') <span class="glyphicon glyphicon-chevron-right"></span></button>
</div>
</div>

View File

@@ -15,6 +15,8 @@
<br /><br />
<input type="hidden" name="server" value="$server" />
<div class="row">
<div class="col-md-7 form-horizontal">
<div class="form-group">
@@ -46,7 +48,7 @@
<div class="form-group">
<div class="col-sm-4"></div>
<div class="col-sm-8">
<a href="#" onclick="\$('#server-hidden-settings').removeClass('hidden');\$(this).parent().parent().hide()">
<a href="#" class="wizard-advanced-settings" onclick="\$('#server-hidden-settings').removeClass('hidden');\$(this).parent().parent().hide()">
<span class="glyphicon glyphicon-cog"></span> $T('button-advanced')
</a>
</div>
@@ -55,7 +57,7 @@
<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 '119' #-->" />
<input type="number" class="form-control" name="port" id="port" value="<!--#if $port then $port else '563' #-->" />
</div>
</div>
<div class="form-group">

View File

@@ -56,12 +56,12 @@ $(document).ready(function() {
$('#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')
}
}

View File

@@ -171,10 +171,10 @@ label {
* {
border-radius: 0 !important;
}
#content a,
#content a:hover,
#content a:active,
#content a:visited,
a,
a:hover,
a:active,
a:visited,
#serverResponse {
color: #555;
}

View File

@@ -32,7 +32,7 @@
</div>
<hr/>
<p>$T('wizard-tip-wiki') <a target="_blank" href="$helpuri">$T('menu-wiki')</a> <span class="glyphicon glyphicon-info-sign"></span></p>
<p>$T('wizard-tip-wiki') <a target="_blank" href="https://sabnzbd.org/wiki/">$T('menu-wiki')</a> <span class="glyphicon glyphicon-info-sign"></span></p>
</div>
<hr />

View File

@@ -1,5 +1,5 @@
Kronos.py is written by Irmen de Jong.
Retreived from:
Retrieved from:
http://www.razorvine.net/download/kronos.py
Quote from the module:

View File

@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2022-2023 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>
<description>
<p>
SABnzbd is a free and Open Source web-based binary newsreader,
with support for the popular nzb file format. It greatly simplifies
the process of downloading from Usenet, thanks to a friendly
web-based user interface and advanced built-in post-processing
options including the ability to automatically verify, repair,
extract and clean up downloaded posts. It runs anywhere, comes in
over a dozen languages, and integrates with a host of tools, apps
and services that help automate the download process.
</p>
</description>
<categories>
<category>Network</category>
<category>FileTransfer</category>
</categories>
<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="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.2.0" date="2023-11-26" type="stable"/>
<release version="4.1.0" date="2023-09-26" type="stable"/>
<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"/>
</releases>
<launchable type="desktop-id">sabnzbd.desktop</launchable>
<provides>
<mediatype>application/x-nzb</mediatype>
<mediatype>application/x-compressed-nzb</mediatype>
</provides>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
</supports>
<recommends>
<display_length compare="ge">small</display_length>
<internet>always</internet>
</recommends>
<project_license>GPL-2.0-or-later</project_license>
<developer_name>The SABnzbd-Team</developer_name>
<screenshots>
<screenshot type="default">
<image>https://sabnzbd.org/images/landing/screenshots/interface.png</image>
<caption>Web interface</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/night-mode.png</image>
<caption>Night mode</caption>
</screenshot>
<screenshot>
<image>https://sabnzbd.org/images/landing/screenshots/config.png</image>
<caption>Easy configuration</caption>
</screenshot>
</screenshots>
<content_rating type="oars-1.1"/>
</component>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-compressed-nzb">
<sub-class-of type="application/x-nzb"/>
<comment>NewzBin Usenet index (compressed)</comment>
<glob pattern="*.nzb.gz"/>
<glob pattern="*.nzb.bz2"/>
</mime-type>
</mime-info>

View File

@@ -0,0 +1,63 @@
# bash completion for sabnzbd
_sabnzbd()
{
local cur prev words cword split
# list all options here
local all_options="-f --config-file --pidfile -t --templates --pid -l --logging -w --weblogging -d --daemon -h
--help -v --version -c --clean -p --pause --repair --repair-all --no-login --log-all --console
--disable-file-log --new -b --browser --ipv6_hosting --inet_exposure --https -s --server"
_init_completion -s || return
# handle options that take arguments
case $prev in
# 0..1
--browser|--ipv6_hosting|-!(-*)[b])
COMPREPLY=( $(compgen -W '{0..1}' -- "$cur") )
return
;;
# -1..2
--logging|-!(-*)[l])
COMPREPLY=( $(compgen -W '{-1..2}' -- "$cur") )
return
;;
# 0..5
--inet_exposure)
COMPREPLY=( $(compgen -W '{0..5}' -- "$cur") )
return
;;
# directory path
--templates|--pid|-!(-*)[t])
compopt +o nospace
_filedir -d
return
;;
# file path
--config-file|--pidfile|-!(-*)[f])
compopt +o nospace
_filedir
return
;;
# port number
--https)
COMPREPLY=( $(compgen -W '{0..65535}' -- "$cur") )
return
;;
# host:port
--server|-!(-*)[s])
# suggest possible formats
COMPREPLY=( $(compgen -W 'hostname :port hostname:port ipv4 ipv4:port [ipv6] [ipv6]:port' -- "$cur") )
return
;;
esac
$split && return
if [[ "$cur" == -* ]]; then
COMPREPLY=( $(compgen -W "$all_options" -- "$cur") )
else
_filedir '@(nzb|nzb.gz|nzb.bz2|zip|rar|7z)'
fi
} &&
complete -F _sabnzbd SABnzbd.py sabnzbd sabnzbdplus

11
linux/sabnzbd.desktop Normal file
View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Name=SABnzbd
GenericName=Binary newsreader
Comment=Download from Usenet
Exec=/opt/sabnzbd/SABnzbd.py --browser 1 %F
Icon=sabnzbd
Terminal=false
Type=Application
Categories=Network;FileTransfer;
Keywords=usenet;binaries;download;nzb;nntp;newsreader;
MimeType=application/x-nzb;application/x-compressed-nzb;

View File

Binary file not shown.

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

Binary file not shown.

View File

@@ -1,17 +1,21 @@
7-Zip source code
~~~~~~~~~~~~~~~~~
7-Zip
~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip Copyright (C) 1999-2016 Igor Pavlov.
7-Zip Copyright (C) 1999-2021 Igor Pavlov.
Licenses for files are:
The licenses for 7zz file are:
1) CPP/7zip/Compress/Rar* files: GNU LGPL + unRAR restriction
2) All other files: GNU LGPL
- 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 GNU LGPL + unRAR restriction means that you must follow both
GNU LGPL rules and unRAR restriction rules.
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
@@ -27,26 +31,57 @@
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
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
unRAR restriction
-----------------
The decompression engine for RAR archives was developed using source
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.
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.
--

View File

@@ -1,10 +0,0 @@
par2SL version 1.0, Copyright (C) 2003 Peter Brian Clements.
Adapted for use with MacPar deLuxe by Gerard Putter.
This program is compatible with Mac OS X Snow Leopard or later.
It uses Grand Central Dispatch to optimize the speed and processor load.
This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.

BIN
osx/par2/arm64/par2-turbo Executable file
View File

Binary file not shown.

View File

Binary file not shown.

BIN
osx/par2/par2-turbo Executable file
View File

Binary file not shown.

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

Binary file not shown.

View File

Binary file not shown.

View File

@@ -1,11 +1,10 @@
#
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: team@sabnzbd.org\n"
"Language-Team: SABnzbd <team@sabnzbd.org>\n"

View File

@@ -1,12 +1,11 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Language-Team: Czech (https://www.transifex.com/sabnzbd/teams/111101/cs/)\n"
"Language-Team: Czech (https://app.transifex.com/sabnzbd/teams/111101/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Danish (https://www.transifex.com/sabnzbd/teams/111101/da/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: German (https://www.transifex.com/sabnzbd/teams/111101/de/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,21 +1,20 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Spanish (https://www.transifex.com/sabnzbd/teams/111101/es/)\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"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#: email/email.tmpl:1
msgid ""

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Finnish (https://www.transifex.com/sabnzbd/teams/111101/fi/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,21 +1,20 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: French (https://www.transifex.com/sabnzbd/teams/111101/fr/)\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"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#: email/email.tmpl:1
msgid ""

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# ION, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: ION, 2020\n"
"Language-Team: Hebrew (https://www.transifex.com/sabnzbd/teams/111101/he/)\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"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\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://www.transifex.com/sabnzbd/teams/111101/nb/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Dutch (https://www.transifex.com/sabnzbd/teams/111101/nl/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Polish (https://www.transifex.com/sabnzbd/teams/111101/pl/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,21 +1,20 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/sabnzbd/teams/111101/pt_BR/)\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"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#: email/email.tmpl:1
msgid ""

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Romanian (https://www.transifex.com/sabnzbd/teams/111101/ro/)\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"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -1,16 +1,15 @@
# SABnzbd Translation Template file EMAIL
# Copyright 2011-2021 The SABnzbd-Team
# team@sabnzbd.org
# Copyright 2007-2023 The SABnzbd-Team
#
# Translators:
# Safihre <safihre@sabnzbd.org>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: SABnzbd-develop\n"
"Project-Id-Version: SABnzbd-4.2.0Alpha2\n"
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
"Language-Team: Russian (https://www.transifex.com/sabnzbd/teams/111101/ru/)\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"
"Content-Transfer-Encoding: 8bit\n"

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