]> git.draconx.ca Git - picard-plugins.git/commitdiff
Update plugins for picard 2
authorNick Bowler <nbowler@draconx.ca>
Sat, 16 Feb 2019 00:02:05 +0000 (19:02 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 16 Feb 2019 00:07:59 +0000 (19:07 -0500)
no-remote-plugins.py
tweak-filename-filter.py

index 68c384be8bc76fff096197461d3d60261837bacc..9f7908b7863c6836ba5c702fd61fe3a8db4c53f4 100644 (file)
@@ -1,5 +1,7 @@
 # -*- coding: utf-8 -*-
 #
+# Copyright © 2018-2019 Nick Bowler
+#
 # License GPLv3+: GNU General Public License version 3 or any later version.
 # This is free software: you are free to change and redistribute it.
 # There is NO WARRANTY, to the extent permitted by law.
@@ -10,18 +12,22 @@ PLUGIN_DESCRIPTION = u'''<p>This plugin disables querying the MusicBrainz
 server for plugins.  This avoids network activity at startup and prevents
 the options dialog from suggesting non-free plugins for installation.</p>
 '''
-PLUGIN_VERSION = "0"
-PLUGIN_API_VERSIONS = ["1.0"]
+PLUGIN_VERSION = "1.1"
+PLUGIN_API_VERSIONS = ["1.0", "2.0"]
 PLUGIN_LICENSE = "GPL-3.0-or-later"
 
 from picard import (config, log, plugin)
-from PyQt4 import QtCore
+
+try:
+    from PyQt5 import QtCore
+except (RuntimeError, ImportError):
+    from PyQt4 import QtCore
+
 import types
 
 def modulename():
     return modulename.__module__[len("picard.plugins."):]
 
-# class ReplPluginManager(plugin.PluginManager):
 def repl_query(self, callback=None):
     pass
 
@@ -34,4 +40,4 @@ def install_hooks():
 if modulename() in config.setting["enabled_plugins"]:
     install_hooks()
 else:
-    log.debug("%s disabled in configuration" % (modulename()));
+    log.debug("%s disabled in configuration" % (modulename()))
index 6f81515405ca6e370036d648543f3372019613a8..5777bb7757bee59fd73d920fe8455e5d62196133 100644 (file)
@@ -23,8 +23,8 @@ true)</dd>
 
 </dl>
 '''
-PLUGIN_VERSION = "0"
-PLUGIN_API_VERSIONS = ["1.0"]
+PLUGIN_VERSION = "0.1"
+PLUGIN_API_VERSIONS = ["1.0", "2.0"]
 PLUGIN_LICENSE = "GPL-3.0-or-later"
 
 from picard import (config, log)
@@ -59,4 +59,4 @@ config.BoolOption("setting", "tweak_file_replace_backslash", True),
 if modulename() in config.setting["enabled_plugins"]:
     install_tweaker()
 else:
-    log.debug("%s disabled in configuration" % (modulename()));
+    log.debug("%s disabled in configuration" % (modulename()))