diff options
author | djazz | 2021-05-25 22:31:18 +0200 |
---|---|---|
committer | djazz | 2021-05-25 22:31:18 +0200 |
commit | 6632e51ced5cb98121bfbf74bd3d05ab240e641e (patch) | |
tree | 0e5bf4619b48a4781ef440819e80a4088a5cd3fe /loe-fetch.js | |
parent | edc48ac95e16bace4d607e888c9b8f9224e98c31 (diff) | |
download | aur-legends-of-equestria.tar.gz |
update regex
Diffstat (limited to 'loe-fetch.js')
-rw-r--r-- | loe-fetch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loe-fetch.js b/loe-fetch.js index 67c636b6d027..bfa889db885b 100644 --- a/loe-fetch.js +++ b/loe-fetch.js @@ -16,7 +16,7 @@ const zeroFill = require('zero-fill') fetch.concat('https://www.legendsofequestria.com/downloads', (err, res, data) => { if (err) throw err let html = data.toString('utf8') - const megaReg = /<a href="(https:\/\/mega\.nz\/#![a-zA-Z0-9_-]*![a-zA-Z0-9_-]*)">(.*?)<\/a>/ig + const megaReg = /<a href="(https:\/\/mega\.nz\/file\/[a-zA-Z0-9_-]*#[a-zA-Z0-9_-]*)">(.*?)<\/a>/ig const versions = {} for (let ma; (ma = megaReg.exec(html));) { let key = ma[2].trim().toLowerCase() |