Avoid potential repeated adding of new sauce links.
This commit is contained in:
parent
da717cf01d
commit
665a9994ad
@ -413,8 +413,7 @@ Settings =
|
||||
if compareString < '00001.00013.00005.00000'
|
||||
if data['sauces']?
|
||||
set 'sauces', data['sauces'].replace(/^(#?\s*)http:\/\/regex\.info\/exif\.cgi/mg, '$1http://exif.regex.info/exif.cgi')
|
||||
if (known = Config['sauces'].match /# Known filename formats:(?:\n.+)*/)
|
||||
set 'sauces', data['sauces'] + '\n\n' + known[0]
|
||||
addSauces Config['sauces'].match(/# Known filename formats:(?:\n.+)*|$/)[0].split('\n')
|
||||
changes
|
||||
|
||||
loadSettings: (data, cb) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user