audiometa-python 1.4.4__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.4/audiometa_python.egg-info → audiometa_python-1.4.5}/PKG-INFO +1 -1
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/__init__.py +2 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/_audio_file.py +6 -2
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_duration_in_sec.py +19 -6
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5/audiometa_python.egg-info}/PKG-INFO +1 -1
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa_python.egg-info/SOURCES.txt +2 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/pyproject.toml +6 -5
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/LICENSE +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/README.md +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/__main__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/cli.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/exceptions.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_MetadataManager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/_RatingSupportingMetadataManager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_Id3v2Manager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v1_preserver.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_constants.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_flac_handler.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_reader.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/id3v2/_id3v2_writer.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_RiffManager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_bext_chunk.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_constants.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_file_structure.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/riff/_riff_info_chunk.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/_VorbisManager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/vorbis/_vorbis_constants.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/_Id3v1Manager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/_constants.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata_key.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/assets/create_test_files.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/common/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/common/audio_file_creator.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/common/external_tool_runner.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_header_verifier.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_deleter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_getter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v1/id3v1_metadata_setter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_frame_manual_creator.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_header_verifier.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_deleter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_getter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/id3v2/id3v2_metadata_setter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_header_verifier.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_manual_metadata_creator.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_deleter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_getter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/riff/riff_metadata_setter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/scripts/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/technical_info_inspector.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/temp_file_with_metadata.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_header_verifier.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_deleter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_getter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/vorbis/vorbis_metadata_setter.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/conftest.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_command_structure_errors.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_file_access_errors.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_format_output_errors.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_input_validation_errors.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_missing_fields_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_multiple_files_errors.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_rating_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/error_handling/test_year_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_basic.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_comprehensive.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_formats.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_metadata_content.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_multiple_files.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_options.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_unified.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_delete.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_formatting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_help.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_basic.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_comprehensive.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_force_format.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_integer_fields.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_list_fields.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_rating.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_string_fields.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/scenarios/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/scenarios/test_user_scenarios.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_core_workflows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_deletion_workflows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_error_handling_workflows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_format_specific_workflows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/workflows/test_rating_workflows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_delete_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_reading_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_reading_field.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/flac/test_flac_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_delete_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_reading_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_reading_field.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/mp3/test_mp3_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_delete_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_reading_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_reading_field.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/audio_format/wav/test_wav_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/conftest.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_audio_format_all.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_audio_format_header_deletion.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_basic_functionality.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/delete_all_metadata/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/test_encoding.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/encoding/test_special_characters_edge_cases.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/test_include_headers.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/options/test_include_technical.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_audio_formats.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_binary_data_filtering.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_consistency.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_edge_cases.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_get_full_metadata.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_performance.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_riff_bext.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/get_full_metadata/test_structure.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/album_artists/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/artists/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/bpm/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/comment/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/composer/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/copyright/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/description/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/disc_number/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/field_not_supported/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/reading/test_smart_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/genre/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/isrc/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/language/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/lyrics/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_artistid/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/musicbrainz_trackid/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/originator/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/publisher/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_100_proportional.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_255_non_proportional.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/reading/test_base_255_proportional.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_id3v2.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/rating/writing/test_comprehensive.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/release_date/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/test_metadata_field_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/title/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/test_edge_cases.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/reading/test_metadata_format.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/test_deleting.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/metadata_field/track_number/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v1.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v2_3.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_id3v2_4.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_performance_large_data.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_smart_parsing_scenarios.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/reading/test_unicode_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v1.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v2_3.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_id3v2_4.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_riff.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/metadata_format/test_vorbis.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/multiple_values/writing/test_large_values.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/test_read_multiple_metadata.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/reading/test_reading_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/test_reading.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/real_audio_files/test_writing.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/conftest.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_checking/test_file.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/flac_md5/md5_repair/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_bitrate.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_channels.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/technical_info/test_sample_rate.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/test_audio_file.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_forced_format.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_multiple_format_preservation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/test_partial_update.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_flac_sync.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_mp3_sync.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/sync_strategy/test_wav_sync.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/test_cleanup_strategy.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/test_preserve_strategy.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/test_fail_behavior.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/integration/writing/writing_strategies/unsupported_fields/test_strategy_specific.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_bitrate.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_channels.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_error_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_file_size.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_format_name.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/technical_info/test_sample_rate.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_context_manager.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_file_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_is_audio_file.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_operations.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/audio_file/test_path_handling.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/test_cli_colorize.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/cli/test_expand_file_patterns.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/conftest.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_id3v1.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_id3v2.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_riff.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/header_info/test_vorbis.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/disc_number/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/isrc/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/multiple_values/writing/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_artistid/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_trackid/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/musicbrainz_uuid/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/reading/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/reading/test_normalization.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/test_rating_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/rating/writing/test_validation.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/release_date/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/test_type_validation_exception.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/test_validation.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/__init__.py +0 -0
- {audiometa_python-1.4.4 → 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.4 → 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.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/metadata_managers/test_riff_configuration_error.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/test_get_supported_unified_metadata_field_ids.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_disc_number_read.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_raw_metadata_sanitizer.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/unit/utils/test_unified_metadata_field_schema.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/disc_number_read.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/flac_md5_state.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/id3v1_genre_code_map.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/metadata_format.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/metadata_writing_strategy.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/mutagen_exception_handler.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/__init__.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/base.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/config.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/macos.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/ubuntu.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/os_dependencies_checker/windows.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/rating_profiles.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/raw_metadata_sanitizer.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/tool_path_resolver.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/types.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/unified_metadata_field_schema.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/utils/unified_metadata_key.py +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa_python.egg-info/dependency_links.txt +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa_python.egg-info/entry_points.txt +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa_python.egg-info/requires.txt +0 -0
- {audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa_python.egg-info/top_level.txt +0 -0
- {audiometa_python-1.4.4 → 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>
|
|
@@ -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,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
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Gapless MP3 duration from the Xing/Info frame and its LAME or ffmpeg (Lavc/Lavf) extension.
|
|
2
|
+
|
|
3
|
+
mutagen only subtracts encoder delay and padding when the LAME extension's encoder string starts with
|
|
4
|
+
"LAME"; ffmpeg writes the same extension with "Lavc"/"Lavf", so mutagen over-reports those files.
|
|
5
|
+
Frame sync is taken from mutagen's MPEGInfo.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
from mutagen.mp3 import MPEGInfo
|
|
11
|
+
|
|
12
|
+
_MPEG1_VERSION = 1.0
|
|
13
|
+
_LAYER3 = 3
|
|
14
|
+
_MONO_MODE = 3
|
|
15
|
+
_MPEG1_SAMPLES_PER_FRAME = 1152
|
|
16
|
+
_MPEG2_SAMPLES_PER_FRAME = 576
|
|
17
|
+
_FRAME_HEADER_SIZE = 4
|
|
18
|
+
_READ_SIZE = 512
|
|
19
|
+
_XING_TAGS = (b"Xing", b"Info")
|
|
20
|
+
_XING_FRAMES_FLAG = 0x1
|
|
21
|
+
_XING_BYTES_FLAG = 0x2
|
|
22
|
+
_XING_TOC_FLAG = 0x4
|
|
23
|
+
_XING_SCALE_FLAG = 0x8
|
|
24
|
+
_XING_TOC_SIZE = 100
|
|
25
|
+
|
|
26
|
+
_LAME_ENCODER_PREFIXES = (b"LAME", b"L3.99", b"Lavc", b"Lavf")
|
|
27
|
+
_LAME_DELAY_PADDING_OFFSET = 21
|
|
28
|
+
_LAME_DELAY_PADDING_SIZE = 3
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def read_mp3_gapless_duration(path: str | Path, info: MPEGInfo) -> float | None:
|
|
32
|
+
"""Return the gapless duration in seconds, or None if the first frame has no Xing/Info frame count."""
|
|
33
|
+
if info.layer != _LAYER3:
|
|
34
|
+
return None
|
|
35
|
+
|
|
36
|
+
with Path(path).open("rb") as f:
|
|
37
|
+
f.seek(info.frame_offset)
|
|
38
|
+
buf = f.read(_READ_SIZE)
|
|
39
|
+
|
|
40
|
+
mono = info.mode == _MONO_MODE
|
|
41
|
+
if info.version == _MPEG1_VERSION:
|
|
42
|
+
side_info_size = 17 if mono else 32
|
|
43
|
+
samples_per_frame = _MPEG1_SAMPLES_PER_FRAME
|
|
44
|
+
else:
|
|
45
|
+
side_info_size = 9 if mono else 17
|
|
46
|
+
samples_per_frame = _MPEG2_SAMPLES_PER_FRAME
|
|
47
|
+
|
|
48
|
+
xing = _FRAME_HEADER_SIZE + side_info_size
|
|
49
|
+
if buf[xing : xing + 4] not in _XING_TAGS or len(buf) < xing + 12:
|
|
50
|
+
return None
|
|
51
|
+
flags = int.from_bytes(buf[xing + 4 : xing + 8], "big")
|
|
52
|
+
if not flags & _XING_FRAMES_FLAG:
|
|
53
|
+
return None
|
|
54
|
+
frames = int.from_bytes(buf[xing + 8 : xing + 12], "big")
|
|
55
|
+
|
|
56
|
+
pos = xing + 12
|
|
57
|
+
if flags & _XING_BYTES_FLAG:
|
|
58
|
+
pos += 4
|
|
59
|
+
if flags & _XING_TOC_FLAG:
|
|
60
|
+
pos += _XING_TOC_SIZE
|
|
61
|
+
if flags & _XING_SCALE_FLAG:
|
|
62
|
+
pos += 4
|
|
63
|
+
|
|
64
|
+
delay = padding = 0
|
|
65
|
+
delay_padding = buf[pos + _LAME_DELAY_PADDING_OFFSET : pos + _LAME_DELAY_PADDING_OFFSET + _LAME_DELAY_PADDING_SIZE]
|
|
66
|
+
if buf[pos:].startswith(_LAME_ENCODER_PREFIXES) and len(delay_padding) == _LAME_DELAY_PADDING_SIZE:
|
|
67
|
+
delay = (delay_padding[0] << 4) | (delay_padding[1] >> 4)
|
|
68
|
+
padding = ((delay_padding[1] & 0x0F) << 8) | delay_padding[2]
|
|
69
|
+
|
|
70
|
+
samples = frames * samples_per_frame - delay - padding
|
|
71
|
+
if samples <= 0:
|
|
72
|
+
return None
|
|
73
|
+
return float(samples / info.sample_rate)
|
|
@@ -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>
|
|
@@ -391,6 +391,7 @@ audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/__init__
|
|
|
391
391
|
audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/test_track_number_validation.py
|
|
392
392
|
audiometa/test/tests/unit/utils/__init__.py
|
|
393
393
|
audiometa/test/tests/unit/utils/test_disc_number_read.py
|
|
394
|
+
audiometa/test/tests/unit/utils/test_mp3_gapless_duration.py
|
|
394
395
|
audiometa/test/tests/unit/utils/test_raw_metadata_sanitizer.py
|
|
395
396
|
audiometa/test/tests/unit/utils/test_unified_metadata_field_schema.py
|
|
396
397
|
audiometa/utils/__init__.py
|
|
@@ -399,6 +400,7 @@ audiometa/utils/flac_md5_state.py
|
|
|
399
400
|
audiometa/utils/id3v1_genre_code_map.py
|
|
400
401
|
audiometa/utils/metadata_format.py
|
|
401
402
|
audiometa/utils/metadata_writing_strategy.py
|
|
403
|
+
audiometa/utils/mp3_gapless_duration.py
|
|
402
404
|
audiometa/utils/mutagen_exception_handler.py
|
|
403
405
|
audiometa/utils/rating_profiles.py
|
|
404
406
|
audiometa/utils/raw_metadata_sanitizer.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "audiometa-python"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.5"
|
|
8
8
|
description = "A comprehensive Python library for reading and writing audio metadata across multiple formats"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -58,7 +58,7 @@ Repository = "https://github.com/BehindTheMusicTree/audiometa"
|
|
|
58
58
|
Issues = "https://github.com/BehindTheMusicTree/audiometa/issues"
|
|
59
59
|
|
|
60
60
|
[tool.bumpversion]
|
|
61
|
-
current_version = "1.4.
|
|
61
|
+
current_version = "1.4.5"
|
|
62
62
|
commit = true
|
|
63
63
|
tag = true
|
|
64
64
|
tag_name = "v{new_version}"
|
|
@@ -97,7 +97,7 @@ line_length = 120
|
|
|
97
97
|
max-line-length = 120
|
|
98
98
|
|
|
99
99
|
[tool.ruff]
|
|
100
|
-
# Shared rule set in baselines/ruff.toml (
|
|
100
|
+
# Shared rule set in baselines/ruff.toml (managed by copier update).
|
|
101
101
|
extend = "baselines/ruff.toml"
|
|
102
102
|
|
|
103
103
|
[tool.ruff.lint.per-file-ignores]
|
|
@@ -109,9 +109,10 @@ extend = "baselines/ruff.toml"
|
|
|
109
109
|
# T201 (print) is acceptable in demo scripts - they are CLI/demo tools, not library code
|
|
110
110
|
"scripts/run_demo_tape.py" = ["T201"]
|
|
111
111
|
"scripts/demo_repl.py" = ["T201"]
|
|
112
|
-
"scripts/check_lint_baseline.py" = ["T201"]
|
|
113
112
|
# Release script: CLI tool; relax exception/literal and magic-number rules for clarity
|
|
114
113
|
"scripts/prepare_release.py" = ["TRY003", "EM101", "EM102", "PLR2004", "DTZ011", "RUF005", "T201"]
|
|
114
|
+
"scripts/changelog.py" = ["TRY003", "EM101", "EM102", "INP001"]
|
|
115
|
+
"scripts/tests/**" = ["INP001", "PLR2004", "DTZ011"]
|
|
115
116
|
|
|
116
117
|
[tool.mypy]
|
|
117
118
|
python_version = "3.12"
|
|
@@ -158,7 +159,7 @@ module = "mutagen.*"
|
|
|
158
159
|
ignore_missing_imports = true
|
|
159
160
|
|
|
160
161
|
[tool.pytest.ini_options]
|
|
161
|
-
testpaths = ["audiometa/test/tests"]
|
|
162
|
+
testpaths = ["audiometa/test/tests", "scripts/tests"]
|
|
162
163
|
python_files = ["test_*.py"]
|
|
163
164
|
python_classes = ["Test*"]
|
|
164
165
|
python_functions = ["test_*"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/_rating_supporting/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/manager/id3v1/id3v1_raw_metadata_key.py
RENAMED
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/assets/create_test_files.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/scripts/__init__.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/technical_info_inspector.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/helpers/temp_file_with_metadata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/__init__.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_formats.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_options.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/read/test_unified.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_delete.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/test_formatting.py
RENAMED
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/__init__.py
RENAMED
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/cli/write/test_rating.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{audiometa_python-1.4.4 → audiometa_python-1.4.5}/audiometa/test/tests/e2e/scenarios/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|