Commit Graph

136 Commits

Author SHA1 Message Date
Laurent Monin
c166041531 Move FILE_INFO_TAGS from class File to module picard.util.tags
It reduces the size of objects, and it doesn't seem we ever needed to change it.
2024-04-02 18:25:33 +02:00
twodoorcoupe
70e0e21450 Avoid writing syncedlyrics to other formats 2024-03-21 22:45:41 +01:00
twodoorcoupe
2f3ffee03c Improve a2 enhanced lrc support 2024-03-20 15:53:26 +01:00
twodoorcoupe
3ef7e993fa Add syllable timestamps and preserve language 2024-03-20 15:53:26 +01:00
twodoorcoupe
2c6c0785e6 Add support for SYLT ID3 tag 2024-03-20 15:53:26 +01:00
Philipp Wolfer
0332f29e79 Fixed tests for file._info changing the test files
The test was saving before loading, hence having the side effect of
altering file sizes.
2024-01-17 08:48:59 +01:00
Suryansh Shakya
94250ff086 used file object instead of self.filename 2024-01-17 01:56:35 +05:30
Suryansh Shakya
0c2db251e4 removed os import and filsize from test_wav 2024-01-16 22:33:11 +05:30
Suryansh Shakya
1df7c58e72 modified test cases for 'filesize variable 2024-01-16 16:31:33 +05:30
Suryansh Shakya
939c805c36 added '~filsize' variable 2024-01-10 22:31:46 +05:30
Philipp Wolfer
b273b116ca PICARD-2616: Add tests for releasedate tag 2023-05-22 20:46:45 +02:00
Philipp Wolfer
0b823f2443 PICARD-2535: Strip trailing null chars for Vorbis / FLAC 2023-04-18 11:16:48 +02:00
Philipp Wolfer
75871991b8 PICARD-2595: Customizable replacement for directory separators 2022-12-06 09:37:45 +01:00
Philipp Wolfer
cb339c6a4a PICARD-356: Allow user defined replacements for Windows incompatible characters 2022-12-05 17:08:56 +01:00
Philipp Wolfer
95c736a13e PICARD-2553: Add option to use underscores instead of spaces in file naming
This collapses multiple whitespace characters and underscores in a filename into a single underscore
2022-12-04 18:07:42 +01:00
Philipp Wolfer
76c2dff6b6 Fixed proper bitrate in WAVE tests
mutagen < 1.46 reports the wrong bitrate for WAVE files. Test the proper bitrate in this version, don't test the bitrate in earlier versions.
2022-10-10 12:08:10 +02:00
Philipp Wolfer
1853572a99 Replace some list usages with tuples, sets or iterators 2022-04-13 10:17:22 +02:00
Philipp Wolfer
5037ce9935 PICARD-2076: Allow ignoring the Windows filepath limit when renaming files 2022-03-08 14:00:24 +01:00
Philipp Wolfer
f20e47ae77 PICARD-2411: Remove Flac seektable if it has no seekpoints
A missing seektable is valid. Removing an otherwise empty seektable fixes the issues with software that cannot handle empty seektables.

