summarylogtreecommitdiffstats
path: root/wrapper-Fix-dropping-every-second-line-of-stdout-807.patch
blob: c86ec96cf59befa37fbef2c8ccd25bcb9ce8604d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 5f1e047a406a2b2ce32af89b0a44a401c30160ac Mon Sep 17 00:00:00 2001
From: jkhsjdhjs <jkhsjdhjs@users.noreply.github.com>
Date: Tue, 1 Nov 2022 21:45:13 +0100
Subject: [PATCH] wrapper: Fix dropping every second line of stdout (#807)

Since readline() was called twice on stdout, every second
line of nzbhydra's output was previously dropped.
---
 other/wrapper/nzbhydra2wrapperPy3.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/other/wrapper/nzbhydra2wrapperPy3.py b/other/wrapper/nzbhydra2wrapperPy3.py
index c44f3f77..1c691007 100644
--- a/other/wrapper/nzbhydra2wrapperPy3.py
+++ b/other/wrapper/nzbhydra2wrapperPy3.py
@@ -424,7 +424,7 @@ def startup():
         while True:
             # Handle error first in case startup of main process returned only an error (on stderror)
             nextline = process.stdout.readline()
-            nextlineString = process.stdout.readline().decode("utf-8")
+            nextlineString = nextline.decode("utf-8")
             if nextlineString == '' and process.poll() is not None:
                 break
             if nextlineString != "":
-- 
2.38.1