mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Update logging imports: logging → beets.logging
This commit is contained in:
parent
6bdb02c721
commit
7df8bef8b7
46 changed files with 46 additions and 46 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Facilities for automatically determining files' correct metadata.
|
"""Facilities for automatically determining files' correct metadata.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets import config
|
from beets import config
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
"""Glue between metadata sources and the matching logic."""
|
"""Glue between metadata sources and the matching logic."""
|
||||||
import logging
|
from beets import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ releases and tracks.
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
from beets import logging
|
||||||
import re
|
import re
|
||||||
from munkres import Munkres
|
from munkres import Munkres
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Searches for albums in the MusicBrainz database.
|
"""Searches for albums in the MusicBrainz database.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
import re
|
import re
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
import pickle
|
import pickle
|
||||||
import itertools
|
import itertools
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from beets import logging
|
||||||
import shlex
|
import shlex
|
||||||
import unicodedata
|
import unicodedata
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ import math
|
||||||
import struct
|
import struct
|
||||||
import imghdr
|
import imghdr
|
||||||
import os
|
import os
|
||||||
import logging
|
from beets import logging
|
||||||
import traceback
|
import traceback
|
||||||
import enum
|
import enum
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Support for beets plugins."""
|
"""Support for beets plugins."""
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import traceback
|
import traceback
|
||||||
import inspect
|
import inspect
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import optparse
|
||||||
import textwrap
|
import textwrap
|
||||||
import sys
|
import sys
|
||||||
from difflib import SequenceMatcher
|
from difflib import SequenceMatcher
|
||||||
import logging
|
from beets import logging
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import errno
|
import errno
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ interface.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import codecs
|
import codecs
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import subprocess
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
import logging
|
from beets import logging
|
||||||
from beets import util
|
from beets import util
|
||||||
|
|
||||||
# Resizing methods
|
# Resizing methods
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Adds Beatport release and track search support to the autotagger
|
"""Adds Beatport release and track search support to the autotagger
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
import re
|
import re
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ from __future__ import print_function
|
||||||
import re
|
import re
|
||||||
from string import Template
|
from string import Template
|
||||||
import traceback
|
import traceback
|
||||||
import logging
|
from beets import logging
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Determine BPM by pressing a key to the rhythm."""
|
"""Determine BPM by pressing a key to the rhythm."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets import ui
|
from beets import ui
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
from beets import logging
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
from itertools import tee, izip
|
from itertools import tee, izip
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from beets import config
|
||||||
from beets.util import confit
|
from beets.util import confit
|
||||||
from beets.autotag import hooks
|
from beets.autotag import hooks
|
||||||
import acoustid
|
import acoustid
|
||||||
import logging
|
from beets import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
API_KEY = '1vOwZtEn'
|
API_KEY = '1vOwZtEn'
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Converts tracks or albums to external directory
|
"""Converts tracks or albums to external directory
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from discogs_client import Release, Client
|
||||||
from discogs_client.exceptions import DiscogsAPIError
|
from discogs_client.exceptions import DiscogsAPIError
|
||||||
from requests.exceptions import ConnectionError
|
from requests.exceptions import ConnectionError
|
||||||
import beets
|
import beets
|
||||||
import logging
|
from beets import logging
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""List duplicate tracks or albums.
|
"""List duplicate tracks or albums.
|
||||||
"""
|
"""
|
||||||
import shlex
|
import shlex
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import decargs, print_obj, vararg_callback, Subcommand, UserError
|
from beets.ui import decargs, print_obj, vararg_callback, Subcommand, UserError
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Fetch a variety of acoustic metrics from The Echo Nest.
|
"""Fetch a variety of acoustic metrics from The Echo Nest.
|
||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
import logging
|
from beets import logging
|
||||||
import socket
|
import socket
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Allows beets to embed album art into file metadata."""
|
"""Allows beets to embed album art into file metadata."""
|
||||||
import os.path
|
import os.path
|
||||||
import logging
|
from beets import logging
|
||||||
import imghdr
|
import imghdr
|
||||||
import subprocess
|
import subprocess
|
||||||
import platform
|
import platform
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Fetches album art.
|
"""Fetches album art.
|
||||||
"""
|
"""
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
import logging
|
from beets import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ from beets.ui import Subcommand
|
||||||
from beets.ui import decargs
|
from beets.ui import decargs
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
log = logging.getLogger('beets.freedesktop')
|
log = logging.getLogger('beets.freedesktop')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ from beets import plugins
|
||||||
from beets import ui
|
from beets import ui
|
||||||
from beets.util import displayable_path
|
from beets.util import displayable_path
|
||||||
from beets import config
|
from beets import config
|
||||||
import logging
|
from beets import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
log = logging.getLogger('beets')
|
log = logging.getLogger('beets')
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Warns you about things you hate (or even blocks import)."""
|
"""Warns you about things you hate (or even blocks import)."""
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.importer import action
|
from beets.importer import action
|
||||||
from beets.library import parse_query_string
|
from beets.library import parse_query_string
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Reimported albums and items are skipped.
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, print_function
|
from __future__ import unicode_literals, absolute_import, print_function
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from beets import config
|
from beets import config
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ one wants to manually add music to a player by its path.
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.util import normpath, syspath, bytestring_path
|
from beets.util import normpath, syspath, bytestring_path
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Allows inline path template customization code in the config file.
|
"""Allows inline path template customization code in the config file.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
import traceback
|
import traceback
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Uses the `KeyFinder` program to add the `initial_key` field.
|
"""Uses the `KeyFinder` program to add the `initial_key` field.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ and has been edited to remove some questionable entries.
|
||||||
The scraper script used is available here:
|
The scraper script used is available here:
|
||||||
https://gist.github.com/1241307
|
https://gist.github.com/1241307
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
import pylast
|
import pylast
|
||||||
import os
|
import os
|
||||||
import yaml
|
import yaml
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import requests
|
import requests
|
||||||
from beets import ui
|
from beets import ui
|
||||||
from beets import dbcore
|
from beets import dbcore
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import unicodedata
|
import unicodedata
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ from beets import config
|
||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
SUBMISSION_CHUNK_SIZE = 200
|
SUBMISSION_CHUNK_SIZE = 200
|
||||||
UUID_REGEX = r'^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$'
|
UUID_REGEX = r'^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$'
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Update library's tags using MusicBrainz.
|
"""Update library's tags using MusicBrainz.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import autotag, library, ui, util
|
from beets import autotag, library, ui, util
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""List missing tracks.
|
"""List missing tracks.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.autotag import hooks
|
from beets.autotag import hooks
|
||||||
from beets.library import Item
|
from beets.library import Item
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import mpd
|
import mpd
|
||||||
import socket
|
import socket
|
||||||
import select
|
import select
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ from beets import ui
|
||||||
from beets import util
|
from beets import util
|
||||||
from os.path import relpath
|
from os.path import relpath
|
||||||
import platform
|
import platform
|
||||||
import logging
|
from beets import logging
|
||||||
import shlex
|
import shlex
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
import logging
|
from beets import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import collections
|
import collections
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
formats.
|
formats.
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Cleans extraneous metadata from files' tags via a command or
|
"""Cleans extraneous metadata from files' tags via a command or
|
||||||
automatically whenever tags are written.
|
automatically whenever tags are written.
|
||||||
"""
|
"""
|
||||||
import logging
|
from beets import logging
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ from __future__ import print_function
|
||||||
import re
|
import re
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import requests
|
import requests
|
||||||
import logging
|
from beets import logging
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import decargs
|
from beets.ui import decargs
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"""Moves patterns in path formats (suitable for moving articles)."""
|
"""Moves patterns in path formats (suitable for moving articles)."""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
||||||
__author__ = 'baobab@heresiarch.info'
|
__author__ = 'baobab@heresiarch.info'
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
""" Clears tag fields in media files."""
|
""" Clears tag fields in media files."""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import logging
|
from beets import logging
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.mediafile import MediaFile
|
from beets.mediafile import MediaFile
|
||||||
from beets.importer import action
|
from beets.importer import action
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import logging
|
from beets import logging
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import os
|
||||||
import os.path
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import logging
|
from beets import logging
|
||||||
from tempfile import mkdtemp, mkstemp
|
from tempfile import mkdtemp, mkstemp
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue