audiometa-python 1.4.3__tar.gz → 1.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {audiometa_python-1.4.3/audiometa_python.egg-info → audiometa_python-1.4.5}/PKG-INFO +3 -3
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/__init__.py +2 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/_audio_file.py +6 -2
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/common/audio_file_creator.py +1 -1
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/conftest.py +11 -11
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/conftest.py +4 -4
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_100_proportional.py +4 -4
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_255_non_proportional.py +1 -1
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_255_proportional.py +4 -4
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/test_reading.py +10 -10
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/test_writing.py +10 -10
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_duration_in_sec.py +19 -6
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_duration_in_sec.py +4 -0
- audiometa_python-1.4.5/audiometa/test/tests/unit/utils/test_mp3_gapless_duration.py +139 -0
- audiometa_python-1.4.5/audiometa/utils/mp3_gapless_duration.py +73 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5/audiometa_python.egg-info}/PKG-INFO +3 -3
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa_python.egg-info/SOURCES.txt +2 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa_python.egg-info/requires.txt +2 -2
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/pyproject.toml +15 -22
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/LICENSE +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/README.md +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/__main__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/cli.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/exceptions.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_MetadataManager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/_RatingSupportingMetadataManager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_Id3v2Manager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v1_preserver.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_constants.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_flac_handler.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_reader.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_writer.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_RiffManager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_bext_chunk.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_constants.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_file_structure.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_info_chunk.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/_VorbisManager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/_vorbis_constants.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/id3v1/_Id3v1Manager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/id3v1/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/id3v1/_constants.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata_key.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/assets/create_test_files.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/common/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/common/external_tool_runner.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_header_verifier.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_deleter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_getter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_setter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_frame_manual_creator.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_header_verifier.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_deleter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_getter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_setter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_header_verifier.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_manual_metadata_creator.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_deleter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_getter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_setter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/scripts/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/technical_info_inspector.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/temp_file_with_metadata.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_header_verifier.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_deleter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_getter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_setter.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_command_structure_errors.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_file_access_errors.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_format_output_errors.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_input_validation_errors.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_missing_fields_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_multiple_files_errors.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_rating_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_year_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_basic.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_comprehensive.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_formats.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_metadata_content.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_multiple_files.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_options.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_unified.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_delete.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_formatting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_help.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_basic.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_comprehensive.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_force_format.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_integer_fields.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_list_fields.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_rating.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_string_fields.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/scenarios/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/scenarios/test_user_scenarios.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_core_workflows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_deletion_workflows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_error_handling_workflows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_format_specific_workflows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_rating_workflows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_delete_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_reading_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_reading_field.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_delete_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_reading_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_reading_field.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_delete_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_reading_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_reading_field.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_audio_format_all.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_audio_format_header_deletion.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_basic_functionality.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/test_encoding.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/test_special_characters_edge_cases.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/test_include_headers.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/test_include_technical.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_audio_formats.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_binary_data_filtering.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_consistency.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_edge_cases.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_get_full_metadata.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_performance.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_raw_metadata_includes_unsupported_tags.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_riff_bext.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_structure.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/test_id3v1_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/test_id3v2_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/test_riff_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/test_vorbis_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/test_smart_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_id3v2.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/test_comprehensive.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/test_metadata_field_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_reading.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/test_edge_cases.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/test_metadata_format.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/test_deleting.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/test_writing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v1.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v2_3.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v2_4.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_performance_large_data.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_smart_parsing_scenarios.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_unicode_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v1.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v2_3.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v2_4.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/test_large_values.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/test_read_multiple_metadata.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/test_reading_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/conftest.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_audio_data_corruption.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_file.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_invalid_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_invalid_with_metadata_combinations.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_state_precedence.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_unset_with_metadata_combinations.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_validation_fails_with_id3v1.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_validation_with_id3v2_only.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_validation_works_without_id3v1.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_metadata_combinations/test_md5_with_metadata_combinations.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_unset_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_delete_original.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_invalid_md5/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_invalid_md5/test_flipped_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_invalid_md5/test_partial_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_invalid_md5/test_random_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_md5_repair_with_metadata.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_non_flac_error.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/test_unset_md5.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_bitrate.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_channels.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_sample_rate.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/test_audio_file.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/test_audio_format_readable_after_update_all_metadata_formats.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_forced_format.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_multiple_format_preservation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_partial_update.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_flac_sync.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_mp3_sync.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_wav_sync.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/test_cleanup_strategy.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/test_preserve_strategy.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/test_fail_behavior.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/test_no_writing_on_failure.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/test_strategy_specific.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_bitrate.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_channels.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_error_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_file_size.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_format_name.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_sample_rate.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_context_manager.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_file_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_is_audio_file.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_operations.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_path_handling.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/test_cli_colorize.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/test_expand_file_patterns.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/conftest.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_id3v1.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_id3v2.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_riff.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_riff_info_chunk_fourcc.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_vorbis.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/disc_number/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/disc_number/test_disc_number_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/isrc/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/isrc/test_isrc_format_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/isrc/test_isrc_type_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/reading/test_smart_parsing.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/writing/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/writing/test_separator_selection.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/writing/test_value_filtering.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_artistid/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_artistid/test_musicbrainz_artistid_format_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_artistid/test_musicbrainz_artistid_type_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_trackid/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_trackid/test_musicbrainz_trackid_format_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_trackid/test_musicbrainz_trackid_type_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_uuid/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_uuid/test_uuid_format_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/reading/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/reading/test_normalization.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/reading/test_profiles_values.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/test_rating_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/test_configuration_error.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/test_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/test_writing_profiles.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/release_date/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/release_date/test_date_format_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/test_type_validation_exception.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/test_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/test_track_number_validation.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/test_metadata_format_managers_write_and_read.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/test_riff_configuration_error.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/test_get_supported_unified_metadata_field_ids.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_disc_number_read.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_raw_metadata_sanitizer.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_unified_metadata_field_schema.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/disc_number_read.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/flac_md5_state.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/id3v1_genre_code_map.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/metadata_format.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/metadata_writing_strategy.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/mutagen_exception_handler.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/__init__.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/base.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/config.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/macos.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/ubuntu.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/windows.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/rating_profiles.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/raw_metadata_sanitizer.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/tool_path_resolver.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/types.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/unified_metadata_field_schema.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/utils/unified_metadata_key.py +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa_python.egg-info/dependency_links.txt +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa_python.egg-info/entry_points.txt +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa_python.egg-info/top_level.txt +0 -0
- {audiometa_python-1.4.3 → audiometa_python-1.4.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: audiometa-python
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.5
|
|
4
4
|
Summary: A comprehensive Python library for reading and writing audio metadata across multiple formats
|
|
5
5
|
Author: AudioMeta Python Contributors
|
|
6
6
|
Author-email: Andreas Garcia <garcia.andreas.1991@gmail.com>
|
|
@@ -30,12 +30,12 @@ Requires-Dist: pytest-mock==3.15.1; extra == "dev"
|
|
|
30
30
|
Requires-Dist: ruff==0.15.9; extra == "dev"
|
|
31
31
|
Requires-Dist: isort==5.13.2; extra == "dev"
|
|
32
32
|
Requires-Dist: mypy==1.18.2; extra == "dev"
|
|
33
|
-
Requires-Dist: pre-commit==
|
|
33
|
+
Requires-Dist: pre-commit==4.5.1; extra == "dev"
|
|
34
34
|
Requires-Dist: autoflake==2.0.0; extra == "dev"
|
|
35
35
|
Requires-Dist: pydocstringformatter==0.7.5; extra == "dev"
|
|
36
36
|
Requires-Dist: soundfile==0.10.1; extra == "dev"
|
|
37
37
|
Requires-Dist: numpy==2.3.4; extra == "dev"
|
|
38
|
-
Requires-Dist:
|
|
38
|
+
Requires-Dist: bump-my-version==1.3.0; extra == "dev"
|
|
39
39
|
Provides-Extra: yaml
|
|
40
40
|
Requires-Dist: PyYAML==6.0; extra == "yaml"
|
|
41
41
|
Dynamic: license-file
|
|
@@ -1216,6 +1216,8 @@ def is_audio_file(file: PublicFileType) -> bool:
|
|
|
1216
1216
|
def get_duration_in_sec(file: PublicFileType) -> float:
|
|
1217
1217
|
"""Get the duration of an audio file in seconds.
|
|
1218
1218
|
|
|
1219
|
+
MP3 durations exclude encoder delay and padding when the Xing/Info frame's LAME extension provides them.
|
|
1220
|
+
|
|
1219
1221
|
Args:
|
|
1220
1222
|
file: Audio file path (str or Path)
|
|
1221
1223
|
|
|
@@ -26,6 +26,7 @@ from .manager._rating_supporting.id3v2._id3v2_constants import ID3V2_HEADER_SIZE
|
|
|
26
26
|
from .manager._rating_supporting.riff._riff_constants import RIFF_HEADER_SIZE
|
|
27
27
|
from .utils.flac_md5_state import FlacMd5State
|
|
28
28
|
from .utils.metadata_format import MetadataFormat
|
|
29
|
+
from .utils.mp3_gapless_duration import read_mp3_gapless_duration
|
|
29
30
|
from .utils.mutagen_exception_handler import handle_mutagen_exception
|
|
30
31
|
from .utils.tool_path_resolver import get_tool_path
|
|
31
32
|
|
|
@@ -92,8 +93,11 @@ class _AudioFile:
|
|
|
92
93
|
|
|
93
94
|
if self.file_extension == ".mp3":
|
|
94
95
|
try:
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
info = MP3(path).info
|
|
97
|
+
gapless_duration = read_mp3_gapless_duration(path, info)
|
|
98
|
+
if gapless_duration is not None:
|
|
99
|
+
return gapless_duration
|
|
100
|
+
return float(info.length)
|
|
97
101
|
except Exception as exc:
|
|
98
102
|
# If MP3 fails, try other formats as fallback
|
|
99
103
|
try:
|
|
@@ -18,7 +18,7 @@ class AudioFileCreator:
|
|
|
18
18
|
assets_dir: Directory containing template files
|
|
19
19
|
"""
|
|
20
20
|
if format_type.lower() in ["mp3", "id3v1", "id3v2.3", "id3v2.4"]:
|
|
21
|
-
template_file = assets_dir / "metadata=none.mp3"
|
|
21
|
+
template_file = assets_dir / "shared" / "metadata=none.mp3"
|
|
22
22
|
elif format_type.lower() == "flac":
|
|
23
23
|
template_file = assets_dir / "metadata=none.flac"
|
|
24
24
|
elif format_type.lower() == "wav":
|
|
@@ -188,12 +188,12 @@ def album_koko_vorbis_flac(assets_dir: Path) -> Path:
|
|
|
188
188
|
|
|
189
189
|
@pytest.fixture
|
|
190
190
|
def genre_code_id3v1_abstract_mp3(assets_dir: Path) -> Path:
|
|
191
|
-
return assets_dir / "genre_code_id3v1=Abstract.mp3"
|
|
191
|
+
return assets_dir / "shared" / "genre_code_id3v1=Abstract.mp3"
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
@pytest.fixture
|
|
195
195
|
def genre_code_id3v1_unknown_mp3(assets_dir: Path) -> Path:
|
|
196
|
-
return assets_dir / "genre_code_id3v1=Unknown.mp3"
|
|
196
|
+
return assets_dir / "shared" / "genre_code_id3v1=Unknown.mp3"
|
|
197
197
|
|
|
198
198
|
|
|
199
199
|
@pytest.fixture
|
|
@@ -203,47 +203,47 @@ def duration_1s_mp3(assets_dir: Path) -> Path:
|
|
|
203
203
|
|
|
204
204
|
@pytest.fixture
|
|
205
205
|
def duration_182s_mp3(assets_dir: Path) -> Path:
|
|
206
|
-
return assets_dir / "duration=182.mp3"
|
|
206
|
+
return assets_dir / "shared" / "duration=182.mp3"
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
@pytest.fixture
|
|
210
210
|
def duration_335s_flac(assets_dir: Path) -> Path:
|
|
211
|
-
return assets_dir / "duration=335s.flac"
|
|
211
|
+
return assets_dir / "shared" / "duration=335s.flac"
|
|
212
212
|
|
|
213
213
|
|
|
214
214
|
@pytest.fixture
|
|
215
215
|
def duration_472s_wav(assets_dir: Path) -> Path:
|
|
216
|
-
return assets_dir / "duration=472s.wav"
|
|
216
|
+
return assets_dir / "shared" / "duration=472s.wav"
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
@pytest.fixture
|
|
220
220
|
def bitrate_320_mp3(assets_dir: Path) -> Path:
|
|
221
|
-
return assets_dir / "bitrate in kbps_big=320.mp3"
|
|
221
|
+
return assets_dir / "shared" / "bitrate in kbps_big=320.mp3"
|
|
222
222
|
|
|
223
223
|
|
|
224
224
|
@pytest.fixture
|
|
225
225
|
def bitrate_946_flac(assets_dir: Path) -> Path:
|
|
226
|
-
return assets_dir / "bitrate in kbps_big=946.flac"
|
|
226
|
+
return assets_dir / "shared" / "bitrate in kbps_big=946.flac"
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
@pytest.fixture
|
|
230
230
|
def bitrate_1411_wav(assets_dir: Path) -> Path:
|
|
231
|
-
return assets_dir / "bitrate in kbps_big=1411.wav"
|
|
231
|
+
return assets_dir / "shared" / "bitrate in kbps_big=1411.wav"
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
@pytest.fixture
|
|
235
235
|
def bitrate_192_mp3(assets_dir: Path) -> Path:
|
|
236
|
-
return assets_dir / "bitrate in kbps_small=192.mp3"
|
|
236
|
+
return assets_dir / "shared" / "bitrate in kbps_small=192.mp3"
|
|
237
237
|
|
|
238
238
|
|
|
239
239
|
@pytest.fixture
|
|
240
240
|
def bitrate_723_flac(assets_dir: Path) -> Path:
|
|
241
|
-
return assets_dir / "bitrate in kbps_small=723.flac"
|
|
241
|
+
return assets_dir / "shared" / "bitrate in kbps_small=723.flac"
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
@pytest.fixture
|
|
245
245
|
def bitrate_1152_wav(assets_dir: Path) -> Path:
|
|
246
|
-
return assets_dir / "bitrate in kbps_small=1152.wav"
|
|
246
|
+
return assets_dir / "shared" / "bitrate in kbps_small=1152.wav"
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
@pytest.fixture
|
{audiometa_python-1.4.3 → audiometa_python-1.4.5}/audiometa/test/tests/integration/conftest.py
RENAMED
|
@@ -6,12 +6,12 @@ import pytest
|
|
|
6
6
|
# Test tracks with rating
|
|
7
7
|
@pytest.fixture
|
|
8
8
|
def rating_id3v2_base_100_0_star_wav(assets_dir: Path) -> Path:
|
|
9
|
-
return assets_dir / "rating_id3v2_base 100=0 star.wav"
|
|
9
|
+
return assets_dir / "shared/rating_id3v2_base 100=0 star.wav"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@pytest.fixture
|
|
13
13
|
def rating_id3v2_base_100_5_star_wav(assets_dir: Path) -> Path:
|
|
14
|
-
return assets_dir / "rating_id3v2_base 100=5 star.wav"
|
|
14
|
+
return assets_dir / "shared/rating_id3v2_base 100=5 star.wav"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
@pytest.fixture
|
|
@@ -21,9 +21,9 @@ def rating_id3v2_base_255_5_star_mp3(assets_dir: Path) -> Path:
|
|
|
21
21
|
|
|
22
22
|
@pytest.fixture
|
|
23
23
|
def rating_riff_base_100_5_star_wav(assets_dir: Path) -> Path:
|
|
24
|
-
return assets_dir / "rating_riff_base 100_kid3=5 star.wav"
|
|
24
|
+
return assets_dir / "shared/rating_riff_base 100_kid3=5 star.wav"
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
@pytest.fixture
|
|
28
28
|
def rating_vorbis_base_100_5_star_flac(assets_dir: Path) -> Path:
|
|
29
|
-
return assets_dir / "rating_vorbis=5 star.flac"
|
|
29
|
+
return assets_dir / "shared/rating_vorbis=5 star.flac"
|
|
@@ -25,7 +25,7 @@ class TestBase100Proportional:
|
|
|
25
25
|
],
|
|
26
26
|
)
|
|
27
27
|
def test_vorbis(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
28
|
-
file_path = assets_dir / f"rating_vorbis={star_rating} star.flac"
|
|
28
|
+
file_path = assets_dir / f"shared/rating_vorbis={star_rating} star.flac"
|
|
29
29
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
30
30
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
31
31
|
assert rating is not None
|
|
@@ -49,7 +49,7 @@ class TestBase100Proportional:
|
|
|
49
49
|
],
|
|
50
50
|
)
|
|
51
51
|
def test_id3v2(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
52
|
-
file_path = assets_dir / f"rating_id3v2_base 100={star_rating} star.wav"
|
|
52
|
+
file_path = assets_dir / f"shared/rating_id3v2_base 100={star_rating} star.wav"
|
|
53
53
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
54
54
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
55
55
|
assert rating is not None
|
|
@@ -67,7 +67,7 @@ class TestBase100Proportional:
|
|
|
67
67
|
],
|
|
68
68
|
)
|
|
69
69
|
def test_wav_riff(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
70
|
-
file_path = assets_dir / f"rating_riff_base 100_kid3={star_rating} star.wav"
|
|
70
|
+
file_path = assets_dir / f"shared/rating_riff_base 100_kid3={star_rating} star.wav"
|
|
71
71
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
72
72
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
73
73
|
assert rating is not None
|
|
@@ -75,7 +75,7 @@ class TestBase100Proportional:
|
|
|
75
75
|
assert rating == expected_normalized_rating
|
|
76
76
|
|
|
77
77
|
def test_none_rating_wav_riff(self, assets_dir: Path):
|
|
78
|
-
file_path = assets_dir / "rating_riff_kid3=none.wav"
|
|
78
|
+
file_path = assets_dir / "shared/rating_riff_kid3=none.wav"
|
|
79
79
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
80
80
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
81
81
|
assert rating is None
|
|
@@ -25,7 +25,7 @@ class TestBase255NonProportional:
|
|
|
25
25
|
],
|
|
26
26
|
)
|
|
27
27
|
def test_id3v2_mp3(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
28
|
-
file_path = assets_dir / f"rating_id3v2={star_rating} star.mp3"
|
|
28
|
+
file_path = assets_dir / f"shared/rating_id3v2={star_rating} star.mp3"
|
|
29
29
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
30
30
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
31
31
|
assert rating is not None
|
|
@@ -19,7 +19,7 @@ class TestBase255Proportional:
|
|
|
19
19
|
],
|
|
20
20
|
)
|
|
21
21
|
def test_vorbis_flac_traktor(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
22
|
-
file_path = assets_dir / f"rating_vorbis_traktor={star_rating} star.flac"
|
|
22
|
+
file_path = assets_dir / f"shared/rating_vorbis_traktor={star_rating} star.flac"
|
|
23
23
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
24
24
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
25
25
|
assert rating is not None
|
|
@@ -27,7 +27,7 @@ class TestBase255Proportional:
|
|
|
27
27
|
assert rating == expected_normalized_rating
|
|
28
28
|
|
|
29
29
|
def test_none_rating_vorbis_flac_traktor(self, assets_dir: Path):
|
|
30
|
-
file_path = assets_dir / "rating_vorbis_traktor=none.flac"
|
|
30
|
+
file_path = assets_dir / "shared/rating_vorbis_traktor=none.flac"
|
|
31
31
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
32
32
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
33
33
|
assert rating is None
|
|
@@ -43,7 +43,7 @@ class TestBase255Proportional:
|
|
|
43
43
|
],
|
|
44
44
|
)
|
|
45
45
|
def test_id3v2_mp3_traktor(self, assets_dir: Path, star_rating, expected_normalized_rating):
|
|
46
|
-
file_path = assets_dir / f"rating_id3v2_tracktor={star_rating} star.mp3"
|
|
46
|
+
file_path = assets_dir / f"shared/rating_id3v2_tracktor={star_rating} star.mp3"
|
|
47
47
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
48
48
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
49
49
|
assert rating is not None
|
|
@@ -51,7 +51,7 @@ class TestBase255Proportional:
|
|
|
51
51
|
assert rating == expected_normalized_rating
|
|
52
52
|
|
|
53
53
|
def test_none_rating_id3v2_mp3_traktor(self, assets_dir: Path):
|
|
54
|
-
file_path = assets_dir / "rating_id3v2_tracktor=none.mp3"
|
|
54
|
+
file_path = assets_dir / "shared/rating_id3v2_tracktor=none.mp3"
|
|
55
55
|
metadata = get_unified_metadata(file_path, normalized_rating_max_value=100)
|
|
56
56
|
rating = metadata.get(UnifiedMetadataKey.RATING)
|
|
57
57
|
# Traktor "none" may actually be 0, not None
|
|
@@ -13,7 +13,7 @@ class TestRealAudioFilesReading:
|
|
|
13
13
|
"""Test cases using real audio files for end-to-end validation."""
|
|
14
14
|
|
|
15
15
|
def test_recording_allumerlefeu_metadata(self, assets_dir: Path):
|
|
16
|
-
file_path = assets_dir / "recording=Allumerlefeu_2 matches one with more release groups.mp3"
|
|
16
|
+
file_path = assets_dir / "shared/recording=Allumerlefeu_2 matches one with more release groups.mp3"
|
|
17
17
|
|
|
18
18
|
metadata = get_unified_metadata(file_path)
|
|
19
19
|
assert isinstance(metadata, dict)
|
|
@@ -29,7 +29,7 @@ class TestRealAudioFilesReading:
|
|
|
29
29
|
assert metadata[UnifiedMetadataKey.COPYRIGHT] == "© 2018 Mercury Music Group"
|
|
30
30
|
|
|
31
31
|
def test_recording_celinekin_park_metadata(self, assets_dir: Path):
|
|
32
|
-
file_path = assets_dir / "recording=Celinekin Park - no musicbrainz recording duration.mp3"
|
|
32
|
+
file_path = assets_dir / "shared/recording=Celinekin Park - no musicbrainz recording duration.mp3"
|
|
33
33
|
|
|
34
34
|
metadata = get_unified_metadata(file_path)
|
|
35
35
|
assert isinstance(metadata, dict)
|
|
@@ -44,7 +44,7 @@ class TestRealAudioFilesReading:
|
|
|
44
44
|
assert metadata[UnifiedMetadataKey.COMMENT] == "BootieMashup.com"
|
|
45
45
|
|
|
46
46
|
def test_recording_dans_la_legende_metadata(self, assets_dir: Path):
|
|
47
|
-
file_path = assets_dir / "recording=Dans la legende.flac"
|
|
47
|
+
file_path = assets_dir / "shared/recording=Dans la legende.flac"
|
|
48
48
|
|
|
49
49
|
metadata = get_unified_metadata(file_path)
|
|
50
50
|
assert isinstance(metadata, dict)
|
|
@@ -59,7 +59,7 @@ class TestRealAudioFilesReading:
|
|
|
59
59
|
assert metadata[UnifiedMetadataKey.TRACK_NUMBER] == "01"
|
|
60
60
|
|
|
61
61
|
def test_recording_kemar_france_metadata(self, assets_dir: Path):
|
|
62
|
-
file_path = assets_dir / "recording=Kemar - France.mp3"
|
|
62
|
+
file_path = assets_dir / "shared/recording=Kemar - France.mp3"
|
|
63
63
|
|
|
64
64
|
metadata = get_unified_metadata(file_path)
|
|
65
65
|
assert isinstance(metadata, dict)
|
|
@@ -67,7 +67,7 @@ class TestRealAudioFilesReading:
|
|
|
67
67
|
assert metadata[UnifiedMetadataKey.BPM] == 140
|
|
68
68
|
|
|
69
69
|
def test_recording_tokyo_drift_metadata(self, assets_dir: Path):
|
|
70
|
-
file_path = assets_dir / "recording=Tokyo Drift_no mb recording.mp3"
|
|
70
|
+
file_path = assets_dir / "shared/recording=Tokyo Drift_no mb recording.mp3"
|
|
71
71
|
|
|
72
72
|
metadata = get_unified_metadata(file_path)
|
|
73
73
|
assert isinstance(metadata, dict)
|
|
@@ -76,14 +76,14 @@ class TestRealAudioFilesReading:
|
|
|
76
76
|
assert metadata[UnifiedMetadataKey.BPM] == 128
|
|
77
77
|
|
|
78
78
|
def test_recording_y_do_i_carmina_burana_mp3_metadata(self, assets_dir: Path):
|
|
79
|
-
file_path = assets_dir / "recording=Y do i - Carmina Burana Remix - 7m52.mp3"
|
|
79
|
+
file_path = assets_dir / "shared/recording=Y do i - Carmina Burana Remix - 7m52.mp3"
|
|
80
80
|
|
|
81
81
|
metadata = get_unified_metadata(file_path)
|
|
82
82
|
assert isinstance(metadata, dict)
|
|
83
83
|
assert len(metadata) == 0 # No metadata
|
|
84
84
|
|
|
85
85
|
def test_recording_y_do_i_carmina_burana_wav_metadata(self, assets_dir: Path):
|
|
86
|
-
file_path = assets_dir / "recording=Y do i - Carmina Burana Remix - 7m52.wav"
|
|
86
|
+
file_path = assets_dir / "shared/recording=Y do i - Carmina Burana Remix - 7m52.wav"
|
|
87
87
|
|
|
88
88
|
metadata = get_unified_metadata(file_path)
|
|
89
89
|
assert isinstance(metadata, dict)
|
|
@@ -99,7 +99,7 @@ class TestRealAudioFilesReading:
|
|
|
99
99
|
assert metadata.get(UnifiedMetadataKey.ALBUM) == "Remixes"
|
|
100
100
|
|
|
101
101
|
def test_recording_california_gurls_metadata(self, assets_dir: Path):
|
|
102
|
-
file_path = assets_dir / "recording=california gurls_id3v2 tags.flac"
|
|
102
|
+
file_path = assets_dir / "shared/recording=california gurls_id3v2 tags.flac"
|
|
103
103
|
|
|
104
104
|
metadata = get_unified_metadata(file_path)
|
|
105
105
|
assert isinstance(metadata, dict)
|
|
@@ -117,7 +117,7 @@ class TestRealAudioFilesReading:
|
|
|
117
117
|
)
|
|
118
118
|
|
|
119
119
|
def test_recording_juan_hansen_drown_flac_metadata(self, assets_dir: Path):
|
|
120
|
-
file_path = assets_dir / "recording=juan hansen oostil - drown (massano remix) - 7m20.flac"
|
|
120
|
+
file_path = assets_dir / "shared/recording=juan hansen oostil - drown (massano remix) - 7m20.flac"
|
|
121
121
|
|
|
122
122
|
metadata = get_unified_metadata(file_path)
|
|
123
123
|
assert isinstance(metadata, dict)
|
|
@@ -131,7 +131,7 @@ class TestRealAudioFilesReading:
|
|
|
131
131
|
assert metadata[UnifiedMetadataKey.BPM] == 122
|
|
132
132
|
|
|
133
133
|
def test_recording_juan_hansen_drown_mp3_metadata(self, assets_dir: Path):
|
|
134
|
-
file_path = assets_dir / "recording=juan hansen oostil - drown (massano remix) - 7m21.mp3"
|
|
134
|
+
file_path = assets_dir / "shared/recording=juan hansen oostil - drown (massano remix) - 7m21.mp3"
|
|
135
135
|
|
|
136
136
|
metadata = get_unified_metadata(file_path)
|
|
137
137
|
assert isinstance(metadata, dict)
|
|
@@ -26,7 +26,7 @@ class TestRealAudioFilesWriting:
|
|
|
26
26
|
|
|
27
27
|
def test_writing_allumerlefeu(self, assets_dir: Path):
|
|
28
28
|
"""Test writing metadata to recording=Allumerlefeu_2 matches one with more release groups.mp3."""
|
|
29
|
-
real_file = assets_dir / "recording=Allumerlefeu_2 matches one with more release groups.mp3"
|
|
29
|
+
real_file = assets_dir / "shared/recording=Allumerlefeu_2 matches one with more release groups.mp3"
|
|
30
30
|
temp_audio_file_path = Path(tempfile.mktemp(suffix=".mp3"))
|
|
31
31
|
try:
|
|
32
32
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -46,7 +46,7 @@ class TestRealAudioFilesWriting:
|
|
|
46
46
|
|
|
47
47
|
def test_writing_celinekin_park(self, assets_dir: Path):
|
|
48
48
|
"""Test writing metadata to recording=Celinekin Park - no musicbrainz recording duration.mp3."""
|
|
49
|
-
real_file = assets_dir / "recording=Celinekin Park - no musicbrainz recording duration.mp3"
|
|
49
|
+
real_file = assets_dir / "shared/recording=Celinekin Park - no musicbrainz recording duration.mp3"
|
|
50
50
|
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as temp_file:
|
|
51
51
|
temp_audio_file_path = Path(temp_file.name)
|
|
52
52
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -63,7 +63,7 @@ class TestRealAudioFilesWriting:
|
|
|
63
63
|
|
|
64
64
|
def test_writing_dans_la_legende(self, assets_dir: Path):
|
|
65
65
|
"""Test writing metadata to recording=Dans la legende.flac."""
|
|
66
|
-
real_file = assets_dir / "recording=Dans la legende.flac"
|
|
66
|
+
real_file = assets_dir / "shared/recording=Dans la legende.flac"
|
|
67
67
|
with tempfile.NamedTemporaryFile(suffix=".flac", delete=False) as temp_file:
|
|
68
68
|
temp_audio_file_path = Path(temp_file.name)
|
|
69
69
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -80,7 +80,7 @@ class TestRealAudioFilesWriting:
|
|
|
80
80
|
|
|
81
81
|
def test_writing_kemar_france(self, assets_dir: Path):
|
|
82
82
|
"""Test writing metadata to recording=Kemar - France.mp3."""
|
|
83
|
-
real_file = assets_dir / "recording=Kemar - France.mp3"
|
|
83
|
+
real_file = assets_dir / "shared/recording=Kemar - France.mp3"
|
|
84
84
|
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as temp_file:
|
|
85
85
|
temp_audio_file_path = Path(temp_file.name)
|
|
86
86
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -97,7 +97,7 @@ class TestRealAudioFilesWriting:
|
|
|
97
97
|
|
|
98
98
|
def test_writing_tokyo_drift(self, assets_dir: Path):
|
|
99
99
|
"""Test writing metadata to recording=Tokyo Drift_no mb recording.mp3."""
|
|
100
|
-
real_file = assets_dir / "recording=Tokyo Drift_no mb recording.mp3"
|
|
100
|
+
real_file = assets_dir / "shared/recording=Tokyo Drift_no mb recording.mp3"
|
|
101
101
|
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as temp_file:
|
|
102
102
|
temp_audio_file_path = Path(temp_file.name)
|
|
103
103
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -114,7 +114,7 @@ class TestRealAudioFilesWriting:
|
|
|
114
114
|
|
|
115
115
|
def test_writing_y_do_i_carmina_burana_mp3(self, assets_dir: Path):
|
|
116
116
|
"""Test writing metadata to recording=Y do i - Carmina Burana Remix - 7m52.mp3."""
|
|
117
|
-
real_file = assets_dir / "recording=Y do i - Carmina Burana Remix - 7m52.mp3"
|
|
117
|
+
real_file = assets_dir / "shared/recording=Y do i - Carmina Burana Remix - 7m52.mp3"
|
|
118
118
|
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as temp_file:
|
|
119
119
|
temp_audio_file_path = Path(temp_file.name)
|
|
120
120
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -131,7 +131,7 @@ class TestRealAudioFilesWriting:
|
|
|
131
131
|
|
|
132
132
|
def test_writing_y_do_i_carmina_burana_wav(self, assets_dir: Path):
|
|
133
133
|
"""Test writing metadata to recording=Y do i - Carmina Burana Remix - 7m52.wav."""
|
|
134
|
-
real_file = assets_dir / "recording=Y do i - Carmina Burana Remix - 7m52.wav"
|
|
134
|
+
real_file = assets_dir / "shared/recording=Y do i - Carmina Burana Remix - 7m52.wav"
|
|
135
135
|
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_file:
|
|
136
136
|
temp_audio_file_path = Path(temp_file.name)
|
|
137
137
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -148,7 +148,7 @@ class TestRealAudioFilesWriting:
|
|
|
148
148
|
|
|
149
149
|
def test_writing_california_gurls(self, assets_dir: Path):
|
|
150
150
|
"""Test writing metadata to recording=california gurls_id3v2 tags.flac."""
|
|
151
|
-
real_file = assets_dir / "recording=california gurls_id3v2 tags.flac"
|
|
151
|
+
real_file = assets_dir / "shared/recording=california gurls_id3v2 tags.flac"
|
|
152
152
|
with tempfile.NamedTemporaryFile(suffix=".flac", delete=False) as temp_file:
|
|
153
153
|
temp_audio_file_path = Path(temp_file.name)
|
|
154
154
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -165,7 +165,7 @@ class TestRealAudioFilesWriting:
|
|
|
165
165
|
|
|
166
166
|
def test_writing_juan_hansen_drown_flac(self, assets_dir: Path):
|
|
167
167
|
"""Test writing metadata to recording=juan hansen oostil - drown (massano remix) - 7m20.flac."""
|
|
168
|
-
real_file = assets_dir / "recording=juan hansen oostil - drown (massano remix) - 7m20.flac"
|
|
168
|
+
real_file = assets_dir / "shared/recording=juan hansen oostil - drown (massano remix) - 7m20.flac"
|
|
169
169
|
with tempfile.NamedTemporaryFile(suffix=".flac", delete=False) as temp_file:
|
|
170
170
|
temp_audio_file_path = Path(temp_file.name)
|
|
171
171
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -182,7 +182,7 @@ class TestRealAudioFilesWriting:
|
|
|
182
182
|
|
|
183
183
|
def test_writing_juan_hansen_drown_mp3(self, assets_dir: Path):
|
|
184
184
|
"""Test writing metadata to recording=juan hansen oostil - drown (massano remix) - 7m21.mp3."""
|
|
185
|
-
real_file = assets_dir / "recording=juan hansen oostil - drown (massano remix) - 7m21.mp3"
|
|
185
|
+
real_file = assets_dir / "shared/recording=juan hansen oostil - drown (massano remix) - 7m21.mp3"
|
|
186
186
|
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as temp_file:
|
|
187
187
|
temp_audio_file_path = Path(temp_file.name)
|
|
188
188
|
shutil.copy2(real_file, temp_audio_file_path)
|
|
@@ -18,12 +18,25 @@ class TestGetDurationInSec:
|
|
|
18
18
|
assert isinstance(duration, float)
|
|
19
19
|
assert duration > 0
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
@pytest.mark.parametrize(
|
|
22
|
+
"relative_path",
|
|
23
|
+
[
|
|
24
|
+
"sample.mp3",
|
|
25
|
+
"shared/duration=277s.mp3",
|
|
26
|
+
"shared/recording=Y do i - Carmina Burana Remix - 7m52.mp3",
|
|
27
|
+
"shared/duration=182.mp3",
|
|
28
|
+
"size_small=0.01mo.mp3",
|
|
29
|
+
"sample.flac",
|
|
30
|
+
],
|
|
31
|
+
)
|
|
32
|
+
def test_get_duration_in_sec_matches_external_tool(self, assets_dir: Path, relative_path: str):
|
|
33
|
+
file_path = assets_dir / relative_path
|
|
34
|
+
external_tool_duration = TechnicalInfoInspector.get_duration(file_path)
|
|
35
|
+
assert external_tool_duration is not None, "External tool could not get duration"
|
|
36
|
+
|
|
37
|
+
duration = get_duration_in_sec(file_path)
|
|
38
|
+
# External tools differ by version in whether they subtract MP3 encoder delay and padding (up to ~51 ms here)
|
|
39
|
+
assert duration == pytest.approx(external_tool_duration, abs=0.1)
|
|
27
40
|
|
|
28
41
|
def test_get_duration_in_sec_supports_all_formats(
|
|
29
42
|
self, sample_mp3_file: Path, sample_flac_file: Path, sample_wav_file: Path
|
|
@@ -14,6 +14,10 @@ class TestAudioFileDurationInSec:
|
|
|
14
14
|
assert duration > 0
|
|
15
15
|
assert duration < 1000 # Reasonable bounds check
|
|
16
16
|
|
|
17
|
+
def test_get_duration_in_sec_mp3_excludes_encoder_delay_and_padding(self, sample_mp3_file: Path):
|
|
18
|
+
audio_file = _AudioFile(sample_mp3_file)
|
|
19
|
+
assert audio_file.get_duration_in_sec() == pytest.approx(1.0, abs=1e-6)
|
|
20
|
+
|
|
17
21
|
def test_get_duration_in_sec_flac(self, sample_flac_file: Path):
|
|
18
22
|
audio_file = _AudioFile(sample_flac_file)
|
|
19
23
|
duration = audio_file.get_duration_in_sec()
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
from mutagen.mp3 import MP3
|
|
5
|
+
|
|
6
|
+
from audiometa.utils.mp3_gapless_duration import read_mp3_gapless_duration
|
|
7
|
+
|
|
8
|
+
MPEG1_STEREO_44100_HEADER = bytes([0xFF, 0xFB, 0x90, 0x00])
|
|
9
|
+
MPEG2_STEREO_22050_HEADER = bytes([0xFF, 0xF3, 0x90, 0x00])
|
|
10
|
+
MPEG1_FRAME_SIZE = 417
|
|
11
|
+
MPEG2_FRAME_SIZE = 261
|
|
12
|
+
MPEG1_LAYER2_FRAME_SIZE = 522
|
|
13
|
+
MPEG1_SIDE_INFO_STEREO = 32
|
|
14
|
+
MPEG2_SIDE_INFO_STEREO = 17
|
|
15
|
+
FRAMES_FLAG = 0x1
|
|
16
|
+
BYTES_FLAG = 0x2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _xing_frame(
|
|
20
|
+
header: bytes,
|
|
21
|
+
side_info: int,
|
|
22
|
+
frames: int,
|
|
23
|
+
encoder: bytes = b"Lavc59.37",
|
|
24
|
+
delay: int = 0,
|
|
25
|
+
padding: int = 0,
|
|
26
|
+
flags: int = FRAMES_FLAG,
|
|
27
|
+
) -> bytes:
|
|
28
|
+
body = header + bytes(side_info) + b"Info" + flags.to_bytes(4, "big")
|
|
29
|
+
if flags & FRAMES_FLAG:
|
|
30
|
+
body += frames.to_bytes(4, "big")
|
|
31
|
+
if flags & BYTES_FLAG:
|
|
32
|
+
body += bytes(4)
|
|
33
|
+
delay_padding = bytes([delay >> 4, ((delay & 0xF) << 4) | (padding >> 8), padding & 0xFF])
|
|
34
|
+
return body + encoder.ljust(21, b"\0") + delay_padding + bytes(64)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _stream(first_frame: bytes, header: bytes, frame_size: int, prefix: bytes = b"") -> bytes:
|
|
38
|
+
padded = first_frame.ljust(frame_size, b"\0")
|
|
39
|
+
silent_frame = (header + bytes(frame_size))[:frame_size]
|
|
40
|
+
return prefix + padded + silent_frame * 4
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _gapless(path: Path) -> float | None:
|
|
44
|
+
return read_mp3_gapless_duration(path, MP3(path).info)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _id3v2_header(size: int, flags: int = 0) -> bytes:
|
|
48
|
+
syncsafe = bytes([(size >> 21) & 0x7F, (size >> 14) & 0x7F, (size >> 7) & 0x7F, size & 0x7F])
|
|
49
|
+
return b"ID3\x04\x00" + bytes([flags]) + syncsafe
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@pytest.mark.unit
|
|
53
|
+
class TestReadMp3GaplessDuration:
|
|
54
|
+
@pytest.mark.parametrize(
|
|
55
|
+
("relative_path", "expected"),
|
|
56
|
+
[
|
|
57
|
+
("sample.mp3", 1.0),
|
|
58
|
+
("shared/duration=277s.mp3", 277.839433),
|
|
59
|
+
("shared/recording=Y do i - Carmina Burana Remix - 7m52.mp3", 472.594286),
|
|
60
|
+
("shared/duration=182.mp3", 181.696145),
|
|
61
|
+
],
|
|
62
|
+
)
|
|
63
|
+
def test_fixture_matches_ffprobe(self, assets_dir: Path, relative_path: str, expected: float):
|
|
64
|
+
assert _gapless(assets_dir / relative_path) == pytest.approx(expected, abs=1e-6)
|
|
65
|
+
|
|
66
|
+
def test_file_without_xing_frame_returns_none(self, assets_dir: Path):
|
|
67
|
+
assert _gapless(assets_dir / "size_small=0.01mo.mp3") is None
|
|
68
|
+
|
|
69
|
+
@pytest.mark.parametrize("encoder", [b"LAME3.100", b"Lavc59.37", b"Lavf60.16", b"L3.99r1"])
|
|
70
|
+
def test_known_encoder_subtracts_delay_and_padding(self, tmp_path: Path, encoder: bytes):
|
|
71
|
+
path = tmp_path / "a.mp3"
|
|
72
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100, encoder, 576, 1105)
|
|
73
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
74
|
+
assert _gapless(path) == pytest.approx((100 * 1152 - 576 - 1105) / 44100)
|
|
75
|
+
|
|
76
|
+
def test_unknown_encoder_ignores_delay_and_padding(self, tmp_path: Path):
|
|
77
|
+
path = tmp_path / "a.mp3"
|
|
78
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100, b"Other1.0", 576, 1105)
|
|
79
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
80
|
+
assert _gapless(path) == pytest.approx(100 * 1152 / 44100)
|
|
81
|
+
|
|
82
|
+
def test_mpeg2_uses_576_samples_per_frame(self, tmp_path: Path):
|
|
83
|
+
path = tmp_path / "a.mp3"
|
|
84
|
+
frame = _xing_frame(MPEG2_STEREO_22050_HEADER, MPEG2_SIDE_INFO_STEREO, 100, b"LAME3.100", 528, 0)
|
|
85
|
+
path.write_bytes(_stream(frame, MPEG2_STEREO_22050_HEADER, MPEG2_FRAME_SIZE))
|
|
86
|
+
assert _gapless(path) == pytest.approx((100 * 576 - 528) / 22050)
|
|
87
|
+
|
|
88
|
+
def test_missing_frame_count_flag_returns_none(self, tmp_path: Path):
|
|
89
|
+
path = tmp_path / "a.mp3"
|
|
90
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100, flags=0)
|
|
91
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
92
|
+
assert _gapless(path) is None
|
|
93
|
+
|
|
94
|
+
def test_bytes_field_is_skipped_before_encoder(self, tmp_path: Path):
|
|
95
|
+
path = tmp_path / "a.mp3"
|
|
96
|
+
frame = _xing_frame(
|
|
97
|
+
MPEG1_STEREO_44100_HEADER,
|
|
98
|
+
MPEG1_SIDE_INFO_STEREO,
|
|
99
|
+
100,
|
|
100
|
+
b"LAME3.100",
|
|
101
|
+
576,
|
|
102
|
+
1105,
|
|
103
|
+
FRAMES_FLAG | BYTES_FLAG,
|
|
104
|
+
)
|
|
105
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
106
|
+
assert _gapless(path) == pytest.approx((100 * 1152 - 576 - 1105) / 44100)
|
|
107
|
+
|
|
108
|
+
def test_delay_and_padding_exceeding_samples_returns_none(self, tmp_path: Path):
|
|
109
|
+
path = tmp_path / "a.mp3"
|
|
110
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 1, b"LAME3.100", 1000, 1000)
|
|
111
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
112
|
+
assert _gapless(path) is None
|
|
113
|
+
|
|
114
|
+
def test_truncated_xing_header_returns_none(self, tmp_path: Path):
|
|
115
|
+
path = tmp_path / "a.mp3"
|
|
116
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100)[:42]
|
|
117
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE))
|
|
118
|
+
assert _gapless(path) is None
|
|
119
|
+
|
|
120
|
+
@pytest.mark.parametrize("tag_count", [1, 2])
|
|
121
|
+
def test_stacked_id3v2_tags_are_skipped(self, tmp_path: Path, tag_count: int):
|
|
122
|
+
tag = _id3v2_header(300) + bytes(300)
|
|
123
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100, b"LAME3.100", 576, 1105)
|
|
124
|
+
path = tmp_path / "a.mp3"
|
|
125
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE, tag * tag_count))
|
|
126
|
+
assert _gapless(path) == pytest.approx((100 * 1152 - 576 - 1105) / 44100)
|
|
127
|
+
|
|
128
|
+
def test_false_sync_in_junk_before_first_frame_is_ignored(self, tmp_path: Path):
|
|
129
|
+
junk = bytes([0xFF, 0xFB, 0x90, 0x00]) + bytes(20)
|
|
130
|
+
frame = _xing_frame(MPEG1_STEREO_44100_HEADER, MPEG1_SIDE_INFO_STEREO, 100, b"LAME3.100", 576, 1105)
|
|
131
|
+
path = tmp_path / "a.mp3"
|
|
132
|
+
path.write_bytes(_stream(frame, MPEG1_STEREO_44100_HEADER, MPEG1_FRAME_SIZE, junk))
|
|
133
|
+
assert _gapless(path) == pytest.approx((100 * 1152 - 576 - 1105) / 44100)
|
|
134
|
+
|
|
135
|
+
def test_non_layer3_stream_returns_none(self, tmp_path: Path):
|
|
136
|
+
layer2_header = bytes([0xFF, 0xFD, 0x90, 0x00])
|
|
137
|
+
path = tmp_path / "a.mp3"
|
|
138
|
+
path.write_bytes((layer2_header + bytes(MPEG1_LAYER2_FRAME_SIZE - 4)) * 6)
|
|
139
|
+
assert _gapless(path) is None
|