Commit graph

38 commits

Author SHA1 Message Date
Serial
4d1e7be87e examples: Add missing entries to Cargo.toml 2024-05-06 13:17:23 -04:00
Serial
f17bac49b3
examples: Allow missing_docs 2024-04-23 22:12:33 -04:00
Serial
0b2d82b2c6 probe: Make module public, remove re-exports 2024-04-14 13:16:10 -04:00
Serial
cf778c1f58 tag: Remove global re-exports of tag items 2024-04-14 13:16:10 -04:00
Serial
464f459e99 misc: Remove root file re-exports 2024-04-14 13:16:10 -04:00
Serial
65851a4f93 misc: Move {Parse,Write,Global}Options to new module 2024-04-14 13:16:10 -04:00
Serial
df0be9e53e misc: Introduce prelude 2024-04-14 13:16:10 -04:00
Serial
5c69024b91 Properties: Breakup module
`FileProperties` and `ChannelMask` are no longer in the root. They are moved to `lofty::properties`.
2024-04-09 20:04:43 -04:00
Serial
586f4add11 WriteOptions: Use default() instead of new() 2024-04-03 12:52:07 -04:00
Serial
f4611ca357 misc: Introduce WriteOptions
This allows the caller to tweak how Lofty writes their tags in various ways.

As this is just a dumping ground for all sorts of format-specific settings, this is best used as an application global config that gets set once.

In its current state, it will only respect `uppercase_id3v2_chunk` and `preferred_padding` (for some formats).

`respect_read_only` and `remove_others` are defined for later use.

closes #228
2024-04-03 12:52:07 -04:00
Serial
3a9a2dea7f Probe: Introduce GlobalOptions to handle allocations and resolvers
This moves `ParseOptions::{use_custom_resolvers, allocation_limit}` to the new `GlobalOptions` struct. This makes it easier to check for certain options in places where `ParseOptions` may not be available.

`GlobalOptions` are not truly global, they only apply to the current thread.
2024-01-02 19:06:45 -05:00
Serial
cb01e82d07 ID3v2: Rename ID3v2Tag to Id3v2Tag 2023-04-28 02:17:19 -04:00
Serial
ce8c26f2b8 tag: Switch TagType variants to UpperCamelCase 2023-04-21 20:35:21 -04:00
Serial
7ac4ab4cbd Clippy: Apply lints across projects 2023-03-13 20:25:35 -04:00
Serial
4c5538bba0 Accessor: Make text getters return Cow<str> to allow for editing
This is an unfortunate compromise that needed to be made to make it possible to change the null separators in ID3v2.4 to slashes prior to returning the value.
2022-12-12 14:00:26 -05:00
Serial
7573f60a0c TaggedFile: Split methods out into TaggedFileExt trait 2022-12-10 12:18:34 -05:00
Serial
82a498f670
lofty_attr: Infer FileType::Custom when using non-internal names 2022-10-01 18:49:17 -04:00
Serial
5cd1dfc99c
lofty_attr: Remove #[lofty(always_present)] 2022-09-24 03:25:46 -04:00
Alex
ba6ef4f400
Probe: Add minimal ParseOptions (#70) 2022-09-24 02:34:22 -04:00
Colin Diesh
b407ab140c
Add example of reading album artist to tag reader (#65) 2022-09-01 00:26:06 -04:00
Serial
0e857de104
lofty_attr: Publish 2022-08-10 14:28:48 -04:00
Serial
efedf0f443
Resolve: FileResolver::guess docs 2022-07-26 21:09:52 -04:00
Alex
f48014fda8
Implement custom file resolvers (#40) 2022-07-24 16:08:46 -04:00
Serial
d36e347e46
Clippy: fix tag_stripper example 2022-06-19 11:10:30 -04:00
Serial
20e1ecf62d
Implement AudioFile for TaggedFile 2022-04-03 17:18:11 -04:00
Serial
513cce7d41
Fix inconsistencies in the examples 2022-03-15 20:52:10 -04:00
Serial
e01d875e05
Remove unwraps; Stop taking references to Copy types 2022-02-19 10:14:14 -05:00
Serial
e66ab4587d
Finalize Accessor and TagExt documentation 2022-02-19 09:39:09 -05:00
Serial
d73173fb84
Add extra check to tag_reader example; Reorganize test assets 2022-02-13 13:15:27 -05:00
Serial
a179cfe736
Start work on TagIO trait
This is the start of making Lofty more general purpose, allowing for the creation of custom tags.

This also makes `TagType::remove_from*` fallible, which makes much more sense.
2022-02-02 22:10:04 -05:00
sagudev
9deb7f27f0 fix flac bit depth 2022-01-22 21:28:09 +01:00
Serial
8021ca924c Finalize docs 2021-12-23 10:00:54 -05:00
Serial
a7d9deaa14 Make property reading optional 2021-12-21 20:20:24 -05:00
Serial
ea0f3007e8 Add tag_writer example 2021-12-20 10:56:32 -05:00
Serial
07c4bf8cbc Add tag_stripper example 2021-12-20 09:44:38 -05:00
Serial
64362615cf Add simplified getters/setters and tag reader example 2021-12-12 12:47:26 -05:00
Tianyi
ff2e0c6959 RTFM 2020-10-27 20:26:59 +00:00
Tianyi
f65addee9b RTFM 2020-10-27 19:57:27 +00:00