Upload
xsawyer
View
291
Download
1
Embed Size (px)
DESCRIPTION
A talk about how mp3 tagging sucks, and Regtag, which aims to solve it: https://github.com/xsawyerx/regtag This talk was originally given at YAPC::EU 2013 (in Kiev) and then at Cluj.pm, on November 7th, 2013.
Citation preview
The beginning...Single mp3 files
Tagging was easy
But then came...THE FULL ALBUMS
Not a lot at first
Kept manually editing
Sort of worked
"Damn you, internets!" stageToo much music
Too many files
Can't tag them all easily
ProblemsNot GNU/Linux || Mac || Windows || SolarisSelectively editing a single file each timeRequiring GUINot descriptive enoughNot generic enoughNot powerful enough(honorable mention: lltag)
SHIT IS FUCKED UP AND BULLSHIT
MP3 TAGGING IS FUCKED UP AND BULLSHIT
What do you do?Rip yourself?
Download quality releases?
Nothing is really what you want
Thinking like a programmerTags are metadata
Filenames are strings
... in patterns!
RegtagRegular expression tagging
(tagging mp3s using regular expressions)
ExamplePropagandhi - (02) Failed States.mp3
Propagandhi - (02) Failed States.mp3
Artist: Propagandhi(?<artist>[AZaz]+)Track number: 02(?<track>\d{2})Track title: Failed States(?<title>.*)
$ regtag tag '/̂(?<artist>[A-Za-z]+) - \((?<track>\d{2})\) (?<title>.*)\.mp3$/'
FeaturesSupports all mp3 v1, most of v2Full regexes (including /x)Static variables (--define artist="Dead Kennedys")Already exists ( )github.com/xsawyerx/regtag
Future featuresReleasing to CPANBuilt-in patternsSaving/retrieving patternsTransformation callbacks (-t '$_{artist}->lc')(using Eval::Closure and AUTOLOAD)
Thank you