command/accurip: use new accurip module

This commit is contained in:
Samantha Baldwin
2017-09-07 14:50:05 -04:00
parent a124047af3
commit 4126ec5d2f
2 changed files with 10 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ import logging
logger = logging.getLogger(__name__)
ACCURATERIP_URL = "http://www.accuraterip.com/accuraterip/"
_CACHE_DIR = join(directory.cache_path(), 'accurip')
@@ -131,7 +132,7 @@ def calculate_checksums(track_paths):
def _download_entry(path):
url = "http://www.accuraterip.com/accuraterip/" + path
url = ACCURATERIP_URL + path
logger.debug('downloading AccurateRip entry from %s', url)
try:
resp = requests.get(url)