MPD PyDB¶
-
class
mpd_pydb.db.
Database
(format_version, mpd_version, supported_tags, songs=None)[source]¶ Bases:
object
Parameters: Raises: - ValueError – If the format_version is not supported or mpd_version is None
- TypeError – If
supported_tags
is not iterable
-
format_version
= None¶ The database format version
-
mpd_version
= None¶ The version of MPD that created this database
-
songs
= None¶ A
list
of songs in this database
A
list
containing the names of all supported tags
-
to_dataframe
()[source]¶ Convert this database to a pandas DataFrame. In addition to the tags already loaded, the two columns
TotalDiscs
andTotalTracks
will be populated with the values fromDisc
andTrack
tags (ID3 only). TheDisc
andTrack
tags will no longer contain information about the total amount of discs and tracks after the conversion.Return type: DataFrame