a8b5555a1b
- it's now possible to download full audios from tiktok videos, you just have to turn that on in settings. - tiktok audios are better in quality when it's possible to get exact audio used in video and not the full version of it. - cleaned up the way user preference stuff is passed over between modules, should be way more flexible now. - added audio ignore list to services config json instead of hardcoding it.
23 lines
928 B
JavaScript
23 lines
928 B
JavaScript
import loadJson from "./sub/loadJSON.js";
|
|
const config = loadJson("./src/config.json");
|
|
const packageJson = loadJson("./package.json");
|
|
const servicesConfigJson = loadJson("./src/modules/servicesConfig.json");
|
|
|
|
export const
|
|
services = servicesConfigJson.config,
|
|
audioIgnore = servicesConfigJson.audioIgnore,
|
|
appName = packageJson.name,
|
|
version = packageJson.version,
|
|
streamLifespan = config.streamLifespan,
|
|
maxVideoDuration = config.maxVideoDuration,
|
|
maxAudioDuration = config.maxAudioDuration,
|
|
genericUserAgent = config.genericUserAgent,
|
|
repo = packageJson["bugs"]["url"].replace('/issues', ''),
|
|
authorInfo = config.authorInfo,
|
|
supportedLanguages = config.supportedLanguages,
|
|
quality = config.quality,
|
|
internetExplorerRedirect = config.internetExplorerRedirect,
|
|
donations = config.donations,
|
|
ffmpegArgs = config.ffmpegArgs,
|
|
supportedAudio = config.supportedAudio
|