woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

Fixed YT subs export parsing, added documentation on how to retrieve subs from YT #95

Closed TrevCan closed 3 years ago

TrevCan commented 3 years ago

Since the removal of the youtube subscriptions export (#94), I decided to figure out how to fix this. After some research, I found out that you can export your youtube subscriptions by using Google Takeout. So I replaced the old OPML parser function with one that worked with this JSON file.

woefe commented 3 years ago

@TrevCan I wasn't able to get the JSON file. The takeout seems to produce only a CSV file. The CSV importer was added in 10b6f55.

TrevCan commented 3 years ago

@TrevCan I wasn't able to get the JSON file. The takeout seems to produce only a CSV file. The CSV importer was added in 10b6f55.

Pretty weird... just tried exporting my data from my phone (iOS) and indeed, Google changed it or something. Last time I tried from my computer. For some reason, even in the Google Takeout YouTube section it says that subscriptions are to be exported in JSON. Maybe a mistake on google's part, where did you try exporting it from?

woefe commented 3 years ago

Yeah, they seem to have changed something. I also vaguely remember a JSON file from older takeouts. I tried it on my Laptop following your documentation. The dialogs also indicated that I'd be getting a JSON file, but I got a CSV file instead.

woefe commented 3 years ago

I'll keep this PR open for now. Let's check again in a couple of weeks. Maybe they add the option for a JSON file again.

TrevCan commented 3 years ago

Hey @woefe. I’ve checked today and seems like JSON is not coming back, I’ll close this PR now, I’d recommend specifying in the readme more info about how to acquire the subscriptions in JSON without downloading all google data.