mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 05:07:46 +02:00
fix(media_downloader): two images overlay merge
This commit is contained in:
@ -7,6 +7,7 @@ data class InputMedia(
|
||||
val type: DownloadMediaType,
|
||||
val encryption: MediaEncryptionKeyPair? = null,
|
||||
val messageContentType: String? = null,
|
||||
val isOverlay: Boolean = false,
|
||||
)
|
||||
|
||||
class DownloadRequest(
|
||||
|
@ -199,7 +199,8 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
|
||||
overlay = InputMedia(
|
||||
overlayReference,
|
||||
DownloadMediaType.fromUri(Uri.parse(overlayReference)),
|
||||
overlay.encryption?.toKeyPair()
|
||||
overlay.encryption?.toKeyPair(),
|
||||
isOverlay = true
|
||||
)
|
||||
)
|
||||
return
|
||||
@ -372,7 +373,7 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
|
||||
mediaAuthor = storyName
|
||||
).downloadDashMedia(playlistUrl, 0, null)
|
||||
}
|
||||
setPositiveButton("Download") { dialog, which ->
|
||||
setPositiveButton("Download") { _, _ ->
|
||||
val groups = mutableListOf<MutableList<SnapChapterInfo>>()
|
||||
var currentGroup = mutableListOf<SnapChapterInfo>()
|
||||
var lastChapterIndex = -1
|
||||
|
Reference in New Issue
Block a user