Avoids showing youtube videos on the feed since we can't play them
This commit is contained in:
@@ -72,7 +72,7 @@ class VideoFeedFilter(
|
|||||||
mimeType: String?,
|
mimeType: String?,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
// we don't have an youtube player
|
// 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
|
val isSupportedMimeType = mimeType?.let { SUPPORTED_VIDEO_FEED_MIME_TYPES_SET.contains(it) } ?: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user