fix thepiratebay.getId
This commit is contained in:
parent
55ff7463b5
commit
e8d37289c0
1 changed files with 1 additions and 3 deletions
|
@ -60,9 +60,7 @@ def findMovieByImdb(imdb):
|
||||||
def getId(piratebayId):
|
def getId(piratebayId):
|
||||||
if piratebayId.startswith('http://torrents.thepiratebay.org/'):
|
if piratebayId.startswith('http://torrents.thepiratebay.org/'):
|
||||||
piratebayId = piratebayId.split('org/')[1]
|
piratebayId = piratebayId.split('org/')[1]
|
||||||
if 'tor/' in piratebayId:
|
d = findRe(piratebayId, "tor/(\d+)")
|
||||||
piratebayId = piratebayId.split('tor/')[1]
|
|
||||||
d = findRe(piratebayId, "/(\d+)")
|
|
||||||
if d:
|
if d:
|
||||||
piratebayId = d
|
piratebayId = d
|
||||||
return piratebayId
|
return piratebayId
|
||||||
|
|
Loading…
Reference in a new issue