Giter Club home page Giter Club logo

mp3ter's Introduction

mp3ter

Install dependencies with setuptools:

python setup.py install

Then put the scripts somewhere in your $PATH if you want.

The format-title script takes MP3 filepaths as arguments.

format-title.py Thriller.mp3

format-title.py

Intended Usage

The format-title script is designed to touch up titles that are reasonably well-formatted to begin with. It will not work very well on titles that have completely different capitalization or whitespace conventions that you want to fix, such as scene_style_formatting. The benefit of this decision is that the script detects and preserves artist-intended unusual capitalization.

Title Formatting

The script does its work by splitting the song title into two parts: its name and an optional trailing info string with any featured artists or version label (e.g. 'Sabrepulse Remix'). Most of the time, there's no info part and the entire title is just the song name.

It then formats the name portion of the title to be ALA-style title case, with the small difference that it also downcases the most comon four-word prepositions ('from' and 'with').

If there is a song info portion, it replaces any square brackets around the featured artists or the version label with parentheses, and replaces any 'ands' in the featured artists string with ampersands.

Implementation Tradeoffs

This script is not perfect because it performs naive word matching instead of part of speech tagging, so it will downcase the preposition words even when they are not being used prepositions in the title. The goal is for it to do the bulk of the work (esp. on the featured artist tags, which can be a slog otherwise) and that's all; I can make minor edits the few times it does goof up.

mp3ter's People

Contributors

aperiodic avatar

Watchers

James Cloos avatar  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.