cp2077_extractor.track
Track metadata.
Classes:
|
Represents an audio track played on the radio etc. |
Functions:
|
Set the tag if the value in the existing tags differs. |
-
namedtuple
Track(artist, title, wem_name, writer='', real_artist='', other_uses=mappingproxy({}))[source] Bases:
NamedTupleRepresents an audio track played on the radio etc.
- Fields
-
__repr__() Return a nicely formatted representation string
-
property
filename_stub Track filename (without suffix), comprising the artist and track title and made filename safe.
- Return type
-
set_id3_metadata(mp3_filename, station, album_art=None)[source] Set ID3 tags on the file (artist, title, performer, writer/composer, album/station, etc.).
- Parameters
mp3_filename (
Union[str,Path,PathLike]) – The file to set metadata on.station (
str) – The name of the radio station, used as the album name.album_art (
Union[str,Path,PathLike[str],bytes,None]) – Either the path to the album art file or the raw bytes of the album art, in PNG format. Optional. DefaultNone.