vfmt: весь код в формате V master (без изменений логики)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c9184aeb2
commit
6161a7faaa
12 files changed
+405
-287
No files matched your search
+6
-8
@@ -27,7 +27,6 @@ import os { File }
|
||||
|
||||
const start_idx = 10
|
||||
|
||||
|
||||
pub fn (mut tag ID3v23) add_frame(frame Frame) {
|
||||
name := EnumID3v23.from(frame.name.to_lower()) or { EnumID3v23.unknown }
|
||||
|
||||
@@ -84,7 +83,6 @@ pub fn (mut id3v23 ID3v23) encode_embed_tags() {
|
||||
encode_embed_tags[ID3v23](mut id3v23)
|
||||
}
|
||||
|
||||
|
||||
// Заполнение тэга
|
||||
pub fn (mut id3v23 ID3v23) fill_tags(mut audio File) {
|
||||
dump_data[ID3v23](mut id3v23, mut audio)
|
||||
@@ -93,12 +91,12 @@ pub fn (mut id3v23 ID3v23) fill_tags(mut audio File) {
|
||||
// Конвертировать ID3 v2.3 в ID3 v1
|
||||
pub fn (id3v23 ID3v23) to_v1() ID3v1 {
|
||||
return ID3v1{
|
||||
genre: id3v23.tcon.data
|
||||
title: id3v23.tit2.data
|
||||
artist: id3v23.tpe2.data
|
||||
album: id3v23.talb.data
|
||||
track: id3v23.trck.data.split("/")[0]
|
||||
year: id3v23.tyer.data
|
||||
genre: id3v23.tcon.data
|
||||
title: id3v23.tit2.data
|
||||
artist: id3v23.tpe2.data
|
||||
album: id3v23.talb.data
|
||||
track: id3v23.trck.data.split('/')[0]
|
||||
year: id3v23.tyer.data
|
||||
comment: id3v23.txxx.data
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user