1. Brodie Rao
  2. dnuos
  3. Issues
Issue #1 new

.oga extension for Ogg Vorbis

Anonymous created an issue

Here is a trivial patch to support the .oga extension. It is used by sound juicer, a CD ripper.

{{{ diff -r 01f6eb7e49bf -r 9eb45a5c3604 dnuos/audiodir.py --- a/dnuos/audiodir.py Sun Jul 18 22:39:11 2010 -0400 +++ b/dnuos/audiodir.py Mon Dec 26 15:07:09 2011 +0100 @@ -17,7 +17,7 @@ class Dir(object): """Holds audio metadata about a directory"""

  • valid_types = ['mp3', 'mpc', 'mp+', 'm4a', 'ogg', 'flac', 'fla', 'flc']
  • valid_types = ['mp3', 'mpc', 'mp+', 'm4a', 'ogg', 'oga', 'flac', 'fla', 'flc']

    # Note: The order of these values is significant as only a list of # attribute values is pickled to the database. diff -r 01f6eb7e49bf -r 9eb45a5c3604 dnuos/audiotype.py --- a/dnuos/audiotype.py Sun Jul 18 22:39:11 2010 -0400 +++ b/dnuos/audiotype.py Mon Dec 26 15:07:09 2011 +0100 @@ -1011,7 +1011,7 @@ return MP3(filename) elif lowername.endswith(".mpc") or lowername.endswith('.mp+'): return MPC(filename) - elif lowername.endswith(".ogg"): + elif lowername.endswith(".ogg") or lowername.endswith(".oga"): return Ogg(filename) elif (lowername.endswith(".flac") or lowername.endswith('.fla') or lowername.endswith('.flc')): }}}

Comments (0)

  1. Log in to comment