Skip to content

Commit bb09c0f

Browse files
authored
Merge pull request #67 from mmalecot/dev
v0.26.0
2 parents 6cc794f + e35b896 commit bb09c0f

File tree

15 files changed

+137
-15
lines changed

15 files changed

+137
-15
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Version 0.26.0 (2024-11-07)
2+
3+
## API
4+
5+
- Add `reader-id3v2` feature
6+
7+
## Improvements
8+
9+
- Improve Free Lossless Audio Codec (FLAC) detection when it contains ID3v2 metadata
10+
- Improve MPEG-1/2 Audio Layer 3 (MP3) detection
11+
12+
## New formats support
13+
14+
- ID3v2 (ID3)
15+
116
# Version 0.25.0 (2024-05-08)
217

318
## Fixes

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "file-format"
3-
version = "0.25.0"
3+
version = "0.26.0"
44
authors = ["Mickaël Malécot <mickael.malecot@gmail.com>"]
55
edition = "2021"
66
description = "Crate for determining the file format of a given file or stream."
@@ -21,6 +21,7 @@ reader = [
2121
"reader-cfb",
2222
"reader-ebml",
2323
"reader-exe",
24+
"reader-id3v2",
2425
"reader-mp4",
2526
"reader-pdf",
2627
"reader-rm",
@@ -33,6 +34,7 @@ reader-asf = []
3334
reader-cfb = []
3435
reader-ebml = []
3536
reader-exe = []
37+
reader-id3v2 = []
3638
reader-mp4 = []
3739
reader-pdf = []
3840
reader-rm = []

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Add this to your `Cargo.toml`:
5151

5252
```toml
5353
[dependencies]
54-
file-format = "0.25"
54+
file-format = "0.26"
5555
```
5656

5757
## Crate features
@@ -68,6 +68,7 @@ identification.
6868
- `reader-cfb` - Enables Compound File Binary (CFB) based file formats detection.
6969
- `reader-ebml` - Enables Extensible Binary Meta Language (EBML) based file formats detection.
7070
- `reader-exe` - Enables MS-DOS Executable (EXE) based file formats detection.
71+
- `reader-id3v2` - Enables ID3v2 (ID3) based file formats detection.
7172
- `reader-mp4` - Enables MPEG-4 Part 14 (MP4) based file formats detection.
7273
- `reader-pdf` - Enables Portable Document Format (PDF) based file formats detection.
7374
- `reader-rm` - Enables RealMedia (RM) based file formats detection.
@@ -353,6 +354,7 @@ identification.
353354
- Android Binary XML (AXML)
354355
- BitTorrent (Torrent)
355356
- CD Audio (CDA)
357+
- ID3v2 (ID3)
356358
- Meta Information Encapsulation (MIE)
357359
- TASTy
358360
- Windows Shortcut (LNK)

fixtures/audio/sample.mp3

-4 Bytes
Binary file not shown.

fixtures/audio/sample1.mp3

3 Bytes
Binary file not shown.

fixtures/audio/sample2.flac

22 Bytes
Binary file not shown.

fixtures/audio/sample2.mp3

22 Bytes
Binary file not shown.

fixtures/metadata/sample.id3

22 Bytes
Binary file not shown.

src/formats.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,13 @@ formats! {
10051005
extension = "icc"
10061006
kind = Other
10071007

1008+
format = Id3v2
1009+
name = "ID3v2"
1010+
short_name = "ID3"
1011+
media_type = "application/x-id3v2"
1012+
extension = "id3"
1013+
kind = Metadata
1014+
10081015
format = ImpulseTrackerModule
10091016
name = "Impulse Tracker Module"
10101017
short_name = "IT"

0 commit comments

Comments
 (0)