Skip to content

Commit 01ac1ac

Browse files
committed
fix: auto short fullscreen doesn't work when using full local mode
1 parent 48d6cf7 commit 01ac1ac

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)