NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

Cannot import from previous export

Open steveman1123 opened this issue 3 years ago • 24 comments

Steps to reproduce:

  1. Under subscriptions tab, select subscritions item.
  2. Select "import from" "previous export"
  3. select the exported json file
  4. 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

steveman1123 avatar Feb 04 '22 10:02 steveman1123

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

steveman1123 avatar Feb 04 '22 10:02 steveman1123

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)

triallax avatar Feb 04 '22 10:02 triallax

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)

steveman1123 avatar Feb 04 '22 10:02 steveman1123

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.

triallax avatar Feb 04 '22 10:02 triallax

That did it! Updated perfectly after disabling SAF

steveman1123 avatar Feb 04 '22 10:02 steveman1123

Issue is resolved after disabling SAF

steveman1123 avatar Feb 04 '22 10:02 steveman1123

That's a workaround, not a fix, so I'll re-open this.

triallax avatar Feb 04 '22 13:02 triallax

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.

IMG_20220204_162237

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.

IMG_20220204_162133

Android version: 10 NewPipe version: 0.21.16

mrflamist avatar Feb 04 '22 15:02 mrflamist

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?

triallax avatar Feb 04 '22 15:02 triallax

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.

mrflamist avatar Feb 04 '22 15:02 mrflamist

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?

triallax avatar Feb 04 '22 16:02 triallax

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.

mrflamist avatar Feb 04 '22 16:02 mrflamist

No problem, at least the issue is solved.

triallax avatar Feb 04 '22 16:02 triallax

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).

NewNewPipe avatar Feb 05 '22 01:02 NewNewPipe

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 avatar Feb 11 '22 18:02 theduckrules

@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.

triallax avatar Feb 11 '22 18:02 triallax

Sorry. I thought this was a discussion of importing subscriptions

theduckrules avatar Feb 11 '22 18:02 theduckrules

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

codingForCats avatar Mar 03 '22 01:03 codingForCats

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.

osopolar avatar Feb 18 '23 21:02 osopolar

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.

DavidPesticcio avatar Aug 25 '23 17:08 DavidPesticcio

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?

sudoshindo avatar Apr 28 '24 04:04 sudoshindo

Tried this? https://github.com/TeamNewPipe/NewPipe/issues/7802#issuecomment-1435771725

opusforlife2 avatar Apr 28 '24 21:04 opusforlife2

Tried this? #7802 (comment)

Completely irrelevant. I'm not sharing the exported file with Drive.

sudoshindo avatar Apr 28 '24 21:04 sudoshindo

It seems that you need to download the zip archive to your local storage, i.e. Download folder.

This part specifically.

opusforlife2 avatar Apr 28 '24 21:04 opusforlife2