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

Add automatic tracks/metadata extraction and playlist handling #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Aedial
Copy link

@Aedial Aedial commented Jul 23, 2023

This feature has been tested on a huge playlist of dozens of hours-long videos, alongside multiple standalone hours-long videos, and seems to work well.

The command line I used was:
python -m album_splitter -yt ... -et -em --format mp3

If the provided link is a playlist, the process will be applied to each
item of this playlist.
If extract-track is provided, the tracklist will be extracted from youtube,
by looking in the video info, the description, and the first 10 comments.
If extract-metadata is provided, the name, artist, album, and year will be
extracted from the video, and used if not already provided.
A format can be provided, as storing youtube videos as wav is wasteful.
The main function has been adapted to be used outside of CLI
Change sanitization of file names (as it was breaking other languages)
Add support for multiple tracks in one line
Add hard threshold to avoid catching one-off timestamps
Remove chapters parsing as chapters have tricky edge cases
Optimize playlist and comments retrieval
Add totaltracks to metadata
Add artwork to metadata (only handles the video thumbnail for the moment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant