Re: [Rhythmbox-devel] [PATCH] Keep paths from import error



On Fri, 2006-12-22 at 22:34 +0100, Tom Parker wrote:
> "Import Error" entry items no longer have their original uri's
> accessable. This means that (for example) plugins attempting to fix
> bug #328526 "Add metadata cache for audio players", can't cache which
> files are unreadable. The following patch fixes this.

You should be able to retrieve the URI by using db.entry_get(entry,
rhythmdb.PROP_LOCATION).

get_playback_uri returns the URI that should be used when trying to play
or transcode the entry, which is a different thing. Having it always
return null prevents it from attempting to play things we couldn't
import.


Cheersm

James "Doc" Livingston
-- 
The only "intuitive" interface is the nipple. After that, it's all
learned. -- Bruce Ediger, in comp.os.linux.misc, on X interfaces



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]