Minor update

This commit is contained in:
bskjon 2024-04-18 01:53:23 +02:00
parent e6550bcfb0
commit 6313c2b990

View File

@ -12,7 +12,7 @@ import java.io.File
class MetadataMapping(val events: List<PersistentMessage>) {
var collection: String?
init {
collection = getCollection()
collection = findCollection()
}
@ -54,7 +54,7 @@ class MetadataMapping(val events: List<PersistentMessage>) {
} else null
}
private fun getCollection(): String? {
private fun findCollection(): String? {
val mediaReadOut = events.find { it.data is VideoInfoPerformed }?.data as VideoInfoPerformed?
val baseInfo = events.find { it.data is BaseInfoPerformed }?.data as BaseInfoPerformed?
if (!baseInfo.isSuccess()) {