1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 01:29:39 +02:00
This commit is contained in:
Raymond Hill 2018-02-23 06:42:17 -05:00
parent a81d2a759b
commit 9fb455d2df
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -721,6 +721,9 @@
/******************************************************************************/
// https://github.com/gorhill/uBlock/issues/3406
// Lower minimum update period to 1 day.
µBlock.extractFilterListMetadata = function(assetKey, raw) {
var listEntry = this.availableFilterLists[assetKey];
if ( listEntry === undefined ) { return; }
@ -742,7 +745,7 @@
// Extract update frequency information
matches = head.match(/(?:^|\n)![\t ]*Expires:[\t ]*([\d]+)[\t ]*days?/i);
if ( matches !== null ) {
v = Math.max(parseInt(matches[1], 10), 2);
v = Math.max(parseInt(matches[1], 10), 1);
if ( v !== listEntry.updateAfter ) {
this.assets.registerAssetSource(assetKey, { updateAfter: v });
}