track_added

@accepts(RB.RhythmDBEntry, utf8, guint64, utf8)
@returns(none)
def track_added(entry, uri, filesize, media_type)

This is called when a transfer to the target has completed. If the source's @track_added method returns True, the destination URI will be added to the database using the entry type for the device.

If the target uses a temporary area as the destination for transfers, it can instead upload the destination file to the device and create an entry for it, then return False.

entry :

the source RB.RhythmDBEntry for the transfer

uri :

the destination URI

filesize :

size of the destination file

media_type :

media type of the destination file