Unverified Commit ba1ccb4f authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix formatting errors

parent 943e0902
Pipeline #16718 passed with stages
in 5 minutes and 57 seconds
......@@ -18,6 +18,10 @@
package org.memobase
import java.io.StringReader
import java.io.StringWriter
import java.net.MalformedURLException
import java.net.URL
import org.apache.jena.rdf.model.Model
import org.apache.jena.rdf.model.ModelFactory
import org.apache.jena.rdf.model.Resource
......@@ -35,10 +39,6 @@ import org.memobase.settings.SettingsLoader
import org.memobase.sftp.SftpClient
import settings.HeaderExtractionTransformSupplier
import settings.HeaderMetadata
import java.io.StringReader
import java.io.StringWriter
import java.net.MalformedURLException
import java.net.URL
class KafkaTopology(private val settings: SettingsLoader) {
private val appSettings = settings.appSettings
......@@ -127,7 +127,6 @@ class KafkaTopology(private val settings: SettingsLoader) {
Predicate { _, _ -> true } // Indicates a remote media file; check for youtube / vimeo thumbnail fetching
)
val updateDigitalObjects = hasLocatorBranch[0]
.mapValues { readOnlyKey, value ->
val enrichedModel = addMediaSftpLocatorToModel(readOnlyKey, value)
......@@ -400,4 +399,4 @@ class KafkaTopology(private val settings: SettingsLoader) {
)
return updateRecord(Triple(value.first, value.second, report), status = status)
}
}
\ No newline at end of file
}
package org.memobase
import org.apache.logging.log4j.LogManager
import org.memobase.exceptions.SftpClientException
import org.memobase.sftp.SftpClient
import java.io.FileNotFoundException
import java.io.FileOutputStream
import java.io.IOException
......@@ -10,6 +7,9 @@ import java.net.HttpURLConnection
import java.net.URL
import java.nio.file.Files
import java.nio.file.Paths
import org.apache.logging.log4j.LogManager
import org.memobase.exceptions.SftpClientException
import org.memobase.sftp.SftpClient
/**
* Fetches preview images for videos on Vimeo or Youtube
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment