mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
update xiaohongshu
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @author fmz200
|
||||
* @function 小红书去广告、净化、解除下载限制、画质增强等
|
||||
* @date 2025-06-18 19:27:00
|
||||
* @date 2025-09-09 20:10:00
|
||||
* @quote @RuCu6
|
||||
*/
|
||||
|
||||
@ -417,7 +417,7 @@ function replaceUrlContent(collectionA, collectionB) {
|
||||
collectionA.forEach(itemA => {
|
||||
const itemB = collectionB.find(itemB => itemB.file_id === itemA.file_id);
|
||||
if (itemB) {
|
||||
itemA.url = itemA.url !== "" ? itemA.url.replace(/(.*)\.mp4/, `${itemB.url.match(/(.*)\.mp4/)[1]}.mp4`) : itemB.url;
|
||||
itemA.url = itemA.url !== "" ? itemA.url.replace(/^https?:\/\/.*\.mp4(\?[^"]*)?/g, `${itemB.url.match(/(.*)\.mp4/)[1]}.mp4`) : itemB.url;
|
||||
itemA.author = "@fmz200"
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user