Skip to content

Commit

Permalink
newgrounds: remove unused utils function
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperdefined committed Nov 26, 2024
1 parent 3cf5126 commit a4ee59f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/src/processing/services/newgrounds.js
Original file line number Diff line number Diff line change
@@ -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"];

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a4ee59f

Please sign in to comment.