mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-10 03:20:31 +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)
|
JsonHelper.json.decodeFromStream<List<YouTubeWatchHistoryFileItem>>(it)
|
||||||
}
|
}
|
||||||
.orEmpty()
|
.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()
|
.reversed()
|
||||||
.map {
|
.map {
|
||||||
val videoId = it.titleUrl.takeLast(VIDEO_ID_LENGTH)
|
val videoId = it.titleUrl.takeLast(VIDEO_ID_LENGTH)
|
||||||
|
Loading…
Reference in New Issue
Block a user