newgrounds: remove unused utils function

This commit is contained in:
hyperdefined 2024-11-26 13:14:27 -05:00
parent 3cf512617d
commit a4ee59f183
No known key found for this signature in database
GPG key ID: EB0B55B31E88AB03

View file

@ -1,5 +1,4 @@
import { genericUserAgent } from "../../config.js"; import { genericUserAgent } from "../../config.js";
import { cleanString } from "../../misc/utils.js";
const qualities = ["4k", "1440p", "1080p", "720p", "480p", "360p", "240p", "144p"]; const qualities = ["4k", "1440p", "1080p", "720p", "480p", "360p", "240p", "144p"];
@ -87,8 +86,8 @@ async function getVideo(obj) {
} }
let fileMetadata = { let fileMetadata = {
title: cleanString(decodeURIComponent(json.title)), title: decodeURIComponent(json.title),
artist: cleanString(decodeURIComponent(json.author)), artist: decodeURIComponent(json.author),
} }
return { return {
@ -129,8 +128,8 @@ async function getMusic(obj) {
const artist = artistMatch[1]; const artist = artistMatch[1];
const url = urlMatch[1].replace(/\\\//g, '/'); const url = urlMatch[1].replace(/\\\//g, '/');
let fileMetadata = { let fileMetadata = {
title: cleanString(decodeURIComponent(title.trim())), title: decodeURIComponent(title.trim()),
artist: cleanString(decodeURIComponent(artist.trim())), artist: decodeURIComponent(artist.trim()),
} }
return { return {