diff --git a/plugins/acousticbrainz/__init__.py b/plugins/acousticbrainz/__init__.py index 04c58036..ef471989 100644 --- a/plugins/acousticbrainz/__init__.py +++ b/plugins/acousticbrainz/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Acousticbrainz plugin for Picard +# AcousticBrainz plugin for Picard # Copyright (C) 2021 Wargreen # # This program is free software; you can redistribute it and/or modify @@ -66,7 +66,7 @@ from picard.util import load_json from picard.ui.options import register_options_page, OptionsPage from picard.metadata import register_track_metadata_processor -from picard.plugins.acousticbrainz.ui_options_acousticbrainz_tags import Ui_AcousticbrainzOptionsPage +from picard.plugins.acousticbrainz.ui_options_acousticbrainz_tags import Ui_AcousticBrainzOptionsPage ratecontrol.set_minimum_delay((ACOUSTICBRAINZ_HOST, ACOUSTICBRAINZ_PORT), 250) @@ -318,7 +318,7 @@ def process_sublowlevel(self): # ============================================================================= # (provides track processing callback) -class AcousticbrainzPlugin: +class AcousticBrainzPlugin: def __init__(self): self.tracks = {} @@ -334,7 +334,7 @@ def process_track(album, metadata, _, release): # ============================================================================= # (define plugin options and link with user interface) -class AcousticbrainzOptionsPage(OptionsPage): +class AcousticBrainzOptionsPage(OptionsPage): NAME = "AcousticBrainz" TITLE = "AcousticBrainz tags" PARENT = "plugins" @@ -348,8 +348,8 @@ class AcousticbrainzOptionsPage(OptionsPage): ] def __init__(self, parent=None): - super(AcousticbrainzOptionsPage, self).__init__(parent) - self.ui = Ui_AcousticbrainzOptionsPage() + super(AcousticBrainzOptionsPage, self).__init__(parent) + self.ui = Ui_AcousticBrainzOptionsPage() self.ui.setupUi(self) def load(self): @@ -369,6 +369,6 @@ def save(self): setting["acousticbrainz_add_sublowlevel"] = self.ui.add_sublowlevel.isChecked() -plugin = AcousticbrainzPlugin() +plugin = AcousticBrainzPlugin() register_track_metadata_processor(plugin.process_track) -register_options_page(AcousticbrainzOptionsPage) +register_options_page(AcousticBrainzOptionsPage) diff --git a/plugins/acousticbrainz/ui_options_acousticbrainz_tags.py b/plugins/acousticbrainz/ui_options_acousticbrainz_tags.py index 0f21fa28..f1b0eb79 100644 --- a/plugins/acousticbrainz/ui_options_acousticbrainz_tags.py +++ b/plugins/acousticbrainz/ui_options_acousticbrainz_tags.py @@ -11,15 +11,15 @@ from PyQt5 import QtCore, QtGui, QtWidgets -class Ui_AcousticbrainzOptionsPage(object): - def setupUi(self, AcousticbrainzOptionsPage): - AcousticbrainzOptionsPage.setObjectName("AcousticbrainzOptionsPage") - AcousticbrainzOptionsPage.setEnabled(True) - AcousticbrainzOptionsPage.resize(527, 443) - AcousticbrainzOptionsPage.setWindowTitle("") - self.verticalLayout = QtWidgets.QVBoxLayout(AcousticbrainzOptionsPage) +class Ui_AcousticBrainzOptionsPage(object): + def setupUi(self, AcousticBrainzOptionsPage): + AcousticBrainzOptionsPage.setObjectName("AcousticBrainzOptionsPage") + AcousticBrainzOptionsPage.setEnabled(True) + AcousticBrainzOptionsPage.resize(527, 443) + AcousticBrainzOptionsPage.setWindowTitle("") + self.verticalLayout = QtWidgets.QVBoxLayout(AcousticBrainzOptionsPage) self.verticalLayout.setObjectName("verticalLayout") - self.acousticbrainzTags_groupBox = QtWidgets.QGroupBox(AcousticbrainzOptionsPage) + self.acousticbrainzTags_groupBox = QtWidgets.QGroupBox(AcousticBrainzOptionsPage) self.acousticbrainzTags_groupBox.setObjectName("acousticbrainzTags_groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.acousticbrainzTags_groupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") @@ -48,15 +48,15 @@ def setupUi(self, AcousticbrainzOptionsPage): self.verticalLayout_2.addItem(spacerItem1) self.verticalLayout.addWidget(self.acousticbrainzTags_groupBox) - self.retranslateUi(AcousticbrainzOptionsPage) - QtCore.QMetaObject.connectSlotsByName(AcousticbrainzOptionsPage) + self.retranslateUi(AcousticBrainzOptionsPage) + QtCore.QMetaObject.connectSlotsByName(AcousticBrainzOptionsPage) - def retranslateUi(self, AcousticbrainzOptionsPage): + def retranslateUi(self, AcousticBrainzOptionsPage): _translate = QtCore.QCoreApplication.translate - self.acousticbrainzTags_groupBox.setTitle(_translate("AcousticbrainzOptionsPage", "AcousticBrainz Tags")) - self.add_simplemood.setText(_translate("AcousticbrainzOptionsPage", "Add simple Mood tags")) - self.add_simplegenre.setText(_translate("AcousticbrainzOptionsPage", "Add simple Genre tags")) - self.add_keybpm.setText(_translate("AcousticbrainzOptionsPage", "Add simple BPM and Key tags")) - self.add_fullhighlevel.setText(_translate("AcousticbrainzOptionsPage", "Add all highlevel AcousticBrainz tags")) - self.add_sublowlevel.setText(_translate("AcousticbrainzOptionsPage", "Add a subset of the lowlevel AcousticBrainz tags")) - self.sublowlevel_descr.setText(_translate("AcousticbrainzOptionsPage", "
The low level subset include:
The low level subset include: