Added nfty and gotify notifications support

This commit is contained in:
Tzahi12345
2023-01-02 02:01:19 -05:00
parent 6d881dc812
commit f0c9a6122f
8 changed files with 395 additions and 9 deletions

View File

@@ -537,6 +537,10 @@ function getArchiveFolder(type, user_uid = null, sub = null) {
}
}
function getBaseURL() {
return `${config_api.getConfigItem('ytdl_url')}:${config_api.getConfigItem('ytdl_port')}`
}
// objects
function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, path, upload_date, description, view_count, height, abr) {
@@ -588,5 +592,6 @@ module.exports = {
searchObjectByString: searchObjectByString,
stripPropertiesFromObject: stripPropertiesFromObject,
getArchiveFolder: getArchiveFolder,
getBaseURL: getBaseURL,
File: File
}