Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ID3 tags GENRE and YEAR #41

Open
Koddom opened this issue Feb 7, 2024 · 0 comments
Open

Adding ID3 tags GENRE and YEAR #41

Koddom opened this issue Feb 7, 2024 · 0 comments

Comments

@Koddom
Copy link

Koddom commented Feb 7, 2024

Добавьте код для заполнения тегов года выпуска и жанра. Правки необходимо внести в class Track: в методе def write_track_id3(self, track_fp, album_artwork:bytes = None):
""" Write track meta """

#SET TRACK NO
.....

# SET GENRE
    if self.genre:
        frame = mutagen.id3.TCON(encoding=3)
        frame.append(self.genre)
        audio.tags.add(frame)

# SET YEAR
    if self.release_date:
        frame = mutagen.id3.TYER(encoding=3)
        date = self.release_date
        frame.append(date)
        audio.tags.add(frame)

#SET ARTWORK
.....

@Koddom Koddom closed this as completed Feb 7, 2024
@Koddom Koddom reopened this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant