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

i can't import youtube subscriptions on newpipe #8040

Closed
5 tasks done
juertus opened this issue Mar 15, 2022 · 20 comments
Closed
5 tasks done

i can't import youtube subscriptions on newpipe #8040

juertus opened this issue Mar 15, 2022 · 20 comments
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion

Comments

@juertus
Copy link

juertus commented Mar 15, 2022

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.22.1

Steps to reproduce the bug

  1. I downloaded new pipe app.
  2. Open and go to the import subscriptions.
  3. Choose youtube and import subscriptions.csv

Expected behavior

I just want import my youtube subscriptions. Thanks

Actual behavior

I just download Newpipe to my phone. And ı want import my youtube subscriptions. But app always app crashing itself.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: TR
  • Content Language: tr-TR
  • App Language: en
  • Service: none
  • Version: 0.22.1
  • OS: Linux Android 12 - 31
Crash log

java.lang.RuntimeException: Unable to start service org.schabi.newpipe.local.subscription.services.SubscriptionsImportService@2266c47 with Intent { cmp=org.schabi.newpipe/.local.subscription.services.SubscriptionsImportService (has extras) }: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{6fc764 8863:org.schabi.newpipe/u0a235} (pid=8863, uid=10235) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4657)
	at android.app.ActivityThread.access$2000(ActivityThread.java:247)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7839)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{6fc764 8863:org.schabi.newpipe/u0a235} (pid=8863, uid=10235) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2425)
	at android.os.Parcel.createException(Parcel.java:2409)
	at android.os.Parcel.readException(Parcel.java:2392)
	at android.os.Parcel.readException(Parcel.java:2334)
	at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5890)
	at android.app.ActivityThread.acquireProvider(ActivityThread.java:6973)
	at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:3339)
	at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2526)
	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1844)
	at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1675)
	at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1622)
	at us.shandian.giga.io.FileStreamSAF.<init>(FileStreamSAF.java:32)
	at org.schabi.newpipe.streams.io.StoredFileHelper.getStream(StoredFileHelper.java:195)
	at org.schabi.newpipe.local.subscription.services.SubscriptionsImportService.onStartCommand(SubscriptionsImportService.java:118)
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4639)
	... 9 more


Affected Android/Custom ROM version

android 12/ crDroid 8.2

Affected device model

Xiaomi Redmi Note 8

Additional information

No response

@juertus juertus added the bug Issue is related to a bug label Mar 15, 2022
@Pokemetti
Copy link

This feature is not there to import the subscriptions from official Youtube but from another Newpipe version (It's a json file and can include a lot of other things such as settings, local playlists and histories). Thus this isn't a bug but a feature request to make it possible to import subscriptions from the Youtube subscriptions.csv .

@juertus juertus closed this as completed Mar 15, 2022
@s4980
Copy link

s4980 commented Mar 15, 2022

Are you sure @Pokemetti ??
The Import screen gives you instructions how to generate csv with your subscriptions from a YouTube service using takeout.google.com page.
For me this sounds like a functionality that should allow you to import your subscriptions from YouTube and another Newpipe.

@augt
Copy link

augt commented Mar 17, 2022

The file you get when you export your youtube subscriptions from google take out used to be a json file up util a few months ago. Now that file file has a "csv" extentions it doesn't work anymore. I'm looking for a way to convert this csv file to json.

@Pokemetti
Copy link

I actually didn't consider that option, thanks @s4980 . But I tried it with a csv file and it worked for me. That CSV file is pretty old though, so maybe the format somehow changed.

@xchimx
Copy link

xchimx commented Jun 23, 2022

this problem still exist, any solutions yet?

@juertus
Copy link
Author

juertus commented Jun 23, 2022

this problem still exist, any solutions yet?

Yes, the solution is simple. By not using it....

@xchimx
Copy link

xchimx commented Jun 23, 2022

this problem still exist, any solutions yet?

Yes, the solution is simple. By not using it....

Well...this version fix the problems: v0.23.0

@juertus
Copy link
Author

juertus commented Jun 23, 2022

this problem still exist, any solutions yet?

Yes, the solution is simple. By not using it....

Well...this version fix the problems: v0.23.0

Oh really? I'll try. Thanks

@CostaRich
Copy link

I just downloaded 0.25.0 and it would not import my Youtube subscriptions. I went through the instructions provided onscreen in NewPipe and it apparently doesn't understand the format that youtube/google is now using. So I wrote a little go program on this playground below and pasted the csv file results into the bottom of the doc and then put the json formatted text in a file and put it on an sd card for newpipe to import. And that worked fine. You are welcome to try using the process below.

https://go.dev/play/p/xAMP268Tae_1

@Waldorf3
Copy link

Waldorf3 commented Jul 15, 2023

Why is this closed, it's still not working as of today. How do you expect people to move from Youtube to Newpipe if there is no way to transfer your history over?

https://newpipe.net/FAQ/tutorials/import-export-data/

@aeroncastle
Copy link

Why is this issue closed? Nothing was done about it and the import function doesn't work despite the gaslighting in the FAQ and here. Wtf. It's maddening to try I don't know how many times to do a thing and you guys do this on purpose with people. In the moment you discovered that YouTube changed everything and nothing worked anymore your guys should have written so in the FAQ. Even better would be to fix it, but not gaslighting people is good enough.

@Pokemetti
Copy link

Can you guys chill? This is an open-source project, you guys are getting software for free and yet you complain like the writers owe you anything. The reason this issue was closed was probably because noone wanted to implement this feature is what I'm guessing.
If you want this feature so badly anyways, learn to program Android apps, add this feature to the source code and open a pull request. Sit down, be humble, and maybe try to write a little more respectfully ("gaslighting"? sure, the devs definitely didn't just forget to update the FAQ or whatever, they definitely did it on purpose).

@Geniusssmit
Copy link

it still can't import zip :(

@opusforlife2
Copy link
Collaborator

The reason this issue was closed was probably because

Because OP decided to close the issue, without any input from the maintainers. So there was no need for us to waste time here, which would have resulted in this issue being closed and marked as duplicate, anyway. (If anyone here is interested in finding the original, I'm sure you can manage to use the search function, especially if you passed grade 4 in school.)

gaslighting

Yes indeed. Thanks for calling it out. Most people don't even realise they're doing it.

@opusforlife2 opusforlife2 added duplicate Issue or discussion is a duplicate of an existing issue or discussion and removed bug Issue is related to a bug labels Aug 26, 2023
@Xoias

This comment was marked as resolved.

@Xoias
Copy link

Xoias commented Dec 29, 2023

this problem still exist, any solutions yet?

Yes, the solution is simple. By not using it....

Well...this version fix the problems: v0.23.0

At least in my case, it seems that the only way was to install the 0.23 version in order to import the subscriptions. Only afterwards, you can upgrade/install the last version.
Thanks!

@aeroncastle

This comment was marked as spam.

@lukstafi
Copy link

Note: I couldn't import a file from Google Drive, after reading through the discussion here and scratching my head, I downloaded the file, selected the local file (using the same UI), it worked.

@GALVATRON-GALVATRON
Copy link

Note: I couldn't import a file from Google Drive, after reading through the discussion here and scratching my head, I downloaded the file, selected the local file (using the same UI), it worked.

The CSV file worked for you on which version of newpipe?

@lukstafi
Copy link

The CSV file worked for you on which version of newpipe?

0.25.2.

As someone noted on another issue I brought it up, it's likely an Android / Google Drive problem rather than NewPipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion
Projects
None yet
Development

No branches or pull requests