Skip to content

Commit

Permalink
tld: avoid busyloader after switching profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandmann79 committed Oct 8, 2020
1 parent 32c1234 commit 514f4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin.video.amazon-test/resources/lib/amazontld.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,6 @@ def getProfiles(self):
def switchProfile(self):
active, profiles = self.getProfiles()
ret = self._g.dialog.select('Amazon', [i[0] for i in profiles])
if ret < 0 or ret == active:
return
getURL(profiles[ret][1], useCookie=True, rjson=False, silent=True)
if ret >= 0 or ret != active:
getURL(profiles[ret][1], useCookie=True, rjson=False, silent=True, check=True)
exit()

0 comments on commit 514f4c8

Please sign in to comment.