« Return to Thread: Bug and bugfix: Local feeds in UNIX environments

Re: Bug and bugfix: Local feeds in UNIX environments

by R Pruitt :: Rate this Message:

Reply to Author | View in Thread

Steve Wolter wrote:
Steve Wolter wrote:

Hello again,

> "file:///" + file.path

Excuse my earlier mail - the mistake seemed to be in a different place.
Yes, 'file.path' is a relative path ('usr/bin' or 'G:\Desktop' for example) so the code works on any system.  There is a RIGHT way to do it, but it makes for harder to read, slower code.  Might change it someday....

Steve Wolter wrote:
The uid generating function in the model.js file seems broken; for a
URL like file:///, it generates an empty uid.

I've fixed it. A diff is attached.

Faithfully yours, Steve

*CODE REMOVED*
This will be fixed in the next version of Newsfox:

> if (url.charAt(index+3) == "/")  //  file:///
>  body = url.substring(index+4);

Does anyone use these?  I finally changed it since I wanted to check out a feed locally before putting it on a server.  Local feeds are a royal pain in Firefox since their cache handling for local files is a disaster.  To get the feed to update properly, you may need to delete all articles.

Ron

 « Return to Thread: Bug and bugfix: Local feeds in UNIX environments