Package: banshee Version: 0.13.1+dfsg-1 Severity: wishlist Tags: patch The following patch will allow to configure from which URI banshee should download the default list of radio stations used on the radio plugin.
This feature will be used on Debian-BR-CDD to provide local brazilian stations to users. Also this patch was already commited to upstream by the author of the plugin. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores) Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages banshee depends on: ii boo 0.7.6.2237-6 a python-like language and compile ii gconf2 2.18.0.1-3 GNOME configuration database syste ii gnome-volume-manager 2.17.0-2 GNOME daemon to auto-mount and man ii gstreamer0.10-gnomevfs 0.10.14-2 GStreamer plugin for GnomeVFS ii gstreamer0.10-plugins-base 0.10.14-2 GStreamer plugins from the "base" ii gstreamer0.10-plugins-good 0.10.6-1 GStreamer plugins from the "good" ii hal 0.5.9.1-4 Hardware Abstraction Layer ii libatk1.0-0 1.18.0-2 The ATK accessibility toolkit ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii libcairo2 1.4.10-1 The Cairo 2D vector graphics libra ii libdbus-1-3 1.1.1-3 simple interprocess messaging syst ii libdbus-glib-1-2 0.74-1 simple interprocess messaging syst ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libgconf2-4 2.18.0.1-3 GNOME configuration database syste ii libgconf2.0-cil 2.16.0-7 CLI binding for GConf 2.16 ii libglade2.0-cil 2.10.1-3 CLI binding for the Glade librarie ii libglib2.0-0 2.14.0-2 The GLib library of C routines ii libglib2.0-cil 2.10.1-3 CLI binding for the GLib utility l ii libgnome-vfs2.0-cil 2.16.0-7 CLI binding for GnomeVFS 2.16 ii libgnome2.0-cil 2.16.0-7 CLI binding for Gnome 2.16 ii libgnomevfs2-0 1:2.18.1-3+b1 GNOME Virtual File System (runtime ii libgstreamer-plugins-base0 0.10.14-2 GStreamer libraries from the "base ii libgstreamer0.10-0 0.10.14-1 Core GStreamer libraries and eleme ii libgtk2.0-0 2.10.13-1 The GTK+ graphical user interface ii libgtk2.0-cil 2.10.1-3 CLI binding for the GTK+ toolkit 2 ii libhal1 0.5.9.1-4 Hardware Abstraction Layer - share ii libipoddevice0 0.5.3-3 library for retrieving information ii libmono-cairo2.0-cil 1.2.4-6 Mono Cairo library ii libmono-corlib1.0-cil 1.2.4-6 Mono core library (1.0) ii libmono-corlib2.0-cil 1.2.4-6 Mono core library (2.0) ii libmono-security2.0-cil 1.2.4-6 Mono Security library ii libmono-sharpzip2.84-cil 1.2.4-6 Mono SharpZipLib library ii libmono-sqlite2.0-cil 1.2.4-6 Mono Sqlite library ii libmono-system-data2.0-cil 1.2.4-6 Mono System.Data Library ii libmono-system-web2.0-cil 1.2.4-6 Mono System.Web Library ii libmono-system2.0-cil 1.2.4-6 Mono System libraries (2.0) ii libmono1.0-cil 1.2.4-6 Mono libraries (1.0) ii libmono2.0-cil 1.2.4-6 Mono libraries (2.0) ii libmusicbrainz4c2a 2.1.5-1 Second generation incarnation of t ii libnautilus-burn4 2.18.2-1 Nautilus Burn Library - runtime ve ii libndesk-dbus-glib1.0-cil 0.3-2 CLI implementation of D-Bus (GLib ii libndesk-dbus1.0-cil 0.4.2-1 CLI implementation of D-Bus ii libnjb5 2.2.5-4.1 Creative Labs Nomad Jukebox librar ii liborbit2 1:2.14.7-0.1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.16.5-1 Layout and rendering of internatio ii libtaglib2.0-cil 2.0.2.0-1 CLI library for accessing audio an ii libusb-0.1-4 2:0.1.12-7 userspace USB programming library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxcursor1 1:1.1.9-1 X cursor management library ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio ii libxi6 2:1.1.2-1 X11 Input extension library ii libxinerama1 1:1.0.2-1 X11 Xinerama extension library ii libxml2 2.6.30.dfsg-1 GNOME XML library ii libxrandr2 2:1.2.1-1 X11 RandR extension library ii libxrender1 1:0.9.3-1 X Rendering Extension client libra ii mono-runtime 1.2.4-6 Mono runtime Versions of packages banshee recommends: ii gstreamer0.10-plugi 0.10.4+cvs2007.04.30 various GStreamer plugins ii gstreamer0.10-plugi 0.10.6-1 GStreamer plugins from the "ugly" -- no debconf information
diff -Nur banshee-0.13.1+dfsg/src/Plugins/Banshee.Plugins.Radio/banshee-plugin-radio.schemas.in banshee-0.13.1+dfsg.new/src/Plugins/Banshee.Plugins.Radio/banshee-plugin-radio.schemas.in --- banshee-0.13.1+dfsg/src/Plugins/Banshee.Plugins.Radio/banshee-plugin-radio.schemas.in 2007-08-29 19:59:16.000000000 -0300 +++ banshee-0.13.1+dfsg.new/src/Plugins/Banshee.Plugins.Radio/banshee-plugin-radio.schemas.in 2007-08-29 20:12:05.000000000 -0300 @@ -56,5 +56,16 @@ <long>Update remote stations from radio.banshee-project.org</long> </locale> </schema> + <schema> + <key>/schemas/apps/banshee/plugins/radio/base_station_uri</key> + <applyto>/apps/banshee/plugins/radio/base_station_uri</applyto> + <owner>banshee</owner> + <type>string</type> + <default>http://radio.banshee-project.org/</default> + <locale name="C"> + <short>URI for remote stations update</short> + <long>URI to update remote stations from</long> + </locale> + </schema> </schemalist> </gconfschemafile> diff -Nur banshee-0.13.1+dfsg/src/Plugins/Banshee.Plugins.Radio/StationManager.cs banshee-0.13.1+dfsg.new/src/Plugins/Banshee.Plugins.Radio/StationManager.cs --- banshee-0.13.1+dfsg/src/Plugins/Banshee.Plugins.Radio/StationManager.cs 2007-08-29 19:59:16.000000000 -0300 +++ banshee-0.13.1+dfsg.new/src/Plugins/Banshee.Plugins.Radio/StationManager.cs 2007-08-29 20:12:40.000000000 -0300 @@ -95,7 +95,6 @@ public delegate void StationGroupHandler(object o, StationGroupArgs args); public delegate void StationHandler(object o, StationArgs args); - private static readonly Uri master_xspf_uri = new Uri("http://radio.banshee-project.org/"); private static readonly TimeSpan check_timeout = TimeSpan.FromDays(1); private static readonly string stations_path = Path.Combine(Paths.UserPluginDirectory, "stations"); private static readonly string local_stations_path = Path.Combine(stations_path, "user"); @@ -377,6 +376,7 @@ } Playlist playlist = new Playlist(); + Uri master_xspf_uri = new Uri(BaseStationUriSchema.Get()); playlist.Load(CreateXspfWebStream(master_xspf_uri)); DateTime master_last_modified = DateTime.MinValue; @@ -500,5 +500,13 @@ "Show remote stations", "Update remote stations from radio.banshee-project.org" ); + + public static readonly SchemaEntry<string> BaseStationUriSchema = new SchemaEntry<string>( + "plugins.radio", "base_station_uri", + "http://radio.banshee-project.org/", + "URI for remote stations update", + "URI to update remote stations from" + ); + } }