mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Standardize string formatting to use .format instead of concat
This commit is contained in:
parent
a3a59af3f8
commit
2ad9f2e35f
18 changed files with 259 additions and 239 deletions
|
@ -310,9 +310,9 @@ def main(args):
|
|||
os.path.basename(dirName))
|
||||
)
|
||||
|
||||
clientAgent = str(core.DOWNLOADINFO[0].get('client_agent', ''))
|
||||
inputHash = str(core.DOWNLOADINFO[0].get('input_hash', ''))
|
||||
inputID = str(core.DOWNLOADINFO[0].get('input_id', ''))
|
||||
clientAgent = text_type(core.DOWNLOADINFO[0].get('client_agent', ''))
|
||||
inputHash = text_type(core.DOWNLOADINFO[0].get('input_hash', ''))
|
||||
inputID = text_type(core.DOWNLOADINFO[0].get('input_id', ''))
|
||||
|
||||
if clientAgent and clientAgent.lower() not in core.TORRENT_CLIENTS:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue