46 Commits

Author SHA1 Message Date
Safihre
a91e718ef5 Split nzbstuff into separate files for Article, NzbFile and NzbObject (#3221) 2025-12-09 21:21:51 +01:00
thezoggy
dd0122865a bump copyright year (#3034) 2025-02-17 14:06:12 +01:00
Safihre
ece4437c3a General changes to sanitization functions 2024-07-08 13:46:59 +02:00
Safihre
b8fd9e6e31 Introduce bool_conv and fix ambiguous JSON retry value in history queue 2024-06-09 21:01:32 +02:00
Safihre
f5efa5e93d Refactor handling of multiple comma separated values in the API 2024-02-20 16:23:33 +01:00
Safihre
e89eba08c4 Add helper function is_none 2024-01-03 15:56:09 +01:00
thezoggy
9f6a9f9912 normalize and update copyright year 2024-01-02 09:42:17 +01:00
Safihre
7cbbff727f Remove (almost) all references to unused team@sabnzbd.org 2023-07-21 11:33:51 +02: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
Safihre
b40220cb73 Only convert old-style sorters if they were enabled 2023-04-13 13:14:18 +02: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
6492cfb430 Update copyright year to 2023 2023-01-25 22:39:49 +01:00
Safihre
ac6fc37c7d Small improvements of to_units and opts_to_pp 2022-09-16 06:50:48 +02:00
Safihre
2c972995d3 UnRar on Windows escapes quotes by double quoting them 2022-05-03 09:30:14 +02:00
Safihre
d03eabe4d5 Black formatting update 2022-01-30 09:25:54 +01:00
Safihre
fd28a8b427 Escape all HTML on template-based pages 2022-01-10 12:14:05 +01:00
Safihre
4d237c4328 Add unit tests for format_time_left 2022-01-08 09:49:44 +01:00
Safihre
9c7b61070b Update copyright year to 2022 2022-01-07 09:29:32 +01:00
Safihre
dbef9af0df Add unit tests for Multipar and par2cmdline processing 2022-01-04 10:16:21 +01:00
Safihre
389a0d3afa Revert to using regex based sample detection
Closes #1964
2021-10-13 18:24:55 +02:00
jcfp
7d3907fa0e also test with (partially) exploded ipv4-mapped addresses (#1880) 2021-05-01 19:45:53 +02:00
jcfp
81a7a58299 support prefix and netmask for local_ranges (#1871)
* support prefix and netmask for local_ranges

* housekeeping
2021-04-29 08:35:46 +02:00
Safihre
faf1a44944 Black formatting update 2021-04-26 10:52:11 +02:00
jcfp
e249dbfc67 try sys.executable, but keep "python" as fallback (#1856) 2021-04-16 16:25:00 +02:00
jcfp
7096a785db fix bonjour with localhost, retire LOCALHOSTS constant (#1782)
* fix bonjour with localhost, retire LOCALHOSTS constant

* rename probablyipv[46] functions to is_ipv[46]_addr

* refuse to send ssdp description_xml to outsiders
2021-02-05 18:48:14 +01:00
Safihre
ae30f89a2d Use basic restart for Windows binaries
Python 3.9 changed the output of Py_GetArgcArgv on Windows, causing the restart of the binaries to fail.
2021-01-21 20:55:31 +01:00
Safihre
f0bfb08c2e Update copyright year to 2021 2021-01-03 20:43:19 +01:00
Safihre
9b71f8ca4b Use fully customizable date ranges for server graphs
Closes #1645
2020-11-28 21:35:03 +01:00
Safihre
ee38441779 On Windows we do need startupinfo in POpen to prevent popups
https://forums.sabnzbd.org/viewtopic.php?f=11&t=24944
2020-09-03 15:29:58 +02:00
Safihre
521e2bd7aa Rename TOP_PRIORITY to FORCE_PRIORITY
To match the front-end naming.
2020-08-29 09:12:18 +02:00
Safihre
13d44d1ed9 Correct tests for build_and_run_command 2020-08-26 08:49:21 +02:00
Safihre
d57ecd4eaa Add test for build_and_run_command 2020-08-25 15:27:27 +02:00
Safihre
7562444763 Convert functions to staticmethod if applicable 2020-08-14 22:45:34 +02:00
Safihre
b36b345ef3 Function from_units should always return float
Probably closes #1557
2020-07-20 08:39:43 +02:00
Safihre
c4aad2a4bd Always use Default-priority when creating NZB-objects
Closes #1552
2020-07-12 14:02:42 +02:00
Safihre
6d8c264e90 Update copyright year to 2020 2020-04-25 16:30:38 +02:00
Safihre
bc8f3e527a Add Python 3.8 to CI-tests 2019-11-22 15:09:30 +01:00
Safihre
27a123c688 Py3: Code-format tests-files 2019-02-26 08:20:01 +01:00
Safihre
f31e4f9d01 Rework time_format function and add tests 2019-02-24 18:15:24 +01:00
Safihre
7c45050e05 Py3: Remove dead code and fix some minor mistakes
Found by the vulture-tool
2019-02-17 20:17:06 +01:00
Safihre
917221ea3f Py3: Fix bug in split_host 2019-02-17 16:34:14 +01:00
Safihre
743e660395 Py3: Add additional misc-tests 2019-02-06 14:58:46 +01:00
Safihre
2e8ca99980 Py3: Add a whole bunch of misc-unittests 2019-02-05 11:44:09 +01:00
Safihre
638e87515a Py3: Add submitting of Config pages to basic functional test
Easy way to find crashes
2019-02-01 12:29:51 +01:00
Safihre
155fb8e5d2 Py3: Further extend testing-framework and use PyTest style 2019-01-27 13:35:33 +01:00
Safihre
c728360a3c Py3: Add basic testing support 2019-01-27 12:36:34 +01:00