Fixed archive.org backend pulling multiple files when queueing a link to an individual file.

This commit is contained in:
rainbow napkin 2026-05-17 22:13:43 -04:00
parent fb226a306c
commit 42bfdd834f

View file

@ -131,7 +131,7 @@ module.exports.getMediaType = async function(dirtyURL){
} }
//If we have link to a resource from archive.org //If we have link to a resource from archive.org
if(match = url.match(/archive\.org\/(?:details|download)\/([a-zA-Z0-9\/._-\s\%]+)/)){ if(match = url.match(/archive\.org\/(?:details|download)\/(.+)/)){
//return internet archive upload id and filepath //return internet archive upload id and filepath
return { return {
type: "ia", type: "ia",