diff --git a/src/modules/processing/services/newgrounds.js b/src/modules/processing/services/newgrounds.js index 9b16b34c..bd39aec6 100644 --- a/src/modules/processing/services/newgrounds.js +++ b/src/modules/processing/services/newgrounds.js @@ -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', @@ -72,15 +72,15 @@ export default async function(obj) { } return { - urls: url, - filenameAttributes: { - service: "newgrounds", - id: obj.id, - title: fileMetadata.title, - author: fileMetadata.artist, - }, - fileMetadata, - isAudioOnly: true - } + urls: url, + filenameAttributes: { + service: "newgrounds", + id: obj.id, + title: fileMetadata.title, + author: fileMetadata.artist, + }, + fileMetadata, + isAudioOnly: true } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/src/modules/processing/servicesPatternTesters.js b/src/modules/processing/servicesPatternTesters.js index 3a5d698e..8cf1fe89 100644 --- a/src/modules/processing/servicesPatternTesters.js +++ b/src/modules/processing/servicesPatternTesters.js @@ -60,5 +60,5 @@ export const testers = { patternMatch.id?.length <= 11, "newgrounds": (patternMatch) => - patternMatch.id?.length <= 6, + patternMatch.id?.length <= 1, }