add_uri_with_types

@accepts(utf8, RB.RhythmDBEntryType, RB.RhythmDBEntryType, RB.RhythmDBEntryType)
@returns(none)
def add_uri_with_types(uri, type, ignore_type, error_type)

Adds the file(s) pointed to by @uri to the database, as entries of the specified type. If the URI points to a file, it will be added. The the URI identifies a directory, everything under it will be added recursively.

uri :

the URI to add

type :

the RB.RhythmDBEntryType to use for new entries

ignore_type :

the RB.RhythmDBEntryType to use for ignored files

error_type :

the RB.RhythmDBEntryType to use for import errors