mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Use Response.text instead of Response.content (#1822)
`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
6ccc4abc18
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,
|
||||
)
|
||||
|
||||
result = r.content
|
||||
result = r.text
|
||||
if not type(result) == list:
|
||||
result = result.split('\n')
|
||||
for line in result:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue