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

parse only viable information from oembed object

parent d6dc65c0
Pipeline #23984 passed with stages
in 4 minutes and 6 seconds
......@@ -3,20 +3,20 @@ package org.memobase
import com.beust.klaxon.Klaxon
data class OembedResponse(
val type: String,
val version: String,
val title: String?,
val author_name: String?,
val author_url: String?,
val provider_name: String?,
val provider_url: String?,
val thumbnail_url: String?,
val thumbnail_width: Int?,
val thumbnail_height: Int?,
val url: String? = null,
val width: Int?,
val height: Int?,
val html: String?
// val type: String,
// val version: String,
// val title: String? = null,
// val author_name: String? = null,
// val author_url: String? = null,
// val provider_name: String? = null,
// val provider_url: String? = null,
val thumbnail_url: String? = null,
// val thumbnail_width: Int? = null,
// val thumbnail_height: Int? = null,
// val url: String? = null,
val width: Int? = null,
val height: Int? = null
// val html: String? = null
) {
companion object {
fun fromJson(msg: String): OembedResponse? {
......
......@@ -7,7 +7,7 @@ object ReportMessages {
return if (type == Constant.mediaFolderName)
"Successfully enriched a sftp locator for resource $id with path $value"
else
"Successfully created a thumbnail with id $id and locator $value"
"Successfully created a thumbnail metadata object with id $id and locator $value"
}
fun reportFailure(id: String, type: String): String {
......
......@@ -17,7 +17,7 @@
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Configuration status="info" name="skeleton-app" packages="">
<Configuration status="info" name="media-linker-service" packages="">
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="[%-5level] [%c{1}] %m%n"/>
......
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