mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2026-01-21 05:51:23 -05:00
Compare commits
370 Commits
4.2.2Beta1
...
4.2.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7e06dea41 | ||
|
|
ce32504a81 | ||
|
|
7cd6c94482 | ||
|
|
fcb3d01194 | ||
|
|
af0b53990c | ||
|
|
e3861954ba | ||
|
|
006dd8dc77 | ||
|
|
dbff203c62 | ||
|
|
f45eb891cd | ||
|
|
77b58240cf | ||
|
|
97ae1ff10e | ||
|
|
8734a4f24b | ||
|
|
480fce55a8 | ||
|
|
d4136fadd2 | ||
|
|
308bc375bd | ||
|
|
3bbcf6a41e | ||
|
|
3d5d10a4c1 | ||
|
|
0e979c14f0 | ||
|
|
70f49114ac | ||
|
|
f730607414 | ||
|
|
0172ee25c9 | ||
|
|
699d75bb9f | ||
|
|
95822704c8 | ||
|
|
76e5f69e67 | ||
|
|
abd31d0249 | ||
|
|
9ae7ee6e2d | ||
|
|
bf52430da8 | ||
|
|
7005b3ee86 | ||
|
|
8f2ea239c5 | ||
|
|
9ee2a8a98c | ||
|
|
6f0daf9d1b | ||
|
|
28ed424fa8 | ||
|
|
fe3e20b108 | ||
|
|
23f3b901e3 | ||
|
|
567608b3c4 | ||
|
|
4ff0f94d41 | ||
|
|
a56290489c | ||
|
|
aac4392f69 | ||
|
|
c130feefc5 | ||
|
|
474bcf5f05 | ||
|
|
cf24ada3f1 | ||
|
|
7b26bb7171 | ||
|
|
83d89ff05c | ||
|
|
18f4cc25f3 | ||
|
|
b755192600 | ||
|
|
045140cfbc | ||
|
|
4e7e44e25f | ||
|
|
5c4dfa4cc6 | ||
|
|
b7e3401e8e | ||
|
|
90cee7fb31 | ||
|
|
8e0e3cf35e | ||
|
|
7f72584537 | ||
|
|
8f0d606892 | ||
|
|
9fafe64cff | ||
|
|
94b42e0597 | ||
|
|
b2c1960d93 | ||
|
|
9d24b4cc35 | ||
|
|
3d675b033c | ||
|
|
0d2d9be8b3 | ||
|
|
6e9b6dab97 | ||
|
|
44a1717f6d | ||
|
|
4f51c74297 | ||
|
|
87c64a8c5d | ||
|
|
b6c6635f22 | ||
|
|
5a7abcb07c | ||
|
|
65232d134b | ||
|
|
d7b4bdefe5 | ||
|
|
6d9174bea1 | ||
|
|
921edfd4c5 | ||
|
|
786d5b0667 | ||
|
|
e846c71f20 | ||
|
|
0108e2ef5a | ||
|
|
9a81277ff6 | ||
|
|
06cc2ff316 | ||
|
|
7cdf4cb48c | ||
|
|
c34c547f1f | ||
|
|
9507294db7 | ||
|
|
ae7dd62d9f | ||
|
|
52e309cb09 | ||
|
|
b580373982 | ||
|
|
ec7bde5bb2 | ||
|
|
3516eeec5b | ||
|
|
52351192e6 | ||
|
|
3a6f04496d | ||
|
|
47f2df2112 | ||
|
|
363a26b8a1 | ||
|
|
7e50a00f55 | ||
|
|
a7d6a80e82 | ||
|
|
e7da95b2ac | ||
|
|
74fca23d59 | ||
|
|
0a12fa1253 | ||
|
|
1263068140 | ||
|
|
916c191b18 | ||
|
|
d8c0220353 | ||
|
|
4ab425d15c | ||
|
|
74e5633d1c | ||
|
|
89d36bbc61 | ||
|
|
1877ac18a5 | ||
|
|
5e42e25617 | ||
|
|
c27c9564cf | ||
|
|
c4b0da335d | ||
|
|
fab36ec008 | ||
|
|
8a2b875779 | ||
|
|
efaffb8298 | ||
|
|
e004eb3f00 | ||
|
|
43e8f6dc81 | ||
|
|
f5bff8fe7c | ||
|
|
fad8484b93 | ||
|
|
7664b54f89 | ||
|
|
21cbc353dd | ||
|
|
8d66306ec4 | ||
|
|
479daf0e76 | ||
|
|
bf0fbb7b10 | ||
|
|
d3c91f1585 | ||
|
|
ca165b328a | ||
|
|
fa2ffeea92 | ||
|
|
0d00965ac3 | ||
|
|
7d7bec1f80 | ||
|
|
b6fd915365 | ||
|
|
fecae72267 | ||
|
|
7bffd91e3f | ||
|
|
f859521a7e | ||
|
|
a869386fac | ||
|
|
8bc7885b7a | ||
|
|
78be46738d | ||
|
|
6fce73855c | ||
|
|
fa844a6223 | ||
|
|
906379dd09 | ||
|
|
37cded612f | ||
|
|
73e8fade61 | ||
|
|
758cc7afab | ||
|
|
d74b7b06d2 | ||
|
|
39009f2f71 | ||
|
|
9fdc1c6813 | ||
|
|
c5568fe830 | ||
|
|
bad81f84b9 | ||
|
|
2ac08dd0e6 | ||
|
|
408ffc4539 | ||
|
|
eb958327c5 | ||
|
|
e157d77a1e | ||
|
|
e961c9ea8f | ||
|
|
258c4f769d | ||
|
|
b31fedd857 | ||
|
|
eafe69500b | ||
|
|
ae09990c43 | ||
|
|
cf54b65c32 | ||
|
|
7974421fa1 | ||
|
|
847a098d4e | ||
|
|
eb4de0ae0f | ||
|
|
bca9f3b753 | ||
|
|
cad8a9a5d3 | ||
|
|
f5f36d21e8 | ||
|
|
c51435c114 | ||
|
|
2a7f1780b4 | ||
|
|
98a44e40fb | ||
|
|
65cf6fa9a1 | ||
|
|
b2e32d1720 | ||
|
|
f0bfedbe8e | ||
|
|
fd4e059c13 | ||
|
|
a53575e154 | ||
|
|
4a73484603 | ||
|
|
03b380f90b | ||
|
|
a2bd3b2dfe | ||
|
|
56fe140ebf | ||
|
|
4fafcce740 | ||
|
|
02352c4ae6 | ||
|
|
4b74aab335 | ||
|
|
2d67ac189d | ||
|
|
8ece62e23d | ||
|
|
56c2bdd77d | ||
|
|
1f555f1930 | ||
|
|
8496432c14 | ||
|
|
1672ffa670 | ||
|
|
6aab199f12 | ||
|
|
46d0c379a4 | ||
|
|
99240f145a | ||
|
|
3c9079d73c | ||
|
|
0eb98b9a6c | ||
|
|
76bfd98b77 | ||
|
|
3348640c88 | ||
|
|
d81c64fd2b | ||
|
|
8b4c919617 | ||
|
|
76c58953df | ||
|
|
4ddc5caa49 | ||
|
|
694663bd95 | ||
|
|
62aba5844e | ||
|
|
d0d60cef05 | ||
|
|
3d293fdcb0 | ||
|
|
96e9528046 | ||
|
|
4ea24b3203 | ||
|
|
a756eea25a | ||
|
|
210020e489 | ||
|
|
e586ead024 | ||
|
|
14c80bf1dc | ||
|
|
bdd56e794a | ||
|
|
a544548934 | ||
|
|
e06c1d61fb | ||
|
|
600c5209c6 | ||
|
|
bee90366ee | ||
|
|
e9bc4e9417 | ||
|
|
f01ff15761 | ||
|
|
356ada159d | ||
|
|
cc831e16d8 | ||
|
|
b8dc46ad01 | ||
|
|
d8ab19087d | ||
|
|
ec8a79eedd | ||
|
|
f1e2a8e9d8 | ||
|
|
4042a5fe5d | ||
|
|
a4752751ed | ||
|
|
e23ecf46d1 | ||
|
|
70a8c597a6 | ||
|
|
fa639bdb53 | ||
|
|
233bdd5b1d | ||
|
|
a0ab6d35c7 | ||
|
|
bd29680ce7 | ||
|
|
7139e92554 | ||
|
|
897df53466 | ||
|
|
58281711f6 | ||
|
|
b524383aa3 | ||
|
|
75a16e3588 | ||
|
|
1453032ad6 | ||
|
|
824ab4afad | ||
|
|
73dd41c67f | ||
|
|
59ee77355d | ||
|
|
5c758773ad | ||
|
|
46de49df06 | ||
|
|
d1c54a9a74 | ||
|
|
e7527c45cd | ||
|
|
7d5207aa67 | ||
|
|
654302e691 | ||
|
|
ee673b57fd | ||
|
|
2be374b841 | ||
|
|
906e1eda89 | ||
|
|
ece02cc4fa | ||
|
|
876ad60ddf | ||
|
|
862da354ac | ||
|
|
8fd477b979 | ||
|
|
2d7005655c | ||
|
|
7322f8348a | ||
|
|
e3e3a12e73 | ||
|
|
77cdd057a4 | ||
|
|
e8206fbdd9 | ||
|
|
589f15a77b | ||
|
|
7bb443678a | ||
|
|
6390415101 | ||
|
|
4abf192e11 | ||
|
|
1fed37f9da | ||
|
|
a9d86a7447 | ||
|
|
2abe4c3cef | ||
|
|
0542c25003 | ||
|
|
1b8ee4e290 | ||
|
|
51128cba55 | ||
|
|
3612432581 | ||
|
|
deca000a1b | ||
|
|
39cccb5653 | ||
|
|
f6838dc985 | ||
|
|
8cd4d92395 | ||
|
|
3bf9906f45 | ||
|
|
9f7daf96ef | ||
|
|
67de4df155 | ||
|
|
bc51a4bd1c | ||
|
|
bb54616018 | ||
|
|
6bcff5e014 | ||
|
|
8970a03a9a | ||
|
|
3ad717ca35 | ||
|
|
b14f72c67a | ||
|
|
45d036804f | ||
|
|
8f606db233 | ||
|
|
3766ba5402 | ||
|
|
e851813cef | ||
|
|
4d49ad9141 | ||
|
|
16618b3af2 | ||
|
|
0e5c0f664f | ||
|
|
7be9281431 | ||
|
|
ee0327fac1 | ||
|
|
9930de3e7f | ||
|
|
e8503e89c6 | ||
|
|
1d9ed419eb | ||
|
|
0207652e3e | ||
|
|
0f1e99c5cb | ||
|
|
f134bc7efb | ||
|
|
dcd7c7180e | ||
|
|
fbbfcd075b | ||
|
|
f42d2e4140 | ||
|
|
88882cebbc | ||
|
|
17a979675c | ||
|
|
4642850c79 | ||
|
|
e8d6eebb04 | ||
|
|
864c5160c0 | ||
|
|
99b5a00c12 | ||
|
|
85ee1f07d7 | ||
|
|
e58b4394e0 | ||
|
|
1e91a57bf1 | ||
|
|
39cee52a7e | ||
|
|
72068f939d | ||
|
|
096d0d3cad | ||
|
|
2472ab0121 | ||
|
|
00421717b8 | ||
|
|
ae96d93f94 | ||
|
|
8522c40c8f | ||
|
|
23f86e95f1 | ||
|
|
eed2045189 | ||
|
|
217785bf0f | ||
|
|
6aef50dc5d | ||
|
|
16b6e3caa7 | ||
|
|
3de4c99a8a | ||
|
|
980aa19a75 | ||
|
|
fb4b57e056 | ||
|
|
03638365ea | ||
|
|
157cb1c83d | ||
|
|
e51f11c2b1 | ||
|
|
1ad0961dd8 | ||
|
|
46ff7dd4e2 | ||
|
|
8b067df914 | ||
|
|
ef43b13272 | ||
|
|
e8e9974224 | ||
|
|
feebbb9f04 | ||
|
|
bc4f06dd1d | ||
|
|
971e4fc909 | ||
|
|
51cc765949 | ||
|
|
19c6a4fffa | ||
|
|
105ac32d2f | ||
|
|
57550675d2 | ||
|
|
e674abc5c0 | ||
|
|
f965c96f51 | ||
|
|
c76b8ed9e0 | ||
|
|
4fbd0d8a7b | ||
|
|
2186c0fff6 | ||
|
|
1adca9a9c1 | ||
|
|
9408353f2b | ||
|
|
84f4d453d2 | ||
|
|
d10209f2a1 | ||
|
|
3ae149c72f | ||
|
|
47385acc3b | ||
|
|
814eeaa900 | ||
|
|
5f2ea13aad | ||
|
|
41ca217931 | ||
|
|
b57d36e8dd | ||
|
|
9a4be70734 | ||
|
|
a8443595a6 | ||
|
|
fd0a70ac58 | ||
|
|
8a8685c968 | ||
|
|
9e6cb8da8e | ||
|
|
054ec54d51 | ||
|
|
272ce773cb | ||
|
|
050b925f7b | ||
|
|
0087940898 | ||
|
|
e323c014f9 | ||
|
|
cc465c7554 | ||
|
|
14cb37564f | ||
|
|
094db56c3b | ||
|
|
aabb709b8b | ||
|
|
0833dd2db9 | ||
|
|
cd3f912be4 | ||
|
|
665c516db6 | ||
|
|
b670da9fa0 | ||
|
|
80bee9bffe | ||
|
|
d85a70e8ad | ||
|
|
8f21533e76 | ||
|
|
89996482a1 | ||
|
|
03c10dce91 | ||
|
|
bd5331be05 | ||
|
|
46e1645289 | ||
|
|
4ce3965747 | ||
|
|
9d4af19db3 | ||
|
|
48e034f4be | ||
|
|
f8959baa2f | ||
|
|
8ed5997eae | ||
|
|
daf9f50ac8 | ||
|
|
6b11013c1a |
2
.github/workflows/build_release.yml
vendored
2
.github/workflows/build_release.yml
vendored
@@ -81,7 +81,7 @@ jobs:
|
||||
# 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.12.1"
|
||||
PYTHON_VERSION: "3.12.2"
|
||||
MACOSX_DEPLOYMENT_TARGET: "10.9"
|
||||
# We need to force compile for universal2 support
|
||||
CFLAGS: -arch x86_64 -arch arm64
|
||||
|
||||
23
README.mkd
23
README.mkd
@@ -1,14 +1,31 @@
|
||||
Release Notes - SABnzbd 4.2.2 Beta 1
|
||||
Release Notes - SABnzbd 4.2.3
|
||||
=========================================================
|
||||
|
||||
This is the second bug-fix release of SABnzbd 4.2.0.
|
||||
This is the third bug-fix release of SABnzbd 4.2.0.
|
||||
|
||||
## Bug-fixes and changes since 4.2.2:
|
||||
|
||||
* **Bug-fixes:**
|
||||
* Handle new status code for missing articles, which would result in timeouts.
|
||||
This specifically affects Giganews and its resellers.
|
||||
* Retry of failed job would not use the password provided.
|
||||
* Optimize database handling in order to prevent locking errors.
|
||||
* macOS: System standby after finishing the queue would not always work.
|
||||
|
||||
* **Changes:**
|
||||
* Remove `Send Group` option for Servers.
|
||||
|
||||
## Bug-fixes and changes since 4.2.1:
|
||||
|
||||
* **Bug-fixes:**
|
||||
* RSS readout could result in a crash if duplicate detection is enabled.
|
||||
* RSS readout could result in a crash if Duplicate Detection was enabled.
|
||||
* Passwords were not always correctly parsed.
|
||||
* Warnings could show even if `helpful_warnings` was disabled.
|
||||
* Duplicate Detection would trigger again on URLs if they were resumed.
|
||||
* Windows: Fatal crash could occur if ran as Service or on older Windows versions.
|
||||
|
||||
* **Changes:**
|
||||
* Parsing of filenames from the NZB was extended to allow more exotic formatting.
|
||||
* Windows: Installer will automatically shutdown SABnzbd if it is running.
|
||||
|
||||
## Bug-fixes and changes since 4.2.0:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Note that not all sub-dependencies are listed, but only ones we know could cause trouble
|
||||
pyinstaller==5.13.2
|
||||
packaging==23.2
|
||||
pyinstaller-hooks-contrib==2023.12
|
||||
pyinstaller-hooks-contrib==2024.0
|
||||
altgraph==0.17.4
|
||||
wrapt==1.16.0
|
||||
setuptools==69.0.3
|
||||
@@ -14,7 +14,7 @@ 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'
|
||||
orjson==3.9.12; python_version > '3.8'
|
||||
|
||||
# For the Windows build
|
||||
pefile==2023.2.7; sys_platform == 'win32'
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">OpenSSL:</th>
|
||||
<td>
|
||||
$ssl_version
|
||||
</td>
|
||||
<td>$ssl_version</td>
|
||||
</tr>
|
||||
<!--#if not $windows and not $macos#-->
|
||||
<tr>
|
||||
@@ -81,7 +79,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">$T('menu-live-chat') </th>
|
||||
<td><a href="https://sabnzbd.org/live-chat/" target="_blank">https://sabnzbd.org/live-chat/</a></td>
|
||||
<td><a href="https://sabnzbd.org/live-chat/" target="_blank">https://sabnzbd.org/live-chat/</a> (IRC & Discord)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">$T('menu-issues') </th>
|
||||
|
||||
@@ -106,11 +106,6 @@
|
||||
<span class="desc">$T('explain-ssl_ciphers') <br>$T('readwiki')
|
||||
<a href="https://sabnzbd.org/wiki/advanced/ssl-ciphers" target="_blank">https://sabnzbd.org/wiki/advanced/ssl-ciphers</a></span>
|
||||
</div>
|
||||
<div class="field-pair advanced-settings">
|
||||
<label class="config" for="send_group">$T('srv-send_group')</label>
|
||||
<input type="checkbox" name="send_group" id="send_group" value="1" />
|
||||
<span class="desc">$T('srv-explain-send_group')</span>
|
||||
</div>
|
||||
<div class="field-pair advanced-settings">
|
||||
<label class="config" for="required">$T('srv-required')</label>
|
||||
<input type="checkbox" name="required" id="required" value="1" />
|
||||
@@ -248,11 +243,6 @@
|
||||
<input type="checkbox" name="optional" id="optional$cur" value="1" <!--#if int($server['optional']) != 0 then 'checked="checked"' else ""#--> />
|
||||
<span class="desc">$T('explain-optional')</span>
|
||||
</div>
|
||||
<div class="field-pair advanced-settings">
|
||||
<label class="config" for="send_group$cur">$T('srv-send_group')</label>
|
||||
<input type="checkbox" name="send_group" id="send_group$cur" value="1" <!--#if int($server['send_group']) != 0 then 'checked="checked"' else ""#--> />
|
||||
<span class="desc">$T('srv-explain-send_group')</span>
|
||||
</div>
|
||||
<div class="field-pair advanced-settings">
|
||||
<label class="config" for="expire_date$cur">$T('srv-expire_date')</label>
|
||||
<input type="date" name="expire_date" id="expire_date$cur" value="$server['expire_date']" />
|
||||
|
||||
@@ -288,18 +288,9 @@ col2 h3 a,
|
||||
fill: #555555;
|
||||
}
|
||||
|
||||
/* Placeholders - Will not work if grouped! */
|
||||
::-webkit-input-placeholder {
|
||||
color: #EBEBEB !important;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
color: #EBEBEB !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
::placeholder {
|
||||
color: #EBEBEB !important;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.tooltip-inner {
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<a href="#" class="hover-button" data-bind="visible: history.isMultiEditing(), click: history.doMultiDelete">
|
||||
<a href="#" class="hover-button" title="$T('nzo-delete')" 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">
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<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">
|
||||
<a href="#" class="hover-button" title="$T('removeNZB-Files')" data-bind="click: queue.doMultiDelete">
|
||||
<span class="glyphicon glyphicon-trash"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -140,6 +140,12 @@ select.form-control,
|
||||
color: #EBEBEB;
|
||||
}
|
||||
|
||||
.btn-default:not(.navbar-btn):hover,
|
||||
select:hover,
|
||||
input:hover {
|
||||
background-color: #666666;
|
||||
}
|
||||
|
||||
/* Needed to force the text-color */
|
||||
.table-striped>tbody>tr:nth-child(odd)>td,
|
||||
.table>tbody>tr:nth-child(odd)>td,
|
||||
@@ -266,16 +272,7 @@ button:focus {
|
||||
outline: initial;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
::placeholder {
|
||||
color: #EBEBEB !important;
|
||||
opacity: 0.5 !important;
|
||||
}
|
||||
@@ -30,6 +30,8 @@
|
||||
<url type="faq">https://sabnzbd.org/wiki/faq</url>
|
||||
<url type="contact">https://sabnzbd.org/live-chat.html</url>
|
||||
<releases>
|
||||
<release version="4.2.3" date="2024-03-10" type="stable"/>
|
||||
<release version="4.2.2" date="2024-01-31" type="stable"/>
|
||||
<release version="4.2.1" date="2024-01-05" type="stable"/>
|
||||
<release version="4.2.0" date="2024-01-03" type="stable"/>
|
||||
<release version="4.1.0" date="2023-09-26" type="stable"/>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2RC1\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: team@sabnzbd.org\n"
|
||||
"Language-Team: SABnzbd <team@sabnzbd.org>\n"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Language-Team: Czech (https://app.transifex.com/sabnzbd/teams/111101/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Danish (https://app.transifex.com/sabnzbd/teams/111101/da/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: German (https://app.transifex.com/sabnzbd/teams/111101/de/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Spanish (https://app.transifex.com/sabnzbd/teams/111101/es/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Finnish (https://app.transifex.com/sabnzbd/teams/111101/fi/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: French (https://app.transifex.com/sabnzbd/teams/111101/fr/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# ION, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: ION, 2020\n"
|
||||
"Language-Team: Hebrew (https://app.transifex.com/sabnzbd/teams/111101/he/)\n"
|
||||
|
||||
113
po/email/it.po
Normal file
113
po/email/it.po
Normal file
@@ -0,0 +1,113 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Language-Team: Italian (https://app.transifex.com/sabnzbd/teams/111101/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: email/email.tmpl:1
|
||||
msgid ""
|
||||
"##\n"
|
||||
"## Default Email template for SABnzbd\n"
|
||||
"## This a Cheetah template\n"
|
||||
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
|
||||
"##\n"
|
||||
"## Newlines and whitespace are significant!\n"
|
||||
"##\n"
|
||||
"## These are the email headers\n"
|
||||
"To: $to\n"
|
||||
"From: $from\n"
|
||||
"Date: $date\n"
|
||||
"Subject: SABnzbd has <!--#if $status then \"completed\" else \"failed\" #--> job $name\n"
|
||||
"X-priority: 5\n"
|
||||
"X-MS-priority: 5\n"
|
||||
"## After this comes the body, the empty line is required!\n"
|
||||
"\n"
|
||||
"Hi,\n"
|
||||
"<!--#if $status #-->\n"
|
||||
"SABnzbd has downloaded \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
|
||||
"<!--#else#-->\n"
|
||||
"SABnzbd has failed to download \"$name\" <!--#if $msgid==\"\" then \"\" else \"(newzbin #\" + $msgid + \")\"#-->\n"
|
||||
"<!--#end if#-->\n"
|
||||
"Finished at $end_time\n"
|
||||
"Downloaded $size\n"
|
||||
"\n"
|
||||
"Results of the job:\n"
|
||||
"<!--#for $stage in $stages #-->\n"
|
||||
"Stage $stage <!--#slurp#-->\n"
|
||||
"<!--#for $result in $stages[$stage]#-->\n"
|
||||
" $result <!--#slurp#-->\n"
|
||||
"<!--#end for#-->\n"
|
||||
"<!--#end for#-->\n"
|
||||
"<!--#if $script!=\"\" #-->\n"
|
||||
"Output from user script \"$script\" (Exit code = $script_ret):\n"
|
||||
"$script_output\n"
|
||||
"<!--#end if#-->\n"
|
||||
"<!--#if $status #-->\n"
|
||||
"Enjoy!\n"
|
||||
"<!--#else#-->\n"
|
||||
"Sorry!\n"
|
||||
"<!--#end if#-->\n"
|
||||
msgstr ""
|
||||
|
||||
#: email/rss.tmpl:1
|
||||
msgid ""
|
||||
"##\n"
|
||||
"## RSS Email template for SABnzbd\n"
|
||||
"## This a Cheetah template\n"
|
||||
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
|
||||
"##\n"
|
||||
"## Newlines and whitespace are significant!\n"
|
||||
"##\n"
|
||||
"## These are the email headers\n"
|
||||
"To: $to\n"
|
||||
"From: $from\n"
|
||||
"Date: $date\n"
|
||||
"Subject: SABnzbd has added $amount jobs to the queue\n"
|
||||
"X-priority: 5\n"
|
||||
"X-MS-priority: 5\n"
|
||||
"## After this comes the body, the empty line is required!\n"
|
||||
"\n"
|
||||
"Hi,\n"
|
||||
"\n"
|
||||
"SABnzbd has added $amount job(s) to the queue.\n"
|
||||
"They are from RSS feed \"$feed\".\n"
|
||||
"<!--#for $job in $jobs#-->\n"
|
||||
" $job <!--#slurp#-->\n"
|
||||
"<!--#end for#-->\n"
|
||||
"\n"
|
||||
"Bye\n"
|
||||
msgstr ""
|
||||
|
||||
#: email/badfetch.tmpl:1
|
||||
msgid ""
|
||||
"##\n"
|
||||
"## Bad URL Fetch Email template for SABnzbd\n"
|
||||
"## This a Cheetah template\n"
|
||||
"## Documentation: http://sabnzbd.wikidot.com/email-templates\n"
|
||||
"##\n"
|
||||
"## Newlines and whitespace are significant!\n"
|
||||
"##\n"
|
||||
"## These are the email headers\n"
|
||||
"To: $to\n"
|
||||
"From: $from\n"
|
||||
"Date: $date\n"
|
||||
"Subject: SABnzbd failed to fetch an NZB\n"
|
||||
"X-priority: 5\n"
|
||||
"X-MS-priority: 5\n"
|
||||
"## After this comes the body, the empty line is required!\n"
|
||||
"\n"
|
||||
"Hi,\n"
|
||||
"\n"
|
||||
"SABnzbd has failed to retrieve the NZB from $url.\n"
|
||||
"The error message was: $msg\n"
|
||||
"\n"
|
||||
"Bye\n"
|
||||
msgstr ""
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Norwegian Bokmål (https://app.transifex.com/sabnzbd/teams/111101/nb/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Dutch (https://app.transifex.com/sabnzbd/teams/111101/nl/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Polish (https://app.transifex.com/sabnzbd/teams/111101/pl/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/sabnzbd/teams/111101/pt_BR/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Romanian (https://app.transifex.com/sabnzbd/teams/111101/ro/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Russian (https://app.transifex.com/sabnzbd/teams/111101/ru/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Serbian (https://app.transifex.com/sabnzbd/teams/111101/sr/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Swedish (https://app.transifex.com/sabnzbd/teams/111101/sv/)\n"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# SABnzbd Translation Template file EMAIL
|
||||
# Copyright 2007-2023 The SABnzbd-Team
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.0RC3\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2020\n"
|
||||
"Language-Team: Chinese (China) (https://app.transifex.com/sabnzbd/teams/111101/zh_CN/)\n"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2RC1\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: team@sabnzbd.org\n"
|
||||
"Language-Team: SABnzbd <team@sabnzbd.org>\n"
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2023
|
||||
# Fred L <88com88@gmail.com>, 2023
|
||||
# Fred L <88com88@gmail.com>, 2024
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:49+0000\n"
|
||||
"Last-Translator: Fred L <88com88@gmail.com>, 2023\n"
|
||||
"Last-Translator: Fred L <88com88@gmail.com>, 2024\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"
|
||||
@@ -302,7 +302,7 @@ msgstr ""
|
||||
#. Warning message
|
||||
#: sabnzbd/cfg.py
|
||||
msgid "Network path \"%s\" should not be used here"
|
||||
msgstr ""
|
||||
msgstr "Le chemin réseau \"%s\" ne devrait pas être utilisé ici"
|
||||
|
||||
#: sabnzbd/cfg.py
|
||||
msgid "Queue not empty, cannot change folder."
|
||||
@@ -781,6 +781,8 @@ msgstr "Retour"
|
||||
msgid ""
|
||||
"To prevent all helpful warnings, disable Special setting 'helpful_warnings'."
|
||||
msgstr ""
|
||||
"Pour éviter tous les avertissements utiles, désactivez le paramètre spécial "
|
||||
"'helpful_warnings'."
|
||||
|
||||
#: sabnzbd/misc.py
|
||||
msgid "d"
|
||||
@@ -2674,11 +2676,11 @@ msgstr "Port que SABnzbd doit surveiller."
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "Web Interface Theme"
|
||||
msgstr ""
|
||||
msgstr "Thème de l'interface web"
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "Choose a theme."
|
||||
msgstr ""
|
||||
msgstr "Choisissez un thème."
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "SABnzbd Username"
|
||||
@@ -4656,6 +4658,8 @@ msgid ""
|
||||
"When you Retry a job, 'Duplicate Detection' and 'Abort jobs that cannot be "
|
||||
"completed' are disabled."
|
||||
msgstr ""
|
||||
"Lorsque vous réessayez une tâche, la \"Détection des doublons\" et "
|
||||
"\"Abandonner les travaux qui ne peuvent pas être terminés\" sont désactivés."
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "View Script Log"
|
||||
|
||||
4663
po/main/it.po
Normal file
4663
po/main/it.po
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:49+0000\n"
|
||||
"Last-Translator: Safihre <safihre@sabnzbd.org>, 2024\n"
|
||||
"Language-Team: Dutch (https://app.transifex.com/sabnzbd/teams/111101/nl/)\n"
|
||||
@@ -2658,11 +2658,11 @@ msgstr "Poort waar op SABnzbd luistert."
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "Web Interface Theme"
|
||||
msgstr ""
|
||||
msgstr "Webinterface Stijl"
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "Choose a theme."
|
||||
msgstr ""
|
||||
msgstr "Kies een stijl voor de webinterface."
|
||||
|
||||
#: sabnzbd/skintext.py
|
||||
msgid "SABnzbd Username"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2RC1\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: team@sabnzbd.org\n"
|
||||
"Language-Team: SABnzbd <team@sabnzbd.org>\n"
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
#
|
||||
# Translators:
|
||||
# Safihre <safihre@sabnzbd.org>, 2020
|
||||
# Fred L <88com88@gmail.com>, 2021
|
||||
# Fred L <88com88@gmail.com>, 2024
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.1\n"
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Last-Translator: Fred L <88com88@gmail.com>, 2021\n"
|
||||
"Last-Translator: Fred L <88com88@gmail.com>, 2024\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"
|
||||
@@ -54,7 +54,7 @@ msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Shutting down SABnzbd"
|
||||
msgstr ""
|
||||
msgstr "Arrêt de SABnzbd"
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "This will uninstall SABnzbd from your system"
|
||||
|
||||
78
po/nsis/it.po
Normal file
78
po/nsis/it.po
Normal file
@@ -0,0 +1,78 @@
|
||||
# SABnzbd Translation Template file NSIS
|
||||
# Copyright 2007-2024 by The SABnzbd-Team (sabnzbd.org)
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: SABnzbd-4.2.2Beta1\n"
|
||||
"PO-Revision-Date: 2020-06-27 15:56+0000\n"
|
||||
"Language-Team: Italian (https://app.transifex.com/sabnzbd/teams/111101/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Show Release Notes"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Support the project, Donate!"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid ""
|
||||
"The SABnzbd Windows Service changed in SABnzbd 3.0.0. \\nYou will need to "
|
||||
"reinstall the SABnzbd service. \\n\\nClick `OK` to remove the existing "
|
||||
"services or `Cancel` to cancel this upgrade."
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid ""
|
||||
"The installer only supports 64-bit Windows, use the standalone version to "
|
||||
"run on 32-bit Windows."
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid ""
|
||||
"The installer only supports Windows 8.1 and above, use the standalone legacy"
|
||||
" version to run on older Windows version."
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Shutting down SABnzbd"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "This will uninstall SABnzbd from your system"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Run at startup"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Desktop Icon"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "NZB File association"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Delete Program"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Delete Settings"
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid ""
|
||||
"You cannot overwrite an existing installation. \\n\\nClick `OK` to remove "
|
||||
"the previous version or `Cancel` to cancel this upgrade."
|
||||
msgstr ""
|
||||
|
||||
#: builder/win/NSIS_Installer.nsi
|
||||
msgid "Your settings and data will be preserved."
|
||||
msgstr ""
|
||||
@@ -14,7 +14,7 @@ jaraco.collections==5.0.0
|
||||
jaraco.text==3.8.1 # Newer version introduces irrelevant extra dependencies
|
||||
jaraco.classes==3.3.0
|
||||
jaraco.context==4.3.0
|
||||
more-itertools==10.1.0
|
||||
more-itertools==10.2.0
|
||||
zc.lockfile==3.0.post1
|
||||
python-dateutil==2.8.2
|
||||
tempora==5.5.0
|
||||
|
||||
@@ -277,6 +277,9 @@ def validate_default_if_empty(root: str, value: str, default: str) -> Tuple[None
|
||||
# Special settings
|
||||
##############################################################################
|
||||
|
||||
# This should be here so it's initialized first when the config is read
|
||||
helpful_warnings = OptionBool("misc", "helpful_warnings", True)
|
||||
|
||||
queue_complete = OptionStr("misc", "queue_complete")
|
||||
queue_complete_pers = OptionBool("misc", "queue_complete_pers", False)
|
||||
bandwidth_perc = OptionNumber("misc", "bandwidth_perc", 100, minval=0, maxval=100)
|
||||
@@ -452,7 +455,7 @@ rss_filenames = OptionBool("misc", "rss_filenames", False)
|
||||
api_logging = OptionBool("misc", "api_logging", True)
|
||||
html_login = OptionBool("misc", "html_login", True)
|
||||
warn_dupl_jobs = OptionBool("misc", "warn_dupl_jobs", False)
|
||||
helpful_warnings = OptionBool("misc", "helpful_warnings", True)
|
||||
|
||||
keep_awake = OptionBool("misc", "keep_awake", True)
|
||||
tray_icon = OptionBool("misc", "tray_icon", True)
|
||||
allow_incomplete_nzb = OptionBool("misc", "allow_incomplete_nzb", False)
|
||||
|
||||
@@ -447,7 +447,6 @@ class ConfigServer:
|
||||
self.expire_date = OptionStr(name, "expire_date", add=False)
|
||||
self.quota = OptionStr(name, "quota", add=False)
|
||||
self.usage_at_start = OptionNumber(name, "usage_at_start", add=False)
|
||||
self.send_group = OptionBool(name, "send_group", False, add=False)
|
||||
self.priority = OptionNumber(name, "priority", 0, 0, 99, add=False)
|
||||
self.notes = OptionStr(name, "notes", add=False)
|
||||
|
||||
@@ -473,7 +472,6 @@ class ConfigServer:
|
||||
"ssl",
|
||||
"ssl_verify",
|
||||
"ssl_ciphers",
|
||||
"send_group",
|
||||
"enable",
|
||||
"required",
|
||||
"optional",
|
||||
@@ -516,7 +514,6 @@ class ConfigServer:
|
||||
output_dict["expire_date"] = self.expire_date()
|
||||
output_dict["quota"] = self.quota()
|
||||
output_dict["usage_at_start"] = self.usage_at_start()
|
||||
output_dict["send_group"] = self.send_group()
|
||||
output_dict["priority"] = self.priority()
|
||||
output_dict["notes"] = self.notes()
|
||||
return output_dict
|
||||
|
||||
@@ -75,6 +75,7 @@ DEF_LOG_CHERRY = "cherrypy.log"
|
||||
DEF_ARTICLE_CACHE_DEFAULT = "500M"
|
||||
DEF_ARTICLE_CACHE_MAX = "1G"
|
||||
DEF_TIMEOUT = 60
|
||||
DEF_TEST_TIMEOUT = 10
|
||||
DEF_SCANRATE = 5
|
||||
DEF_HTTPS_CERT_FILE = "server.cert"
|
||||
DEF_HTTPS_KEY_FILE = "server.key"
|
||||
@@ -171,6 +172,7 @@ class DuplicateStatus:
|
||||
DUPLICATE_ALTERNATIVE = "Duplicate Alternative" # Alternative duplicate for a queued job
|
||||
SMART_DUPLICATE = "Smart Duplicate" # Simple Series duplicate
|
||||
SMART_DUPLICATE_ALTERNATIVE = "Smart Duplicate Alternative" # Alternative duplicate for a queued job
|
||||
DUPLICATE_IGNORED = "Duplicate Ignored"
|
||||
|
||||
|
||||
class AddNzbFileResult:
|
||||
|
||||
@@ -38,7 +38,7 @@ from sabnzbd.encoding import ubtou, utob
|
||||
from sabnzbd.misc import int_conv, caller_name, opts_to_pp, to_units
|
||||
from sabnzbd.filesystem import remove_file, clip_path
|
||||
|
||||
DB_LOCK = threading.RLock()
|
||||
DB_LOCK = threading.Lock()
|
||||
|
||||
|
||||
class HistoryDB:
|
||||
@@ -50,66 +50,69 @@ class HistoryDB:
|
||||
|
||||
# These class attributes will be accessed directly because
|
||||
# they need to be shared by all instances
|
||||
db_path = None # Will contain full path to history database
|
||||
done_cleaning = False # Ensure we only do one Vacuum per session
|
||||
db_path = None # Full path to history database
|
||||
startup_done = False
|
||||
|
||||
@synchronized(DB_LOCK)
|
||||
def __init__(self):
|
||||
"""Determine database path and create connection"""
|
||||
self.connection: Optional[Connection] = None
|
||||
self.cursor: Optional[Cursor] = None
|
||||
if not HistoryDB.db_path:
|
||||
HistoryDB.db_path = os.path.join(sabnzbd.cfg.admin_dir.get_path(), DB_HISTORY_NAME)
|
||||
self.connect()
|
||||
|
||||
def connect(self):
|
||||
"""Create a connection to the database"""
|
||||
create_table = not os.path.exists(HistoryDB.db_path)
|
||||
if not HistoryDB.db_path:
|
||||
HistoryDB.db_path = os.path.join(sabnzbd.cfg.admin_dir.get_path(), DB_HISTORY_NAME)
|
||||
create_table = not HistoryDB.startup_done and not os.path.exists(HistoryDB.db_path)
|
||||
|
||||
self.connection = sqlite3.connect(HistoryDB.db_path)
|
||||
self.connection.isolation_level = None # autocommit attribute only introduced in Python 3.12
|
||||
self.connection.row_factory = sqlite3.Row
|
||||
self.cursor = self.connection.cursor()
|
||||
if create_table:
|
||||
self.create_history_db()
|
||||
elif not HistoryDB.done_cleaning:
|
||||
# Run VACUUM on sqlite
|
||||
|
||||
# Perform initialization only once
|
||||
if not HistoryDB.startup_done:
|
||||
if create_table:
|
||||
self.create_history_db()
|
||||
|
||||
# When an object (table, index, or trigger) is dropped from the database, it leaves behind empty space
|
||||
# http://www.sqlite.org/lang_vacuum.html
|
||||
HistoryDB.done_cleaning = True
|
||||
self.execute("VACUUM")
|
||||
|
||||
self.execute("PRAGMA user_version;")
|
||||
try:
|
||||
version = self.cursor.fetchone()["user_version"]
|
||||
except (IndexError, TypeError):
|
||||
version = 0
|
||||
# See if we need to perform any updates
|
||||
self.execute("PRAGMA user_version;")
|
||||
try:
|
||||
version = self.cursor.fetchone()["user_version"]
|
||||
except (IndexError, TypeError):
|
||||
version = 0
|
||||
|
||||
# Add any new columns added since last DB version
|
||||
# Use "and" to stop when database has been reset due to corruption
|
||||
if version < 1:
|
||||
_ = (
|
||||
self.execute("PRAGMA user_version = 1;", save=True)
|
||||
and self.execute("ALTER TABLE history ADD COLUMN series TEXT;", save=True)
|
||||
and self.execute("ALTER TABLE history ADD COLUMN md5sum TEXT;", save=True)
|
||||
)
|
||||
if version < 2:
|
||||
_ = self.execute("PRAGMA user_version = 2;", save=True) and self.execute(
|
||||
"ALTER TABLE history ADD COLUMN password TEXT;", save=True
|
||||
)
|
||||
if version < 3:
|
||||
# Transfer data to new column (requires WHERE-hack), original column should be removed later
|
||||
_ = (
|
||||
self.execute("PRAGMA user_version = 3;", save=True)
|
||||
and self.execute("ALTER TABLE history ADD COLUMN duplicate_key TEXT;", save=True)
|
||||
and self.execute("UPDATE history SET duplicate_key = series WHERE 1 = 1;", save=True)
|
||||
)
|
||||
# Add any new columns added since last DB version
|
||||
# Use "and" to stop when database has been reset due to corruption
|
||||
if version < 1:
|
||||
_ = (
|
||||
self.execute("PRAGMA user_version = 1;")
|
||||
and self.execute("ALTER TABLE history ADD COLUMN series TEXT;")
|
||||
and self.execute("ALTER TABLE history ADD COLUMN md5sum TEXT;")
|
||||
)
|
||||
if version < 2:
|
||||
_ = self.execute("PRAGMA user_version = 2;") and self.execute(
|
||||
"ALTER TABLE history ADD COLUMN password TEXT;"
|
||||
)
|
||||
if version < 3:
|
||||
# Transfer data to new column (requires WHERE-hack), original column should be removed later
|
||||
_ = (
|
||||
self.execute("PRAGMA user_version = 3;")
|
||||
and self.execute("ALTER TABLE history ADD COLUMN duplicate_key TEXT;")
|
||||
and self.execute("UPDATE history SET duplicate_key = series WHERE 1 = 1;")
|
||||
)
|
||||
HistoryDB.startup_done = True
|
||||
|
||||
def execute(self, command: str, args: Sequence = (), save: bool = False) -> bool:
|
||||
def execute(self, command: str, args: Sequence = ()) -> bool:
|
||||
"""Wrapper for executing SQL commands"""
|
||||
for tries in (4, 3, 2, 1, 0):
|
||||
try:
|
||||
self.cursor.execute(command, args)
|
||||
if save:
|
||||
self.connection.commit()
|
||||
return True
|
||||
except:
|
||||
error = str(sys.exc_info()[1])
|
||||
@@ -129,6 +132,7 @@ class HistoryDB:
|
||||
remove_file(HistoryDB.db_path)
|
||||
except:
|
||||
pass
|
||||
HistoryDB.startup_done = False
|
||||
self.connect()
|
||||
# Return False in case of "duplicate column" error
|
||||
# because the column addition in connect() must be terminated
|
||||
@@ -141,6 +145,7 @@ class HistoryDB:
|
||||
try:
|
||||
self.connection.rollback()
|
||||
except:
|
||||
# Can fail in case of automatic rollback
|
||||
logging.debug("Rollback Failed:", exc_info=True)
|
||||
return False
|
||||
|
||||
@@ -178,10 +183,9 @@ class HistoryDB:
|
||||
"password" TEXT,
|
||||
"duplicate_key" TEXT
|
||||
)
|
||||
""",
|
||||
save=True,
|
||||
"""
|
||||
)
|
||||
self.execute("PRAGMA user_version = 3;", save=True)
|
||||
self.execute("PRAGMA user_version = 3;")
|
||||
|
||||
def close(self):
|
||||
"""Close database connection"""
|
||||
@@ -196,9 +200,7 @@ class HistoryDB:
|
||||
"""Remove all completed jobs from the database, optional with `search` pattern"""
|
||||
search = convert_search(search)
|
||||
logging.info("Removing all completed jobs from history")
|
||||
return self.execute(
|
||||
"""DELETE FROM history WHERE name LIKE ? AND status = ?""", (search, Status.COMPLETED), save=True
|
||||
)
|
||||
return self.execute("""DELETE FROM history WHERE name LIKE ? AND status = ?""", (search, Status.COMPLETED))
|
||||
|
||||
def get_failed_paths(self, search=None):
|
||||
"""Return list of all storage paths of failed jobs (may contain non-existing or empty paths)"""
|
||||
@@ -215,9 +217,7 @@ class HistoryDB:
|
||||
"""Remove all failed jobs from the database, optional with `search` pattern"""
|
||||
search = convert_search(search)
|
||||
logging.info("Removing all failed jobs from history")
|
||||
return self.execute(
|
||||
"""DELETE FROM history WHERE name LIKE ? AND status = ?""", (search, Status.FAILED), save=True
|
||||
)
|
||||
return self.execute("""DELETE FROM history WHERE name LIKE ? AND status = ?""", (search, Status.FAILED))
|
||||
|
||||
def remove_history(self, jobs=None):
|
||||
"""Remove all jobs in the list `jobs`, empty list will remove all completed jobs"""
|
||||
@@ -228,7 +228,7 @@ class HistoryDB:
|
||||
jobs = [jobs]
|
||||
|
||||
for job in jobs:
|
||||
self.execute("""DELETE FROM history WHERE nzo_id = ?""", (job,), save=True)
|
||||
self.execute("""DELETE FROM history WHERE nzo_id = ?""", (job,))
|
||||
logging.info("[%s] Removing job %s from history", caller_name(), job)
|
||||
|
||||
def auto_history_purge(self):
|
||||
@@ -247,9 +247,7 @@ class HistoryDB:
|
||||
if days_to_keep > 0:
|
||||
logging.info("Removing completed jobs older than %s days from history", days_to_keep)
|
||||
return self.execute(
|
||||
"""DELETE FROM history WHERE status = ? AND completed < ?""",
|
||||
(Status.COMPLETED, seconds_to_keep),
|
||||
save=True,
|
||||
"""DELETE FROM history WHERE status = ? AND completed < ?""", (Status.COMPLETED, seconds_to_keep)
|
||||
)
|
||||
else:
|
||||
# How many to keep?
|
||||
@@ -261,7 +259,6 @@ class HistoryDB:
|
||||
SELECT id FROM history WHERE status = ? ORDER BY completed DESC LIMIT ?
|
||||
)""",
|
||||
(Status.COMPLETED, Status.COMPLETED, to_keep),
|
||||
save=True,
|
||||
)
|
||||
|
||||
def add_history_db(self, nzo, storage: str, postproc_time: int, script_output: str, script_line: str):
|
||||
@@ -274,7 +271,6 @@ class HistoryDB:
|
||||
downloaded, fail_message, url_info, bytes, duplicate_key, md5sum, password)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
t,
|
||||
save=True,
|
||||
)
|
||||
logging.info("Added job %s to history", nzo.final_name)
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ def decode_uu(article: Article, raw_data: bytes) -> bytes:
|
||||
"""Try to uu-decode an article. The raw_data may or may not contain headers.
|
||||
If there are headers, they will be separated from the body by at least one
|
||||
empty line. In case of no headers, the first line seems to always be the nntp
|
||||
response code (222) directly followed by the msg body."""
|
||||
response code (220/222) directly followed by the msg body."""
|
||||
if not raw_data:
|
||||
logging.debug("No data to decode")
|
||||
raise BadUu
|
||||
@@ -232,7 +232,7 @@ def decode_uu(article: Article, raw_data: bytes) -> bytes:
|
||||
uu_start = raw_data[:limit].index(b"") + 1
|
||||
except ValueError:
|
||||
# No empty line, look for a response code instead
|
||||
if raw_data[0].startswith(b"222 "):
|
||||
if raw_data[0].startswith(b"220 ") or raw_data[0].startswith(b"222 "):
|
||||
uu_start = 1
|
||||
else:
|
||||
# Invalid data?
|
||||
|
||||
0
sabnzbd/deobfuscate_filenames.py
Normal file → Executable file
0
sabnzbd/deobfuscate_filenames.py
Normal file → Executable file
@@ -80,7 +80,6 @@ class Server:
|
||||
"required",
|
||||
"optional",
|
||||
"retention",
|
||||
"send_group",
|
||||
"username",
|
||||
"password",
|
||||
"busy_threads",
|
||||
@@ -111,7 +110,6 @@ class Server:
|
||||
use_ssl,
|
||||
ssl_verify,
|
||||
ssl_ciphers,
|
||||
send_group,
|
||||
username=None,
|
||||
password=None,
|
||||
required=False,
|
||||
@@ -134,15 +132,6 @@ class Server:
|
||||
self.required: bool = required
|
||||
self.optional: bool = optional
|
||||
self.retention: int = retention
|
||||
self.send_group: bool = send_group
|
||||
|
||||
# TODO: Remove after next release
|
||||
if send_group:
|
||||
helpful_warning(
|
||||
"You have 'Send Group' enabled for %s. Could you let us know why? https://github.com/sabnzbd/sabnzbd/discussions/2715",
|
||||
self.displayname,
|
||||
)
|
||||
|
||||
self.username: Optional[str] = username
|
||||
self.password: Optional[str] = password
|
||||
|
||||
@@ -331,7 +320,6 @@ class Downloader(Thread):
|
||||
required = srv.required()
|
||||
optional = srv.optional()
|
||||
retention = int(srv.retention() * 24 * 3600) # days ==> seconds
|
||||
send_group = srv.send_group()
|
||||
create = True
|
||||
|
||||
if oldserver:
|
||||
@@ -358,7 +346,6 @@ class Downloader(Thread):
|
||||
ssl,
|
||||
ssl_verify,
|
||||
ssl_ciphers,
|
||||
send_group,
|
||||
username,
|
||||
password,
|
||||
required,
|
||||
@@ -742,7 +729,9 @@ class Downloader(Thread):
|
||||
time.sleep(0.01)
|
||||
sabnzbd.BPSMeter.update()
|
||||
|
||||
if nw.status_code != 222 and not done:
|
||||
# Response code depends on request command:
|
||||
# # 220 = ARTICLE, 222 = BODY
|
||||
if nw.status_code not in (220, 222) and not done:
|
||||
if not nw.connected or nw.status_code == 480:
|
||||
if not self.__finish_connect_nw(nw):
|
||||
return
|
||||
@@ -754,13 +743,7 @@ class Downloader(Thread):
|
||||
done = True
|
||||
logging.debug("Article <%s> is present", article.article)
|
||||
|
||||
elif nw.status_code == 211:
|
||||
logging.debug("group command ok -> %s", nw.nntp_msg)
|
||||
nw.group = nw.article.nzf.nzo.group
|
||||
nw.reset_data_buffer()
|
||||
self.__request_article(nw)
|
||||
|
||||
elif nw.status_code in (411, 423, 430):
|
||||
elif nw.status_code in (411, 423, 430, 451):
|
||||
done = True
|
||||
logging.debug(
|
||||
"Thread %s@%s: Article %s missing (error=%s)",
|
||||
@@ -783,6 +766,17 @@ class Downloader(Thread):
|
||||
nw.reset_data_buffer()
|
||||
self.__request_article(nw)
|
||||
|
||||
else:
|
||||
logging.warning(
|
||||
T("%s@%s: Received unknown status code %s for article %s"),
|
||||
nw.thrdnum,
|
||||
nw.server.host,
|
||||
nw.status_code,
|
||||
article.article,
|
||||
)
|
||||
done = True
|
||||
nw.reset_data_buffer()
|
||||
|
||||
if done:
|
||||
# Successful data, clear "bad" counter
|
||||
server.bad_cons = 0
|
||||
@@ -975,16 +969,9 @@ class Downloader(Thread):
|
||||
|
||||
def __request_article(self, nw: NewsWrapper):
|
||||
try:
|
||||
nzo = nw.article.nzf.nzo
|
||||
if nw.server.send_group and nzo.group != nw.group:
|
||||
group = nzo.group
|
||||
if sabnzbd.LOG_ALL:
|
||||
logging.debug("Thread %s@%s: GROUP <%s>", nw.thrdnum, nw.server.host, group)
|
||||
nw.send_group(group)
|
||||
else:
|
||||
if sabnzbd.LOG_ALL:
|
||||
logging.debug("Thread %s@%s: BODY %s", nw.thrdnum, nw.server.host, nw.article.article)
|
||||
nw.body()
|
||||
if sabnzbd.LOG_ALL:
|
||||
logging.debug("Thread %s@%s: BODY %s", nw.thrdnum, nw.server.host, nw.article.article)
|
||||
nw.body()
|
||||
# Mark as ready to be read
|
||||
self.add_socket(nw.nntp.fileno, nw)
|
||||
except socket.error as err:
|
||||
|
||||
@@ -351,6 +351,15 @@ def sanitize_files(folder: Optional[str] = None, filelist: Optional[List[str]] =
|
||||
return output_filelist
|
||||
|
||||
|
||||
def strip_extensions(name: str, ext_to_remove: Tuple[str, ...] = (".nzb", ".par", ".par2")):
|
||||
"""Strip extensions from a filename, without sanitizing the filename"""
|
||||
name_base, ext = os.path.splitext(name)
|
||||
while ext.lower() in ext_to_remove:
|
||||
name = name_base
|
||||
name_base, ext = os.path.splitext(name)
|
||||
return name
|
||||
|
||||
|
||||
def real_path(loc: str, path: str) -> str:
|
||||
"""When 'path' is relative, return normalized join of 'loc' and 'path'
|
||||
When 'path' is absolute, return normalized path
|
||||
|
||||
@@ -168,5 +168,8 @@ def local_ipv6():
|
||||
|
||||
|
||||
def public_ipv6():
|
||||
if local_ipv6():
|
||||
return public_ip(family=socket.AF_INET6)
|
||||
if local_address := local_ipv6():
|
||||
if public_address := public_ip(family=socket.AF_INET6):
|
||||
return public_address
|
||||
elif not sabnzbd.misc.is_lan_addr(local_address):
|
||||
return local_address
|
||||
|
||||
@@ -50,9 +50,9 @@ from sabnzbd.misc import (
|
||||
is_lan_addr,
|
||||
is_local_addr,
|
||||
is_loopback_addr,
|
||||
helpful_warning,
|
||||
recursive_html_escape,
|
||||
is_none,
|
||||
get_cpu_name,
|
||||
)
|
||||
from sabnzbd.happyeyeballs import happyeyeballs
|
||||
from sabnzbd.filesystem import (
|
||||
@@ -69,7 +69,6 @@ import sabnzbd.cfg as cfg
|
||||
import sabnzbd.notifier as notifier
|
||||
import sabnzbd.newsunpack
|
||||
from sabnzbd.utils.servertests import test_nntp_server_dict
|
||||
from sabnzbd.utils.getperformance import getcpu
|
||||
import sabnzbd.utils.ssdp
|
||||
from sabnzbd.constants import (
|
||||
DEF_STD_CONFIG,
|
||||
@@ -81,7 +80,7 @@ from sabnzbd.constants import (
|
||||
GUESSIT_SORT_TYPES,
|
||||
VALID_NZB_FILES,
|
||||
VALID_ARCHIVES,
|
||||
DEF_TIMEOUT,
|
||||
DEF_TEST_TIMEOUT,
|
||||
)
|
||||
from sabnzbd.lang import list_languages
|
||||
from sabnzbd.api import (
|
||||
@@ -430,7 +429,7 @@ class MainPage:
|
||||
info["have_rss_defined"] = bool(config.get_rss())
|
||||
info["have_watched_dir"] = bool(cfg.dirscan_dir())
|
||||
|
||||
info["cpumodel"] = getcpu()
|
||||
info["cpumodel"] = get_cpu_name()
|
||||
info["cpusimd"] = sabnzbd.decoder.SABCTOOLS_SIMD
|
||||
|
||||
# Have logout only with HTML and if inet=5, only when we are external
|
||||
@@ -1144,7 +1143,7 @@ def handle_server(kwargs, root=None, new_svr=False):
|
||||
kwargs["connections"] = "1"
|
||||
|
||||
if kwargs.get("enable") == "1":
|
||||
if not happyeyeballs(host, int_conv(port), int_conv(kwargs.get("timeout"), default=DEF_TIMEOUT)):
|
||||
if not happyeyeballs(host, int_conv(port), int_conv(kwargs.get("timeout"), default=DEF_TEST_TIMEOUT)):
|
||||
return badParameterResponse(T('Server address "%s:%s" is not valid.') % (host, port), ajax)
|
||||
|
||||
# Default server name is just the host name
|
||||
@@ -1162,7 +1161,7 @@ def handle_server(kwargs, root=None, new_svr=False):
|
||||
if new_svr:
|
||||
server = unique_svr_name(server)
|
||||
|
||||
for kw in ("ssl", "send_group", "enable", "required", "optional"):
|
||||
for kw in ("ssl", "enable", "required", "optional"):
|
||||
if kw not in kwargs.keys():
|
||||
kwargs[kw] = None
|
||||
if svr and not new_svr:
|
||||
|
||||
@@ -82,8 +82,8 @@ def internetspeed(test_time_limit: int = TIME_LIMIT) -> float:
|
||||
socket_speed = {}
|
||||
|
||||
try:
|
||||
addrinfo = happyeyeballs(TEST_HOSTNAME, TEST_PORT, SOCKET_TIMEOUT)
|
||||
for _ in range(NR_CONNECTIONS):
|
||||
addrinfo = happyeyeballs(TEST_HOSTNAME, TEST_PORT, SOCKET_TIMEOUT)
|
||||
sock = socket.socket(addrinfo.family, addrinfo.type)
|
||||
sock.settimeout(SOCKET_TIMEOUT)
|
||||
sock.connect(addrinfo.sockaddr)
|
||||
|
||||
@@ -20,9 +20,11 @@ sabnzbd.misc - misc classes
|
||||
"""
|
||||
|
||||
import os
|
||||
import platform
|
||||
import ssl
|
||||
import sys
|
||||
import logging
|
||||
import functools
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
import re
|
||||
@@ -51,11 +53,13 @@ from sabnzbd.constants import (
|
||||
)
|
||||
import sabnzbd.config as config
|
||||
import sabnzbd.cfg as cfg
|
||||
from sabnzbd.encoding import ubtou
|
||||
from sabnzbd.decorators import cache_maintainer
|
||||
from sabnzbd.encoding import ubtou, platform_btou
|
||||
from sabnzbd.filesystem import userxbit, make_script_path, remove_file
|
||||
|
||||
if sabnzbd.WIN32:
|
||||
try:
|
||||
import winreg
|
||||
import win32process
|
||||
import win32con
|
||||
|
||||
@@ -381,8 +385,6 @@ _SERVICE_PARM = "CommandLine"
|
||||
|
||||
def get_serv_parms(service):
|
||||
"""Get the service command line parameters from Registry"""
|
||||
import winreg
|
||||
|
||||
service_parms = []
|
||||
try:
|
||||
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, _SERVICE_KEY + service)
|
||||
@@ -402,8 +404,6 @@ def get_serv_parms(service):
|
||||
|
||||
def set_serv_parms(service, args):
|
||||
"""Set the service command line parameters in Registry"""
|
||||
import winreg
|
||||
|
||||
serv = []
|
||||
for arg in args:
|
||||
serv.append(arg[0])
|
||||
@@ -482,7 +482,7 @@ def check_latest_version():
|
||||
# Fetch version info
|
||||
data = get_from_url("https://sabnzbd.org/latest.txt")
|
||||
if not data:
|
||||
logging.info("Cannot retrieve version information from GitHub.com")
|
||||
logging.info("Cannot retrieve version information from sabnzbd.org")
|
||||
logging.debug("Traceback: ", exc_info=True)
|
||||
return
|
||||
|
||||
@@ -739,6 +739,51 @@ def get_macos_memory():
|
||||
return float(system_output.split()[1])
|
||||
|
||||
|
||||
@cache_maintainer(clear_time=3600)
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def get_cpu_name():
|
||||
"""Find the CPU name (which needs a different method per OS), and return it
|
||||
If none found, return platform.platform()"""
|
||||
|
||||
cputype = None
|
||||
|
||||
try:
|
||||
if sabnzbd.WIN32:
|
||||
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Hardware\Description\System\CentralProcessor\0")
|
||||
cputype = winreg.QueryValueEx(key, "ProcessorNameString")[0]
|
||||
winreg.CloseKey(key)
|
||||
|
||||
elif sabnzbd.MACOS:
|
||||
cputype = subprocess.check_output(["sysctl", "-n", "machdep.cpu.brand_string"]).strip()
|
||||
|
||||
else:
|
||||
with open("/proc/cpuinfo") as fp:
|
||||
for myline in fp.readlines():
|
||||
if myline.startswith("model name"):
|
||||
# Typical line:
|
||||
# model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
|
||||
cputype = myline.split(":", 1)[1] # get everything after the first ":"
|
||||
break # we're done
|
||||
cputype = platform_btou(cputype)
|
||||
except:
|
||||
# An exception, maybe due to a subprocess call gone wrong
|
||||
pass
|
||||
|
||||
if cputype:
|
||||
# OK, found. Remove unwanted spaces:
|
||||
cputype = " ".join(cputype.split())
|
||||
else:
|
||||
try:
|
||||
# Not found, so let's fall back to platform()
|
||||
cputype = platform.platform()
|
||||
except:
|
||||
# Can fail on special platforms (like Snapcraft or embedded)
|
||||
pass
|
||||
|
||||
logging.debug("CPU model = %s", cputype)
|
||||
return cputype
|
||||
|
||||
|
||||
def on_cleanup_list(filename: str, skip_nzb: bool = False) -> bool:
|
||||
"""Return True if a filename matches the clean-up list"""
|
||||
cleanup_list = cfg.cleanup_list()
|
||||
|
||||
@@ -177,13 +177,6 @@ class NewsWrapper:
|
||||
self.nntp.sock.sendall(command)
|
||||
self.reset_data_buffer()
|
||||
|
||||
def send_group(self, group: str):
|
||||
"""Send the NNTP GROUP command"""
|
||||
self.timeout = time.time() + self.server.timeout
|
||||
command = utob("GROUP %s\r\n" % group)
|
||||
self.nntp.sock.sendall(command)
|
||||
self.reset_data_buffer()
|
||||
|
||||
def recv_chunk(self) -> Tuple[int, bool]:
|
||||
"""Receive data, return #bytes, done, skip"""
|
||||
# Resize the buffer in the extremely unlikely case that it got full
|
||||
@@ -390,7 +383,7 @@ class NNTP:
|
||||
|
||||
# Ignore if the socket was already closed, resulting in errors
|
||||
if not self.closed:
|
||||
msg = "Failed to connect: %s %s@%s:%s (%s)" % (
|
||||
msg = T("Failed to connect: %s %s@%s:%s (%s)") % (
|
||||
str(error),
|
||||
self.nw.thrdnum,
|
||||
self.nw.server.host,
|
||||
|
||||
@@ -23,6 +23,7 @@ sabnzbd.notifier - Send notifications to any notification services
|
||||
|
||||
import os.path
|
||||
import logging
|
||||
import platform
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
import http.client
|
||||
@@ -34,7 +35,7 @@ import sabnzbd
|
||||
import sabnzbd.cfg
|
||||
from sabnzbd.encoding import utob
|
||||
from sabnzbd.filesystem import make_script_path
|
||||
from sabnzbd.misc import build_and_run_command
|
||||
from sabnzbd.misc import build_and_run_command, int_conv
|
||||
from sabnzbd.newsunpack import create_env
|
||||
|
||||
if sabnzbd.WIN32:
|
||||
@@ -42,11 +43,15 @@ if sabnzbd.WIN32:
|
||||
from win32comext.shell import shell
|
||||
from windows_toasts import InteractableWindowsToaster, Toast, ToastActivatedEventArgs, ToastButton
|
||||
|
||||
# Only Windows 10 and above are supported
|
||||
if int_conv(platform.release()) < 10:
|
||||
raise OSError
|
||||
|
||||
# Set a custom AUMID to display the right icon, it is written to the registry by the installer
|
||||
shell.SetCurrentProcessExplicitAppUserModelID("SABnzbd")
|
||||
_HAVE_WINDOWS_TOASTER = True
|
||||
except:
|
||||
# Only supported on Windows 10 and above
|
||||
# Sending toasts on non-supported platforms results in segfaults
|
||||
_HAVE_WINDOWS_TOASTER = False
|
||||
|
||||
try:
|
||||
@@ -210,6 +215,7 @@ def send_notify_osd(title, message):
|
||||
def send_notification_center(title: str, msg: str, notification_type: str, actions: Optional[Dict[str, str]] = None):
|
||||
"""Send message to macOS Notification Center.
|
||||
Only 1 button is possible on macOS!"""
|
||||
logging.debug("Sending macOS notification")
|
||||
try:
|
||||
subtitle = T(NOTIFICATION_TYPES.get(notification_type, "other"))
|
||||
button_text = button_action = None
|
||||
@@ -228,7 +234,7 @@ def send_notification_center(title: str, msg: str, notification_type: str, actio
|
||||
|
||||
def send_prowl(title, msg, notification_type, force=False, test=None):
|
||||
"""Send message to Prowl"""
|
||||
|
||||
logging.debug("Sending Prowl notification")
|
||||
if test:
|
||||
apikey = test.get("prowl_apikey")
|
||||
else:
|
||||
@@ -261,7 +267,7 @@ def send_prowl(title, msg, notification_type, force=False, test=None):
|
||||
|
||||
def send_pushover(title, msg, notification_type, force=False, test=None):
|
||||
"""Send message to pushover"""
|
||||
|
||||
logging.debug("Sending Pushover notification")
|
||||
if test:
|
||||
apikey = test.get("pushover_token")
|
||||
userkey = test.get("pushover_userkey")
|
||||
@@ -328,7 +334,7 @@ def do_send_pushover(body):
|
||||
|
||||
def send_pushbullet(title, msg, notification_type, force=False, test=None):
|
||||
"""Send message to Pushbullet"""
|
||||
|
||||
logging.debug("Sending Pushbullet notification")
|
||||
if test:
|
||||
apikey = test.get("pushbullet_apikey")
|
||||
device = test.get("pushbullet_device")
|
||||
@@ -363,6 +369,7 @@ def send_pushbullet(title, msg, notification_type, force=False, test=None):
|
||||
|
||||
def send_nscript(title, msg, notification_type, force=False, test=None):
|
||||
"""Run user's notification script"""
|
||||
logging.debug("Sending notification script notification")
|
||||
if test:
|
||||
script = test.get("nscript_script")
|
||||
env_params = {"notification_parameters": test.get("nscript_parameters")}
|
||||
@@ -406,6 +413,12 @@ def send_nscript(title, msg, notification_type, force=False, test=None):
|
||||
|
||||
|
||||
def send_windows(title: str, msg: str, notification_type: str, actions: Optional[Dict[str, str]] = None):
|
||||
"""Send Windows notifications, either fancy with buttons (Windows 10+) or basic ones"""
|
||||
# Skip any notifications if ran as a Windows Service, it can result in crashes
|
||||
if sabnzbd.WIN_SERVICE:
|
||||
return None
|
||||
|
||||
logging.debug("Sending Windows notification")
|
||||
try:
|
||||
if _HAVE_WINDOWS_TOASTER:
|
||||
notification_sender = InteractableWindowsToaster("SABnzbd", notifierAUMID="SABnzbd")
|
||||
|
||||
@@ -62,6 +62,7 @@ def add_nzbfile(
|
||||
reuse: Optional[str] = None,
|
||||
password: Optional[str] = None,
|
||||
nzo_id: Optional[str] = None,
|
||||
dup_check: bool = True,
|
||||
):
|
||||
"""Add file, either a single NZB-file or an archive.
|
||||
All other parameters are passed to the NZO-creation.
|
||||
@@ -119,6 +120,7 @@ def add_nzbfile(
|
||||
url=url,
|
||||
password=password,
|
||||
nzo_id=nzo_id,
|
||||
dup_check=dup_check,
|
||||
)
|
||||
else:
|
||||
return process_single_nzb(
|
||||
@@ -136,6 +138,7 @@ def add_nzbfile(
|
||||
url=url,
|
||||
password=password,
|
||||
nzo_id=nzo_id,
|
||||
dup_check=dup_check,
|
||||
)
|
||||
|
||||
|
||||
@@ -151,10 +154,10 @@ def process_nzb_archive_file(
|
||||
nzbname: Optional[str] = None,
|
||||
reuse: Optional[str] = None,
|
||||
nzo_info: Optional[Dict[str, Any]] = None,
|
||||
dup_check: bool = True,
|
||||
url: Optional[str] = None,
|
||||
password: Optional[str] = None,
|
||||
nzo_id: Optional[str] = None,
|
||||
dup_check: bool = True,
|
||||
) -> Tuple[AddNzbFileResult, List[str]]:
|
||||
"""Analyse archive and create job(s).
|
||||
Accepts archive files with ONLY nzb/nfo/folder files in it.
|
||||
@@ -266,10 +269,10 @@ def process_single_nzb(
|
||||
nzbname: Optional[str] = None,
|
||||
reuse: Optional[str] = None,
|
||||
nzo_info: Optional[Dict[str, Any]] = None,
|
||||
dup_check: bool = True,
|
||||
url: Optional[str] = None,
|
||||
password: Optional[str] = None,
|
||||
nzo_id: Optional[str] = None,
|
||||
dup_check: bool = True,
|
||||
) -> Tuple[AddNzbFileResult, List[str]]:
|
||||
"""Analyze file and create a job from it
|
||||
Supports NZB, NZB.BZ2, NZB.GZ and GZ.NZB-in-disguise
|
||||
|
||||
@@ -979,7 +979,7 @@ class NzbQueue:
|
||||
|
||||
# Unfortunately we need a copy, since we might remove items from the list
|
||||
for nzo in self.__nzo_list[:]:
|
||||
if not nzo.duplicate:
|
||||
if not nzo.duplicate or nzo.duplicate == DuplicateStatus.DUPLICATE_IGNORED:
|
||||
continue
|
||||
|
||||
# URL's do not have an MD5!
|
||||
|
||||
@@ -88,6 +88,7 @@ from sabnzbd.filesystem import (
|
||||
save_compressed,
|
||||
backup_nzb,
|
||||
remove_data,
|
||||
strip_extensions,
|
||||
)
|
||||
from sabnzbd.par2file import FilePar2Info
|
||||
from sabnzbd.decorators import synchronized
|
||||
@@ -102,7 +103,7 @@ from sabnzbd.deobfuscate_filenames import is_probably_obfuscated
|
||||
# In the subject, we expect the filename within double quotes
|
||||
RE_SUBJECT_FILENAME_QUOTES = re.compile(r'"([^"]*)"')
|
||||
# Otherwise something that looks like a filename
|
||||
RE_SUBJECT_BASIC_FILENAME = re.compile(r"([\w\-+()'\s.,]{5,}\.[A-Za-z0-9]{2,4})[^A-Za-z0-9]")
|
||||
RE_SUBJECT_BASIC_FILENAME = re.compile(r"\b([\w\-+()' .,]+(?:\[[\w\-/+()' .,]*][\w\-+()' .,]*)*\.[A-Za-z0-9]{2,4})\b")
|
||||
RE_RAR = re.compile(r"(\.rar|\.r\d\d|\.s\d\d|\.t\d\d|\.u\d\d|\.v\d\d)$", re.I)
|
||||
|
||||
|
||||
@@ -1432,12 +1433,13 @@ class NzbObject(TryList):
|
||||
# If user resumes after encryption warning, no more auto-pauses
|
||||
self.encrypted = 2
|
||||
# If user resumes after warning, reset duplicate/oversized/incomplete/unwanted indicators
|
||||
self.duplicate = None
|
||||
self.oversized = False
|
||||
self.incomplete = False
|
||||
if self.unwanted_ext:
|
||||
# If user resumes after "unwanted" warning, no more auto-pauses
|
||||
self.unwanted_ext = 2
|
||||
if self.duplicate:
|
||||
self.duplicate = DuplicateStatus.DUPLICATE_IGNORED
|
||||
|
||||
@synchronized(NZO_LOCK)
|
||||
def add_parfile(self, parfile: NzbFile) -> bool:
|
||||
@@ -1882,11 +1884,15 @@ class NzbObject(TryList):
|
||||
return None, None, None
|
||||
|
||||
# Only a subset we want to apply directly to the NZO
|
||||
for attrib in ("final_name", "priority", "password", "url"):
|
||||
for attrib in ("final_name", "priority", "url"):
|
||||
# Only set if it is present and has a value
|
||||
if attribs.get(attrib):
|
||||
setattr(self, attrib, attribs[attrib])
|
||||
|
||||
# Only set password if it wasn't already set
|
||||
if not self.password and attribs.get("password"):
|
||||
self.password = attribs["password"]
|
||||
|
||||
# Rest is to be used directly in the NZO-init flow
|
||||
return attribs["cat"], attribs["pp"], attribs["script"]
|
||||
|
||||
@@ -2110,14 +2116,8 @@ def nzf_cmp_name(nzf1: NzbFile, nzf2: NzbFile):
|
||||
def create_work_name(name: str) -> str:
|
||||
"""Remove ".nzb" and ".par(2)" and sanitize, skip URL's"""
|
||||
if name.find("://") < 0:
|
||||
# In case it was one of these, there might be more
|
||||
# Need to remove any invalid characters before starting
|
||||
name_base, ext = os.path.splitext(sanitize_foldername(name))
|
||||
while ext.lower() in (".nzb", ".par", ".par2"):
|
||||
name = name_base
|
||||
name_base, ext = os.path.splitext(name)
|
||||
# And make sure we remove invalid characters again
|
||||
return sanitize_foldername(name)
|
||||
# Invalid charters need to be removed before and after (see unit-tests)
|
||||
return sanitize_foldername(strip_extensions(sanitize_foldername(name)))
|
||||
else:
|
||||
return name.strip()
|
||||
|
||||
@@ -2127,6 +2127,10 @@ def scan_password(name: str) -> Tuple[str, Optional[str]]:
|
||||
if "http://" in name or "https://" in name:
|
||||
return name, None
|
||||
|
||||
# Strip any unwanted usenet-related extensions
|
||||
name = strip_extensions(name)
|
||||
|
||||
# Identify any braces
|
||||
braces = name[1:].find("{{")
|
||||
if braces < 0:
|
||||
braces = len(name)
|
||||
|
||||
@@ -92,7 +92,7 @@ def osx_shutdown():
|
||||
def osx_standby():
|
||||
"""Make macOS system sleep, returns after wakeup"""
|
||||
try:
|
||||
subprocess.call(["osascript", "-e", 'tell app "System Events" to sleep'])
|
||||
subprocess.call(["pmset", "sleepnow"])
|
||||
time.sleep(10)
|
||||
except:
|
||||
logging.error(T("Failed to standby system"))
|
||||
|
||||
@@ -567,8 +567,6 @@ SKIN_TEXT = {
|
||||
"button-clrServer": TT("Clear Counters"), #: Button: Clear server's byte counters
|
||||
"srv-testing": TT("Testing server details..."),
|
||||
"srv-bandwidth": TT("Bandwidth"),
|
||||
"srv-send_group": TT("Send Group"),
|
||||
"srv-explain-send_group": TT("Send group command before requesting articles."),
|
||||
"srv-notes": TT("Personal notes"),
|
||||
"srv-article-availability": TT("Article availability"),
|
||||
"srv-articles-tried": TT(
|
||||
|
||||
@@ -34,7 +34,7 @@ import base64
|
||||
from typing import Tuple, Optional, Union, List, Dict, Any
|
||||
|
||||
import sabnzbd
|
||||
from sabnzbd.constants import DEF_TIMEOUT, FUTURE_Q_FOLDER, VALID_NZB_FILES, Status, VALID_ARCHIVES
|
||||
from sabnzbd.constants import DEF_TIMEOUT, FUTURE_Q_FOLDER, VALID_NZB_FILES, Status, VALID_ARCHIVES, DuplicateStatus
|
||||
import sabnzbd.misc as misc
|
||||
import sabnzbd.filesystem
|
||||
import sabnzbd.cfg as cfg
|
||||
@@ -243,6 +243,10 @@ class URLGrabber(Thread):
|
||||
|
||||
# Check if nzb file
|
||||
if sabnzbd.filesystem.get_ext(filename) in VALID_ARCHIVES + VALID_NZB_FILES:
|
||||
# If the user resumed a duplicate detected URL, skip the check
|
||||
dup_check = future_nzo.duplicate != DuplicateStatus.DUPLICATE_IGNORED
|
||||
|
||||
# Add the new job to the queue
|
||||
res, _ = sabnzbd.nzbparser.add_nzbfile(
|
||||
path,
|
||||
pp=future_nzo.pp,
|
||||
@@ -255,6 +259,7 @@ class URLGrabber(Thread):
|
||||
keep=False,
|
||||
password=future_nzo.password,
|
||||
nzo_id=future_nzo.nzo_id,
|
||||
dup_check=dup_check,
|
||||
)
|
||||
if res is AddNzbFileResult.RETRY:
|
||||
logging.info("Incomplete NZB, retry after 5 min %s", url)
|
||||
|
||||
@@ -29,7 +29,7 @@ def generate_key(key_size=2048, output_file="key.pem"):
|
||||
private_key.private_bytes(
|
||||
encoding=serialization.Encoding.PEM,
|
||||
format=serialization.PrivateFormat.TraditionalOpenSSL,
|
||||
encryption_algorithm=serialization.NoEncryption()
|
||||
encryption_algorithm=serialization.NoEncryption(),
|
||||
# encryption_algorithm=serialization.BestAvailableEncryption(b"passphrase")
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,56 +1,9 @@
|
||||
import platform
|
||||
import subprocess
|
||||
import locale
|
||||
import logging
|
||||
import time
|
||||
|
||||
from .pystone import pystones
|
||||
|
||||
|
||||
def getcpu():
|
||||
# find the CPU name (which needs a different method per OS), and return it
|
||||
# If none found, return platform.platform().
|
||||
|
||||
cputype = None
|
||||
|
||||
try:
|
||||
if platform.system() == "Windows":
|
||||
import winreg
|
||||
|
||||
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Hardware\Description\System\CentralProcessor\0")
|
||||
cputype = winreg.QueryValueEx(key, "ProcessorNameString")[0]
|
||||
winreg.CloseKey(key)
|
||||
|
||||
elif platform.system() == "Darwin":
|
||||
cputype = subprocess.check_output(["sysctl", "-n", "machdep.cpu.brand_string"]).strip()
|
||||
|
||||
elif platform.system() == "Linux":
|
||||
with open("/proc/cpuinfo") as fp:
|
||||
for myline in fp.readlines():
|
||||
if myline.startswith("model name"):
|
||||
# Typical line:
|
||||
# model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
|
||||
cputype = myline.split(":", 1)[1] # get everything after the first ":"
|
||||
break # we're done
|
||||
cputype = cputype.decode(locale.getpreferredencoding())
|
||||
except:
|
||||
# An exception, maybe due to a subprocess call gone wrong
|
||||
pass
|
||||
|
||||
if cputype:
|
||||
# OK, found. Remove unwanted spaces:
|
||||
cputype = " ".join(cputype.split())
|
||||
else:
|
||||
try:
|
||||
# Not found, so let's fall back to platform()
|
||||
cputype = platform.platform()
|
||||
except:
|
||||
# Can fail on special platforms (like Snapcraft or embedded)
|
||||
pass
|
||||
|
||||
logging.debug("CPU model = %s", cputype)
|
||||
return cputype
|
||||
|
||||
|
||||
def getpystone():
|
||||
# Start calculation
|
||||
maxpystone = 0
|
||||
@@ -69,4 +22,3 @@ def getpystone():
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(getpystone())
|
||||
print(getcpu())
|
||||
|
||||
@@ -241,7 +241,6 @@ kDNSServiceInterfaceIndexLocalOnly = -1
|
||||
|
||||
|
||||
class BonjourError(Exception):
|
||||
|
||||
"""
|
||||
|
||||
Exception representing an error returned by the DNS-SD library.
|
||||
@@ -321,7 +320,6 @@ _DNSServiceErrorType = ctypes.c_int32
|
||||
|
||||
|
||||
class DNSRecordRef(ctypes.c_void_p):
|
||||
|
||||
"""
|
||||
|
||||
A DNSRecordRef pointer. DO NOT CREATE INSTANCES OF THIS CLASS!
|
||||
@@ -367,7 +365,6 @@ class _DNSRecordRef_or_null(DNSRecordRef):
|
||||
|
||||
|
||||
class DNSServiceRef(DNSRecordRef):
|
||||
|
||||
"""
|
||||
|
||||
A DNSServiceRef pointer. DO NOT CREATE INSTANCES OF THIS CLASS!
|
||||
@@ -1740,7 +1737,6 @@ def DNSServiceConstructFullName(service=None, regtype=_NO_DEFAULT, domain=_NO_DE
|
||||
|
||||
|
||||
class TXTRecord(object):
|
||||
|
||||
"""
|
||||
|
||||
A mapping representing a DNS TXT record. The TXT record's
|
||||
|
||||
@@ -20,9 +20,8 @@ sabnzbd.utils.servertests - Debugging server connections. Currently only NNTP se
|
||||
"""
|
||||
|
||||
import socket
|
||||
import sys
|
||||
|
||||
from sabnzbd.constants import DEF_TIMEOUT
|
||||
from sabnzbd.constants import DEF_TEST_TIMEOUT
|
||||
from sabnzbd.newswrapper import NewsWrapper, NNTPPermanentError
|
||||
from sabnzbd.downloader import Server, clues_login, clues_too_many
|
||||
from sabnzbd.config import get_servers
|
||||
@@ -37,7 +36,7 @@ def test_nntp_server_dict(kwargs):
|
||||
password = kwargs.get("password", "").strip()
|
||||
server = kwargs.get("server", "").strip()
|
||||
connections = int_conv(kwargs.get("connections", 0))
|
||||
timeout = int_conv(kwargs.get("timeout", DEF_TIMEOUT))
|
||||
timeout = int_conv(kwargs.get("timeout", DEF_TEST_TIMEOUT))
|
||||
ssl = int_conv(kwargs.get("ssl", 0))
|
||||
ssl_verify = int_conv(kwargs.get("ssl_verify", 1))
|
||||
ssl_ciphers = kwargs.get("ssl_ciphers", "").strip()
|
||||
@@ -56,7 +55,7 @@ def test_nntp_server_dict(kwargs):
|
||||
|
||||
if not timeout:
|
||||
# Lower value during new server testing
|
||||
timeout = 10
|
||||
timeout = DEF_TEST_TIMEOUT
|
||||
|
||||
if "*" in password and not password.strip("*"):
|
||||
# If the password is masked, try retrieving it from the config
|
||||
@@ -78,7 +77,6 @@ def test_nntp_server_dict(kwargs):
|
||||
use_ssl=ssl,
|
||||
ssl_verify=ssl_verify,
|
||||
ssl_ciphers=ssl_ciphers,
|
||||
send_group=False,
|
||||
username=username,
|
||||
password=password,
|
||||
)
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
# You MUST use double quotes (so " and not ')
|
||||
# Do not forget to update the appdata file for every major release!
|
||||
|
||||
__version__ = "4.2.2Beta1"
|
||||
__baseline__ = "unknown"
|
||||
__version__ = "4.2.3"
|
||||
__baseline__ = "7cd6c9448237bafa14f954e256a2a907a8874c81"
|
||||
|
||||
@@ -1194,16 +1194,25 @@ class TestUnwantedExtensions:
|
||||
assert filesystem.has_unwanted_extension(filename) is False
|
||||
|
||||
|
||||
class TestDirectoryWriting:
|
||||
# very basic test of directory_is_writable()
|
||||
# let's test on the tempdir provided by the OS:
|
||||
class TestOtherFileSystemFunctions:
|
||||
def test_directory_is_writable(self):
|
||||
# verify directory is writable at all
|
||||
# very basic test of directory_is_writable()
|
||||
# let's test on the tempdir provided by the OS:
|
||||
assert filesystem.directory_is_writable(tempfile.gettempdir())
|
||||
|
||||
|
||||
class FilesystemCapabilities:
|
||||
def test_filesystem_capabilities(self):
|
||||
# test the filesystem is capable of long and unicode filenames
|
||||
# any modern filesystem (ext3, ext4, ntfs, modern FAT) should succeed
|
||||
assert filesystem.check_filesystem_capabilities(tempfile.gettempdir())
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"name, ext_to_remove, output",
|
||||
[
|
||||
("Test.nzb", (".nzb",), "Test"),
|
||||
("Test.nzb.nzb.nzb.nzb.nzb", (".nzb",), "Test"),
|
||||
("Test.not", (".nzb",), "Test.not"),
|
||||
("No.par2.Test.par2.nzb", (".nzb", ".par2"), "No.par2.Test"),
|
||||
],
|
||||
)
|
||||
def test_strip_extensions(self, name, ext_to_remove, output):
|
||||
assert filesystem.strip_extensions(name, ext_to_remove) == output
|
||||
|
||||
@@ -769,7 +769,10 @@ class TestQueueApi(ApiTestFunctions):
|
||||
("my_scripted_script_.py", True, True),
|
||||
("유닉스.py", True, True),
|
||||
pytest.param(
|
||||
"유닉스.sh", True, True, marks=pytest.mark.skipif(sys.platform.startswith("win"), reason="Not for Windows")
|
||||
"유닉스.sh",
|
||||
True,
|
||||
True,
|
||||
marks=pytest.mark.skipif(sys.platform.startswith("win"), reason="Not for Windows"),
|
||||
),
|
||||
pytest.param(
|
||||
"لغة برمجة نصية",
|
||||
|
||||
@@ -123,17 +123,21 @@ class TestNZBStuffHelpers:
|
||||
("multiple_pw{{first-pw}}_{{second-pw}}", "multiple_pw", "first-pw}}_{{second-pw"), # Greed is Good
|
||||
("デビアン", "デビアン", None), # Unicode
|
||||
("Gentoo_Hobby_Edition {{secret}}", "Gentoo_Hobby_Edition", "secret"), # Space between name and password
|
||||
("Test {{secret}}.nzb", "Test", "secret"),
|
||||
("Mandrake{{top{{secret}}", "Mandrake", "top{{secret"), # Double opening {{
|
||||
("Красная}}{{Шляпа}}", "Красная}}", "Шляпа"), # Double closing }}
|
||||
("{{Jobname{{PassWord}}", "{{Jobname", "PassWord"), # {{ at start
|
||||
("Hello/kITTY", "Hello", "kITTY"), # Notation with slash
|
||||
("Hello/kITTY.nzb", "Hello", "kITTY"), # Notation with slash and extension
|
||||
("/Jobname", "/Jobname", None), # Slash at start
|
||||
("Jobname/Top{{Secret}}", "Jobname", "Top{{Secret}}"), # Slash with braces
|
||||
("Jobname / Top{{Secret}}", "Jobname", "Top{{Secret}}"), # Slash with braces and extra spaces
|
||||
("Jobname / Top{{Secret}}.nzb", "Jobname", "Top{{Secret}}"),
|
||||
("לינוקס/معلومات سرية", "לינוקס", "معلومات سرية"), # LTR with slash
|
||||
("לינוקס{{معلومات سرية}}", "לינוקס", "معلومات سرية"), # LTR with brackets
|
||||
("thư điện tử password=mật_khẩu", "thư điện tử", "mật_khẩu"), # Password= notation
|
||||
("password=PartOfTheJobname", "password=PartOfTheJobname", None), # Password= at the start
|
||||
("Job password=Test.par2", "Job", "Test"), # Password= including extension
|
||||
("Job}}Name{{FTW", "Job}}Name{{FTW", None), # Both {{ and }} present but incorrect order (no password)
|
||||
("./Text", "./Text", None), # Name would end up empty after the function strips the dot
|
||||
],
|
||||
@@ -141,22 +145,23 @@ class TestNZBStuffHelpers:
|
||||
def test_scan_password(self, argument, name, password):
|
||||
assert nzbstuff.scan_password(argument) == (name, password)
|
||||
|
||||
def test_create_work_name(self):
|
||||
@pytest.mark.parametrize(
|
||||
"file_name, clean_file_name",
|
||||
[
|
||||
("my_awesome_nzb_file.pAr2.nZb", "my_awesome_nzb_file"),
|
||||
("my_awesome_nzb_file.....pAr2.nZb", "my_awesome_nzb_file"),
|
||||
("my_awesome_nzb_file....par2..", "my_awesome_nzb_file"),
|
||||
(" my_awesome_nzb_file .pAr.nZb", "my_awesome_nzb_file"),
|
||||
("with.extension.and.period.par2.", "with.extension.and.period"),
|
||||
("nothing.in.here", "nothing.in.here"),
|
||||
(" just.space ", "just.space"),
|
||||
("http://test.par2 ", "http://test.par2"),
|
||||
],
|
||||
)
|
||||
def test_create_work_name(self, file_name, clean_file_name):
|
||||
# Only test stuff specific for create_work_name
|
||||
# The sanitizing is already tested in tests for sanitize_foldername
|
||||
file_names = {
|
||||
"my_awesome_nzb_file.pAr2.nZb": "my_awesome_nzb_file",
|
||||
"my_awesome_nzb_file.....pAr2.nZb": "my_awesome_nzb_file",
|
||||
"my_awesome_nzb_file....par2..": "my_awesome_nzb_file",
|
||||
" my_awesome_nzb_file .pAr.nZb": "my_awesome_nzb_file",
|
||||
"with.extension.and.period.par2.": "with.extension.and.period",
|
||||
"nothing.in.here": "nothing.in.here",
|
||||
" just.space ": "just.space",
|
||||
"http://test.par2 ": "http://test.par2",
|
||||
}
|
||||
|
||||
for file_name, clean_file_name in file_names.items():
|
||||
assert nzbstuff.create_work_name(file_name) == clean_file_name
|
||||
assert nzbstuff.create_work_name(file_name) == clean_file_name
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"subject, filename",
|
||||
@@ -196,22 +201,19 @@ class TestNZBStuffHelpers:
|
||||
# If specified between [], the extension should be a valid one
|
||||
("Bla [Now it's done.123nonsense]", "Bla [Now it's done.123nonsense]"),
|
||||
('[PRiVATE]-[WtFnZb]-[00000.clpi]-[1/46] - "" yEnc 788 (1/1)', "00000.clpi"),
|
||||
# In anyone can improve the one below, that would be great!
|
||||
(
|
||||
'[PRiVATE]-[WtFnZb]-[Video_(2001)_AC5.1_-RELEASE_[TAoE].mkv]-[1/23] - "" yEnc 1234567890 (1/23456)',
|
||||
'[PRiVATE]-[WtFnZb]-[Video_(2001)_AC5.1_-RELEASE_[TAoE].mkv]-[1/23] - "" yEnc 1234567890 (1/23456)',
|
||||
"Video_(2001)_AC5.1_-RELEASE_[TAoE].mkv",
|
||||
),
|
||||
(
|
||||
"[PRiVATE]-[WtFnZb]-[219]-[1/series.name.s01e01.1080p.web.h264-group.mkv] - "
|
||||
" yEnc (1/[PRiVATE] \\c2b510b594\\::686ea969999193.155368eba4965e56a8cd263382e012.f2712fdc::/97bd201cf931/) 1 (1/0)",
|
||||
"series.name.s01e01.1080p.web.h264-group.mkv",
|
||||
),
|
||||
# This is not correct, but better than nothing
|
||||
# In anyone can improve, that would be great!
|
||||
(
|
||||
"[PRiVATE]-[WtFnZb]-[/More.Bla.S02E01.1080p.WEB.h264-EDITH[eztv.re].mkv-WtF[nZb]/"
|
||||
"More.Bla.S02E01.1080p.WEB.h264-EDITH.mkv]-[1/2] - "" yEnc 2990558544 (1/4173)",
|
||||
"More.Bla.S02E01.1080p.WEB.h264",
|
||||
'More.Bla.S02E01.1080p.WEB.h264-EDITH.mkv]-[1/2] - "" yEnc 2990558544 (1/4173)',
|
||||
"More.Bla.S02E01.1080p.WEB.h264-EDITH[eztv.re].mkv",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -150,11 +150,11 @@ class TestPostProc:
|
||||
"order": 0,
|
||||
"pp": None,
|
||||
"script": None,
|
||||
"dir": os.path.join(
|
||||
SAB_CACHE_DIR, ("category_dir_for_" + category + ("*" if not has_jobdir else ""))
|
||||
)
|
||||
if has_catdir
|
||||
else None,
|
||||
"dir": (
|
||||
os.path.join(SAB_CACHE_DIR, ("category_dir_for_" + category + ("*" if not has_jobdir else "")))
|
||||
if has_catdir
|
||||
else None
|
||||
),
|
||||
"newzbin": "",
|
||||
"priority": 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user