From 6b5e852a60f0d24f88cf70bba571e022316a90dc Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Mon, 24 Feb 2020 10:23:24 +0100 Subject: [PATCH] Run fix-header on *.py --- picard/__init__.py | 15 +++++++- picard/acoustid/__init__.py | 6 ++++ picard/acoustid/json_helpers.py | 2 ++ picard/acoustid/manager.py | 6 ++++ picard/album.py | 20 ++++++++++- picard/browser/__init__.py | 19 ++++++++++ picard/browser/browser.py | 11 +++++- picard/browser/filelookup.py | 15 ++++++-- picard/cluster.py | 16 ++++++++- picard/collection.py | 7 ++++ picard/config.py | 12 ++++++- picard/config_upgrade.py | 9 ++++- picard/const/__init__.py | 14 +++++++- picard/const/languages.py | 4 +++ picard/const/locales.py | 3 ++ picard/const/sys.py | 3 ++ picard/coverart/__init__.py | 8 +++-- picard/coverart/image.py | 15 +++++--- picard/coverart/providers/__init__.py | 10 +++++- picard/coverart/providers/caa.py | 13 +++++-- .../coverart/providers/caa_release_group.py | 4 ++- picard/coverart/providers/local.py | 7 +++- picard/coverart/providers/whitelist.py | 6 ++-- picard/coverart/utils.py | 7 +++- picard/dataobj.py | 9 +++++ picard/disc.py | 15 ++++++-- picard/file.py | 23 +++++++++++- picard/formats/__init__.py | 11 +++++- picard/formats/ac3.py | 2 ++ picard/formats/apev2.py | 11 +++++- picard/formats/asf.py | 11 +++++- picard/formats/id3.py | 17 ++++++++- picard/formats/midi.py | 2 ++ picard/formats/mp4.py | 14 +++++++- picard/formats/mutagenext/__init__.py | 2 ++ picard/formats/mutagenext/aac.py | 4 ++- picard/formats/mutagenext/ac3.py | 2 ++ picard/formats/mutagenext/compatid3.py | 10 +++++- picard/formats/mutagenext/tak.py | 26 ++++++++++---- picard/formats/vorbis.py | 12 ++++++- picard/formats/wav.py | 7 ++++ picard/i18n.py | 7 +++- picard/log.py | 10 +++++- picard/mbjson.py | 8 ++++- picard/metadata.py | 20 +++++++++-- picard/oauth.py | 8 +++++ picard/plugin.py | 18 ++++++++-- picard/pluginmanager.py | 4 +++ picard/plugins/__init__.py | 19 ++++++++++ picard/releasegroup.py | 11 ++++-- picard/script.py | 21 +++++++++-- picard/similarity.py | 9 ++++- picard/tagger.py | 25 ++++++++++++- picard/track.py | 20 ++++++++++- picard/ui/__init__.py | 8 ++++- picard/ui/cdlookup.py | 11 +++++- picard/ui/checkbox_list_item.py | 3 ++ picard/ui/collectionmenu.py | 5 +++ picard/ui/colors.py | 3 ++ picard/ui/coverartbox.py | 17 ++++++++- picard/ui/edittagdialog.py | 11 ++++-- picard/ui/filebrowser.py | 17 +++++++-- picard/ui/infodialog.py | 11 ++++++ picard/ui/infostatus.py | 5 +++ picard/ui/item.py | 8 ++++- picard/ui/itemviews.py | 22 +++++++++++- picard/ui/logview.py | 7 ++++ picard/ui/mainwindow.py | 28 ++++++++++++++- picard/ui/metadatabox.py | 13 ++++++- picard/ui/moveable_list_view.py | 3 ++ picard/ui/options/__init__.py | 8 ++++- picard/ui/options/about.py | 9 +++++ picard/ui/options/advanced.py | 7 +++- picard/ui/options/cdlookup.py | 10 ++++-- picard/ui/options/cover.py | 10 +++++- picard/ui/options/dialog.py | 14 +++++++- picard/ui/options/fingerprinting.py | 8 ++++- picard/ui/options/general.py | 13 ++++++- picard/ui/options/genres.py | 5 +++ picard/ui/options/interface.py | 13 ++++++- picard/ui/options/interface_colors.py | 3 ++ picard/ui/options/interface_top_tags.py | 2 ++ picard/ui/options/matching.py | 7 +++- picard/ui/options/metadata.py | 10 +++++- picard/ui/options/network.py | 5 +++ picard/ui/options/plugins.py | 12 ++++++- picard/ui/options/ratings.py | 6 +++- picard/ui/options/releases.py | 8 +++++ picard/ui/options/renaming.py | 17 +++++++-- picard/ui/options/scripting.py | 12 ++++++- picard/ui/options/tags.py | 12 ++++++- picard/ui/options/tags_compatibility.py | 3 ++ picard/ui/passworddialog.py | 8 +++++ picard/ui/playertoolbar.py | 4 ++- picard/ui/ratingwidget.py | 8 ++++- picard/ui/scriptsmenu.py | 4 +++ picard/ui/searchdialog/__init__.py | 6 ++-- picard/ui/searchdialog/album.py | 5 ++- picard/ui/searchdialog/artist.py | 3 ++ picard/ui/searchdialog/track.py | 6 +++- picard/ui/statusindicator.py | 2 ++ picard/ui/tagsfromfilenames.py | 11 +++++- picard/ui/util.py | 8 +++++ picard/ui/widgets/__init__.py | 2 ++ picard/ui/widgets/editablelistview.py | 2 ++ picard/ui/widgets/scriptlistwidget.py | 2 ++ picard/ui/widgets/taglisteditor.py | 2 ++ picard/ui/widgets/tristatesortheaderview.py | 2 ++ picard/util/__init__.py | 22 ++++++++++-- picard/util/astrcmp.py | 2 ++ picard/util/bytes2human.py | 5 ++- picard/util/cdrom.py | 13 ++++++- picard/util/checkupdate.py | 4 +++ picard/util/emptydir.py | 4 ++- picard/util/filenaming.py | 9 +++++ picard/util/icontheme.py | 6 +++- picard/util/imageinfo.py | 5 ++- picard/util/imagelist.py | 8 +++-- picard/util/lrucache.py | 5 ++- picard/util/natsort.py | 2 ++ picard/util/preservedtags.py | 2 ++ picard/util/scripttofilename.py | 5 ++- picard/util/settingsoverride.py | 2 ++ picard/util/tags.py | 12 ++++++- picard/util/textencoding.py | 6 ++++ picard/util/thread.py | 10 +++++- picard/util/versions.py | 6 +++- picard/util/webbrowser2.py | 9 ++++- picard/util/xml.py | 4 +++ picard/version.py | 4 ++- picard/webservice/__init__.py | 3 ++ picard/webservice/api_helpers.py | 4 +++ picard/webservice/ratecontrol.py | 3 ++ resources/__init__.py | 19 ++++++++++ resources/compile.py | 23 ++++++++++++ resources/makeqrc.py | 24 +++++++++++++ .../pyinstaller/macos-library-path-hook.py | 21 +++++++++++ scripts/pyinstaller/portable-hook.py | 21 +++++++++++ scripts/pyinstaller/win-console-hook.py | 21 +++++++++++ scripts/tools/changelog-for-version.py | 20 +++++++++++ setup.py | 36 +++++++++++++++++++ test/__init__.py | 23 ++++++++++++ .../module/dummyplugin/__init__.py | 21 ++++++++++- .../testplugins/singlefile/dummyplugin.py | 21 ++++++++++- test/formats/__init__.py | 19 ++++++++++ test/formats/common.py | 22 ++++++++++++ test/formats/coverart.py | 21 +++++++++++ test/formats/test_aac.py | 21 +++++++++++ test/formats/test_ac3.py | 21 +++++++++++ test/formats/test_apev2.py | 21 +++++++++++ test/formats/test_asf.py | 21 +++++++++++ test/formats/test_id3.py | 23 ++++++++++++ test/formats/test_midi.py | 21 +++++++++++ test/formats/test_mp4.py | 21 +++++++++++ test/formats/test_mutagenext.py | 20 +++++++++++ test/formats/test_vorbis.py | 22 ++++++++++++ test/formats/test_wav.py | 21 +++++++++++ test/picardtestcase.py | 22 ++++++++++++ test/test_acoustid.py | 23 ++++++++++++ test/test_acoustidmanager.py | 22 ++++++++++++ test/test_amazon_urls.py | 21 +++++++++++ test/test_api_helpers.py | 24 +++++++++++++ test/test_browser.py | 24 +++++++++++++ test/test_bytes2human.py | 25 +++++++++++++ test/test_compatid3.py | 23 ++++++++++++ test/test_config.py | 5 ++- test/test_config_upgrade.py | 3 ++ test/test_coverart_image.py | 23 +++++++++++- test/test_coverart_utils.py | 24 ++++++++++++- test/test_dataobj.py | 21 +++++++++++ test/test_emptydir.py | 20 +++++++++++ test/test_file.py | 22 ++++++++++++ test/test_filesystem.py | 23 ++++++++++++ test/test_imagelist.py | 21 +++++++++++ test/test_mbjson.py | 24 +++++++++++++ test/test_metadata.py | 23 ++++++++++++ test/test_plugins.py | 5 ++- test/test_releaseversions.py | 26 ++++++++++++++ test/test_script.py | 31 ++++++++++++++++ test/test_scripttofilename.py | 22 ++++++++++++ test/test_settingsoverride.py | 21 +++++++++++ test/test_similarity.py | 21 +++++++++++ test/test_taggenrefilter.py | 20 +++++++++++ test/test_textencoding.py | 24 +++++++++++++ test/test_tracknum.py | 23 ++++++++++++ test/test_union_sorted_lists.py | 22 ++++++++++++ test/test_util_astrcmp.py | 24 +++++++++++++ test/test_util_filenaming.py | 23 ++++++++++++ test/test_util_lrucache.py | 19 ++++++++++ test/test_util_natsort.py | 21 +++++++++++ test/test_util_preservedtags.py | 21 ++++++++++- test/test_util_tags.py | 20 +++++++++++ test/test_utils.py | 28 +++++++++++++++ test/test_versions.py | 23 ++++++++++++ test/test_webservice.py | 23 ++++++++++++ 195 files changed, 2402 insertions(+), 118 deletions(-) diff --git a/picard/__init__.py b/picard/__init__.py index 38adc9ade..628060a50 100644 --- a/picard/__init__.py +++ b/picard/__init__.py @@ -1,7 +1,19 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011-2014 Lukáš Lalinský +# Copyright (C) 2009, 2018-2020 Philipp Wolfer +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013-2019 Laurent Monin +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2015 Sophist-UK +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2017 Wieland Hoffmann +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä +# Copyright (C) 2018 Bob Swift # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +29,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard.version import ( Version, VersionError, diff --git a/picard/acoustid/__init__.py b/picard/acoustid/__init__.py index f0990de08..95ce89065 100644 --- a/picard/acoustid/__init__.py +++ b/picard/acoustid/__init__.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2011 Lukáš Lalinský +# Copyright (C) 2017-2018 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2018-2019 Laurent Monin +# Copyright (C) 2018-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import deque from functools import partial import json diff --git a/picard/acoustid/json_helpers.py b/picard/acoustid/json_helpers.py index bef6f9913..18957b64c 100644 --- a/picard/acoustid/json_helpers.py +++ b/picard/acoustid/json_helpers.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/acoustid/manager.py b/picard/acoustid/manager.py index 8c2739da4..a672cc2bf 100644 --- a/picard/acoustid/manager.py +++ b/picard/acoustid/manager.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2011 Lukáš Lalinský +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import QtCore diff --git a/picard/album.py b/picard/album.py index dd2588beb..9a36eb270 100644 --- a/picard/album.py +++ b/picard/album.py @@ -1,8 +1,25 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2006-2009, 2011-2012, 2014 Lukáš Lalinský +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2008 Hendrik van Antwerpen +# Copyright (C) 2008 ojnkpjg +# Copyright (C) 2008-2011, 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2011-2012 Chad Wilson +# Copyright (C) 2011-2013, 2019 Michael Wiencek +# Copyright (C) 2012-2013, 2016-2017 Wieland Hoffmann +# Copyright (C) 2013, 2018 Calvin Walton +# Copyright (C) 2013-2015, 2017 Sophist-UK +# Copyright (C) 2013-2015, 2017-2019 Laurent Monin +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019 Joel Lintunen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +35,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import ( OrderedDict, defaultdict, diff --git a/picard/browser/__init__.py b/picard/browser/__init__.py index e69de29bb..192f731f0 100644 --- a/picard/browser/__init__.py +++ b/picard/browser/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006 Lukáš Lalinský +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/picard/browser/browser.py b/picard/browser/browser.py index 41b41547d..9fba0ed73 100644 --- a/picard/browser/browser.py +++ b/picard/browser/browser.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2011 Lukáš Lalinský +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012-2013, 2018 Philipp Wolfer +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from urllib.parse import ( parse_qs, urlparse, diff --git a/picard/browser/filelookup.py b/picard/browser/filelookup.py index 1184bf750..14d9b8900 100644 --- a/picard/browser/filelookup.py +++ b/picard/browser/filelookup.py @@ -1,8 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (c) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2004 Robert Kaye +# Copyright (C) 2006-2008, 2011-2012 Lukáš Lalinský +# Copyright (C) 2011 Pavan Chander +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2014-2015 Sophist-UK +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2015-2016 Wieland Hoffmann +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os.path import re diff --git a/picard/cluster.py b/picard/cluster.py index acefa88b6..225d157a5 100644 --- a/picard/cluster.py +++ b/picard/cluster.py @@ -1,8 +1,21 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2008 Hendrik van Antwerpen +# Copyright (C) 2008 Will +# Copyright (C) 2010-2011, 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012 Wieland Hoffmann +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +31,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict from heapq import ( heappop, diff --git a/picard/collection.py b/picard/collection.py index 1b17e07f4..37b10e83c 100644 --- a/picard/collection.py +++ b/picard/collection.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2014 Lukáš Lalinský +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2014, 2017-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import QtCore diff --git a/picard/config.py b/picard/config.py index c771cc892..3a2379eb4 100644 --- a/picard/config.py +++ b/picard/config.py @@ -1,7 +1,16 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2014, 2017 Lukáš Lalinský +# Copyright (C) 2008, 2014, 2019-2020 Philipp Wolfer +# Copyright (C) 2012, 2017 Wieland Hoffmann +# Copyright (C) 2012-2014 Michael Wiencek +# Copyright (C) 2013-2016, 2018-2019 Laurent Monin +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +26,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from operator import itemgetter import os import shutil diff --git a/picard/config_upgrade.py b/picard/config_upgrade.py index c4d0f5f83..1d6d30557 100644 --- a/picard/config_upgrade.py +++ b/picard/config_upgrade.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2013-2014 Laurent Monin +# +# Copyright (C) 2013-2014 Michael Wiencek +# Copyright (C) 2013-2016, 2018-2019 Laurent Monin +# Copyright (C) 2014, 2017 Lukáš Lalinský +# Copyright (C) 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/const/__init__.py b/picard/const/__init__.py index 378208780..58c490500 100644 --- a/picard/const/__init__.py +++ b/picard/const/__init__.py @@ -1,7 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2007, 2014, 2016 Lukáš Lalinský +# Copyright (C) 2014, 2019-2020 Philipp Wolfer +# Copyright (C) 2014-2016, 2018-2020 Laurent Monin +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Wieland Hoffmann +# Copyright (C) 2016-2017 Frederik “Freso” S. Olesen +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import OrderedDict import os diff --git a/picard/const/languages.py b/picard/const/languages.py index 687d32d1a..13a08424d 100644 --- a/picard/const/languages.py +++ b/picard/const/languages.py @@ -3,6 +3,10 @@ # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2014, 2018, 2020 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Shen-Ta Hsieh +# Copyright (C) 2018-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/const/locales.py b/picard/const/locales.py index 24ff0a097..1915f8656 100644 --- a/picard/const/locales.py +++ b/picard/const/locales.py @@ -3,6 +3,9 @@ # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2014, 2020 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/const/sys.py b/picard/const/sys.py index 177fbe4b3..8199ed76b 100644 --- a/picard/const/sys.py +++ b/picard/const/sys.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import sys diff --git a/picard/coverart/__init__.py b/picard/coverart/__init__.py index 792bc9cbc..dc8f69bb5 100644 --- a/picard/coverart/__init__.py +++ b/picard/coverart/__init__.py @@ -1,12 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Oliver Charles -# Copyright (C) 2007-2011 Philipp Wolfer -# Copyright (C) 2007, 2010, 2011 Lukáš Lalinský +# Copyright (C) 2007, 2010-2011 Lukáš Lalinský +# Copyright (C) 2007-2011, 2019 Philipp Wolfer # Copyright (C) 2011 Michael Wiencek # Copyright (C) 2011-2012 Wieland Hoffmann -# Copyright (C) 2013-2014 Laurent Monin +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/coverart/image.py b/picard/coverart/image.py index c1e3e2ff1..75953b8d7 100644 --- a/picard/coverart/image.py +++ b/picard/coverart/image.py @@ -1,12 +1,17 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Oliver Charles -# Copyright (C) 2007-2011 Philipp Wolfer -# Copyright (C) 2007, 2010, 2011 Lukáš Lalinský +# Copyright (C) 2007, 2010-2011 Lukáš Lalinský +# Copyright (C) 2007-2011, 2014, 2018-2019 Philipp Wolfer # Copyright (C) 2011 Michael Wiencek -# Copyright (C) 2011-2012 Wieland Hoffmann -# Copyright (C) 2013-2014 Laurent Monin +# Copyright (C) 2011-2012, 2015 Wieland Hoffmann +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016 Ville Skyttä +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -21,6 +26,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from hashlib import md5 import os import shutil diff --git a/picard/coverart/providers/__init__.py b/picard/coverart/providers/__init__.py index 4823c86fa..991a19604 100644 --- a/picard/coverart/providers/__init__.py +++ b/picard/coverart/providers/__init__.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2014 Laurent Monin +# +# Copyright (C) 2014-2015, 2018-2019 Laurent Monin +# Copyright (C) 2015 Rahul Raturi +# Copyright (C) 2016 Ville Skyttä +# Copyright (C) 2016 Wieland Hoffmann +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,6 +22,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from collections import defaultdict, namedtuple import traceback diff --git a/picard/coverart/providers/caa.py b/picard/coverart/providers/caa.py index f0c6754d1..73e4f30cf 100644 --- a/picard/coverart/providers/caa.py +++ b/picard/coverart/providers/caa.py @@ -1,12 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Oliver Charles -# Copyright (C) 2007-2011 Philipp Wolfer -# Copyright (C) 2007, 2010, 2011 Lukáš Lalinský +# Copyright (C) 2007, 2010-2011 Lukáš Lalinský +# Copyright (C) 2007-2011, 2015, 2018-2019 Philipp Wolfer # Copyright (C) 2011 Michael Wiencek # Copyright (C) 2011-2012 Wieland Hoffmann -# Copyright (C) 2013-2014 Laurent Monin +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2015-2016 Rahul Raturi +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -22,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import ( OrderedDict, namedtuple, diff --git a/picard/coverart/providers/caa_release_group.py b/picard/coverart/providers/caa_release_group.py index c801fe1b1..b38080bd9 100644 --- a/picard/coverart/providers/caa_release_group.py +++ b/picard/coverart/providers/caa_release_group.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2014 Laurent Monin +# +# Copyright (C) 2014-2016, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/coverart/providers/local.py b/picard/coverart/providers/local.py index a18532761..51734f268 100644 --- a/picard/coverart/providers/local.py +++ b/picard/coverart/providers/local.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2015 Laurent Monin +# +# Copyright (C) 2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os import re diff --git a/picard/coverart/providers/whitelist.py b/picard/coverart/providers/whitelist.py index 779df6c5a..5a1c29632 100644 --- a/picard/coverart/providers/whitelist.py +++ b/picard/coverart/providers/whitelist.py @@ -1,12 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Oliver Charles +# Copyright (C) 2007, 2010-2011 Lukáš Lalinský # Copyright (C) 2007-2011 Philipp Wolfer -# Copyright (C) 2007, 2010, 2011 Lukáš Lalinský # Copyright (C) 2011 Michael Wiencek # Copyright (C) 2011-2012 Wieland Hoffmann -# Copyright (C) 2013-2014 Laurent Monin +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/coverart/utils.py b/picard/coverart/utils.py index 3fde017fc..b801a0974 100644 --- a/picard/coverart/utils.py +++ b/picard/coverart/utils.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2013 Laurent Monin +# +# Copyright (C) 2013-2015 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard.const import MB_ATTRIBUTES from picard.i18n import gettext_attr diff --git a/picard/dataobj.py b/picard/dataobj.py index 35482b8e7..271d13feb 100644 --- a/picard/dataobj.py +++ b/picard/dataobj.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye +# Copyright (C) 2006-2008 Lukáš Lalinský +# Copyright (C) 2011-2012 Michael Wiencek +# Copyright (C) 2013 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.util import LockableObject diff --git a/picard/disc.py b/picard/disc.py index e409ecebd..031ab3d7d 100644 --- a/picard/disc.py +++ b/picard/disc.py @@ -1,10 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# # Copyright (C) 2006 Matthias Friedrich -# Copyright (C) 2013 Laurent Monin -# Copyright (C) 2018, 2019 Philipp Wolfer +# Copyright (C) 2007-2008 Lukáš Lalinský +# Copyright (C) 2008 Robert Kaye +# Copyright (C) 2009, 2013, 2018-2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013 Johannes Dewender +# Copyright (C) 2013 Sebastian Ramacher +# Copyright (C) 2013 Wieland Hoffmann +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import traceback from PyQt5 import QtCore diff --git a/picard/file.py b/picard/file.py index a35d45a45..5ab51deb5 100644 --- a/picard/file.py +++ b/picard/file.py @@ -1,8 +1,28 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2006-2009, 2011-2013, 2017 Lukáš Lalinský +# Copyright (C) 2007-2011, 2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2008-2009 Nikolai Prokoschenko +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009 David Hilton +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012 Erik Wasser +# Copyright (C) 2012 Johannes Weißl +# Copyright (C) 2012 noobie +# Copyright (C) 2012-2014 Wieland Hoffmann +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2014 Ionuț Ciocîrlan +# Copyright (C) 2013-2014, 2017 Sophist-UK +# Copyright (C) 2013-2014, 2017-2019 Laurent Monin +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Ville Skyttä +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017-2018 Antonio Larrosa +# Copyright (C) 2019 Joel Lintunen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +38,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict import fnmatch from functools import partial diff --git a/picard/formats/__init__.py b/picard/formats/__init__.py index a368b931e..4783d39fc 100644 --- a/picard/formats/__init__.py +++ b/picard/formats/__init__.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2012 Lukáš Lalinský +# Copyright (C) 2008 Will +# Copyright (C) 2010, 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2013, 2017-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2017 Ville Skyttä # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import log from picard.plugin import ExtensionPoint diff --git a/picard/formats/ac3.py b/picard/formats/ac3.py index 98c270b8e..e9e5b3666 100644 --- a/picard/formats/ac3.py +++ b/picard/formats/ac3.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import mutagen from picard import ( diff --git a/picard/formats/apev2.py b/picard/formats/apev2.py index a4f7529a7..9d5047684 100644 --- a/picard/formats/apev2.py +++ b/picard/formats/apev2.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2009, 2011 Lukáš Lalinský +# Copyright (C) 2009-2011, 2018-2020 Philipp Wolfer +# Copyright (C) 2011-2014 Wieland Hoffmann +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from __future__ import absolute_import from os.path import isfile diff --git a/picard/formats/asf.py b/picard/formats/asf.py index e95dc3607..71faf99d4 100644 --- a/picard/formats/asf.py +++ b/picard/formats/asf.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2011 Lukáš Lalinský +# Copyright (C) 2009-2011, 2014, 2018-2020 Philipp Wolfer +# Copyright (C) 2011-2014 Wieland Hoffmann +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2014-2015, 2017 Sophist-UK +# Copyright (C) 2016-2018 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import struct from mutagen.asf import ( diff --git a/picard/formats/id3.py b/picard/formats/id3.py index 2c507bdb1..ccba1193d 100644 --- a/picard/formats/id3.py +++ b/picard/formats/id3.py @@ -1,7 +1,21 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský +# +# Copyright (C) 2006-2009, 2011-2012 Lukáš Lalinský +# Copyright (C) 2008-2011, 2014, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2011-2012 Johannes Weißl +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2011-2014 Wieland Hoffmann +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2014, 2017-2019 Laurent Monin +# Copyright (C) 2013-2015, 2017 Sophist-UK +# Copyright (C) 2015 Frederik “Freso” S. Olesen +# Copyright (C) 2016 Christoph Reiter +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 tungol +# Copyright (C) 2019 Zenara Daley # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +31,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict import re from urllib.parse import urlparse diff --git a/picard/formats/midi.py b/picard/formats/midi.py index 16da98f34..bf5689dc7 100644 --- a/picard/formats/midi.py +++ b/picard/formats/midi.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2018 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from mutagen.smf import SMF from picard import log diff --git a/picard/formats/mp4.py b/picard/formats/mp4.py index ec35fb521..d459c3a60 100644 --- a/picard/formats/mp4.py +++ b/picard/formats/mp4.py @@ -1,7 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2009-2011, 2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2011 Johannes Weißl +# Copyright (C) 2011-2014 Wieland Hoffmann +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013 Frederik “Freso” S. Olesen +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2014-2015 Sophist-UK +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2019 Reinaldo Antonio Camargo Rauch # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from mutagen.mp4 import ( diff --git a/picard/formats/mutagenext/__init__.py b/picard/formats/mutagenext/__init__.py index 98ac8136c..5b9b8a0ec 100644 --- a/picard/formats/mutagenext/__init__.py +++ b/picard/formats/mutagenext/__init__.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006 Lukáš Lalinský # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or diff --git a/picard/formats/mutagenext/aac.py b/picard/formats/mutagenext/aac.py index a0aa987f0..e9665869f 100644 --- a/picard/formats/mutagenext/aac.py +++ b/picard/formats/mutagenext/aac.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2018 Philipp Wolfer +# +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from mutagen._util import loadfile from mutagen.aac import AAC from mutagen.apev2 import ( diff --git a/picard/formats/mutagenext/ac3.py b/picard/formats/mutagenext/ac3.py index f7c296e6c..1301c78e7 100644 --- a/picard/formats/mutagenext/ac3.py +++ b/picard/formats/mutagenext/ac3.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from mutagen._file import FileType from mutagen._util import ( MutagenError, diff --git a/picard/formats/mutagenext/compatid3.py b/picard/formats/mutagenext/compatid3.py index b788328c1..57e6648ca 100644 --- a/picard/formats/mutagenext/compatid3.py +++ b/picard/formats/mutagenext/compatid3.py @@ -1,8 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# # Copyright (C) 2005 Michael Urman +# Copyright (C) 2006-2008, 2011-2012 Lukáš Lalinský +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2016 Christoph Reiter +# Copyright (C) 2016 Ville Skyttä +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from mutagen.id3 import ( ID3, Frames, diff --git a/picard/formats/mutagenext/tak.py b/picard/formats/mutagenext/tak.py index cc21caf53..1cafd752a 100644 --- a/picard/formats/mutagenext/tak.py +++ b/picard/formats/mutagenext/tak.py @@ -1,12 +1,26 @@ -# Tom's lossless Audio Kompressor (TAK) reader/tagger +# -*- coding: utf-8 -*- # -# Copyright 2008 Lukas Lalinsky +# Picard, the next-generation MusicBrainz tagger # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. +# Copyright (C) 2008 Lukáš Lalinský +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018-2019 Philipp Wolfer # -# $$ +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + """Tom's lossless Audio Kompressor streams with APEv2 tags. diff --git a/picard/formats/vorbis.py b/picard/formats/vorbis.py index 9efa49f4c..d37c73521 100644 --- a/picard/formats/vorbis.py +++ b/picard/formats/vorbis.py @@ -1,7 +1,16 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2012 Lukáš Lalinský +# Copyright (C) 2008 Hendrik van Antwerpen +# Copyright (C) 2008-2010, 2014-2015, 2018-2019 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2012-2014 Wieland Hoffmann +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2014, 2017-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +26,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import base64 import re diff --git a/picard/formats/wav.py b/picard/formats/wav.py index b92a5511d..0ec4871f6 100644 --- a/picard/formats/wav.py +++ b/picard/formats/wav.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2012-2013, 2017 Wieland Hoffmann +# Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import wave from picard import log diff --git a/picard/i18n.py b/picard/i18n.py index 51a96bad1..a79a62136 100644 --- a/picard/i18n.py +++ b/picard/i18n.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2013 Laurent Monin +# +# Copyright (C) 2012 Frederik “Freso” S. Olesen +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import builtins import gettext import locale diff --git a/picard/log.py b/picard/log.py index 1cf6570d9..c36af33f7 100644 --- a/picard/log.py +++ b/picard/log.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2007, 2011 Lukáš Lalinský +# Copyright (C) 2008-2010, 2019 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013, 2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Wieland Hoffmann # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import ( OrderedDict, deque, diff --git a/picard/mbjson.py b/picard/mbjson.py index f1f1359ad..7f4903438 100644 --- a/picard/mbjson.py +++ b/picard/mbjson.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2017 Sambhav Kothari +# +# Copyright (C) 2017 David Mandelberg +# Copyright (C) 2017-2018 Sambhav Kothari +# Copyright (C) 2017-2019 Laurent Monin +# Copyright (C) 2018-2020 Philipp Wolfer +# Copyright (C) 2019 Michael Wiencek # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from picard import config diff --git a/picard/metadata.py b/picard/metadata.py index 39b2c4d33..671cc2719 100644 --- a/picard/metadata.py +++ b/picard/metadata.py @@ -1,7 +1,20 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2009, 2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012 Johannes Weißl +# Copyright (C) 2012-2014, 2018 Wieland Hoffmann +# Copyright (C) 2013-2014, 2016, 2018-2020 Laurent Monin +# Copyright (C) 2013-2014, 2017 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017-2018 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2018 Xincognito10 # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -15,8 +28,9 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, -# USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from collections import namedtuple from collections.abc import ( Iterable, diff --git a/picard/oauth.py b/picard/oauth.py index 8eb56aaff..14dfe5ac5 100644 --- a/picard/oauth.py +++ b/picard/oauth.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2014 Lukáš Lalinský +# Copyright (C) 2015 Sophist-UK +# Copyright (C) 2015 Wieland Hoffmann +# Copyright (C) 2015, 2018 Philipp Wolfer +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018-2019 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial import time diff --git a/picard/plugin.py b/picard/plugin.py index e06a7d80c..4314dd548 100644 --- a/picard/plugin.py +++ b/picard/plugin.py @@ -1,9 +1,22 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2007-2008 Lukáš Lalinský +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009, 2014, 2017-2020 Philipp Wolfer +# Copyright (C) 2011 johnny64 +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013 Sebastian Ramacher +# Copyright (C) 2013 Wieland Hoffmann +# Copyright (C) 2013 brainz34 +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2014 Johannes Dewender # Copyright (C) 2014 Shadab Zafar -# Copyright (C) 2015 Laurent Monin +# Copyright (C) 2014-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,6 +32,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict import os.path diff --git a/picard/pluginmanager.py b/picard/pluginmanager.py index 800223dfc..edd7024a6 100644 --- a/picard/pluginmanager.py +++ b/picard/pluginmanager.py @@ -1,9 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2014 Shadab Zafar # Copyright (C) 2015-2019 Laurent Monin +# Copyright (C) 2019 Wieland Hoffmann +# Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial import imp import importlib diff --git a/picard/plugins/__init__.py b/picard/plugins/__init__.py index e69de29bb..870e9a0d5 100644 --- a/picard/plugins/__init__.py +++ b/picard/plugins/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/picard/releasegroup.py b/picard/releasegroup.py index d95444135..57ba0f64c 100644 --- a/picard/releasegroup.py +++ b/picard/releasegroup.py @@ -1,8 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2012 Michael Wiencek -# Copyright (C) 2020 Laurent Monin +# +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013, 2018-2020 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2017 Wieland Hoffmann +# Copyright (C) 2017-2018 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict from functools import partial from itertools import combinations diff --git a/picard/script.py b/picard/script.py index 9edeb38e8..8efcdb0ba 100644 --- a/picard/script.py +++ b/picard/script.py @@ -1,10 +1,24 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský -# Copyright (C) 2007 Javier Kohen -# Copyright (C) 2008 Philipp Wolfer # +# Copyright (C) 2006-2009, 2012 Lukáš Lalinský +# Copyright (C) 2007 Javier Kohen +# Copyright (C) 2008-2011, 2014-2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2011-2012 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012 stephen +# Copyright (C) 2012, 2014, 2017 Wieland Hoffmann +# Copyright (C) 2013-2014, 2017-2020 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2016-2017 Ville Skyttä +# Copyright (C) 2017-2018 Antonio Larrosa +# Copyright (C) 2018 Calvin Walton +# Copyright (C) 2018 virusMac +# Copyright (C) 2020 Bob Swift # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,6 +34,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import namedtuple from collections.abc import MutableSequence import datetime diff --git a/picard/similarity.py b/picard/similarity.py index 7a55a9ff7..57f1f6187 100644 --- a/picard/similarity.py +++ b/picard/similarity.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2008 Will +# Copyright (C) 2011-2012 Michael Wiencek +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from picard.util import strip_non_alnum diff --git a/picard/tagger.py b/picard/tagger.py index 0e5d336c6..f313ea07a 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -1,8 +1,30 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2006-2009, 2011-2014, 2017 Lukáš Lalinský +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2008 amckinle +# Copyright (C) 2008-2010, 2014-2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2010 Andrew Barnert +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2011-2014, 2017-2019 Wieland Hoffmann +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013 Ionuț Ciocîrlan +# Copyright (C) 2013 brainz34 +# Copyright (C) 2013-2014, 2017 Sophist-UK +# Copyright (C) 2013-2015, 2017-2019 Laurent Monin +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Simon Legner +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017-2018 Vishal Choudhary +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 virusMac +# Copyright (C) 2019 Joel Lintunen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +40,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import argparse from functools import partial from itertools import chain diff --git a/picard/track.py b/picard/track.py index d803aa8cd..d50dc2379 100644 --- a/picard/track.py +++ b/picard/track.py @@ -1,8 +1,25 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2006-2007, 2011 Lukáš Lalinský +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2010, 2014-2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2011 Chad Wilson +# Copyright (C) 2011 Wieland Hoffmann +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2014-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016 Mark Trolley +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Suhas +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2017-2018 Sambhav Kothari +# Copyright (C) 2018 Calvin Walton +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019 Joel Lintunen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +35,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict from functools import partial from itertools import filterfalse diff --git a/picard/ui/__init__.py b/picard/ui/__init__.py index 77dd4b453..cd883a352 100644 --- a/picard/ui/__init__.py +++ b/picard/ui/__init__.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2006-2008 Lukáš Lalinský +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2014, 2018 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/ui/cdlookup.py b/picard/ui/cdlookup.py index 96fe73ff4..a21d7bd3f 100644 --- a/picard/ui/cdlookup.py +++ b/picard/ui/cdlookup.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2009, 2018-2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/checkbox_list_item.py b/picard/ui/checkbox_list_item.py index c4eae86fb..49210bf51 100644 --- a/picard/ui/checkbox_list_item.py +++ b/picard/ui/checkbox_list_item.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Laurent Monin # Copyright (C) 2018 Sambhav Kothari # # This program is free software; you can redistribute it and/or @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QListWidgetItem diff --git a/picard/ui/collectionmenu.py b/picard/ui/collectionmenu.py index b5441b522..b705b145f 100644 --- a/picard/ui/collectionmenu.py +++ b/picard/ui/collectionmenu.py @@ -1,8 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2014-2015, 2018 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari # Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import locale from PyQt5 import ( diff --git a/picard/ui/colors.py b/picard/ui/colors.py index b911caf96..0cfc89d72 100644 --- a/picard/ui/colors.py +++ b/picard/ui/colors.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import QtGui from picard import config diff --git a/picard/ui/coverartbox.py b/picard/ui/coverartbox.py index c5f6179de..053148d1e 100644 --- a/picard/ui/coverartbox.py +++ b/picard/ui/coverartbox.py @@ -1,7 +1,21 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006,2011 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2011 Lukáš Lalinský +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009, 2018-2020 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2012-2014 Wieland Hoffmann +# Copyright (C) 2013-2014, 2017-2019 Laurent Monin +# Copyright (C) 2014 Francois Ferrand +# Copyright (C) 2015 Sophist-UK +# Copyright (C) 2016 Ville Skyttä +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Paul Roub +# Copyright (C) 2017-2019 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +31,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial import os import re diff --git a/picard/ui/edittagdialog.py b/picard/ui/edittagdialog.py index ceadb5a0e..90758afe2 100644 --- a/picard/ui/edittagdialog.py +++ b/picard/ui/edittagdialog.py @@ -1,8 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2011 Michael Wiencek -# Copyright (C) 2019 Philipp Wolfer +# +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Wieland Hoffmann +# Copyright (C) 2017-2018 Laurent Monin +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtWidgets, diff --git a/picard/ui/filebrowser.py b/picard/ui/filebrowser.py index d0567c855..fa88b90d8 100644 --- a/picard/ui/filebrowser.py +++ b/picard/ui/filebrowser.py @@ -1,7 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský +# +# Copyright (C) 2006-2008 Lukáš Lalinský +# Copyright (C) 2008 Hendrik van Antwerpen +# Copyright (C) 2008-2009, 2019 Philipp Wolfer +# Copyright (C) 2011 Andrew Barnert +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013 Wieland Hoffmann +# Copyright (C) 2013, 2017 Sophist-UK +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2015 Jeroen Kromwijk +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -15,8 +26,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os diff --git a/picard/ui/infodialog.py b/picard/ui/infodialog.py index e7fbefef6..f14f485d1 100644 --- a/picard/ui/infodialog.py +++ b/picard/ui/infodialog.py @@ -1,7 +1,17 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012-2014, 2017, 2019 Wieland Hoffmann +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017-2019 Antonio Larrosa +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +27,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import namedtuple import os.path import re diff --git a/picard/ui/infostatus.py b/picard/ui/infostatus.py index 8ac54494e..fab1fe303 100644 --- a/picard/ui/infostatus.py +++ b/picard/ui/infostatus.py @@ -2,6 +2,10 @@ # # Picard, the next-generation MusicBrainz tagger # +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2019 Philipp Wolfer +# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 @@ -16,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/item.py b/picard/ui/item.py index 9791a9c3c..9be13c57c 100644 --- a/picard/ui/item.py +++ b/picard/ui/item.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2010, 2018 Philipp Wolfer +# Copyright (C) 2011-2012 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2013 Laurent Monin +# Copyright (C) 2014 Sophist-UK # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/ui/itemviews.py b/picard/ui/itemviews.py index c01dcceb5..9791ecbcb 100644 --- a/picard/ui/itemviews.py +++ b/picard/ui/itemviews.py @@ -1,7 +1,26 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011-2012 Lukáš Lalinský +# Copyright (C) 2007 Robert Kaye +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2008 Hendrik van Antwerpen +# Copyright (C) 2008-2011, 2014-2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2011 Tim Blechmann +# Copyright (C) 2011-2012 Chad Wilson +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Your Name +# Copyright (C) 2012-2013 Wieland Hoffmann +# Copyright (C) 2013-2014, 2016, 2018-2019 Laurent Monin +# Copyright (C) 2013-2014, 2017 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Simon Legner +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +36,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict from functools import partial from heapq import ( diff --git a/picard/ui/logview.py b/picard/ui/logview.py index 4f491d388..8d879595b 100644 --- a/picard/ui/logview.py +++ b/picard/ui/logview.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2008-2009, 2019-2020 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016, 2018 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/ui/mainwindow.py b/picard/ui/mainwindow.py index f57cb5c11..588ba01a7 100644 --- a/picard/ui/mainwindow.py +++ b/picard/ui/mainwindow.py @@ -1,7 +1,32 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011-2012, 2014 Lukáš Lalinský +# Copyright (C) 2007 Nikolai Prokoschenko +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2008 Robert Kaye +# Copyright (C) 2008 Will +# Copyright (C) 2008-2010, 2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009 David Hilton +# Copyright (C) 2011-2012 Chad Wilson +# Copyright (C) 2011-2013, 2015-2017 Wieland Hoffmann +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2013-2014, 2017 Sophist-UK +# Copyright (C) 2013-2020 Laurent Monin +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2015 samithaj +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 Simon Legner +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 Kartik Ohri +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2018 virusMac +# Copyright (C) 2019 Timur Enikeev # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +42,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import OrderedDict import datetime from functools import partial diff --git a/picard/ui/metadatabox.py b/picard/ui/metadatabox.py index ec6946cb3..b23a3e403 100644 --- a/picard/ui/metadatabox.py +++ b/picard/ui/metadatabox.py @@ -1,8 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2006-2007, 2012 Lukáš Lalinský +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012 Nikolai Prokoschenko +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2013-2014, 2017-2019 Laurent Monin +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2015 Wieland Hoffmann +# Copyright (C) 2015, 2018-2020 Philipp Wolfer +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict from functools import partial diff --git a/picard/ui/moveable_list_view.py b/picard/ui/moveable_list_view.py index 1dc5bc87d..9b3073a54 100644 --- a/picard/ui/moveable_list_view.py +++ b/picard/ui/moveable_list_view.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Laurent Monin # Copyright (C) 2018 Sambhav Kothari # # This program is free software; you can redistribute it and/or @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import ( diff --git a/picard/ui/options/__init__.py b/picard/ui/options/__init__.py index ee024891a..a74a32281 100644 --- a/picard/ui/options/__init__.py +++ b/picard/ui/options/__init__.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2009, 2019-2020 Philipp Wolfer +# Copyright (C) 2013, 2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from PyQt5 import QtWidgets diff --git a/picard/ui/options/about.py b/picard/ui/options/about.py index 38ba1c7ee..6b3ce4613 100644 --- a/picard/ui/options/about.py +++ b/picard/ui/options/about.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006-2014 Lukáš Lalinský +# Copyright (C) 2008, 2013, 2018-2019 Philipp Wolfer +# Copyright (C) 2011 Pavan Chander +# Copyright (C) 2011, 2013 Wieland Hoffmann +# Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2013-2015, 2018 Laurent Monin +# Copyright (C) 2014 Ismael Olea +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard.const import PICARD_URLS from picard.formats import supported_extensions from picard.util import versions diff --git a/picard/ui/options/advanced.py b/picard/ui/options/advanced.py index 77d68ab93..4ac5d2df3 100644 --- a/picard/ui/options/advanced.py +++ b/picard/ui/options/advanced.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2013-2015, 2018 Laurent Monin +# Copyright (C) 2014, 2019 Philipp Wolfer +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.ui.options import ( diff --git a/picard/ui/options/cdlookup.py b/picard/ui/options/cdlookup.py index 246c761d5..b0cff04e7 100644 --- a/picard/ui/options/cdlookup.py +++ b/picard/ui/options/cdlookup.py @@ -1,8 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (c) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2004 Robert Kaye +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2008, 2019 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.util.cdrom import ( AUTO_DETECT_DRIVES, diff --git a/picard/ui/options/cover.py b/picard/ui/options/cover.py index 46f95c50c..bb3cb6017 100644 --- a/picard/ui/options/cover.py +++ b/picard/ui/options/cover.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2010, 2018-2019 Philipp Wolfer +# Copyright (C) 2012, 2014 Wieland Hoffmann +# Copyright (C) 2012-2014 Michael Wiencek +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Suhas # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.coverart.providers import cover_art_providers diff --git a/picard/ui/options/dialog.py b/picard/ui/options/dialog.py index e8ec5bffb..ec8224deb 100644 --- a/picard/ui/options/dialog.py +++ b/picard/ui/options/dialog.py @@ -1,7 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2007 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2008-2009 Nikolai Prokoschenko +# Copyright (C) 2008-2009, 2018-2019 Philipp Wolfer +# Copyright (C) 2011 Pavan Chander +# Copyright (C) 2011-2012, 2019 Wieland Hoffmann +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013, 2017-2019 Laurent Monin +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Suhas +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtWidgets, diff --git a/picard/ui/options/fingerprinting.py b/picard/ui/options/fingerprinting.py index a13edca03..e4afe5ee7 100644 --- a/picard/ui/options/fingerprinting.py +++ b/picard/ui/options/fingerprinting.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2011 Lukáš Lalinský +# +# Copyright (C) 2011-2012 Lukáš Lalinský +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2015 Philipp Wolfer +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os from PyQt5 import ( diff --git a/picard/ui/options/general.py b/picard/ui/options/general.py index a3f5aed52..485b2d985 100644 --- a/picard/ui/options/general.py +++ b/picard/ui/options/general.py @@ -1,7 +1,17 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2014 Lukáš Lalinský +# Copyright (C) 2008, 2018-2019 Philipp Wolfer +# Copyright (C) 2011, 2013 Michael Wiencek +# Copyright (C) 2011, 2019 Wieland Hoffmann +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 virusMac # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +27,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import QtCore from picard import config diff --git a/picard/ui/options/genres.py b/picard/ui/options/genres.py index 169a94c20..c802a2099 100644 --- a/picard/ui/options/genres.py +++ b/picard/ui/options/genres.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2008 Lukáš Lalinský +# Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Wieland Hoffmann # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5.QtCore import Qt from PyQt5.QtGui import ( QTextBlockFormat, diff --git a/picard/ui/options/interface.py b/picard/ui/options/interface.py index 7a543642c..3cbc077a9 100644 --- a/picard/ui/options/interface.py +++ b/picard/ui/options/interface.py @@ -1,7 +1,17 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2007-2008 Lukáš Lalinský +# Copyright (C) 2008 Will +# Copyright (C) 2009, 2019-2020 Philipp Wolfer +# Copyright (C) 2011, 2013 Michael Wiencek +# Copyright (C) 2013, 2019 Wieland Hoffmann +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2018 Bob Swift # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +27,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial import locale import os.path diff --git a/picard/ui/options/interface_colors.py b/picard/ui/options/interface_colors.py index cfe879db2..6664acd35 100644 --- a/picard/ui/options/interface_colors.py +++ b/picard/ui/options/interface_colors.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import ( diff --git a/picard/ui/options/interface_top_tags.py b/picard/ui/options/interface_top_tags.py index fc7748430..789eb61fc 100644 --- a/picard/ui/options/interface_top_tags.py +++ b/picard/ui/options/interface_top_tags.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.ui.options import ( diff --git a/picard/ui/options/matching.py b/picard/ui/options/matching.py index 7efbf418f..6a9662387 100644 --- a/picard/ui/options/matching.py +++ b/picard/ui/options/matching.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2009, 2011, 2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2018 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.ui.options import ( diff --git a/picard/ui/options/metadata.py b/picard/ui/options/metadata.py index 445a939a0..d70982bd7 100644 --- a/picard/ui/options/metadata.py +++ b/picard/ui/options/metadata.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2008-2009, 2018-2019 Philipp Wolfer +# Copyright (C) 2011 Johannes Weißl +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2014 Wieland Hoffmann +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.const import ALIAS_LOCALES diff --git a/picard/ui/options/network.py b/picard/ui/options/network.py index 7dcb02a0c..2bb0186fa 100644 --- a/picard/ui/options/network.py +++ b/picard/ui/options/network.py @@ -1,7 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2013 Philipp Wolfer +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.ui.options import ( diff --git a/picard/ui/options/plugins.py b/picard/ui/options/plugins.py index ba648b1f2..62ebb0bfb 100644 --- a/picard/ui/options/plugins.py +++ b/picard/ui/options/plugins.py @@ -1,10 +1,19 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009, 2018-2020 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013, 2015, 2018-2019 Laurent Monin +# Copyright (C) 2013, 2017 Sophist-UK # Copyright (C) 2014 Shadab Zafar -# Copyright (C) 2015 Laurent Monin +# Copyright (C) 2015, 2017 Wieland Hoffmann +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Suhas +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2018 yagyanshbhatia # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,6 +29,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from operator import attrgetter import os.path diff --git a/picard/ui/options/ratings.py b/picard/ui/options/ratings.py index 1e73e00af..52f3f5f2b 100644 --- a/picard/ui/options/ratings.py +++ b/picard/ui/options/ratings.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2008 Philipp Wolfer +# +# Copyright (C) 2008-2009 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2018 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.ui.options import ( diff --git a/picard/ui/options/releases.py b/picard/ui/options/releases.py index 1432b8987..215240964 100644 --- a/picard/ui/options/releases.py +++ b/picard/ui/options/releases.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012 Frederik “Freso” S. Olesen +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Suhas +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from locale import strxfrm from operator import itemgetter diff --git a/picard/ui/options/renaming.py b/picard/ui/options/renaming.py index 07a2782da..9a231169b 100644 --- a/picard/ui/options/renaming.py +++ b/picard/ui/options/renaming.py @@ -1,8 +1,20 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006-2008 Lukáš Lalinský -# Copyright (C) 2009 Nikolai Prokoschenko +# +# Copyright (C) 2006-2008, 2011 Lukáš Lalinský +# Copyright (C) 2008-2009 Nikolai Prokoschenko +# Copyright (C) 2009-2010, 2014-2015, 2018-2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2011-2013 Wieland Hoffmann +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013 Ionuț Ciocîrlan +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2015 Alex Berman +# Copyright (C) 2015 Ohm Patel +# Copyright (C) 2016 Suhas +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +30,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial import os.path diff --git a/picard/ui/options/scripting.py b/picard/ui/options/scripting.py index 941d4cb2a..dca9be828 100644 --- a/picard/ui/options/scripting.py +++ b/picard/ui/options/scripting.py @@ -1,7 +1,16 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2009 Lukáš Lalinský +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2009-2010, 2019 Philipp Wolfer +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013-2015, 2017-2019 Laurent Monin +# Copyright (C) 2014 m42i +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2016-2017 Suhas +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +26,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/options/tags.py b/picard/ui/options/tags.py index eb135e934..2a6bca8ac 100644 --- a/picard/ui/options/tags.py +++ b/picard/ui/options/tags.py @@ -1,7 +1,16 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007, 2011 Lukáš Lalinský +# Copyright (C) 2009 Nikolai Prokoschenko +# Copyright (C) 2009-2010, 2018-2019 Philipp Wolfer +# Copyright (C) 2012 Erik Wasser +# Copyright (C) 2012 Johannes Weißl +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013, 2017 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017-2018 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +26,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from PyQt5 import ( diff --git a/picard/ui/options/tags_compatibility.py b/picard/ui/options/tags_compatibility.py index 1c1246ad7..70d67543c 100644 --- a/picard/ui/options/tags_compatibility.py +++ b/picard/ui/options/tags_compatibility.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from picard import config diff --git a/picard/ui/passworddialog.py b/picard/ui/passworddialog.py index c02f39ee9..e70169cfb 100644 --- a/picard/ui/passworddialog.py +++ b/picard/ui/passworddialog.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2008 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2012, 2014 Lukáš Lalinský +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/ui/playertoolbar.py b/picard/ui/playertoolbar.py index f509aa7e7..95901a043 100644 --- a/picard/ui/playertoolbar.py +++ b/picard/ui/playertoolbar.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2019 Philipp Wolfer +# # Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # Copyright (C) 2019 Timur Enikeev # # This program is free software; you can redistribute it and/or @@ -19,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os from PyQt5 import ( diff --git a/picard/ui/ratingwidget.py b/picard/ui/ratingwidget.py index 172c7a4fb..7fab90ab8 100644 --- a/picard/ui/ratingwidget.py +++ b/picard/ui/ratingwidget.py @@ -1,7 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2008 Philipp Wolfer +# +# Copyright (C) 2008, 2018-2019 Philipp Wolfer +# Copyright (C) 2011, 2013 Michael Wiencek +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/scriptsmenu.py b/picard/ui/scriptsmenu.py index 8a6fe7a78..1020e594d 100644 --- a/picard/ui/scriptsmenu.py +++ b/picard/ui/scriptsmenu.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Laurent Monin # Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2018 Yvan Rivière # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import QtWidgets diff --git a/picard/ui/searchdialog/__init__.py b/picard/ui/searchdialog/__init__.py index ae3e3a3d7..3094ca630 100644 --- a/picard/ui/searchdialog/__init__.py +++ b/picard/ui/searchdialog/__init__.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2016 Rahul Raturi -# Copyright (C) 2018 Laurent Monin -# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2018-2019 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import ( OrderedDict, namedtuple, diff --git a/picard/ui/searchdialog/album.py b/picard/ui/searchdialog/album.py index a88130742..cf906fed1 100644 --- a/picard/ui/searchdialog/album.py +++ b/picard/ui/searchdialog/album.py @@ -1,8 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2016 Rahul Raturi -# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018-2019 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import ( diff --git a/picard/ui/searchdialog/artist.py b/picard/ui/searchdialog/artist.py index 0bc274dab..d18ca5d5e 100644 --- a/picard/ui/searchdialog/artist.py +++ b/picard/ui/searchdialog/artist.py @@ -1,8 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2016 Rahul Raturi # Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import QtCore from picard import config diff --git a/picard/ui/searchdialog/track.py b/picard/ui/searchdialog/track.py index 888d8d78e..f32cb7f91 100644 --- a/picard/ui/searchdialog/track.py +++ b/picard/ui/searchdialog/track.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2016 Rahul Raturi -# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018 Antonio Larrosa +# Copyright (C) 2018-2019 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import QtCore from picard import config diff --git a/picard/ui/statusindicator.py b/picard/ui/statusindicator.py index 56142dcea..0ad354366 100644 --- a/picard/ui/statusindicator.py +++ b/picard/ui/statusindicator.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard.const.sys import ( IS_HAIKU, IS_MACOS, diff --git a/picard/ui/tagsfromfilenames.py b/picard/ui/tagsfromfilenames.py index 3ed5e9670..e63649b6a 100644 --- a/picard/ui/tagsfromfilenames.py +++ b/picard/ui/tagsfromfilenames.py @@ -1,7 +1,15 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2009, 2014, 2019 Philipp Wolfer +# Copyright (C) 2012-2013 Michael Wiencek +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os.path import re diff --git a/picard/ui/util.py b/picard/ui/util.py index 0130d23e7..bc29d320d 100644 --- a/picard/ui/util.py +++ b/picard/ui/util.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2013-2015, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Vishal Choudhary +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtWidgets, diff --git a/picard/ui/widgets/__init__.py b/picard/ui/widgets/__init__.py index 1d6ee383e..9ba35ece2 100644 --- a/picard/ui/widgets/__init__.py +++ b/picard/ui/widgets/__init__.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/widgets/editablelistview.py b/picard/ui/widgets/editablelistview.py index 2b4dd5d16..97babca91 100644 --- a/picard/ui/widgets/editablelistview.py +++ b/picard/ui/widgets/editablelistview.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtGui, diff --git a/picard/ui/widgets/scriptlistwidget.py b/picard/ui/widgets/scriptlistwidget.py index 92e806e79..231d5c94e 100644 --- a/picard/ui/widgets/scriptlistwidget.py +++ b/picard/ui/widgets/scriptlistwidget.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import ( diff --git a/picard/ui/widgets/taglisteditor.py b/picard/ui/widgets/taglisteditor.py index 83f9ee188..cbdd01ad2 100644 --- a/picard/ui/widgets/taglisteditor.py +++ b/picard/ui/widgets/taglisteditor.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import QtWidgets from picard.util.tags import TAG_NAMES diff --git a/picard/ui/widgets/tristatesortheaderview.py b/picard/ui/widgets/tristatesortheaderview.py index dc18baa4a..c1300e22a 100644 --- a/picard/ui/widgets/tristatesortheaderview.py +++ b/picard/ui/widgets/tristatesortheaderview.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5 import ( QtCore, QtWidgets, diff --git a/picard/util/__init__.py b/picard/util/__init__.py index 83fd547eb..03e01ee4a 100644 --- a/picard/util/__init__.py +++ b/picard/util/__init__.py @@ -1,9 +1,25 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye -# Copyright (C) 2006 Lukáš Lalinský -# Copyright (C) 2020 Laurent Monin +# Copyright (C) 2006-2009, 2011-2012, 2014 Lukáš Lalinský +# Copyright (C) 2008-2011, 2014, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2009 david +# Copyright (C) 2010 fatih +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012, 2014-2015 Wieland Hoffmann +# Copyright (C) 2013 Ionuț Ciocîrlan +# Copyright (C) 2013-2014 Sophist-UK +# Copyright (C) 2013-2014, 2018-2020 Laurent Monin +# Copyright (C) 2014 Johannes Dewender +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016 barami +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +34,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import builtins from collections import namedtuple import html diff --git a/picard/util/astrcmp.py b/picard/util/astrcmp.py index cd83f25a7..a4ddc3a35 100644 --- a/picard/util/astrcmp.py +++ b/picard/util/astrcmp.py @@ -1,3 +1,5 @@ +# fix-header: skip + # http://hetland.org/coding/python/levenshtein.py # This is a straightforward implementation of a well-known algorithm, and thus diff --git a/picard/util/bytes2human.py b/picard/util/bytes2human.py index 305873e00..7e18e1291 100644 --- a/picard/util/bytes2human.py +++ b/picard/util/bytes2human.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2013 Laurent Monin +# +# Copyright (C) 2013, 2019-2020 Laurent Monin +# Copyright (C) 2018 Wieland Hoffmann # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + """Helper class to convert bytes to human-readable form It supports l10n through gettext, decimal and binary units. diff --git a/picard/util/cdrom.py b/picard/util/cdrom.py index 2b16a7b85..f7b101896 100644 --- a/picard/util/cdrom.py +++ b/picard/util/cdrom.py @@ -1,8 +1,18 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (c) 2004 Robert Kaye +# +# Copyright (C) 2004 Robert Kaye # Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2008 Will +# Copyright (C) 2008, 2018-2019 Philipp Wolfer +# Copyright (C) 2009 david +# Copyright (C) 2013 Johannes Dewender +# Copyright (C) 2013 Sebastian Ramacher +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2013-2014 Michael Wiencek +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +28,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from PyQt5.QtCore import ( QFile, QIODevice, diff --git a/picard/util/checkupdate.py b/picard/util/checkupdate.py index 52c7c5055..e4569aaa7 100644 --- a/picard/util/checkupdate.py +++ b/picard/util/checkupdate.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2018 Bob Swift +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018, 2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from functools import partial from PyQt5 import QtCore diff --git a/picard/util/emptydir.py b/picard/util/emptydir.py index 1cd7d11c1..c55b8d0a4 100644 --- a/picard/util/emptydir.py +++ b/picard/util/emptydir.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2019 Philipp Wolfer +# # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os import os.path import shutil diff --git a/picard/util/filenaming.py b/picard/util/filenaming.py index 0bbb58d13..88e26debf 100644 --- a/picard/util/filenaming.py +++ b/picard/util/filenaming.py @@ -2,6 +2,14 @@ # # Picard, the next-generation MusicBrainz tagger # +# Copyright (C) 2013-2014 Ionuț Ciocîrlan +# Copyright (C) 2013-2014, 2018-2019 Laurent Monin +# Copyright (C) 2014 Michael Wiencek +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä +# Copyright (C) 2018 Antonio Larrosa +# Copyright (C) 2019 Philipp Wolfer +# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 @@ -16,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import math import os import re diff --git a/picard/util/icontheme.py b/picard/util/icontheme.py index ffcb91105..4f861334a 100644 --- a/picard/util/icontheme.py +++ b/picard/util/icontheme.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2008 Lukáš Lalinský +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os.path from PyQt5 import QtGui diff --git a/picard/util/imageinfo.py b/picard/util/imageinfo.py index 21f458d2e..f14aadf4e 100644 --- a/picard/util/imageinfo.py +++ b/picard/util/imageinfo.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2014 Laurent Monin +# +# Copyright (C) 2014, 2018, 2020 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from io import BytesIO import struct diff --git a/picard/util/imagelist.py b/picard/util/imagelist.py index 64c74ae60..b3f775c2c 100644 --- a/picard/util/imagelist.py +++ b/picard/util/imagelist.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2017 Antonio Larrosa -# Copyright (C) 2018 Philipp Wolfer +# +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2019 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections.abc import MutableSequence from picard import config diff --git a/picard/util/lrucache.py b/picard/util/lrucache.py index 4adbb451c..78c2cb4b7 100644 --- a/picard/util/lrucache.py +++ b/picard/util/lrucache.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2017 Antonio Larrosa +# +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2018-2019 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections.abc import MutableMapping diff --git a/picard/util/natsort.py b/picard/util/natsort.py index 675b2522b..5b09335c0 100644 --- a/picard/util/natsort.py +++ b/picard/util/natsort.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + """Functions for natural sorting of strings containing numbers. """ diff --git a/picard/util/preservedtags.py b/picard/util/preservedtags.py index aff3206fe..35af784ae 100644 --- a/picard/util/preservedtags.py +++ b/picard/util/preservedtags.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2018 Laurent Monin # Copyright (C) 2019-2020 Philipp Wolfer # @@ -18,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config diff --git a/picard/util/scripttofilename.py b/picard/util/scripttofilename.py index 6ff53fb58..cdbb3407c 100644 --- a/picard/util/scripttofilename.py +++ b/picard/util/scripttofilename.py @@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye # Copyright (C) 2006 Lukáš Lalinský -# Copyright (C) 2018 Philipp Wolfer +# Copyright (C) 2018-2020 Philipp Wolfer +# Copyright (C) 2019 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from picard import config from picard.const.sys import IS_WIN from picard.metadata import Metadata diff --git a/picard/util/settingsoverride.py b/picard/util/settingsoverride.py index 3ce7098f0..5ed2ff964 100644 --- a/picard/util/settingsoverride.py +++ b/picard/util/settingsoverride.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Laurent Monin # # This program is free software; you can redistribute it and/or @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections.abc import MutableMapping diff --git a/picard/util/tags.py b/picard/util/tags.py index f4166969d..0f426f184 100644 --- a/picard/util/tags.py +++ b/picard/util/tags.py @@ -1,7 +1,16 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2007 Lukáš Lalinský +# +# Copyright (C) 2007-2008, 2011 Lukáš Lalinský +# Copyright (C) 2008-2009, 2018-2020 Philipp Wolfer +# Copyright (C) 2011 Johannes Weißl +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2013 Calvin Walton +# Copyright (C) 2013-2014, 2019 Laurent Monin +# Copyright (C) 2013-2015, 2017 Sophist-UK +# Copyright (C) 2019 Zenara Daley # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +26,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re diff --git a/picard/util/textencoding.py b/picard/util/textencoding.py index 0214c0b51..3ce273dc9 100644 --- a/picard/util/textencoding.py +++ b/picard/util/textencoding.py @@ -1,8 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2004 Robert Kaye # Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2014, 2018 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + # This modules provides functionality for simplifying unicode strings. # The unicode character set (of over 1m codepoints and 24,000 characters) includes: diff --git a/picard/util/thread.py b/picard/util/thread.py index 98fc813ad..4a609baf9 100644 --- a/picard/util/thread.py +++ b/picard/util/thread.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2008 Gary van der Merwe +# Copyright (C) 2011-2013 Michael Wiencek +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Vishal Choudhary # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import sys import traceback diff --git a/picard/util/versions.py b/picard/util/versions.py index 3a0914fbc..8bb3cd9c5 100644 --- a/picard/util/versions.py +++ b/picard/util/versions.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2006-2014 Lukáš Lalinský -# Copyright (C) 2014 Laurent Monin +# Copyright (C) 2014-2015, 2017-2018 Laurent Monin +# Copyright (C) 2016 Sambhav Kothari +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,6 +21,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import OrderedDict from platform import python_version diff --git a/picard/util/webbrowser2.py b/picard/util/webbrowser2.py index c7426918b..fae36e337 100644 --- a/picard/util/webbrowser2.py +++ b/picard/util/webbrowser2.py @@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2006 Lukáš Lalinský +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2011 Calvin Walton +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + """A webbrowser extension for Picard. It handles and displays errors in PyQt and also adds a utility function for opening Picard URLS. diff --git a/picard/util/xml.py b/picard/util/xml.py index f9e9c9abb..8bc879f0f 100644 --- a/picard/util/xml.py +++ b/picard/util/xml.py @@ -1,9 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2009 Carlin Mangar # Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from PyQt5.QtCore import QXmlStreamReader diff --git a/picard/version.py b/picard/version.py index 5131d42e8..0fe4e76b9 100644 --- a/picard/version.py +++ b/picard/version.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2019 Philipp Wolfer +# +# Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import namedtuple import re diff --git a/picard/webservice/__init__.py b/picard/webservice/__init__.py index d09adcf52..5ed24774d 100644 --- a/picard/webservice/__init__.py +++ b/picard/webservice/__init__.py @@ -1,9 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2009 Carlin Mangar # Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018-2019 Philipp Wolfer +# Copyright (C) 2018-2020 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/picard/webservice/api_helpers.py b/picard/webservice/api_helpers.py index 7913fd839..75ed77d88 100644 --- a/picard/webservice/api_helpers.py +++ b/picard/webservice/api_helpers.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +20,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re from PyQt5.QtCore import QUrl diff --git a/picard/webservice/ratecontrol.py b/picard/webservice/ratecontrol.py index 6ae842296..a5c94e029 100644 --- a/picard/webservice/ratecontrol.py +++ b/picard/webservice/ratecontrol.py @@ -1,10 +1,12 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2009 Carlin Mangar # Copyright (C) 2017 Sambhav Kothari # Copyright (C) 2018 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,6 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from collections import defaultdict import math import sys diff --git a/resources/__init__.py b/resources/__init__.py index e69de29bb..5b7e9f4a6 100644 --- a/resources/__init__.py +++ b/resources/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/resources/compile.py b/resources/compile.py index 35b52b726..dfec249bf 100755 --- a/resources/compile.py +++ b/resources/compile.py @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2014 Shadab Zafar +# Copyright (C) 2016 Sambhav Kothari +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from distutils import log from distutils.dep_util import newer diff --git a/resources/makeqrc.py b/resources/makeqrc.py index 7e61ee0f0..730624cd8 100755 --- a/resources/makeqrc.py +++ b/resources/makeqrc.py @@ -1,4 +1,28 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013-2014, 2018 Laurent Monin +# Copyright (C) 2014 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Ville Skyttä +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from distutils import log from distutils.dep_util import newer diff --git a/scripts/pyinstaller/macos-library-path-hook.py b/scripts/pyinstaller/macos-library-path-hook.py index 31bb76215..546b36565 100644 --- a/scripts/pyinstaller/macos-library-path-hook.py +++ b/scripts/pyinstaller/macos-library-path-hook.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os import sys diff --git a/scripts/pyinstaller/portable-hook.py b/scripts/pyinstaller/portable-hook.py index 2523ae31e..94f3ab292 100644 --- a/scripts/pyinstaller/portable-hook.py +++ b/scripts/pyinstaller/portable-hook.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os import os.path import sys diff --git a/scripts/pyinstaller/win-console-hook.py b/scripts/pyinstaller/win-console-hook.py index 36c145d98..29e941d54 100644 --- a/scripts/pyinstaller/win-console-hook.py +++ b/scripts/pyinstaller/win-console-hook.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import sys diff --git a/scripts/tools/changelog-for-version.py b/scripts/tools/changelog-for-version.py index a2352901c..6db478cbe 100755 --- a/scripts/tools/changelog-for-version.py +++ b/scripts/tools/changelog-for-version.py @@ -1,4 +1,24 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import re import sys diff --git a/setup.py b/setup.py index 27f3e5347..5f0d32280 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,41 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006-2008, 2011-2014, 2017 Lukáš Lalinský +# Copyright (C) 2007 Santiago M. Mola +# Copyright (C) 2008 Robert Kaye +# Copyright (C) 2008-2009, 2018-2020 Philipp Wolfer +# Copyright (C) 2009 Carlin Mangar +# Copyright (C) 2011-2012, 2014, 2016-2018 Wieland Hoffmann +# Copyright (C) 2011-2014 Michael Wiencek +# Copyright (C) 2012, 2017 Frederik “Freso” S. Olesen +# Copyright (C) 2013-2014 Johannes Dewender +# Copyright (C) 2013-2015, 2017-2019 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2016-2017 Ville Skyttä +# Copyright (C) 2016-2018 Sambhav Kothari +# Copyright (C) 2018 Kartik Ohri +# Copyright (C) 2018 abhi-ohri +# Copyright (C) 2018 virusMac +# Copyright (C) 2019 Kurt Mosiejczuk +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import datetime from distutils import log diff --git a/test/__init__.py b/test/__init__.py index 65d06e0a2..3a28dbce7 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import glob import os.path diff --git a/test/data/testplugins/module/dummyplugin/__init__.py b/test/data/testplugins/module/dummyplugin/__init__.py index 92c9800f4..16d4a4e26 100644 --- a/test/data/testplugins/module/dummyplugin/__init__.py +++ b/test/data/testplugins/module/dummyplugin/__init__.py @@ -1,6 +1,25 @@ # -*- coding: utf-8 -*- -"""Dummy plugin for tests""" +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +"""Dummy plugin for tests""" PLUGIN_NAME = "Dummy plugin" PLUGIN_AUTHOR = "Zas" PLUGIN_DESCRIPTION = "Dummy plugin description" diff --git a/test/data/testplugins/singlefile/dummyplugin.py b/test/data/testplugins/singlefile/dummyplugin.py index 92c9800f4..16d4a4e26 100644 --- a/test/data/testplugins/singlefile/dummyplugin.py +++ b/test/data/testplugins/singlefile/dummyplugin.py @@ -1,6 +1,25 @@ # -*- coding: utf-8 -*- -"""Dummy plugin for tests""" +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +"""Dummy plugin for tests""" PLUGIN_NAME = "Dummy plugin" PLUGIN_AUTHOR = "Zas" PLUGIN_DESCRIPTION = "Dummy plugin description" diff --git a/test/formats/__init__.py b/test/formats/__init__.py index e69de29bb..f37ba8094 100644 --- a/test/formats/__init__.py +++ b/test/formats/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/test/formats/common.py b/test/formats/common.py index bea426b7b..ac830fd87 100644 --- a/test/formats/common.py +++ b/test/formats/common.py @@ -1,4 +1,26 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Zenara Daley +# Copyright (C) 2019-2020 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path import unittest diff --git a/test/formats/coverart.py b/test/formats/coverart.py index bedd0ea98..2815ea15b 100644 --- a/test/formats/coverart.py +++ b/test/formats/coverart.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path from picard import config diff --git a/test/formats/test_aac.py b/test/formats/test_aac.py index cce307402..872c201f8 100644 --- a/test/formats/test_aac.py +++ b/test/formats/test_aac.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os from picard import config diff --git a/test/formats/test_ac3.py b/test/formats/test_ac3.py index e50ece9d1..93aa34082 100644 --- a/test/formats/test_ac3.py +++ b/test/formats/test_ac3.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os import unittest diff --git a/test/formats/test_apev2.py b/test/formats/test_apev2.py index 85cfe4d4a..90d1d89d2 100644 --- a/test/formats/test_apev2.py +++ b/test/formats/test_apev2.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os from mutagen.apev2 import ( diff --git a/test/formats/test_asf.py b/test/formats/test_asf.py index 8059055b3..b9710753f 100644 --- a/test/formats/test_asf.py +++ b/test/formats/test_asf.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import ( PicardTestCase, create_fake_png, diff --git a/test/formats/test_id3.py b/test/formats/test_id3.py index 07f0fcd39..c19a476d0 100644 --- a/test/formats/test_id3.py +++ b/test/formats/test_id3.py @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2019 Zenara Daley +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path import mutagen diff --git a/test/formats/test_midi.py b/test/formats/test_midi.py index 92b29f2ea..c2b95b0e3 100644 --- a/test/formats/test_midi.py +++ b/test/formats/test_midi.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from .common import CommonTests diff --git a/test/formats/test_mp4.py b/test/formats/test_mp4.py index 6db30dac1..a34cccb17 100644 --- a/test/formats/test_mp4.py +++ b/test/formats/test_mp4.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import unittest import mutagen diff --git a/test/formats/test_mutagenext.py b/test/formats/test_mutagenext.py index 73f966579..0e6da9270 100644 --- a/test/formats/test_mutagenext.py +++ b/test/formats/test_mutagenext.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard.formats import mutagenext diff --git a/test/formats/test_vorbis.py b/test/formats/test_vorbis.py index 8df50979a..54ffa258b 100644 --- a/test/formats/test_vorbis.py +++ b/test/formats/test_vorbis.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import base64 import logging import os diff --git a/test/formats/test_wav.py b/test/formats/test_wav.py index 53e16d41c..0502e0ef2 100644 --- a/test/formats/test_wav.py +++ b/test/formats/test_wav.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from .common import ( REPLAYGAIN_TAGS, TAGS, diff --git a/test/picardtestcase.py b/test/picardtestcase.py index 514173663..8c9741478 100644 --- a/test/picardtestcase.py +++ b/test/picardtestcase.py @@ -1,4 +1,26 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import json import os import shutil diff --git a/test/test_acoustid.py b/test/test_acoustid.py index 1e42aee1f..6e9a43a52 100644 --- a/test/test_acoustid.py +++ b/test/test_acoustid.py @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019-2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import json import os diff --git a/test/test_acoustidmanager.py b/test/test_acoustidmanager.py index f0e252040..8b708c56a 100644 --- a/test/test_acoustidmanager.py +++ b/test/test_acoustidmanager.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2020 Laurent Monin +# Copyright (C) 2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from unittest.mock import ( MagicMock, Mock, diff --git a/test/test_amazon_urls.py b/test/test_amazon_urls.py index d3615e06f..2d5f5150a 100644 --- a/test/test_amazon_urls.py +++ b/test/test_amazon_urls.py @@ -1,4 +1,25 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016 barami +# Copyright (C) 2018 Wieland Hoffmann +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.picardtestcase import PicardTestCase diff --git a/test/test_api_helpers.py b/test/test_api_helpers.py index c4a65b23f..72f5af50d 100644 --- a/test/test_api_helpers.py +++ b/test/test_api_helpers.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from unittest.mock import MagicMock from test.picardtestcase import PicardTestCase diff --git a/test/test_browser.py b/test/test_browser.py index 50e742180..a6901dbf7 100644 --- a/test/test_browser.py +++ b/test/test_browser.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from unittest.mock import patch from urllib.parse import ( parse_qs, diff --git a/test/test_bytes2human.py b/test/test_bytes2human.py index 1b1c2ad1d..3131dffe1 100644 --- a/test/test_bytes2human.py +++ b/test/test_bytes2human.py @@ -1,3 +1,28 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013, 2019-2020 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path from test.picardtestcase import PicardTestCase diff --git a/test/test_compatid3.py b/test/test_compatid3.py index 72fd1c35d..99b4688f9 100644 --- a/test/test_compatid3.py +++ b/test/test_compatid3.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2016 Christoph Reiter +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from mutagen import id3 diff --git a/test/test_config.py b/test/test_config.py index 60ab49309..67864926a 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2019 Laurent Monin +# +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2019-2020 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import logging import os import shutil diff --git a/test/test_config_upgrade.py b/test/test_config_upgrade.py index 3d5af6c8d..4aa771f97 100644 --- a/test/test_config_upgrade.py +++ b/test/test_config_upgrade.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger +# # Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.test_config import TestPicardConfigCommon from picard.config import ( diff --git a/test/test_coverart_image.py b/test/test_coverart_image.py index f13eec0c8..128f86d36 100644 --- a/test/test_coverart_image.py +++ b/test/test_coverart_image.py @@ -1,4 +1,25 @@ -# coding: utf-8 +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2019-2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path import unittest diff --git a/test/test_coverart_utils.py b/test/test_coverart_utils.py index 7d0748e50..55e860e0c 100644 --- a/test/test_coverart_utils.py +++ b/test/test_coverart_utils.py @@ -1,4 +1,26 @@ -# coding: utf-8 +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path from test.picardtestcase import PicardTestCase diff --git a/test/test_dataobj.py b/test/test_dataobj.py index 945b7738c..e351ab435 100644 --- a/test/test_dataobj.py +++ b/test/test_dataobj.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard import config diff --git a/test/test_emptydir.py b/test/test_emptydir.py index cb7adb981..0e063ec8d 100644 --- a/test/test_emptydir.py +++ b/test/test_emptydir.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os.path from tempfile import NamedTemporaryFile diff --git a/test/test_file.py b/test/test_file.py index 37fe897dd..0117f2d54 100644 --- a/test/test_file.py +++ b/test/test_file.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018-2020 Philipp Wolfer +# Copyright (C) 2019-2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os import unittest from unittest.mock import MagicMock diff --git a/test/test_filesystem.py b/test/test_filesystem.py index 8a31ec68f..91591d551 100644 --- a/test/test_filesystem.py +++ b/test/test_filesystem.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018 Antonio Larrosa +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2019 Philipp Wolfer +# Copyright (C) 2018-2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from contextlib import suppress import os.path import shutil diff --git a/test/test_imagelist.py b/test/test_imagelist.py index e3441b9f2..7750f4ff9 100644 --- a/test/test_imagelist.py +++ b/test/test_imagelist.py @@ -1,4 +1,25 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018-2019 Philipp Wolfer +# Copyright (C) 2018-2019 Wieland Hoffmann +# Copyright (C) 2018-2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.picardtestcase import ( PicardTestCase, diff --git a/test/test_mbjson.py b/test/test_mbjson.py index c66d308e7..1ab6c41e1 100644 --- a/test/test_mbjson.py +++ b/test/test_mbjson.py @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017, 2019 Laurent Monin +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import ( PicardTestCase, load_test_json, diff --git a/test/test_metadata.py b/test/test_metadata.py index 02e309e22..15eaa2459 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2020 Laurent Monin +# Copyright (C) 2018-2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import ( PicardTestCase, load_test_json, diff --git a/test/test_plugins.py b/test/test_plugins.py index 82f22e1cd..6bb960145 100644 --- a/test/test_plugins.py +++ b/test/test_plugins.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger -# Copyright (C) 2019 Laurent Monin +# +# Copyright (C) 2019-2020 Laurent Monin +# Copyright (C) 2019-2020 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,6 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import logging import os import sys diff --git a/test/test_releaseversions.py b/test/test_releaseversions.py index 48964ad25..1bfe33c8c 100644 --- a/test/test_releaseversions.py +++ b/test/test_releaseversions.py @@ -1,3 +1,29 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013, 2018, 2020 Laurent Monin +# Copyright (C) 2014 Michael Wiencek +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import os.path from test.picardtestcase import ( diff --git a/test/test_script.py b/test/test_script.py index c721912f1..01edd4aff 100644 --- a/test/test_script.py +++ b/test/test_script.py @@ -1,3 +1,34 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2007 Lukáš Lalinský +# Copyright (C) 2010, 2014, 2018-2020 Philipp Wolfer +# Copyright (C) 2012 Chad Wilson +# Copyright (C) 2013 Michael Wiencek +# Copyright (C) 2013, 2017-2020 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016-2017 Sambhav Kothari +# Copyright (C) 2017 Antonio Larrosa +# Copyright (C) 2017-2018 Wieland Hoffmann +# Copyright (C) 2018 virusMac +# Copyright (C) 2020 Bob Swift +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import copy import datetime from unittest.mock import MagicMock diff --git a/test/test_scripttofilename.py b/test/test_scripttofilename.py index 9e3338996..4789cbe30 100644 --- a/test/test_scripttofilename.py +++ b/test/test_scripttofilename.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2018-2020 Philipp Wolfer +# Copyright (C) 2019 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import unittest from test.picardtestcase import PicardTestCase diff --git a/test/test_settingsoverride.py b/test/test_settingsoverride.py index 81f87b832..1213b8ab9 100644 --- a/test/test_settingsoverride.py +++ b/test/test_settingsoverride.py @@ -1,3 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard import config diff --git a/test/test_similarity.py b/test/test_similarity.py index 905db973e..948e48fdc 100644 --- a/test/test_similarity.py +++ b/test/test_similarity.py @@ -1,4 +1,25 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006 Lukáš Lalinský +# Copyright (C) 2013, 2018-2019 Laurent Monin +# Copyright (C) 2018 Wieland Hoffmann +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.picardtestcase import PicardTestCase diff --git a/test/test_taggenrefilter.py b/test/test_taggenrefilter.py index 7eddce23f..ec458bb63 100644 --- a/test/test_taggenrefilter.py +++ b/test/test_taggenrefilter.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Laurent Monin +# Copyright (C) 2019 Wieland Hoffmann +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.picardtestcase import PicardTestCase diff --git a/test/test_textencoding.py b/test/test_textencoding.py index 82f9cf7ad..e2533abeb 100644 --- a/test/test_textencoding.py +++ b/test/test_textencoding.py @@ -1,4 +1,28 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2015, 2018, 2020 Laurent Monin +# Copyright (C) 2017 Ville Skyttä +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard import util diff --git a/test/test_tracknum.py b/test/test_tracknum.py index 367e5c6f7..972d4d0f8 100644 --- a/test/test_tracknum.py +++ b/test/test_tracknum.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013, 2018 Laurent Monin +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard.util import tracknum_from_filename diff --git a/test/test_union_sorted_lists.py b/test/test_union_sorted_lists.py index 837618c60..e6083101b 100644 --- a/test/test_union_sorted_lists.py +++ b/test/test_union_sorted_lists.py @@ -1,4 +1,26 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2016 Rahul Raturi +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018, 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard.util import union_sorted_lists diff --git a/test/test_util_astrcmp.py b/test/test_util_astrcmp.py index 408452f81..e26411570 100644 --- a/test/test_util_astrcmp.py +++ b/test/test_util_astrcmp.py @@ -1,4 +1,28 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Lukáš Lalinský +# Copyright (C) 2017 Sophist-UK +# Copyright (C) 2017-2018 Wieland Hoffmann +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2018-2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import unittest from test.picardtestcase import PicardTestCase diff --git a/test/test_util_filenaming.py b/test/test_util_filenaming.py index bdb7a0838..1b23d9509 100644 --- a/test/test_util_filenaming.py +++ b/test/test_util_filenaming.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013-2014 Ionuț Ciocîrlan +# Copyright (C) 2016 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2019 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os import os.path diff --git a/test/test_util_lrucache.py b/test/test_util_lrucache.py index 829d86efd..eba5ddacf 100644 --- a/test/test_util_lrucache.py +++ b/test/test_util_lrucache.py @@ -1,4 +1,23 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019-2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + from test.picardtestcase import PicardTestCase diff --git a/test/test_util_natsort.py b/test/test_util_natsort.py index 43da5861d..ec0e01df7 100644 --- a/test/test_util_natsort.py +++ b/test/test_util_natsort.py @@ -1,4 +1,25 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019 Philipp Wolfer +# Copyright (C) 2020 Laurent Monin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard.util import natsort diff --git a/test/test_util_preservedtags.py b/test/test_util_preservedtags.py index 3b551f1d2..15fb10ac3 100644 --- a/test/test_util_preservedtags.py +++ b/test/test_util_preservedtags.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard import config @@ -52,4 +72,3 @@ class PreservedTagsTest(PicardTestCase): preserved.add('tag1') preserved.discard('tag2') self.assertEqual(config.setting[PreservedTags.opt_name], 'tag1, tag3') - diff --git a/test/test_util_tags.py b/test/test_util_tags.py index 096bb72f4..9a5391599 100644 --- a/test/test_util_tags.py +++ b/test/test_util_tags.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2019-2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from test.picardtestcase import PicardTestCase from picard.util.tags import ( diff --git a/test/test_utils.py b/test/test_utils.py index 5e1312410..3f2a060c2 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,4 +1,32 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2006-2007 Lukáš Lalinský +# Copyright (C) 2010 fatih +# Copyright (C) 2010-2011, 2014, 2018-2019 Philipp Wolfer +# Copyright (C) 2012, 2014, 2018 Wieland Hoffmann +# Copyright (C) 2013 Ionuț Ciocîrlan +# Copyright (C) 2013-2014, 2018-2020 Laurent Monin +# Copyright (C) 2014, 2017 Sophist-UK +# Copyright (C) 2016 Frederik “Freso” S. Olesen +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017 Shen-Ta Hsieh +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import builtins from collections import namedtuple diff --git a/test/test_versions.py b/test/test_versions.py index 5bc157312..ab0ae82c5 100644 --- a/test/test_versions.py +++ b/test/test_versions.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2013-2014, 2018-2020 Laurent Monin +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2018 Wieland Hoffmann +# Copyright (C) 2018-2020 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + import unittest from test.picardtestcase import PicardTestCase diff --git a/test/test_webservice.py b/test/test_webservice.py index b320be7e7..b47791fb6 100644 --- a/test/test_webservice.py +++ b/test/test_webservice.py @@ -1,4 +1,27 @@ # -*- coding: utf-8 -*- +# +# Picard, the next-generation MusicBrainz tagger +# +# Copyright (C) 2017 Sambhav Kothari +# Copyright (C) 2017-2018 Wieland Hoffmann +# Copyright (C) 2018 Laurent Monin +# Copyright (C) 2019 Philipp Wolfer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + from unittest.mock import ( MagicMock, patch,