yt_mp3
yt_mp3 copied to clipboard
Should this still work?
Because its not working for me...
This project is no longer maintained. I don't used it for few years. :) Although, could you post here what's is really happening to you?
Does some1 have new version of this api?
You mean an youtube-mp3 API?
I am seeing this
..gems/youtube_it-2.4.2/lib/youtube_it/middleware/faraday_youtubeit.rb:10:in
on_complete': No longer available: NoLongerAvailableException (YouTubeIt::UploadError)`
Are there any updates about this? Does anyone know a way to get the download link from an HTTP response?
I abandoned development in Ruby, so it's a little bit difficult for me to continue it. As result project is no longer maintained.
It's possible that I would fork this into PHP, but nowadays I have not much time.
For people looking for an alternative – youtube-dl with ffmpeg can achieve the same.
Install both and add them to your PATH.
Then do the following:
youtube-dl -x --audio-format mp3 <link>
<link>
can be a YouTube video/playlist/channel.
It doesn't have the playlist sync feature, that this repo has, but you can script it yourself with some effort.
Thanks for info @Sorashi I would like to try fork it into Go within learning, but nowadays I don't have such time.
I just found out that youtube-dl basically has the sync feature. Just add --download-archive <filename>
to your command. youtube-dl will store downloaded links into <filename>
and won't download them ever again if it finds it in the supplied playlist.
If anyone wants to use it, my command looks like this:
youtube-dl %~1 --download-archive _archive.txt -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata --metadata-from-title "^([\[\u3010].*[\]\u3011])?(.*?\|\|)?\s*(?P<artist>.+?)\s+-\s+(?P<title>.*?)( [\(\[]\s*([Oo]fficial|[Ff]ree|HQ|[Ee]xtended|[Oo]riginal|[Mm]onstercat).*)?( \|\|.*)?$" -o "output/%%(title)s.%%(ext)s"
It contains a regex which extracts the artist and title from the video title and inserts it as metadata into the mp3 file (the regex might need some tweaks). Additionally, it uses the video thumbnail as album art for the song.