Minor update
This commit is contained in:
parent
e6550bcfb0
commit
6313c2b990
@ -12,7 +12,7 @@ import java.io.File
|
|||||||
class MetadataMapping(val events: List<PersistentMessage>) {
|
class MetadataMapping(val events: List<PersistentMessage>) {
|
||||||
var collection: String?
|
var collection: String?
|
||||||
init {
|
init {
|
||||||
collection = getCollection()
|
collection = findCollection()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ class MetadataMapping(val events: List<PersistentMessage>) {
|
|||||||
} else null
|
} else null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getCollection(): String? {
|
private fun findCollection(): String? {
|
||||||
val mediaReadOut = events.find { it.data is VideoInfoPerformed }?.data as VideoInfoPerformed?
|
val mediaReadOut = events.find { it.data is VideoInfoPerformed }?.data as VideoInfoPerformed?
|
||||||
val baseInfo = events.find { it.data is BaseInfoPerformed }?.data as BaseInfoPerformed?
|
val baseInfo = events.find { it.data is BaseInfoPerformed }?.data as BaseInfoPerformed?
|
||||||
if (!baseInfo.isSuccess()) {
|
if (!baseInfo.isSuccess()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user