Compare commits

..

11 Commits
3.5.1 ... 3.5.x

Author SHA1 Message Date
Safihre
f5f36d21e8 Update text files 3.5.3 2022-03-17 14:12:40 +01:00
Safihre
c51435c114 Revert "Notify users of Prowl/Pushover/Pushbullet to switch to nzb-notify"
This reverts commit 56fe140ebf.
2022-03-15 21:52:16 +01:00
Safihre
2a7f1780b4 Update text files for 3.5.3RC1 2022-03-13 13:26:18 +01:00
Safihre
98a44e40fb Jobs waiting to fetch get stuck indefinitely upon restart
Closes #2114
2022-03-11 16:29:28 +01:00
Safihre
65cf6fa9a1 Prevent Direct Unpack proceeding faster than it should, locking files
Relates to #2113
2022-03-11 16:29:19 +01:00
Safihre
b2e32d1720 Log also the OSError.winerror just to be sure 2022-03-11 16:29:11 +01:00
Safihre
f0bfedbe8e Revert "Revert "Disable buffering when writing files in assembler""
This reverts commit 03b380f90b.
2022-03-11 16:29:04 +01:00
Safihre
4a73484603 Update text files for 3.5.2 2022-03-09 14:24:13 +01:00
Safihre
03b380f90b Revert "Disable buffering when writing files in assembler"
This reverts commit 3c3aeac93c.

It turns out this causes problems!
2022-03-03 15:44:15 +01:00
Safihre
a2bd3b2dfe RSS filters At most/least were broken 2022-03-01 08:42:31 +01:00
Safihre
56fe140ebf Notify users of Prowl/Pushover/Pushbullet to switch to nzb-notify
Relates to #2093
2022-02-24 16:47:44 +01:00
11 changed files with 29 additions and 21 deletions

View File

@@ -13,7 +13,6 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-20.04]
include:
# TODO: Update to 3.10 when all packages are available, currently lxml is missing
- name: macOS
os: macos-latest
python-version: "3.10"

View File

@@ -1,7 +1,7 @@
Metadata-Version: 1.0
Name: SABnzbd
Version: 3.5.1
Summary: SABnzbd-3.5.1
Version: 3.5.3
Summary: SABnzbd-3.5.3
Home-page: https://sabnzbd.org
Author: The SABnzbd Team
Author-email: team@sabnzbd.org

View File

@@ -1,6 +1,10 @@
Release Notes - SABnzbd 3.5.1
Release Notes - SABnzbd 3.5.3
=========================================================
## Bugfix since 3.5.0
- Prevent disk errors due to Direct Unpack being too aggressive.
- URL's waiting to fetch get stuck indefinitely upon restart.
## Changes and bugfixes since 3.5.0
- Prevent permissions errors on systems that do not support them.
- Small changes in file assembly and Direct Unpack processing.

View File

@@ -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>

View File

@@ -191,9 +191,13 @@ class Assembler(Thread):
else:
logging.error(T("Disk error on creating file %s"), clip_path(filepath))
# Log traceback
logging.info("Traceback: ", exc_info=True)
if sabnzbd.WIN32:
logging.info("Winerror: %s", hex(ctypes.windll.ntdll.RtlGetLastNtStatus() + 2**32))
logging.info(
"Winerror: %s - %s",
err.winerror,
hex(ctypes.windll.ntdll.RtlGetLastNtStatus() + 2**32),
)
logging.info("Traceback: ", exc_info=True)
# Pause without saving
sabnzbd.Downloader.pause()
else:

0
sabnzbd/deobfuscate_filenames.py Executable file → Normal file
View File

View File

@@ -352,10 +352,10 @@ class DirectUnpacker(threading.Thread):
return False
def wait_for_next_volume(self):
"""Wait for the correct volume to appear
But stop if it was killed or the NZB is done
"""Wait for the correct volume to appear but stop if it was killed
or the NZB is in post-processing and no new files will be downloaded.
"""
while not self.have_next_volume() and not self.killed and self.nzo.files:
while not self.have_next_volume() and not self.killed and not self.nzo.pp_active:
with self.next_file_lock:
self.next_file_lock.wait()

View File

@@ -681,7 +681,7 @@ def _get_link(entry):
# GUID usually has URL to result on page
infourl = None
if entry.get("id") and entry.id != link and entry.id.startswith("http"):
if entry.get("id") and entry.id != link and entry.id.lower().startswith("http"):
infourl = entry.id
if size == 0:
@@ -716,7 +716,7 @@ def _get_link(entry):
except (KeyError, IndexError):
season = episode = 0
if link and "http" in link.lower():
if link and link.lower().startswith("http"):
try:
category = entry.cattext
except AttributeError:

View File

@@ -63,8 +63,6 @@ class URLGrabber(Thread):
def __init__(self):
super().__init__()
self.queue: queue.Queue[Tuple[Optional[str], Optional[NzbObject]]] = queue.Queue()
for url_nzo_tup in sabnzbd.NzbQueue.get_urls():
self.queue.put(url_nzo_tup)
self.shutdown = False
def add(self, url: str, future_nzo: NzbObject, when: Optional[int] = None):
@@ -87,7 +85,11 @@ class URLGrabber(Thread):
self.queue.put((None, None))
def run(self):
self.shutdown = False
# Read all URL's to grab from the queue
for url_nzo_tup in sabnzbd.NzbQueue.get_urls():
self.queue.put(url_nzo_tup)
# Start fetching
while not self.shutdown:
# Set NzbObject object to None so reference from this thread
# does not keep the object alive in the future (see #1628)
@@ -403,7 +405,7 @@ def add_url(
password: Optional[str] = None,
):
"""Add NZB based on a URL, attributes optional"""
if "http" not in url:
if not url.lower().startswith("http"):
return
if not pp or pp == "-1":
pp = None

View File

@@ -5,5 +5,5 @@
# You MUST use double quotes (so " and not ')
__version__ = "3.5.1"
__baseline__ = "4b74aab335001a56c62440a8aa47cba510ecb3fa"
__version__ = "develop"
__baseline__ = "unknown"

View File

@@ -7,7 +7,6 @@ pytest-httpbin
pytest-httpserver
flaky
xmltodict
tavern<1.16.2; python_version == '3.6'
tavern; python_version > '3.6'
tavern
tavalidate
lxml>=4.5.0 # needed by tavalidate