From a4ee59f1830679a6b25cc413e963fcac7c548527 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Tue, 26 Nov 2024 13:14:27 -0500 Subject: [PATCH] newgrounds: remove unused utils function --- api/src/processing/services/newgrounds.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/src/processing/services/newgrounds.js b/api/src/processing/services/newgrounds.js index 9475bd97..44039cf7 100644 --- a/api/src/processing/services/newgrounds.js +++ b/api/src/processing/services/newgrounds.js @@ -1,5 +1,4 @@ import { genericUserAgent } from "../../config.js"; -import { cleanString } from "../../misc/utils.js"; const qualities = ["4k", "1440p", "1080p", "720p", "480p", "360p", "240p", "144p"]; @@ -87,8 +86,8 @@ async function getVideo(obj) { } let fileMetadata = { - title: cleanString(decodeURIComponent(json.title)), - artist: cleanString(decodeURIComponent(json.author)), + title: decodeURIComponent(json.title), + artist: decodeURIComponent(json.author), } return { @@ -129,8 +128,8 @@ async function getMusic(obj) { const artist = artistMatch[1]; const url = urlMatch[1].replace(/\\\//g, '/'); let fileMetadata = { - title: cleanString(decodeURIComponent(title.trim())), - artist: cleanString(decodeURIComponent(artist.trim())), + title: decodeURIComponent(title.trim()), + artist: decodeURIComponent(artist.trim()), } return {