Commit Graph

141 Commits

Author SHA1 Message Date
61ed295af8 Merge remote-tracking branch 'poiru/master' 2012-07-14 21:09:54 +02:00
674ae0fa6d Merge remote-tracking branch 'kensington/master' 2012-07-14 21:06:08 +02:00
411d318f34 Merge remote-tracking branch 'robinst/dont-copy-from-id3v1-when-only-saving-id3v2' 2012-07-14 21:03:16 +02:00
fd818857e0 More Musepack tests 2012-07-11 14:15:12 +02:00
930168f990 Refactoring of the Musepack SV8 properties code 2012-07-11 14:13:41 +02:00
7279b4fb7b Don't duplicate from ID3v1 to ID3v2 when saving only ID3v2
When saving only v2 with stripOthers (which means stripping v1), the
data from v1 would still be duplicated to v2. Likewise for the other way
around.

This is not the expected outcome when e.g. a frame was removed in v2,
because it would be added again on save from the v1 data. The test shows
that.

This changes save to only duplicate the data when the other tag type
will not be stripped.
2012-06-10 18:53:25 +02:00
b5ad68d64b Add custom 'check' target that depends on the test_runner target for backwards compatibility. 2012-05-17 03:42:36 +10:00
5bcfecb6cc Use ctest instead of custom target. 2012-05-16 04:00:22 +10:00
06597123b8 Remove trailing whitespace 2012-04-19 13:09:45 +03:00
e5ede410bc Tabs to spaces 2012-04-19 13:04:42 +03:00
8e67b40bdc Fix compilation errors 2012-03-17 10:45:52 +01:00
f5a2518273 Fixed handling of UnknownFrames in ID3v2.
- If an unknown frame with id "XXXX" occurs, an entry
"UNKNOWN/XXXX" is added to unsupportedData().
The removeUnsupportedProperties() method in turn
removes all unknown frames with id "XXXX" if it
encounters a string "UNKNOWN/XXXX" in the given list.

- Implemented findByDescription() to UnsynchronizedLyricsFrame
in order to support removal of lyrics frames with unsupported
keys.

- Adapted id3v2 test case to new QuodLibet policy.
2012-02-26 19:21:57 +01:00
b8d5246f88 Moved APE test to correct place; added MOD tag test. 2012-02-25 18:46:19 +01:00
05b5e06928 added APE tag PropertyMap test 2012-02-25 18:32:00 +01:00
d28cc83fb4 Added another test for ID3v2 PropertyMap interface; fixed various bugs 2012-02-25 18:22:17 +01:00
495a028da3 removed debug messages 2012-02-19 15:15:25 +01:00
23d303a896 fixed bugs preventing tests from running 2012-02-19 15:13:31 +01:00
70c3264279 fixed tests 2012-02-15 22:09:28 +01:00
cfa5ac6569 Fixed id3v2 test 2012-02-15 21:56:02 +01:00
ea41cd8903 Merge remote-tracking branch 'official/master' 2012-01-14 20:57:15 +01:00
d904281c6b Make it possible to generate an XML report 2012-01-14 10:16:54 +01:00
c4cef55158 Added tests and information about ignored id3 frames.
The ID3v2::toDict() function now has an optional
StringList* argument which will contain information
about frames that could not be converted to the dict
interface.
There are some dict tests for APE and FLAC now, and the
ID3v2 test was enlarged.
2012-01-01 14:42:48 +01:00
292a377d1e Merge remote-tracking branch 'official/master' 2011-10-30 18:28:52 +01:00
6ea8599313 Detect RIFF files with invalid chunk sizes
The bug report has a WAVE file with zero-sized 'data' chunk, which causes
TagLib to iterate over the file, 8 bytes in each iteration. The new code
adds a check for the chunk name, which forces it to mark the file as
invalid if the chunk name doesn't contain ASCII characters.

https://bugs.kde.org/show_bug.cgi?id=283412
2011-10-08 18:41:15 +02:00
58db919e43 More support for the unified dictionary interface.
Addded fromDict() function to ID3v2Tag. Added fromDict() and
toDict() functions to the TagUnion class (uses the first non-empty tag).
Added fromDict() and toDict() functions for the generic Tag class, only
handling common tags without duplicates. Addded preliminary mp3 test
case. Python3 bindings now available on my github site.
2011-08-27 01:18:21 +02:00
b262180857 Some preliminary work for unified dictionary tag interface support.
- toDict() and fromDict() for XiphComments
- toDict() for ID3v2 Tags
2011-08-26 21:48:40 +02:00
4868bb5690 ByteVector::replace: test shrinking 2011-08-06 19:43:17 +02:00
028f831417 Basic tests for ByteVector::replace() 2011-08-05 18:47:53 +02:00
a04d7d0bbc Merge branch 'master' of https://github.com/taglib/taglib
Conflicts:
	taglib/CMakeLists.txt
	tests/CMakeLists.txt
2011-06-24 23:59:11 +02:00
dd846904cb Remove the options to disable MP4/ASF support 2011-06-24 08:49:50 +02:00
af92db9dc0 IT: unit tests 2011-06-24 01:31:15 +02:00
2d6274a36a Test FLAC: cleanup copied file 2011-06-24 01:21:17 +02:00
9c27c45eb8 IT: strings require term. NUL. mod files: tableLength -> lengthInPatterns
Also added enums for S3M/IT/XM flags.
2011-06-24 01:11:10 +02:00
e71806b6df IT: volume is only a byte in size 2011-06-23 20:48:04 +02:00
26613473cf forgot to remove debug code 2011-06-23 20:17:54 +02:00
561cfdb0ec S3M: unit tests and bug fixes (NUL char. is not optional in S3M strings) 2011-06-23 20:08:05 +02:00
7236ef4d0f S3M+IT: fix reading, IT: untested support for message writing
IT: reading was off starting with global volume because of wrong read size.
S3M+IT: correctly read the number of used patterns.
IT: fixed reading of message tag and implemented writing of message tag
(not tested yet).

I also added S3M+IT test files. TODO: Unit tests using them.
2011-06-23 05:41:23 +02:00
d1cb8ae09d IT: support channels property 2011-06-20 02:19:16 +02:00
6afb7c04b3 comment writing support and more tests for mod and xm 2011-06-19 04:27:51 +02:00
5ad69f6f2a fixed mod property names and added unit test for xm 2011-06-18 03:31:49 +02:00
fe356c31b4 added unit test for one flavour of .mod files 2011-06-17 05:18:49 +02:00
8eb32577bd Merge branch 'abstract-io' 2011-06-09 18:58:05 +02:00
8ed9b0da2c Support for reading ALAC audio properties 2011-06-09 18:41:43 +02:00
93564a2daa ALAC file encoded by iTunes 2011-06-09 18:40:22 +02:00
0a790f0017 Add a (failing) test for reading ALAC audio properties 2011-06-08 19:03:43 +02:00
65ca29b3e2 Add a ByteVector-backed stream class 2011-04-12 14:28:02 +02:00
4cda0eeb7b Make it possible to run the test suite out of the source tree 2011-04-11 18:32:40 +02:00
8878c9158c Upgrade IPLS (2.3) to TIPL (2.4) 2011-04-05 17:08:25 +02:00
3715b96477 Protect against incorrect ID3v2 version parameter 2011-04-05 15:36:23 +02:00
aa57db3a39 Convert frames TIPL and TMCL (2.4) to IPLS (2.3) 2011-04-05 15:16:17 +02:00