jesseward / discogstagger

Console based audio-file metadata tagger that uses the Discogs.com API v2 (JSON based). Relies on the Mutagen and discogs-client libraries. Currently supports FLAC and MP3 file types.
MIT License
70 stars 13 forks source link

Truncate Excessively Long Filenames #38

Open jvilk opened 7 years ago

jvilk commented 7 years ago

I'm trying to tag an album with excessively long track names, which is a problem for the resulting filenames:

OSError: [Errno 63] File name too long: 'Red Krayola - Fingerpainting (1999) JV/05 The Greed Of A Clarinet That Is Puffy From Crying Gets Tossed In Butter And Spread By Notes  This Process Depresses The Entire Orchestra So Much That It Only Plays Behind A Golden Partition  The Partition Is Decorated With Semi-Precious Attractive Diamonds.flac'

I'm leaving the issue here in case you ever decide to come back and polish / test various edge cases. :-)

jesseward commented 7 years ago

hey @jvilk thanks for reporting. Should be a pretty easy fix. Will look at getting something in place soon.