Fix youtube CSV playlist importer - #4787
Conversation
|
I have tested importing a playlist with the final commit version and the provided |
|
I took the liberty to add a default value/placeholders for the |
|
Can you make a separate function for the new format? |
|
Importing works for me with this PR |
|
Newly setting up Invidious, surprised that this bug and bug #4069. @SamantazFox or anyone what's the plan here? You've had a fix sitting here for 18 months. Hopefully no one still has v1 exports lying around, but even if they do, surely the default should be to support the current version? The perfect is the enemy of the good enough. I request that you merge this, and if v1 support is needed we can get the v1 import code from git history and add a way to support both versions at that time. But at least let current exports work, please. |
|
I share the same vision as you @jakkarth. Supporting the old format shouldn't be a top priority, that could be a maintenance burner. If this code still works fine, I'm good for merging it. |
|
I applied it this morning to master, built the image and ran it, imported all of my playlists without issue with the diff applied. About 800 videos across a dozen playlists successful. |
This PR is a follow up of this issue #3954 .
tldr: This PR aims to fix the Youtube CSV Importer due to Google Takeout changing their export format
I've recently used a invidious account, exported all my playlists data from Google Takeout. However, it seems that they changed their format again by putting most of the datas about a playlist in
playlists.csv. Only to leave the bare minimum in the playlist specific files.This PR changes this by putting default values where info could be extracted before and fixing the out of bound error that could be happening depending on the playlist format.
Here is the error encountered:
I also give you an extract of what a Google Takeout playlist file looks like