Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import playlist from FreeTube #6628

Closed
3 tasks done
jerohnimaux opened this issue Oct 16, 2024 · 0 comments · Fixed by #6639 or #6674
Closed
3 tasks done

Cannot import playlist from FreeTube #6628

jerohnimaux opened this issue Oct 16, 2024 · 0 comments · Fixed by #6639 or #6674
Labels
bug Something isn't working

Comments

@jerohnimaux
Copy link

Steps to reproduce

  1. Export playlists from FreeTube
  2. Transfert playlist file to my Android phone
  3. Open LibreTube
  4. Import playlist file by selecting "FreeTube" format

Expected behavior

The file is loaded, the playlists are created and populated. I get the same playlist as on my FreeTube application on my PC.

Actual behavior

An error message is displayed :

kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 0: Expected start of the array '[', but had '{' instead at path: $
JSON input: {"playlistName":"Favorites","p.....
	at kotlinx.serialization.json.internal.WriteModeKt.JsonDecodingException(SourceFile:1)
	at kotlinx.serialization.json.internal.WriteModeKt.JsonDecodingException(SourceFile:2)
	at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(SourceFile:52)
	at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(SourceFile:13)
	at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(SourceFile:56)
	at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(SourceFile:48)
	at kotlinx.serialization.json.internal.AbstractJsonLexer.consumeNextToken(SourceFile:9)
	at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(SourceFile:60)
	at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(SourceFile:18)
	at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(SourceFile:6)
	at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:92)
	at kotlin.random.RandomKt.decodeByReader(SourceFile:31)
	at org.jsoup.Jsoup.decodeFromStream(SourceFile:31)
	at com.github.libretube.helpers.BackupHelper.importPlaylists(SourceFile:606)
	at com.github.libretube.ui.preferences.BackupRestoreSettings$getPlaylistsFile$1$1$1.invokeSuspend(SourceFile:48)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:113)
	at androidx.work.impl.WorkerWrapper$1.run(SourceFile:110)
	at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@5a83ee0, Dispatchers.IO]
    

If I do it a second time, the app crashes.
The playlists are not created.

LibreTube version

0.25.2 (57)

Android version

GrapheneOS based on Android 14 2024101200

Other details

FreeTube version is v0.21.3 Beta
Attached playlist file from FreeTube (zipped so that Github accepts it)
freetube-playlists.zip.zip

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant