Readerο
Classes:
|
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
Extract track title tags from file
Extract artist tags from file
Extract album tags from file
Extract album artist tags from file
Extract track number tags from file
Extract total track count tags from file
Extract genre tags from file
Extract year tags from file
read_bpm
()Extract BPM tags from file
read_key
()Extract key tags from file
Extract disc number tags from file
Extract total disc count tags from file
Extract compilation tags from file
Extract comment tags from file
read_uri
()Extract data relating to remote URI value from file
Extract image from file
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