fix(downloader): media identifier & dash chapter selector

- fix ffmpeg crashes
- fix close resources
- perf http server
This commit is contained in:
rhunk
2023-11-29 23:56:55 +01:00
parent 4046d1a506
commit f375f9bc0e
8 changed files with 144 additions and 108 deletions

View File

@ -46,6 +46,6 @@ class DownloaderConfig : ConfigContainer() {
val chatDownloadContextMenu = boolean("chat_download_context_menu")
val ffmpegOptions = container("ffmpeg_options", FFMpegOptions()) { addNotices(FeatureNotice.UNSTABLE) }
val logging = multiple("logging", "started", "success", "progress", "failure").apply {
set(mutableListOf("started", "success"))
set(mutableListOf("success", "progress", "failure"))
}
}

View File

@ -1,7 +1,7 @@
package me.rhunk.snapenhance.common.data.download
data class DownloadMetadata(
val mediaIdentifier: String?,
val mediaIdentifier: String,
val outputPath: String,
val mediaAuthor: String?,
val downloadSource: String,