feat(media_downloader): download the whole dash media

This commit is contained in:
rhunk
2023-09-01 20:54:04 +02:00
parent e4c511ca47
commit 3cde2aba9a
2 changed files with 9 additions and 0 deletions

View File

@ -364,6 +364,14 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
selectedChapters.remove(which)
}
}
setNegativeButton("Cancel") { dialog, _ -> dialog.dismiss() }
setNeutralButton("Download all") { _, _ ->
provideDownloadManagerClient(
mediaIdentifier = paramMap["STORY_ID"].toString(),
downloadSource = MediaDownloadSource.PUBLIC_STORY,
mediaAuthor = storyName
).downloadDashMedia(playlistUrl, 0, null)
}
setPositiveButton("Download") { dialog, which ->
val groups = mutableListOf<MutableList<SnapChapterInfo>>()
var currentGroup = mutableListOf<SnapChapterInfo>()