Git Product home page Git Product logo

audiojack's Introduction

AudioJack

A smart YouTube to MP3 converter that automatically finds and adds metadata/ID3 tags (artist, title, album, cover art) to downloaded MP3 files.

Requirements

  1. Python 2.7
  2. FFmpeg (for MP3 conversion).
  3. In addition, you will need to install the following modules before using AudioJack:

Usage

Before doing anything, you must set a user agent for your application. This will let MusicBrainz know who is accessing their database and prevent abuse of their services. You can do this by typing:

audiojack.set_useragent('App Name', 'Version')

Note: Both "App Name" and "Version" should be strings.

Retrieving metadata for a song

To retrieve the metadata for a particular URL, use AudioJack's built-in get_results() function.

audiojack.get_results("URL goes here")

This will return a list of lists, each of which contains metadata in the format [Artist, Title, Album, MusicBrainz ID].
Example results list:

[["Foo", "Foo's song", "Foo's album", "aaaa"],
 ["Bar", "Bar's song", "Bar's album", "bbbb"],
 ["Baz", "Baz's song", "Baz's album", "cccc"]]

Selecting metadata

Selecting which ID3 tags to add is very easy with AudioJack, simply type:

audiojack.select(index)

where "index" is equal to the numerical index of the metadata in the results list.
For example, if the results lists was

[["Foo", "Foo's song", "Foo's album", "aaaa"],
 ["Bar", "Bar's song", "Bar's album", "bbbb"],
 ["Baz", "Baz's song", "Baz's album", "cccc"]]

and ["Bar", "Bar's song", "Bar's album", "bbbb"] was the correct metadata for the song, then you would type:

audiojack.select(1)

Custom metadata

In the rare case that none of the results are appropriate for the requested song, you can add custom tags to the MP3 by typing:

audiojack.custom('Artist', 'Title', 'Album')

Downloading

After using audiojack.select() or audiojack.custom(), the MP3 is automatically downloaded and converted in the format SongTitle.mp3 in the same folder that the program was run in.

Contributing

Contributing back to the project is strongly suggested, as this helps keep the project alive and well. Guidelines for contributing will be added soon.

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.