Base Media class. All media objects should inherit from this class to
allow common functions to be used in core code. See MP3 and OGG classes
for examples on how to configure a subclass.
|
|
|
get_format(self)
Gets the format string of the media type |
source code
|
|
|
get_file_extension(self)
Gets the actual file extension string of the media |
source code
|
|
|
get_mime_type(self)
Gets the MIME Type string for this media type |
source code
|
|
|
get_description(self)
Gets the description string for this media type |
source code
|
|
|
set_cache_dir(self,
path)
Sets an alternate location for temporary cache files used in this
media object |
source code
|
|
|
get_file_metadata(self,
clear_cache=False)
Returns the metadata for the media, filtered by the tagdata
dictionary for this media type. |
source code
|
|
|
read_file_metadata(self)
Reads the metadata for the media, filtered by the tagdata dictionary
for this media type |
source code
|
|
|
|
|
get_title(self)
Returns the cleaned title for this media |
source code
|
|
|
get_artist(self)
Returns the cleaned artist for this media |
source code
|
|
|
get_song(self,
usefn=True)
Returns a string in the form "artist - title" for this
media. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|