On Sun, 2010-12-12 at 13:48 +0100, Arne Morten Kvarving wrote: > On Sat, Dec 11, 2010 at 4:13 PM, Mads Sølver Svendsen <[email protected]> > wrote: > > Hi, > > > > I've been looking for a way to add playback rules to > > playercorefactory.xml from python to no avail. Forgive me if it's in the > > documentation but I've been unable to find it. > > The rules in question are: > > <playercorefactory> > > <rules action="prepend"> > > <rule audio="true" player="audiodefaultplayer"> > > <rule filename="*grooveshark.com*" player="dvdplayer"/> > > </rule> > > </rules> > > </playercorefactory> > > > > I could edit playercorefactory.xml directly from the script but it seems a > > bit hackish. Is there a "correct" way to edit/add rules in > > playercorefatory.xml from python? > > no. why do you need that rule? looks like a complete hack?
If the script uses the paplayer the entire song is cached before playback is started (as far as I can tell). XBMC will be unresponsive during this time. The script works a lot better with dvdplayer as the core player. It only buffers the song which reduces the delay from 20-30 sec. to 2-5 sec. One could change the default player but I don't wanna mess with peoples global settings so in that sense the above seems more "appropriate". ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Xbmc-addons mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xbmc-addons
