From c8de2a3d67becd0119318f9a0eaa520cc4596e09 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 15 Dec 2024 19:12:31 +0100 Subject: [PATCH] fix: watch history imports from other languages --- app/src/main/java/com/github/libretube/helpers/ImportHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/helpers/ImportHelper.kt b/app/src/main/java/com/github/libretube/helpers/ImportHelper.kt index 620b63205..2643b775b 100644 --- a/app/src/main/java/com/github/libretube/helpers/ImportHelper.kt +++ b/app/src/main/java/com/github/libretube/helpers/ImportHelper.kt @@ -344,7 +344,7 @@ object ImportHelper { JsonHelper.json.decodeFromStream>(it) } .orEmpty() - .filter { it.activityControls.contains("YouTube watch history") && it.subtitles.isNotEmpty() && it.titleUrl.isNotEmpty() } + .filter { it.activityControls.isNotEmpty() && it.subtitles.isNotEmpty() && it.titleUrl.isNotEmpty() } .reversed() .map { val videoId = it.titleUrl.takeLast(VIDEO_ID_LENGTH)