-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
direct download and import from youtube #2913
Comments
Hi! Interesting work. What’s your proposal here? It seems like your solution is working OK already. |
I'm still learning how to make this as plugin for beet
Updated script https://github.com/rachmadaniHaryono/beets/blob/master/yt_beets.py E:
|
In fact, I've a working (but completely undocumented and not very well tested or maintained) plugin in a local repository that does something along those lines. I had planned on uploading that to github at some point anyway, maybe I could do so soon, if I do, I'll drop a note here. It hooks into youtube-dl in a rather hacky way and uses its commandline parser, lets it do its job and then starts a normal beets import session for anything that has been download, usage is like beet ydl [beets-ydl options] -- [youtube-dl options]
# Import as singletons
beet ydl -- -f bestaudio <youtube link>
# import as album (useful for playlists for example)
beet ydl --album -- -f bestaudio <youtube link> Beets' templating engine is used to set initial metadata (before the import) such that the importer has a good chance of matching musicbrainz entries. Because this is configurable, it could also be used to save any of the other metadata you mention as long as youtube-dl supports it. |
Not exactly, but perhaps more usefully: there is a
Have you seen the
I’m not sure exactly what you mean… but certainly, there are lots of plugins (lyrics, lastgenre, etc.) that store metadata. And see the |
Hey guys. I did some effort on this. Made a small plugin to download albums from Youtube. It will also parse track times from youtube-dl sources and split the mp3 album files into tracks. Tested only in some YouTube URLs by now. https://github.com/vmassuchetto/beets-ydl |
hi @vmassuchetto , i would love it if you can improve it. it would be better if the song can be searched without having to know the youtube url. so |
@sampsyo this could be greatly improved if we could import one-track albums. I see that this is implemented in c9141a6, but doing Any ideas of how to achieve this? Would be great if tracklists could go into the description or something like this. Thanks. |
That would be really hard to do, probably! It would require some fundamental changes to beets to decouple files from tracks—it currently believes that every item is backed by exactly one file. So multiple tracks can't be ranges within a single audio file on disk. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
FWIW I created another plugin to download from Youtube: beets-ytimport. By default the plugin splits tracks that define chapters into separate tracks and imports them grouped as album into beets. |
Problem
my problem is not all my favorite artist/track is on musicbrainz, so there is some steps that i have to take before import it to beets
current workflow
so why not cut some step from that.
here is proof of concept of that as script
https://gist.github.com/rachmadaniHaryono/934d0ba8eea14f3be5e91eb033481518
no direct result from music brainz to youtube yetThe text was updated successfully, but these errors were encountered: