Update
This commit is contained in:
parent
4ede2aaf6a
commit
26c9570bf3
@ -110,14 +110,7 @@ class VideoConsumer: DefaultKafkaReader("collectorConsumerEncodedVideo"), IColle
|
|||||||
genres = genres
|
genres = genres
|
||||||
)
|
)
|
||||||
val catalogType = if (serieData == null) "movie" else "serie"
|
val catalogType = if (serieData == null) "movie" else "serie"
|
||||||
catalog.insert {
|
cq.insertAndGetStatus()
|
||||||
it[title] = fileData.title
|
|
||||||
it[cover] = coverFile?.name
|
|
||||||
it[type] = catalogType
|
|
||||||
it[catalog.collection] = fileData.title
|
|
||||||
it[catalog.iid] = iid
|
|
||||||
it[catalog.genres] = genres
|
|
||||||
}
|
|
||||||
|
|
||||||
if (coverFile != null) {
|
if (coverFile != null) {
|
||||||
val qres = catalog.select { catalog.title eq fileData.title }.andWhere { catalog.type eq catalogType}.firstOrNull() ?: null
|
val qres = catalog.select { catalog.title eq fileData.title }.andWhere { catalog.type eq catalogType}.firstOrNull() ?: null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user