Sauce: Update DeviantArt filename format. #2237
This commit is contained in:
parent
14e73b4b42
commit
e0009d2300
@ -477,6 +477,12 @@ Settings =
|
||||
[hostname, software] = line.split(' ')
|
||||
siteProperties[hostname] = {software}
|
||||
set 'siteProperties', siteProperties
|
||||
if compareString < '00001.00014.00006.00006'
|
||||
if data['sauces']?
|
||||
set 'sauces', data['sauces'].replace(
|
||||
/\/\/%\$1\.deviantart\.com\/gallery\/#\/d%\$2;regexp:\/\^\\w\+_by_\(\\w\+\)-d\(\[\\da-z\]\+\)\//g,
|
||||
'//www.deviantart.com/gallery/#/d%$1%$2;regexp:/^\\w+_by_\\w+[_-]d([\\da-z]{6})\\b|^d([\\da-z]{6})-[\\da-z]{8}-/'
|
||||
)
|
||||
changes
|
||||
|
||||
loadSettings: (data, cb) ->
|
||||
|
||||
@ -752,7 +752,7 @@ Config =
|
||||
sauces: """
|
||||
# Known filename formats:
|
||||
http://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/
|
||||
//%$1.deviantart.com/gallery/#/d%$2;regexp:/^\\w+_by_(\\w+)-d([\\da-z]+)/
|
||||
//www.deviantart.com/gallery/#/d%$1%$2;regexp:/^\\w+_by_\\w+[_-]d([\\da-z]{6})\\b|^d([\\da-z]{6})-[\\da-z]{8}-/
|
||||
//imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/
|
||||
http://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/
|
||||
https://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user