Bug 143435 - Akregator fails to fetch articles from OPML imported feeds
Summary: Akregator fails to fetch articles from OPML imported feeds
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 22:29 UTC by techno_plume-coding
Modified: 2007-03-26 11:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description techno_plume-coding 2007-03-24 22:29:53 UTC
Version:           1.2.5 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Akregator fails to fetch feed articles for feeds added through an OPML import, from LiveJournal.com.

Steps:
i) Add an OPML file. 
URL: http://www.livejournal.com/tools/opml.bml?user=
(after the '=' add a username e.g. 'brad', 'potolo', 'exampleusername', etc.

Akregator appears to import correctly. It prompts for a folder name; all individually imported feeds are subfolders underneath that.

ii) Fetch all feeds.

Result: "No unread articles" is displayed for each feed folder. No articles appear to be downloaded. The example KDE feeds download articles correctly. Individual LiveJournal.com feeds [http://exampleusername.livejournal.com/data/rss] also work correctly.

Supplemental info.: Some brief discussion on LJ.com OPML implementation is here: http://tinyurl.com/ynkxbd
Comment 1 Frank Osterfeld 2007-03-26 11:31:48 UTC
SVN commit 646411 by osterfeld:

detect "xmlURL" as feed URL, as used by Live Journal. Fixes import of Lj OPML files (all feeds were imported as folders before) 
BUG: 143435


 M  +3 -1      feed.cpp  
 M  +1 -1      feedlist.cpp  


--- trunk/KDE/kdepim/akregator/src/feed.cpp #646410:646411
@@ -125,11 +125,13 @@
 
     Feed* feed = 0;
 
-    if( e.hasAttribute("xmlUrl") || e.hasAttribute("xmlurl") )
+    if( e.hasAttribute("xmlUrl") || e.hasAttribute("xmlurl") || e.hasAttribute("xmlURL") )
     {
         QString title = e.hasAttribute("text") ? e.attribute("text") : e.attribute("title");
 
         QString xmlUrl = e.hasAttribute("xmlUrl") ? e.attribute("xmlUrl") : e.attribute("xmlurl");
+        if (xmlUrl.isEmpty())
+            xmlUrl = e.attribute("xmlURL");
 
         bool useCustomFetchInterval = e.attribute("useCustomFetchInterval") == "true";
 
--- trunk/KDE/kdepim/akregator/src/feedlist.cpp #646410:646411
@@ -111,7 +111,7 @@
     {
         QString title = e.hasAttribute("text") ? e.attribute("text") : e.attribute("title");
 
-        if (e.hasAttribute("xmlUrl") || e.hasAttribute("xmlurl"))
+        if (e.hasAttribute("xmlUrl") || e.hasAttribute("xmlurl") || e.hasAttribute("xmlURL") )
         {
             Feed* feed = Feed::fromOPML(e);
             if (feed)