Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
sickrage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SiCKRAGE
sickrage
Commits
d41e5256
Commit
d41e5256
authored
Feb 11, 2019
by
echel0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with "unable to verify the download url"
parent
dd0f62c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
changelog.md
changelog.md
+2
-1
sickrage/providers/__init__.py
sickrage/providers/__init__.py
+2
-4
No files found.
changelog.md
View file @
d41e5256
# Changelog
-
*
55e7878 - 2019-01-22: Release v9.4.58
-
*
c815554 - 2019-02-11: Fixed issue with
"
unable to verify the download url
"
-
*
9a10462 - 2019-01-22: Release v9.4.58
-
*
92b5423 - 2019-01-22: Dockerfile default TZ set to Canada/Pacific
-
*
c128f16 - 2019-01-22: Pre-Release v9.4.58.dev1
-
*
8913178 - 2019-01-21: Release v9.4.57
...
...
sickrage/providers/__init__.py
View file @
d41e5256
...
...
@@ -653,15 +653,13 @@ class TorrentProvider(GenericProvider):
info_hash
=
b16encode
(
b32decode
(
info_hash
)).
upper
()
if
info_hash
:
torrent_url
=
"https://itorrents.org/torrent/{info_hash}.torrent"
.
format
(
info_hash
=
info_hash
)
result
=
verify_torrent
(
super
(
TorrentProvider
,
self
).
get_content
(
torrent_url
))
try
:
# add to external api database
TorrentCacheAPI
().
add
(
url
)
result
=
verify_torrent
(
b64decode
(
TorrentCacheAPI
().
get
(
info_hash
)[
'data'
][
'content'
]).
strip
())
except
Exception
:
pass
torrent_url
=
"https://itorrents.org/torrent/{info_hash}.torrent"
.
format
(
info_hash
=
info_hash
)
result
=
verify_torrent
(
super
(
TorrentProvider
,
self
).
get_content
(
torrent_url
))
if
not
result
:
result
=
verify_torrent
(
super
(
TorrentProvider
,
self
).
get_content
(
url
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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