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

Import Playlists #1016

Closed
codewizkid opened this issue Feb 5, 2021 · 25 comments
Closed

Import Playlists #1016

codewizkid opened this issue Feb 5, 2021 · 25 comments
Labels
enhancement New feature or request

Comments

@codewizkid
Copy link

codewizkid commented Feb 5, 2021

It would be great if you could let us import how playlists from YouTube. I have them all exported already, just nowhere to import...

@codewizkid codewizkid added the enhancement New feature or request label Feb 5, 2021
@xznhj8129

This comment was marked as off-topic.

@GilgusMaximus

This comment was marked as outdated.

@anonaddict

This comment has been minimized.

@iacore
Copy link

iacore commented May 9, 2023

I'd like to add this feature. Where should I start?

@iacore
Copy link

iacore commented May 10, 2023

Also, import history from Youtube takeout is broken. The .json file is not visible in the file picker. Should I open a new issue?

@efb4f5ff-1298-471a-8973-3d47447115dc

This comment was marked as outdated.

@iacore

This comment was marked as outdated.

@aleksejrs

This comment was marked as off-topic.

@tbergeron
Copy link

Can't we import takeout youtube playlists? (csv)
That'd be amazing, the csv file only contains video IDs and dates... wouldn't be that hard to implement.
That way we'd be able to import our watch history and any playlists.

@iacore
Copy link

iacore commented Oct 19, 2023

Can't we import takeout youtube playlists? (csv) That'd be amazing, the csv file only contains video IDs and dates... wouldn't be that hard to implement. That way we'd be able to import our watch history and any playlists.

You can import first to Invidious, then export. I don't think importing playlists works yet.

@jimrs
Copy link

jimrs commented Oct 25, 2023

Can't we import takeout youtube playlists? (csv) That'd be amazing, the csv file only contains video IDs and dates... wouldn't be that hard to implement. That way we'd be able to import our watch history and any playlists.

You can import first to Invidious, then export. I don't think importing playlists works yet.

how, please? from what I saw, invidious can export playlists in json/xml format. Freetube accepts only .db format.

@iacore
Copy link

iacore commented Oct 25, 2023

how, please? from what I saw, invidious can export playlists in json/xml format. Freetube accepts only .db format.

I don't think importing playlists works yet.

@absidue
Copy link
Member

absidue commented Oct 30, 2023

FreeTube doesn't support local playlists yet, so importing them is of course not supported either. FreeTube only has a saved video list, so the import and export is for that saved video list database, so you can export and import it from one FreeTube installation to another.

@fartboygh
Copy link

Can't we import takeout youtube playlists? (csv) That'd be amazing, the csv file only contains video IDs and dates... wouldn't be that hard to implement. That way we'd be able to import our watch history and any playlists.

This is exactly what's needed. The ability to use your youtube takeout in the import playlists button.

@absidue
Copy link
Member

absidue commented Nov 2, 2023

Again as mentioned above, FreeTube doesn't support local playlists yet, only a saved video list, so even if we added support for importing them, you wouldn't be able to see or use them in any way in FreeTube until local playlists are implemented.

@fartboygh
Copy link

When do you think that feature will make it in?

@efb4f5ff-1298-471a-8973-3d47447115dc

No ETA

@Hate9
Copy link

Hate9 commented Apr 8, 2024

Hey, so, obviously this isn't a final solution to the playlists import thing, but here's a php script I whipped up in a few hours to turn the takeout csv exports into a freetube-compatible .db file!

Fair warning, it has no error-handling, and has only been tested on an old takeout export from 2022 (for some reason I can't download a new one rn, which is aggravating af), but it should work for current ones too.
Also, I've only tested it on linux.

https://gitlab.com/MayESchaefer/google-takeout-playlists-to-freetube-import/

EDIT: I have now tested it on a recent export, and it doesn't work - apparently they changed their format somewhat. I'll fix it and update this comment when it's done.

EDIT: I've updated it, and it now works with current Takeout exports.

@Lukilei
Copy link

Lukilei commented Apr 15, 2024

Hi, @Hate9 thanks for your efforts and I wanted to ask:

Do you think this would also work on windows and if yes how can I start it?

And also I wanted to ask why an API is required. I thought the id's in a youtube playlist takeout csv file are just the last part of youtube.com/watch?v=... so just a part of a normal link and I can also use them as such.
But maybe that has also changed with new takeouts?

@Hate9
Copy link

Hate9 commented Apr 15, 2024

@Lukilei it should work on windows, but you'll need to install php and run it with that. here's the set of guides on setting it up, and here's how to run the thing after that.

the reason it needs to access the api is that there's information that's supposed to be in freetube's playlist files that isn't included in the takeout export, like video thumbnail urls and such.

@Lukilei
Copy link

Lukilei commented Apr 15, 2024

@Hate9 thanks for the quick response and help. I've sorted out all the stuff with php and got that working.

I've learned that the file which has to be converted has to be named playlists.csv
now when I launch the program it doesn't give me errors anymore it just says nothing and it creates a file but it's empty.

You said it's only been tested on older takeouts so maybe there lays the issue. If it helps, the present document structure is:
Video ID,Playlist video creation timestamp

Also the whole API thing makes sence, it woudn't be an issue for a native Freetube importer I think but since you're converting...

@Hate9
Copy link

Hate9 commented Apr 15, 2024

@Lukilei it's been updated to work with current exports. you need to point it to the folder containing all of your playlists: playlists.csv is one of the files in current exports, but all of the other playlist files will need to be in the folder too. takeout should give you a subfolder with all your playlist csvs and a playlists.csv file.

@Hate9
Copy link

Hate9 commented Apr 15, 2024

to elaborate, playlists.csv just has some of the playlist metadata in it, the other files are what have the videos.

@Hate9
Copy link

Hate9 commented Apr 15, 2024

@Lukilei ok, do you have discord or something? I don't wanna clog up this issue with troubleshooting a completely different piece of software.
my discord is REDACTED (you should have the username in your email notification for this reply).

@efb4f5ff-1298-471a-8973-3d47447115dc

Closing in favor of #5057

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests