Skip to content

Commit c9174a7

Browse files
authored
Merge pull request #2467 from phw/PICARD-2896
PICARD-2896: Support .ogx extension for Ogg container
2 parents 5bb313a + d61e10b commit c9174a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

picard/formats/vorbis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,6 @@ def OggContainerFile(filename):
483483
return guess_format(filename, options)
484484

485485

486-
OggContainerFile.EXTENSIONS = [".ogg"]
486+
OggContainerFile.EXTENSIONS = [".ogg", ".ogx"]
487487
OggContainerFile.NAME = "Ogg"
488488
OggContainerFile.supports_tag = VCommentFile.supports_tag

test/formats/test_vorbis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ def test_ogg_audio(self):
439439
open_format,
440440
self._copy_file_tmp('test.ogg', '.oga'),
441441
vorbis.OggVorbisFile)
442+
self._test_file_is_type(
443+
open_format,
444+
self._copy_file_tmp('test.ogg', '.ogx'),
445+
vorbis.OggVorbisFile)
442446

443447
def test_ogg_opus(self):
444448
self._test_file_is_type(

0 commit comments

Comments
 (0)