forked from pool/picard
Accepting request 46222 from multimedia:apps
Copy from multimedia:apps/picard based on submit request 46222 from user saschpe OBS-URL: https://build.opensuse.org/request/show/46222 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/picard?expand=0&rev=1
This commit is contained in:
23
SearchGMR.py
Normal file
23
SearchGMR.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
PLUGIN_NAME = u"Search Game Music Revolution (codebase 4.1)"
|
||||
PLUGIN_AUTHOR = u"Brian Schweitzer"
|
||||
PLUGIN_DESCRIPTION = "Search Game Music Revolution"
|
||||
PLUGIN_VERSION = "0.1"
|
||||
PLUGIN_API_VERSIONS = ["0.9.0", "0.10"]
|
||||
|
||||
from PyQt4 import QtCore
|
||||
from picard.cluster import Cluster
|
||||
from picard.util import webbrowser2
|
||||
from picard.ui.itemviews import BaseAction, register_cluster_action
|
||||
from picard.ui.itemviews import BaseAction, register_album_action
|
||||
|
||||
class SearchGameMusicRevolution(BaseAction):
|
||||
NAME = "Search with Game Music Revolution"
|
||||
def callback(self, objs):
|
||||
cluster = objs[0]
|
||||
url = "http://www.gmronline.com/results.asp?display=0&go=Go+Find+It&searchType=Title&browseType=Title&results=25&search="
|
||||
url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"])
|
||||
webbrowser2.open(url)
|
||||
register_cluster_action(SearchGameMusicRevolution())
|
||||
register_album_action(SearchGameMusicRevolution())
|
Reference in New Issue
Block a user