Skip to content

Commit d0f35b6

Browse files
committed
newgrounds: remove unused utils function
1 parent bff4f7e commit d0f35b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: api/src/processing/services/newgrounds.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { genericUserAgent } from "../../config.js";
2-
import { cleanString } from "../../misc/utils.js";
32

43
const qualities = ["4k", "1440p", "1080p", "720p", "480p", "360p", "240p", "144p"];
54

@@ -87,8 +86,8 @@ async function getVideo(obj) {
8786
}
8887

8988
let fileMetadata = {
90-
title: cleanString(decodeURIComponent(json.title)),
91-
artist: cleanString(decodeURIComponent(json.author)),
89+
title: decodeURIComponent(json.title),
90+
artist: decodeURIComponent(json.author),
9291
}
9392

9493
return {
@@ -129,8 +128,8 @@ async function getMusic(obj) {
129128
const artist = artistMatch[1];
130129
const url = urlMatch[1].replace(/\\\//g, '/');
131130
let fileMetadata = {
132-
title: cleanString(decodeURIComponent(title.trim())),
133-
artist: cleanString(decodeURIComponent(artist.trim())),
131+
title: decodeURIComponent(title.trim()),
132+
artist: decodeURIComponent(artist.trim()),
134133
}
135134

136135
return {

0 commit comments

Comments
 (0)