From 53458ab48485092134efcfa2e481166763153e8e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 6 Jan 2025 12:54:08 -0500 Subject: [PATCH] Avoids showing youtube videos on the feed since we can't play them --- .../java/com/vitorpamplona/amethyst/ui/dal/VideoFeedFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/VideoFeedFilter.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/VideoFeedFilter.kt index 88febe38f..fd50f9f97 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/VideoFeedFilter.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/VideoFeedFilter.kt @@ -72,7 +72,7 @@ class VideoFeedFilter( mimeType: String?, ): Boolean { // we don't have an youtube player - val urls = baseUrls.filter { !it.contains("youtu.be") } + val urls = baseUrls.filter { !it.contains("youtu.be") && !it.contains("youtube.com") } val isSupportedMimeType = mimeType?.let { SUPPORTED_VIDEO_FEED_MIME_TYPES_SET.contains(it) } ?: false