fix: watch history imports from other languages

This commit is contained in:
Bnyro 2024-12-15 19:12:31 +01:00
parent 2897f79f45
commit c8de2a3d67

View File

@ -344,7 +344,7 @@ object ImportHelper {
JsonHelper.json.decodeFromStream<List<YouTubeWatchHistoryFileItem>>(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)