mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #2382 from Bnyro/master
Parse the preview images from the `streams` response
This commit is contained in:
commit
4a4229e697
@ -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
|
||||||
|
)
|
@ -26,5 +26,6 @@ data class Streams(
|
|||||||
val livestream: Boolean? = null,
|
val livestream: Boolean? = null,
|
||||||
val proxyUrl: String? = null,
|
val proxyUrl: String? = null,
|
||||||
val chapters: List<ChapterSegment>? = null,
|
val chapters: List<ChapterSegment>? = null,
|
||||||
val uploaderSubscriberCount: Long? = null
|
val uploaderSubscriberCount: Long? = null,
|
||||||
|
val previewFrames: List<PreviewFrames>? = null
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user