banshee r4872 - in trunk/banshee: . src/Libraries/Migo/Migo.Syndication
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4872 - in trunk/banshee: . src/Libraries/Migo/Migo.Syndication
- Date: Mon, 29 Dec 2008 22:59:51 +0000 (UTC)
Author: gburt
Date: Mon Dec 29 22:59:51 2008
New Revision: 4872
URL: http://svn.gnome.org/viewvc/banshee?rev=4872&view=rev
Log:
2008-12-29 Gabriel Burt <gabriel burt gmail com>
* src/Libraries/Migo/Migo.Syndication/RssParser.cs: If RFC 822 datetime
parsing fails, try falling back to parsing the pubDate etc with
DateTime.TryParse (BGO #561381)
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Migo/Migo.Syndication/RssParser.cs
Modified: trunk/banshee/src/Libraries/Migo/Migo.Syndication/RssParser.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo.Syndication/RssParser.cs (original)
+++ trunk/banshee/src/Libraries/Migo/Migo.Syndication/RssParser.cs Mon Dec 29 22:59:51 2008
@@ -301,7 +301,13 @@
string result = GetXmlNodeText (node, tag);
if (!String.IsNullOrEmpty (result)) {
- Rfc822DateTime.TryParse (result, out ret);
+ if (Rfc822DateTime.TryParse (result, out ret)) {
+ return ret;
+ }
+
+ if (DateTime.TryParse (result, out ret)) {
+ return ret;
+ }
}
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]