Reader

Inheritance diagram of musify.libraries.local.track.tags.reader

Implements all functionality pertaining to reading metadata/tags/properties for a LocalTrack.

Classes:

TagReader(file,Β tag_map[,Β remote_wrangler])

Functionality for reading tags/metadata/properties from a mutagen object.

class musify.libraries.local.track.tags.reader.TagReader(file, tag_map, remote_wrangler=None)

Bases: TagProcessor, ABC, Generic

Functionality for reading tags/metadata/properties from a mutagen object.

Methods:

read_tag(tag_ids)

Extract all tag values from file for a given list of tag IDs

read_title()

Extract track title tags from file

read_artist()

Extract artist tags from file

read_album()

Extract album tags from file

read_album_artist()

Extract album artist tags from file

read_track_number()

Extract track number tags from file

read_track_total()

Extract total track count tags from file

read_genres()

Extract genre tags from file

read_date()

Extract year tags from file

read_bpm()

Extract BPM tags from file

read_key()

Extract key tags from file

read_disc_number()

Extract disc number tags from file

read_disc_total()

Extract total disc count tags from file

read_compilation()

Extract compilation tags from file

read_comments()

Extract comment tags from file

read_uri()

Extract data relating to remote URI value from file

read_images()

Extract image from file

check_for_images()

Check if file has embedded images

read_tag(tag_ids)

Extract all tag values from file for a given list of tag IDs

Return type:

list[Any] | None

read_title()

Extract track title tags from file

Return type:

str | None

read_artist()

Extract artist tags from file

Return type:

str | None

read_album()

Extract album tags from file

Return type:

str | None

read_album_artist()

Extract album artist tags from file

Return type:

str | None

read_track_number()

Extract track number tags from file

Return type:

int | None

read_track_total()

Extract total track count tags from file

Return type:

int | None

read_genres()

Extract genre tags from file

Return type:

list[str] | None

read_date()

Extract year tags from file

Return type:

tuple[int | None, int | None, int | None] | None

read_bpm()

Extract BPM tags from file

Return type:

float | None

read_key()

Extract key tags from file

Return type:

str | None

read_disc_number()

Extract disc number tags from file

Return type:

int | None

read_disc_total()

Extract total disc count tags from file

Return type:

int | None

read_compilation()

Extract compilation tags from file

Return type:

bool | None

read_comments()

Extract comment tags from file

Return type:

list[str] | None

read_uri()

Extract data relating to remote URI value from file

Return type:

str | None

abstract read_images()

Extract image from file

Return type:

list[Image] | None

check_for_images()

Check if file has embedded images

Return type:

bool