build_dest_uri

@accepts(RB.RhythmDBEntry, utf8, utf8)
@returns(utf8)
def build_dest_uri(entry, media_type, extension)

Constructs a URI to use as the destination for a transfer or transcoding operation. The URI may be on the device itself, if the device is mounted into the normal filesystem or through gvfs, or it may be a temporary location used to store the file before uploading it to the device.

The destination URI should conform to the device's normal URI format, and should use the provided extension instead of the extension from the source entry.

entry :

a RB.RhythmDBEntry being transferred

media_type :

destination media type

extension :

extension associated with destination media type

Returns :

constructed URI