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

[Feature Request]: bulk import text URLs #6828

Closed
3 tasks done
exekutive opened this issue Feb 19, 2025 · 6 comments
Closed
3 tasks done

[Feature Request]: bulk import text URLs #6828

exekutive opened this issue Feb 19, 2025 · 6 comments
Labels
E: new feature enhancement New feature or request

Comments

@exekutive
Copy link

exekutive commented Feb 19, 2025

Guidelines

Problem Description

Unable to import generic lists of youtube video URLs

Proposed Solution

implement the importing of lists of youtube URLs in plain text (either as a text file with one URL per line, or paste from the clipboard), and create a playlist with those videos.

Alternatives Considered

as a bonus, add Firefox bookmark HTML/JSON files too.

Issue Labels

new feature

Additional Information

No response

@NoSpiner
Copy link

I had this same need a while back. I actually wrote a python script for this exact purpose.

https://github.com/NoSpiner/Freetube-import

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

This has the same problems as the YouTube playlist import but worse. Closing as this has been identified as a feature that wont be possible to implement due to technical limitations

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2025
@exekutive
Copy link
Author

exekutive commented Feb 26, 2025

This has the same problems as the YouTube playlist import but worse. Closing as this has been identified as a feature that wont be possible to implement due to technical limitations

Could you please explain what that limitation is and how it relates, or provide a link if it's already discussed somewhere?

@ozrendev
Copy link
Contributor

What information does Freetube use to generate a playlist? I was thinking of implementing this by simply having a regex match all video IDs from a list of URLs and using those IDs to create a playlist.

@exekutive
Copy link
Author

exekutive commented Mar 5, 2025

@ozrendev Freetube has a playlist import/export function. If you export playlists, you get a db file with what looks like JSON content.

You have a playlist wrapper with some basic metadata and inside a list of videos.

A single video line item looks like this:

{"videoId":"<youtube 11-char video ID>","title":"<the video title>","author":"<the youtube channel name>","authorId":"<youtube 24-char channel ID>","lengthSeconds":<length in seconds>,"published":<publish date>,"timeAdded":<added date>,"playlistItemId":"<36-char ID. probably generated by freetube>","type":"video"}

Really, the only thing freetube should need to play a video is the video ID, so I don't understand what the problem is, but I'm digging through the issue history. It's useful to fetch the video title as well, so you would need an API for that , which could slow down the process, but I don't care about anything else. For all I care, it could show a black rectangle for the thumbnail, and we already know Freetube can list videos without the duration.

@exekutive
Copy link
Author

Related issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: new feature enhancement New feature or request
Projects
Status: To assign
Development

No branches or pull requests

4 participants