Skip to content

Commit

Permalink
[imdb] Fix a query issue
Browse files Browse the repository at this point in the history
A search for "Catch And Release" failed; doing it in the browser shows
it wants a captcha test.  Placing "s" before "q" is enough to make it
work again.
  • Loading branch information
adoxa committed Oct 17, 2023
1 parent 50dd022 commit 2327ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imdb/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def getIMDB(self, search=False):

if self.eventName:
self["statusbar"].setText(_("Query IMDb: %s") % self.eventName)
fetchurl = "https://www.imdb.com/find?q=" + quoteEventName(self.eventName) + "&s=tt"
fetchurl = "https://www.imdb.com/find?s=tt&q=" + quoteEventName(self.eventName)
# print("[IMDB] getIMDB() Downloading Query", fetchurl)
download = getPage(fetchurl, cookies=self.cookie)
download.addCallback(self.IMDBquery).addErrback(self.http_failed)
Expand Down

0 comments on commit 2327ce1

Please sign in to comment.