Merge pull request #2382 from Bnyro/master

Parse the preview images from the `streams` response
This commit is contained in:
Bnyro 2022-12-15 19:24:51 +01:00 committed by GitHub
commit 4a4229e697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
package com.github.libretube.api.obj
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class PreviewFrames(
val urls: List<String>? = null,
val frameWidth: Int? = null,
val frameHeight: Int? = null,
val totalCount: Int? = null,
val durationPerFrame: Int? = null,
val framesPerPageX: Int? = null,
val framesPerPageY: Int? = null
)

View File

@ -26,5 +26,6 @@ data class Streams(
val livestream: Boolean? = null,
val proxyUrl: String? = null,
val chapters: List<ChapterSegment>? = null,
val uploaderSubscriberCount: Long? = null
val uploaderSubscriberCount: Long? = null,
val previewFrames: List<PreviewFrames>? = null
)