Skip to content

Commit

Permalink
oh
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Apr 20, 2024
1 parent fe2541d commit 5cc44b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testdata/Tagger/update.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env python

from typing import Any

import mutagen
import mutagen.id3
from typing import Any


def write_tag_with_description(f: Any, name: str, value: str | None) -> None:
Expand All @@ -24,8 +25,8 @@ def write_tag_with_description(f: Any, name: str, value: str | None) -> None:
f.save()

f = mutagen.File("track2.m4a") # type: ignore
f.tags["----:net.sunsetglow.rose:COMPOSITIONDATE"] = "1984".encode()
f.tags["----:com.apple.iTunes:CATALOGNUMBER"] = "DN-420".encode()
f.tags["----:net.sunsetglow.rose:COMPOSITIONDATE"] = b"1984"
f.tags["----:com.apple.iTunes:CATALOGNUMBER"] = b"DN-420"
f.save()

f = mutagen.File("track3.mp3") # type: ignore
Expand Down

0 comments on commit 5cc44b8

Please sign in to comment.