mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
set user agent as Client parameter, remove imports
This commit is contained in:
parent
a663e52bad
commit
d0115f1110
1 changed files with 0 additions and 5 deletions
|
|
@ -20,7 +20,6 @@ from beets.plugins import BeetsPlugin
|
|||
from discogs_client import Release, Client
|
||||
from discogs_client.exceptions import DiscogsAPIError
|
||||
import beets
|
||||
import discogs_client
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
|
|
@ -31,10 +30,6 @@ log = logging.getLogger('beets')
|
|||
urllib3_logger = logging.getLogger('requests.packages.urllib3')
|
||||
urllib3_logger.setLevel(logging.CRITICAL)
|
||||
|
||||
# Set user-agent for discogs client.
|
||||
discogs_client.user_agent = 'beets/%s +http://beets.radbox.org/' % \
|
||||
beets.__version__
|
||||
|
||||
|
||||
class DiscogsPlugin(BeetsPlugin):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue