File tree Expand file tree Collapse file tree
app/src/main/java/com/github/libretube/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,7 +348,9 @@ class NewPipeMediaServiceRepository : MediaServiceRepository {
348348 it.isAutoGenerated
349349 )
350350 },
351- isShort = resp.isShortFormContent
351+ // currently, isShortFormContent always seems to return false
352+ isShort = resp.isShortFormContent || (resp.videoStreams + resp.videoOnlyStreams)
353+ .firstOrNull()?.let { it.height > it.width } ? : false
352354 )
353355 }
354356
@@ -530,6 +532,7 @@ class NewPipeMediaServiceRepository : MediaServiceRepository {
530532 }
531533
532534 companion object {
533- private const val DEARROW_THUMBNAIL_URL = " https://dearrow-thumb.ajay.app/api/v1/getThumbnail"
535+ private const val DEARROW_THUMBNAIL_URL =
536+ " https://dearrow-thumb.ajay.app/api/v1/getThumbnail"
534537 }
535538}
You can’t perform that action at this time.
0 commit comments