Fixes to db and new names
This commit is contained in:
parent
a6c4e3a399
commit
64f2bfba76
@ -27,7 +27,7 @@ dependencies {
|
||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha75")
|
||||
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
||||
|
||||
implementation("no.iktdev.streamit.library:streamit-library-db:0.0.6-alpha12")
|
||||
implementation("no.iktdev.streamit.library:streamit-library-db:0.0.6-alpha13")
|
||||
|
||||
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
||||
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
||||
|
||||
@ -75,10 +75,11 @@ class SubtitleConsumer : DefaultKafkaReader("collectorConsumerExtractedSubtitle"
|
||||
val of = File(work.outFile)
|
||||
val status = transaction {
|
||||
SubtitleQuery(
|
||||
title = of.nameWithoutExtension,
|
||||
associatedWithVideo = of.nameWithoutExtension,
|
||||
language = work.language,
|
||||
collection = work.collection,
|
||||
format = of.extension.uppercase()
|
||||
format = of.extension.uppercase(),
|
||||
file = File(work.outFile).name
|
||||
)
|
||||
.insertAndGetStatus()
|
||||
}
|
||||
@ -89,10 +90,11 @@ class SubtitleConsumer : DefaultKafkaReader("collectorConsumerExtractedSubtitle"
|
||||
val of = File(work.outFile)
|
||||
val status = transaction {
|
||||
SubtitleQuery(
|
||||
title = of.nameWithoutExtension,
|
||||
associatedWithVideo = of.nameWithoutExtension,
|
||||
language = work.language,
|
||||
collection = work.collection,
|
||||
format = of.extension.uppercase()
|
||||
format = of.extension.uppercase(),
|
||||
file = File(work.outFile).name
|
||||
)
|
||||
.insertAndGetStatus()
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ class VideoConsumer: DefaultKafkaReader("collectorConsumerEncodedVideo"), IColle
|
||||
|
||||
fun getSerieQueryInstance(data: EpisodeInfo?, baseName: String?): SerieQuery? {
|
||||
if (data == null || baseName == null) return null
|
||||
return SerieQuery(data.title, data.episode, data.season, data.title, baseName)
|
||||
return SerieQuery(data.episodeTitle, data.episode, data.season, data.title, baseName)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user