mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-09 19:10:30 +05:30
Merge pull request #6881 from Bnyro/master
fix: watch history imports from other languages
This commit is contained in:
commit
11d1c0def1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user