banshee r3371 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3371 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- Date: Mon, 3 Mar 2008 17:16:14 +0000 (GMT)
Author: gburt
Date: Mon Mar 3 17:16:14 2008
New Revision: 3371
URL: http://svn.gnome.org/viewvc/banshee?rev=3371&view=rev
Log:
2008-03-03 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmTrackInfo.cs:
Catch Web exceptions in Love and Ban methods, avoiding crashing.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmTrackInfo.cs
Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmTrackInfo.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmTrackInfo.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmTrackInfo.cs Mon Mar 3 17:16:14 2008
@@ -93,7 +93,11 @@
{
loved = true; hated = false;
ThreadAssist.Spawn (delegate {
- station.LastfmSource.Connection.Love (ArtistName, TrackTitle);
+ try {
+ station.LastfmSource.Connection.Love (ArtistName, TrackTitle);
+ } catch (System.Net.WebException e) {
+ Hyena.Log.Warning ("Got Exception Trying to Love Song", e.ToString (), false);
+ }
});
}
@@ -101,7 +105,11 @@
{
loved = false; hated = true;
ThreadAssist.Spawn (delegate {
- station.LastfmSource.Connection.Ban (ArtistName, TrackTitle);
+ try {
+ station.LastfmSource.Connection.Ban (ArtistName, TrackTitle);
+ } catch (System.Net.WebException e) {
+ Hyena.Log.Warning ("Got Exception Trying to Ban Song", e.ToString (), false);
+ }
});
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]