Decode the b64 data to utf-8 for nzbget (#3294)

This commit is contained in:
rembo10
2022-02-14 10:14:44 +05:30
parent 9d82143abe
commit b7e35d5ff0

View File

@@ -70,7 +70,8 @@ def sendNZB(nzb):
nzbcontent64 = None
if nzb.resultType == "nzbdata":
data = nzb.extraInfo[0]
nzbcontent64 = standard_b64encode(data)
# NZBGet needs a string, not bytes
nzbcontent64 = standard_b64encode(data).decode("utf-8")
logger.info("Sending NZB to NZBget")
logger.debug("URL: " + url)