Code Monkey home page Code Monkey logo

Comments (9)

jkaflik avatar jkaflik commented on July 25, 2024

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?

from yt_mp3.

zuntah avatar zuntah commented on July 25, 2024

Does some1 have new version of this api?

from yt_mp3.

jkaflik avatar jkaflik commented on July 25, 2024

You mean an youtube-mp3 API?

from yt_mp3.

RohitRox avatar RohitRox commented on July 25, 2024

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)`

from yt_mp3.

sorashi avatar sorashi commented on July 25, 2024

Are there any updates about this? Does anyone know a way to get the download link from an HTTP response?

from yt_mp3.

jkaflik avatar jkaflik commented on July 25, 2024

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.

from yt_mp3.

sorashi avatar sorashi commented on July 25, 2024

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.

from yt_mp3.

jkaflik avatar jkaflik commented on July 25, 2024

Thanks for info @sorashi
I would like to try fork it into Go within learning, but nowadays I don't have such time.

from yt_mp3.

sorashi avatar sorashi commented on July 25, 2024

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.

from yt_mp3.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.