Media sources are basically roots of media locations, like ~/Music
folder for audio content for instance. Media sources are referenced in
the "source" db table.
Medias can be both files and directories. Each Media has a parent
media id and a source id. Content-type specific information are stored in
diferent tables for audio, video and images.
|
__init__(self,
backend=' frontend ' ,
first_load=True)
Initialize our _backend instance variable. |
source code
|
|
|
|
|
|
|
|
|
get_files_count_for_source_uri(self,
source_uri)
DOCME |
source code
|
|
|
prepare_source_for_update(self,
source)
DOCME |
source code
|
|
|
hide_un_updated_medias_for_source(self,
source)
DOCME |
source code
|
|
elisa.extern.db_row.DBRow
|
|
bool
|
|
bool
|
|
|
|
bool
|
add_media(self,
uri,
short_name,
source_id,
content_type,
**extra)
Add a new media in the "media" table and in specialized
tables |
source code
|
|
bool
|
|
elisa.extern.db_row.DBRow
|
|
|
|
elisa.extern.db_row.DBRow
|
|
|
get_medias(self,
source=' frontend ' ,
media_type=' frontend ' ) |
source code
|
|
elisa.extern.db_row.DBRow
|
|
|
|
|
update_media_metadata(self,
media,
**metadata)
DOCME |
source code
|
|
|
|
|
|
|
_build_request(self,
select_clause,
path_values,
start=0,
item_count=-1) |
source code
|
|
list of tuple (string, elisa.core.media_uri.MediaUri, int)
|
|
|
|
|
|
|
_guess_format_from_metadata(self,
metadata) |
source code
|
|
|
|
|
|
Inherited from extern.log.log.Loggable :
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|