mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 21:31:57 +01:00
Avoids showing youtube videos on the feed since we can't play them
This commit is contained in:
parent
879f70fcbb
commit
53458ab484
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user