mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-20 22:54:10 +00:00
Fix parsing of broken URLs.
This commit is contained in:
@@ -48,7 +48,7 @@ class BrowserIntegration(QtNetwork.QTcpServer):
|
||||
self.log.debug("Browser integration request: %r", line)
|
||||
if line[0] == "GET" and "?" in line[1]:
|
||||
action, args = line[1].split("?")
|
||||
args = [a.split("=") for a in args.split("&")]
|
||||
args = [a.split("=", 1) for a in args.split("&")]
|
||||
args = dict((a, unicode(QtCore.QUrl.fromPercentEncoding(b))) for (a, b) in args)
|
||||
if action == "/openalbum":
|
||||
self.tagger.load_album(args["id"], catalognumber=args.get("catno"))
|
||||
|
||||
Reference in New Issue
Block a user