mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Use Response.text instead of Response.content
`content` returns a bytes object, `text` returns a string object. The latter can be splitted by the string `\n`, the former cannot, which leads to an Exception.
This commit is contained in:
parent
0329cc4f98
commit
c39acbcc8e
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
status_code=1,
|
status_code=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
result = r.content
|
result = r.text
|
||||||
if not type(result) == list:
|
if not type(result) == list:
|
||||||
result = result.split('\n')
|
result = result.split('\n')
|
||||||
for line in result:
|
for line in result:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue