Philipp Wolfer
df8010cf02
PICARD-1826: Consider .ogg files as generic Ogg container files
...
Fixes e.g. loading Ogg Opus files with .ogg extension, instead of assuming .ogg is always Ogg Vorbis.
2020-05-24 16:34:38 +02:00
Philipp Wolfer
651bbad60d
Merge pull request #1534 from phw/PICARD-1812-riff-info
...
PICARD-1812: Save RIFF INFO tags for WAVE
2020-05-13 19:11:08 +02:00
Philipp Wolfer
d79d142a04
Refactor picard.formats and picard.coverart.providers to avoid circular dependencies
2020-05-13 17:04:11 +02:00
Philipp Wolfer
1542d4d7c0
PICARD-1812: Option to remove RIFF INFO from WAVE files
2020-05-13 11:08:07 +02:00
Philipp Wolfer
b8644aad3d
PICARD-1812: Options for saving RIFF INFO to WAVE
2020-05-13 11:08:07 +02:00
Philipp Wolfer
909ea667b8
Check code style of tests with flake8
2020-05-13 11:03:13 +02:00
Philipp Wolfer
880a3c3443
Added ID3 tests for deleting tags in __rename_freetext
2020-03-06 16:45:32 +01:00
Philipp Wolfer
bb4c417d04
PICARD-1786: Fix ID3 deleting multiple TIPL items with same role
...
Added tests for deleting TIPL entries from ID3, fixed issue of multiple people with same role not getting removed.
2020-03-06 16:45:25 +01:00
Philipp Wolfer
6e8f4ed5d2
Improve format test coverage
2020-03-06 13:47:38 +01:00
Philipp Wolfer
83be0ae5a3
Added tests for loading unsupported images from tags
2020-03-06 12:46:30 +00:00
Philipp Wolfer
7f6db1bde6
PCIARD-1783: Fixed regex escaping for tag descriptions in Vorbis and APEv2
2020-03-04 07:02:06 +00:00
Philipp Wolfer
57c8fe209a
PICARD-1783: Fix deletion of comment, performer and lyrics tags
...
This adds tests for deleting comment, performer and lyrics tags and fixes various issues with this in ID3, MP4, Vorbis and APEv2.
2020-03-04 07:02:06 +00:00
Laurent Monin
6b5e852a60
Run fix-header on *.py
2020-02-24 10:25:09 +01:00
Laurent Monin
3f25bda3c8
Fix a bunch of flake8 warnings, mostly cosmetic changes
2020-02-21 21:43:40 +01:00
Laurent Monin
0631e5ff28
Move copy_file_tmp() and remove_file_tmp() to PicardTestCase
...
It helps to reduce code redundancy.
2020-02-08 18:04:39 +01:00
Philipp Wolfer
c52519d91a
PICARD-239: Handle tags like "comment" and "comment:" the same
...
Some of Picard's tag names allow an additional description separated by a colon, e.g. "comment:desc". In case the description part is empty and the tag ends on a colon this is now treated the same as without any colon. So "lyrics" and "lyrics:" are the same tag.
Handling this in Metadata makes this change immediately available in scripting and to all formats. Script using both forms will still work.
2020-01-26 17:07:42 +01:00
Philipp Wolfer
8f745f1a0d
PICARD-1711: Fix deleting lyrics tag from ASF, APE, ID3 files
2020-01-23 12:10:15 +01:00
Philipp Wolfer
4d85c2e31f
PICARD-1589: Support language for ID3 comments.
...
Adds syntax "comment:{language}:{description}" in addition to existing "comment:{description}" for comment tag names.
2020-01-23 07:57:41 +01:00
Zenara Daley
30fee6e38f
PICARD-1521: Add TOFN to ID3 metadata ( #1401 )
...
* Add TOFN to ID3 metadata
Co-authored-by: Andrew Wiggins <xandrewwiggins@gmail.com >
Co-authored-by: Wyll Brimacombe <wyll.brimacombe@gmail.com >
Co-authored-by: Raunaq Gupta <raunaqg10@gmail.com >
Co-authored-by: Matt Ehrler <mehrler12@gmail.com >
* Add internal tag name; check for expected value in test
Co-authored-by: Andrew Wiggins <xandrewwiggins@gmail.com >
Co-authored-by: Wyll Brimacombe <wyll.brimacombe@gmail.com >
Co-authored-by: Raunaq Gupta <raunaqg10@gmail.com >
Co-authored-by: Matt Ehrler <mehrler12@gmail.com >
2019-12-09 23:38:22 +01:00
Philipp Wolfer
0847ee0a35
PICARD-125: Saving tags for AC3 can be configured
...
Saving APEv2 tags to AC3 can be disabled, existing tags can be removed.
2019-10-28 16:08:11 +01:00
Philipp Wolfer
39843f1f42
PICARD-125: Support AC3 files with APEv2 tags
2019-10-28 15:45:09 +01:00
Philipp Wolfer
ad0c1d88ef
PICARD-1628: Make saving APEv2 to AAC optional
...
Only some software supports APEv2 tags in AAC files, for some software it even causes issues with length calculation or playback. Let the user configure whether to save APEv2 to AAC, not save APEv2 to AAC or completely remove APEv2 from AAC.
2019-10-28 15:38:47 +01:00
Philipp Wolfer
e1688f95ce
AAC: Refactored code, moved mutagen specific code to mutagenext
2019-10-28 15:38:47 +01:00
Philipp Wolfer
3352e7e86e
PICARD-1643: Fixed saving performer tags to Vorbis and APEv2
...
Tags in the format of performer:instrument were not saved to Vorbis and APEv2 tags if instrument contained non-ASCII characters.
2019-10-16 18:43:36 +02:00
Philipp Wolfer
b11b07160d
Fixed up left-over Python 2 unicode string declarations
2019-09-26 10:58:54 +02:00
Philipp Wolfer
05ffd72884
tests: use assertIn and assertNotIn
2019-09-13 22:09:36 +02:00
Philipp Wolfer
d304e30dc2
PICARD-1594: Set ~video variable on file loading based on extension
...
This does not give a 100% coverage of detecting files which include video, but at least those files are supposed to be video files.
2019-09-11 08:49:00 +02:00
Philipp Wolfer
103b7315e9
Test unsupported tag is really unsupported
2019-09-08 13:33:19 +02:00
Philipp Wolfer
1f19ee4b94
Increased test coverage of format tests
2019-09-07 17:46:23 +02:00
Philipp Wolfer
feec4cb299
Do not use file as variable name
2019-09-06 10:47:07 +02:00
Philipp Wolfer
c07168f734
PICARD-1586: Preserve case for ReplayGain tags in ID3, MP4, ASF
2019-09-06 10:47:07 +02:00
Philipp Wolfer
9d0e1232c6
PICARD-1586: ReplayGain tags case-insensitive for ASF and MP4
2019-09-06 10:47:07 +02:00
Philipp Wolfer
ec777be2cc
PICARD-1586: ReplayGain tags case-insensitive for ID3
2019-09-06 10:47:07 +02:00
Philipp Wolfer
a4990746a7
PICARD-1586: Support R128_* tags only for Opus
...
Test other formats for not supporting it.
2019-09-06 10:47:07 +02:00
Philipp Wolfer
5b53af16df
PICARD-1586: Added basic tag mapping for ReplayGain tags
2019-09-06 10:47:07 +02:00
Philipp Wolfer
dc0ec84401
isort: Consistently use two blank lines after import
2019-04-04 08:35:23 +02:00
Philipp Wolfer
dd4da2aa47
Updated isort config to put test imports in separate section
2019-04-04 08:32:22 +02:00
Philipp Wolfer
05fc98c64a
Run isort over all files
2019-04-03 21:19:12 +02:00
Philipp Wolfer
dd12220e1e
PICARD-1497: Mark invalid Vorbis keys as unsupported tags
2019-03-28 22:52:59 +01:00
Philipp Wolfer
10f896d327
Formats test code cleanup
...
Addressed review comments
2019-03-28 14:18:14 +01:00
Philipp Wolfer
09fe255891
Renamed base test case classes for consistency
2019-03-28 11:45:42 +01:00
Philipp Wolfer
a268b13ceb
Refactored cover art file tests into format specific test files
2019-03-28 11:45:42 +01:00
Philipp Wolfer
a1313bef84
PEP8 fixes
2019-03-28 11:45:42 +01:00
Philipp Wolfer
3b3980adb0
Added tests for technical file info tags
2019-03-28 11:45:42 +01:00
Philipp Wolfer
8fdfcf1ffe
Restructure format tests into separate files
2019-03-28 11:10:06 +01:00