mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 11:18:28 +00:00
fix suggestions by @ihatespawn
This commit is contained in:
parent
250cbcfac1
commit
49ba560304
@ -4,7 +4,7 @@ import { cleanString } from "../../sub/utils.js";
|
||||
export default async function(obj) {
|
||||
// handle video downloads
|
||||
if (obj.type == 'portal') {
|
||||
let req = await fetch(`https://www.newgrounds.com/${obj.type}/video/${obj.id}`, {
|
||||
let req = await fetch(`https://www.newgrounds.com/portal/video/${obj.id}`, {
|
||||
headers: {
|
||||
'User-Agent': genericUserAgent,
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
@ -83,4 +83,4 @@ export default async function(obj) {
|
||||
isAudioOnly: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -60,5 +60,5 @@ export const testers = {
|
||||
patternMatch.id?.length <= 11,
|
||||
|
||||
"newgrounds": (patternMatch) =>
|
||||
patternMatch.id?.length <= 6,
|
||||
patternMatch.id?.length <= 1,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user