Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
451aa807
Commit
451aa807
authored
Dec 15, 2017
by
echel0n
Browse files
Refactored API url
parent
a915b3c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
451aa807
# Changelog
-
*
5b32791 - 2017-12-15: Added new code for converting magnet links to torrent files via SR API
-
*
f41616c - 2017-12-15: Refactored API url
-
*
a915b3c - 2017-12-15: Added new code for converting magnet links to torrent files via SR API
-
*
bb8a5b8 - 2017-12-15: Fix unicode issues for Newpct torrent provider
-
*
c0f1698 - 2017-12-15: Added custom url setting to torrent9 provider
-
*
032e9ed - 2017-12-15: Release v9.2.64
...
...
sickrage/core/api/__init__.py
View file @
451aa807
...
...
@@ -78,4 +78,4 @@ class API(object):
return
self
.
_request
(
'GET'
,
query
)
def
magnet2torrent
(
self
,
magnet
):
return
self
.
_request
(
'POST'
,
'v1/mag2tor'
,
data
=
dict
({
'magnet'
:
magnet
}))
return
self
.
_request
(
'POST'
,
'v1/
torrents/
mag2tor'
,
data
=
dict
({
'magnet'
:
magnet
}))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment