mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
IMDB: change URL split index
This commit is contained in:
parent
bbfa1c72e9
commit
b5d54daf93
@ -76,7 +76,7 @@ class IMDb(callbacks.Plugin):
|
||||
apikey = self.registryValue('omdbAPI')
|
||||
url = self.dosearch(query)
|
||||
if url:
|
||||
imdb_id = url.split("/title/")[-1].rstrip("/")
|
||||
imdb_id = url.split("/title/")[1].rstrip("/")
|
||||
omdb_url = "http://www.omdbapi.com/?i=%s&plot=short&r=json&tomatoes=true&apikey=%s" % (imdb_id, apikey)
|
||||
else:
|
||||
irc.reply("No results found for {0}".format(query))
|
||||
|
Loading…
x
Reference in New Issue
Block a user