Code Monkey home page Code Monkey logo

id3-tool's Introduction

ID3

The purpose of this tool is to identify media files in need of ID3 tags and then to amend those files, adding in the necessary tags.

ID3 tags help to provide the artist name, album name, track name, running order etc of such files and are used by most modern media players. See: ID3 tags

Build Status

Why?

I have a large collection of MP3s, many created a long time back. They are all well organised in a directory structure with (almost always) the track names in the filename and the album/ artist name in the containing directory/ folder. e.g.

Marvin Gaye - What's Going On/Marvin Gaye - 09 Inner City Blues.mp3
Muse - Origin of Symmetry/Muse - 01 New Born.mp3

The problem is that most modern MP3 players need ID3 tags to organise songs, artists and albums, and I'd like to add ID3 tags to these files. Otherwise you end up with albums attributed to an anonymous artist and (sometimes) the incorrect track order.

This mini project then serves a number of purposes:

  1. Identify files/ albums needing ID3 tags
  2. Automatically conjure-up the artist, album and track names from the directory structure
  3. Add the tags to the affected files

Status

Complete

  • Media discovery

To-do

  • Media amendment (auto-tagging files where necessary)

Set-up

git clone [email protected]:oconnedk/id3-tool.git
cd id3-tool
composer install

Usage

To list albums (folders) requiring ID3 tag info:

app/console find /path/to/your/media

e.g.

app/console find ./Tests/Resources/mp3/

Testing

vendor/bin/phpunit -v -c Tests/

Coding Standard

Uses PSR-2 - enforced with PHPCS, like this:

./vendor/bin/phpcs --config-set default_standard PSR2
./vendor/bin/phpcs src/ Tests/

Automation

Automatic testing (PHPUnit) and coding standards compliance (PHPCS) covered by Travis.

TravisCI - Build Status

id3-tool's People

Contributors

oconnedk avatar

Stargazers

 avatar

Watchers

 avatar

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.