mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-20 22:54:10 +00:00
PICARD-1575: Allow dragging images from Bing image search result
This commit is contained in:
@@ -409,6 +409,10 @@ class CoverArtBox(QtWidgets.QGroupBox):
|
||||
# This may be a google images result, try to get the URL which is encoded in the query
|
||||
url = QtCore.QUrl(url_query.queryItemValue("imgurl", QtCore.QUrl.FullyDecoded))
|
||||
self.fetch_remote_image(url)
|
||||
elif url_query.hasQueryItem("mediaurl"):
|
||||
# Bing uses mediaurl
|
||||
url = QtCore.QUrl(url_query.queryItemValue("mediaurl", QtCore.QUrl.FullyDecoded))
|
||||
self.fetch_remote_image(url)
|
||||
else:
|
||||
log.warning("Can't load remote image with MIME-Type %s", mime)
|
||||
if fallback_data:
|
||||
|
||||
Reference in New Issue
Block a user