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
|
@ -127,7 +127,7 @@ class UTorrentClient(object):
|
|||
|
||||
def _action(self, params, body=None, content_type=None):
|
||||
# about token, see https://github.com/bittorrent/webui/wiki/TokenSystem
|
||||
url = self.base_url + '?token=' + self.token + '&' + urlencode(params)
|
||||
url = '{url}?token={token}&{params}'.format(url=self.url, token=self.token, params=urlencode(params))
|
||||
request = Request(url)
|
||||
|
||||
if body:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue