diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index 28888cae..383db39a 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -133,6 +133,12 @@ days +
+ + +
@@ -2601,9 +2607,9 @@ initConfigCheckbox("#api_enabled"); initConfigCheckbox("#enable_https"); initConfigCheckbox("#customauth"); + initConfigCheckbox("#mb_ignore_age_missing"); initConfigCheckbox("#use_tquattrecentonze"); - $('#twitterStep1').click(function () { $.get("/twitterStep1", function (data) {window.open(data); }) .done(function () { $('#ajaxMsg').html("
Confirm Authorization. Check pop-up blocker if no response.
"); }); diff --git a/headphones/config.py b/headphones/config.py index 83c73415..30591769 100644 --- a/headphones/config.py +++ b/headphones/config.py @@ -167,6 +167,7 @@ _CONFIG_DEFINITIONS = { 'LOSSLESS_BITRATE_TO': (int, 'General', 0), 'LOSSLESS_DESTINATION_DIR': (path, 'General', ''), 'MB_IGNORE_AGE': (int, 'General', 365), + 'MB_IGNORE_AGE_MISSING': (int, 'General', 0), 'MININOVA': (int, 'Mininova', 0), 'MININOVA_RATIO': (str, 'Mininova', ''), 'MIRROR': (str, 'General', 'musicbrainz.org'), diff --git a/headphones/importer.py b/headphones/importer.py index 3b92ca11..0426004d 100644 --- a/headphones/importer.py +++ b/headphones/importer.py @@ -262,8 +262,12 @@ def addArtisttoDB(artistid, extrasonly=False, forcefull=False, type="artist"): else: if check_release_date is None or check_release_date == u"None": - logger.info("[%s] Now updating: %s (No Release Date)" % (artist['artist_name'], rg['title'])) - new_releases = mb.get_new_releases(rgid, includeExtras, True) + if headphones.CONFIG.MB_IGNORE_AGE_MISSING is not 1: + logger.info("[%s] Now updating: %s (No Release Date)" % (artist['artist_name'], rg['title'])) + new_releases = mb.get_new_releases(rgid, includeExtras, True) + else: + logger.info("[%s] Skipping update of: %s (No Release Date)" % (artist['artist_name'], rg['title'])) + new_releases = 0 else: if len(check_release_date) == 10: release_date = check_release_date diff --git a/headphones/webserve.py b/headphones/webserve.py index 9d703a5c..30ed209e 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -1160,6 +1160,7 @@ class WebInterface(object): "download_scan_interval": headphones.CONFIG.DOWNLOAD_SCAN_INTERVAL, "update_db_interval": headphones.CONFIG.UPDATE_DB_INTERVAL, "mb_ignore_age": headphones.CONFIG.MB_IGNORE_AGE, + "mb_ignore_age_missing": headphones.CONFIG.MB_IGNORE_AGE_MISSING, "search_interval": headphones.CONFIG.SEARCH_INTERVAL, "libraryscan_interval": headphones.CONFIG.LIBRARYSCAN_INTERVAL, "sab_host": headphones.CONFIG.SAB_HOST,