-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Youtube import subscription instructions is not working anymore #4720
Youtube import subscription instructions is not working anymore #4720
Comments
Could you provide the new link youtube uses to download subscriptions? |
Seems like a multi-step process now:
|
When you say "by default", does that mean there are other options? |
Yes there are other options like "Add to Drive", "Add to Dropbox", "Add to OneDrive" and "Add to Box" besides the default delivery method, which is "Send download link via email". |
I have followed these steps, I get a subscriptions.json file, but when I import the file into NewPipe, I get an error and it doesn't work. |
@simula67 great, thank you. I will try to implement this |
I also tried importing the .json to newpipe but it doesn't know what to do with it unless there is some way to convert it for newpipe. |
I've converted my subscriptions=$(cat $1 | jq '.[]' | jq '.snippet.title,.snippet.resourceId.channelId' | rg --multiline --no-filename -e '"(.*?)"\n"(.*?)"\n' -r '{
"service_id": 0,
"url": "https://www.youtube.com/channel/$2",
"name": "$1"
},')
json="{
\"app_version\": \"0.20.2\",
\"app_version_int\": 956,
\"subscriptions\": [
${subscriptions::-1}
]
}"
echo "$json" > newpipe_subscriptions.json |
Sorry for some dummy question, but can you give an example of usage this script in bash command line? |
So basically you could create a #!/bin/sh
subscriptions=$(cat $1 | jq '.[]' | jq '.snippet.title,.snippet.resourceId.channelId' | rg --multiline --no-filename -e '"(.*?)"\n"(.*?)"\n' -r '{
"service_id": 0,
"url": "https://www.youtube.com/channel/$2",
"name": "$1"
},')
json="{
\"app_version\": \"0.20.2\",
\"app_version_int\": 956,
\"subscriptions\": [
${subscriptions::-1}
]
}"
echo "$json" > $2 To make it executable: |
@saecki Thank You for such detailed description. And excuse for some troubling |
Oh no. I just tried the steps you provided above and everything seems to be localized, even the path inside the .zip file provided... We would have to ask the user to extract the |
Maybe it's easier to parse the website after all. |
Could you all test the apk provided in #4759 |
The apk works correctly to import subscriptions. Thanks for doing this. |
|
@Ammako jq '{app_version: "0.20.2", app_version_int: 956, subscriptions: [.[] | {service_id: 0, url: ("https://www.youtube.com/channel/" + .snippet.resourceId.channelId), name: .snippet.title }]}' [subscriptions filename here] > newpipe_subscriptions.json |
I used this command and i was able to import all my youtube subscription to my newPipe and newPipe Legacy as well. Steps i followed:
:) |
I had to add string interpolation for channelId and title to make @rozenj one-liner work for me: Without string interpolation I got this error message:
I have to mention, that I used a quite cumbersome solution to export my subscriptions, since I used to keep all my subscriptions on a "Brand-Account" and I could not export them the regular way as explained in NewPipe, because YouTube "could not export data". Ended up harvesting the YT Subscription API (https://developers.google.com/youtube/v3/docs/subscriptions/list?apix_params=%7B%22part%22%3A%5B%22snippet%2CcontentDetails%22%5D%2C%22maxResults%22%3A5000%2C%22mine%22%3Atrue%7D#usage). |
Thank you for the tip on brand accounts! Though I still get a error with jq |
Description
Following the instructions at https://newpipe.schabi.org/FAQ/tutorials/import-export-data/#import-youtube to download subscriptions no longer works as it seems like Youtube has changed its interface. Going to https://www.youtube.com/subscription_manager?action_takeout=1 no longer starts a download, but it redirects to https://www.youtube.com/feed/channels. This prevents importing of subscriptions list which could have been then loaded to Newpipe app.
Expected behavior
It should be possible to import subscriptions from youtube account using instructions at https://newpipe.schabi.org/FAQ/tutorials/import-export-data/#import-youtube.
Actual Behavior
Instructions given to import subscriptions from Youtube not working anymore. The instructions ask you to download subscriptions using the URL: https://www.youtube.com/subscription_manager?action_takeout=1, but this merely redirects to https://www.youtube.com/feed/channels and does not start a download.
Steps to reproduce
Read import instructions from https://newpipe.schabi.org/FAQ/tutorials/import-export-data/#import-youtube
Follow the link at https://www.youtube.com/subscription_manager?action_takeout=1
Gets redirected to https://www.youtube.com/feed/channels. No download starts.
Cannot import subscriptions from youtube
Platform
All platforms
The text was updated successfully, but these errors were encountered: