mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2026-02-13 17:23:18 -05:00
Take servers that only support ARTICLE into account.
When only full articles are available, the decoder needs to scan more lines to find the start of the payload.
This commit is contained in:
@@ -246,7 +246,7 @@ def decode(article, data):
|
||||
if not ybegin:
|
||||
found = False
|
||||
try:
|
||||
for i in xrange(10):
|
||||
for i in xrange(min(40, len(data))):
|
||||
if data[i].startswith('begin '):
|
||||
nzf.filename = name_fixer(data[i].split(None, 2)[2])
|
||||
nzf.type = 'uu'
|
||||
@@ -310,7 +310,7 @@ def yCheck(data):
|
||||
yend = None
|
||||
|
||||
## Check head
|
||||
for i in xrange(40):
|
||||
for i in xrange(min(40, len(data))):
|
||||
try:
|
||||
if data[i].startswith('=ybegin '):
|
||||
splits = 3
|
||||
|
||||
Reference in New Issue
Block a user