Last active
February 15, 2025 14:21
-
-
Save prirai/74c214f9eb7205f42924ba4cf27b8aaf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ever worried about being able to easily transfer subscriptions from yt to newpipe but not back? Deleted some and added some more subscriptions and then want to go back to the official youtube app for a bit? I made a bash script where you input the both files (yt CSV and newpipe json), and it tells you what changed, which subs deleted and which ones added. [source](https://prirai.github.io/blog/newpipe-to-youtube/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <youtube.csv> <newpipe.json> " | |
| exit 1 | |
| fi | |
| cat "$1" | cut -d ',' -f2- | sed 's/http:/https:/g' | sed 's/"//g' | sort | uniq > yt.txt | |
| cat "$2" | sed 's/},/},\n/g' | sed 's/url":"/url":"\n/g' | grep -v '"url"' | sed 's/","name":"/,/g' | sed 's/"}.*//g' | sed 's/\\\\u2019/’/g' | sed 's/\\\\\u2013/–/g' | sort | uniq > np.txt | |
| diff yt.txt np.txt | |
| rm np.txt yt.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment