NewPipe
NewPipe copied to clipboard
Cannot import from previous export
Steps to reproduce:
- Under subscriptions tab, select subscritions item.
- Select "import from" "previous export"
- select the exported json file
- subscritions are populated
Expected behavior: Subscriptions are populated from the json export
Actual behavior: No files are able to be selected in the file browser, all files are greyed out.
Additional steps taken: Storage permission is allowed, import also works in newpipe legacy v0.20.8
Android version: 8.0.0
Newpipe version: 0.21.15/0.21.16
No template was generated when writing this issue (could be due to using mobile site), apologies for any inconvience. Please comment for any additional info as this is my first issue with newpipe
No template was generated when writing this issue (could be due to using mobile site), apologies for any inconvience.
No worries, this is already better than a lot of issues out there.
I can't reproduce this. What file manager are you using? Can you try https://f-droid.org/packages/me.zhanghai.android.files and see if it works?
(Added template-ignored
by mistake, ignore that)
I don't seem to have a choice, it just automatically opens the default android file browser (it looks like the legacy one opens its own browser)
I don't seem to have a choice, it just automatically opens the default android file browser
Did you try installing it yet or not?
it looks like the legacy one opens its own browser
The current NewPipe still has that one, but it's used only when SAF is off. I think on Android 8 we enabled it by default at some point. I think you can disable SAF by toggling "Settings > Download > Use system folder picker (SAF)" off, but I'm not sure since I'm using Android 11, where SAF is mandatory.
That did it! Updated perfectly after disabling SAF
Issue is resolved after disabling SAF
That's a workaround, not a fix, so I'll re-open this.
Not sure if it's related to the issue here, but I didn't want to create a new issue just in case. Importing a zip from the subscriptions tab doesn't work with neither of my file managers.
In Settings -> Content, I can only select the exported zip with the Google file manager as selecting it with Material Files will result in "No valid ZIP file" error and even then, it will only reload the app without changing anything.
Android version: 10 NewPipe version: 0.21.16
Importing a zip from the subscriptions tab doesn't work with neither of my file managers.
That's working as intended, as the subscription file format is JSON, not ZIP.
In Settings -> Content, I can only select the exported zip with the Google file manager as selecting it with Material Files will result in "No valid ZIP file" error and even then, it will only reload the app without changing anything.
Maybe the ZIP file was corrupted? What version of NewPipe did you export the ZIP from? Or was it exported from a debug version of a PR or something?
That's working as intended, as the subscription file format is JSON, not ZIP.
Aha, apologies. My bad.
Maybe the ZIP file was corrupted? What version of NewPipe did you export the ZIP from? Or was it exported from a debug version of a PR or something?
I exported it on 0.21.15 from F-Droid. I may have just done something wrong.
I exported it on 0.21.15 from F-Droid. I may have just done something wrong.
It doesn't sound like it, but I'm not sure. Can you record your screen while you're trying to import the database but then NewPipe restarts without doing anything?
It doesn't sound like it, but I'm not sure. Can you record your screen while you're trying to import the database but then NewPipe restarts without doing anything?
I'm afraid I cannot, because I just tried it one more time and it imported the database without a problem. Unfortunately, I have no idea what I did to make it work
Edit: All I remember doing was restarting my phone, it could have been some Xiaomi bogus... Sorry for not being very helpful.
No problem, at least the issue is solved.
The application could add its version number to the export file which would make it easier to identify the source of the problem (between different versions).
When I export my YouTube subscriptions from Google the only format available for subscriptions is .csv. There is no option to export them as json.
@theduckrules NewPipe's subscriptions are exported as JSON, but subscriptions exported from YouTube are exported as CSV.
Anyway, why are you making this comment here? It's off-topic.
Sorry. I thought this was a discussion of importing subscriptions
I have this problem. I can import a json file that I export from newpipe, but it greys out any json file I've emailed from freetube
tl:dr It seems that you need to download the zip archive to your local storage, i.e. Download folder.
I migrated my old phone to a new using androids built-in transfer tool. It did not transfer new pipe data (subscriptions, playlists etc.). So I exported the data on the old phone, stored it on google drive, as it was the easiest way to get it to the new phone, and tried to import it from there – directly from the Google Drive folder. I got the "No valid ZIP file" error.
After I downloaded the zip archive from my google drive folder to the download folder (local storage) and imported it from there, it worked.
So if it is the case that NewPipe isn't allowed to access Google Drive there should be a more helpful error message.
I also cannot import previously exported subscriptions from the same directory as the export or any other - with the same issue as OP. Restarting device has no effect. :disappointed:
- NewPipe Version: 0.25.2
- Tablet Device: Amazon Fire 7
- Android OS: Fire OS 5.7.0.0
Works fine for the same version on Pixel 6 Pro running Android 12 - both installed from F-Droid.
What's the status on this?
As of this comment, I'm on the latest version. I still cannot use this import function properly.
If there are no plans to fix this then can you instead just bind these items to the Import/Export Database functions found in Settings > Backup and restore
?
Tried this? https://github.com/TeamNewPipe/NewPipe/issues/7802#issuecomment-1435771725
It seems that you need to download the zip archive to your local storage, i.e. Download folder.
This part specifically.