Fully reconstructing a seek table would require decoding the Flac data.
2022-02-11 15:01:51 +01:00
Philipp Wolfer
f94c725f50 PICARD-2411: Flac seektable tests 2022-02-11 15:01:51 +01:00
Laurent Monin
2f6479747d Update headers 2022-02-07 09:41:57 +01:00
Marcin Szalowicz
fa2e443021 Add option to fix seektable for flac files
This is to fix problem with Kodi which is unable to load files
that have empty SeekTable, so by default a single SeekPoint is added.
An error message is logged if the file has no samples.
2022-02-05 17:51:00 +01:00
Philipp Wolfer
0983c9531d Set log level in tests to DEBUG
This allows pytest to capture the log output and display it in context of the test.d
2022-01-19 08:11:33 +01:00
Laurent Monin
820551d513 Move FILE_INFO_TAGS to File class and reduce code redundancy
- add a test for File._copy_file_info_tags()
2022-01-04 12:00:19 +01:00
Philipp Wolfer
a25a6fd0aa Fixed headers with fix-header.py 2021-12-21 08:38:20 +01:00
Philipp Wolfer
a4e5c7ed42 PICARD-2346: Fix ID3v2.3 files showing changes with identical tags
Fixes a regression introduced in a5fcde to optimize display of format specific metadata
2021-12-04 17:05:31 +01:00
Philipp Wolfer
1c566ca08c PICARD-2342: Fix saving MP4 and ASF files with "clear tags" and "preserve images"
Saving MP4 or ASF files failed if the files do not have existing embedded cover art and both "clear existing tags" and "keep embedded images when clearing tags" are active.
2021-11-27 15:06:39 +01:00
Philipp Wolfer
543709eab2 Various minor code cleanups
- Use generator comprehension where possible
- Prefer dict comprehension over dict([...])
- General code cleanup
2021-11-26 08:00:43 +01:00
Laurent Monin
14ce07756e Update Copyright headers, with the help of fix-headers.py script 2021-11-10 21:38:54 +01:00
Philipp Wolfer
d8406b5159 PICARD-2324: Move .wvc files before moving additional files 2021-11-09 11:02:34 +01:00
Philipp Wolfer
7cab070f74 PICARD-2324: Fix renaming of WavPack correction files 2021-11-09 08:51:25 +01:00
Philipp Wolfer
dd80c1d078 Use set comprehension where appropriate 2021-11-07 10:08:14 +01:00
Philipp Wolfer
aed015c657 Use sets in apev2 tests 2021-10-31 15:29:32 +01:00
Philipp Wolfer
cb6973cf44 Use sets instead of lists in conditionals 2021-10-31 10:17:23 +01:00
Philipp Wolfer
72f7d0ed18 Use sets for format unsupported tags 2021-10-31 09:56:14 +01:00
Laurent Monin
7c133891bd Merge pull request #1933 from phw/PICARD-2314-fix-mp4-freetext-length
PICARD-2314: Fix ~length getting written to MP4 ----:com.apple.iTunes:~length
2021-10-31 09:43:59 +01:00
Philipp Wolfer
d5f131da04 PICARD-2307: Fix ValueError for Vorbis when deleting invalid tags 2021-10-29 18:13:47 +02:00
Philipp Wolfer
7a37e25152 vorbis: empty string is not a valid Vorbis comment key 2021-10-29 18:13:47 +02:00
Philipp Wolfer
b7179d36fc Move ID3 image type functions to picard.coverart.utils 2021-10-29 18:13:16 +02:00
Philipp Wolfer
a7f0a27f92 Exclude technical variables like ~length from format supported tags
Those values are taken from technical format information and are not part of the tags. This also fixes ~length getting written to MP4 (PICARD-2314).
2021-10-29 00:11:02 +02:00
Philipp Wolfer
c059631723 Add Id3Encoding enum 2021-10-04 10:46:57 +02:00
Philipp Wolfer
f5f03a1f00 PICARD-2199: Fix saving ratings to ID3 with non-latin1 characters in email 2021-10-04 08:53:52 +02:00
Philipp Wolfer
ee06ed20f3 PICARD-2263: Save performers without role to TMCL / TIPL 2021-08-21 18:14:01 +02:00
Philipp Wolfer
6d0a052506 PICRD-257: Added format specific tests for preserve_images
Testing special handling in Vorbis and APEv2 files.
2021-06-16 08:52:55 +02:00
Philipp Wolfer
a3ebc1cb22 PICARD-257: Add option to exclude embedded images from clear_existing_tags 2021-06-16 08:52:55 +02:00
Bob Swift
3764518d7f Fix tests. 2021-06-13 17:45:21 -06:00
Philipp Wolfer
626a080254 PICARD-2174: Provide settings to File.format_specific_metadata
Allows for optimizations without having to read the settings from config on each invocation.
2021-04-30 11:43:37 +02:00
Sophist
a5fcde1dd3 PICARD-2174: Optimize implementation to display format specific metadata 2021-04-30 11:43:37 +02:00
Philipp Wolfer
dc1f46946e PICARD-2135: Fixed overwriting and deleting license tags to ID3 2021-03-09 10:30:10 +01:00
Philipp Wolfer
09d771906f PICARD-2135: Fixed overwriting and deleting WOAR frame 2021-03-09 09:16:29 +01:00