mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-14 10:55:15 +00:00
newgrounds: remove unused utils function
This commit is contained in:
parent
3cf512617d
commit
a4ee59f183
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue