blam r584 - trunk/lib
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r584 - trunk/lib
- Date: Wed, 4 Jun 2008 21:45:12 +0000 (UTC)
Author: cmartin
Date: Wed Jun 4 21:45:11 2008
New Revision: 584
URL: http://svn.gnome.org/viewvc/blam?rev=584&view=rev
Log:
Get link and author fields from rss20 if they exist and use them.
Modified:
trunk/lib/RSSFeed.cs
Modified: trunk/lib/RSSFeed.cs
==============================================================================
--- trunk/lib/RSSFeed.cs (original)
+++ trunk/lib/RSSFeed.cs Wed Jun 4 21:45:11 2008
@@ -92,8 +92,16 @@
Channel[i].Item[j] = new RSSItem();
Channel[i].Item[j].Title = feed.Channel[i].Item[j].Title;
Channel[i].Item[j].Guid = feed.Channel[i].Item[j].Guid;
+ Channel[i].Item[j].Link = feed.Channel[i].Item[j].Link;
Channel[i].Item[j].Description = feed.Channel[i].Item[j].Description;
Channel[i].Item[j].Content = feed.Channel[i].Item[j].ContEnc;
+
+ if(feed.Channel[i].Item[j].Author == null){
+ Channel[i].Item[j].Author = feed.Channel[i].Item[j].Creator;
+ } else {
+ Channel[i].Item[j].Author = feed.Channel[i].Item[j].Author;
+ }
+
if(feed.Channel[i].Item[j].PubDate != null){
/* Horrible hack, but it works. */
@@ -247,6 +255,7 @@
[XmlElement("encoded", Namespace="http://purl.org/rss/1.0/modules/content/")] public string ContEnc = null;
//[XmlElement("pubDate")] public DateTime PubDate = DateTime.MinValue;
[XmlElement("pubDate")] public string PubDate = null;
+ [XmlElement("author")] public string Author = null;
[XmlElement("creator", Namespace="http://purl.org/dc/elements/1.1/")] public string Creator = null;
[XmlElement("date", Namespace="http://purl.org/dc/elements/1.1/")] public DateTime Date;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]