Twitter API plugin required for feed2red.pl

  
@!Feed2Red+

Just a quick heads up for those still using feed2red.pl: If you are on dev, and in the future on master, too, you need to install the Twitter API plugin for feed2red.pl to continue working.

It would surely be possible to switch to current Hubzilla API calls, but as the script isn't really required anymore in most cases, I don't think it's really worth the effort, given that installing the plugin is enough to keep it working.
  
Thanks @zottel for the heads up. Yes I'm still using it on a few forum channels. Still better to automate than other methods.
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Sat, 13 Aug 2016 01:36:17 +0200

more red -> hubzilla

more red -> hubzilla
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Sat, 13 Aug 2016 01:31:34 +0200

even more red -> hubzilla

even more red -> hubzilla
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Sat, 13 Aug 2016 01:19:06 +0200

more red -> hubzilla

more red -> hubzilla
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Sat, 13 Aug 2016 01:15:34 +0200

Red -> Hubzilla

Red -> Hubzilla
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Tue, 21 Jul 2015 14:46:06 +0200

make UseContentHash work with special characters

make UseContentHash work with special characters
  
@Feed2Red+

I just pushed a fix to the Feed2Red git repository that should fix relative links in feeds.

Please test that—it worked in the one feed I had that used relative links, but I'm not 100% sure that I got the regular expressions right. Also, I don't have any feeds with realtive links in images.

In some circumstances, it produces a double slash in the URL, like http://example.com//link/to/article/ . This was no problem in some tests I made, but I'm not sure if there are web servers out there that might not like this. It's fixable, but only in ugly ways, so if it doesn't matter, I'd rather keep it like it is. :-)

While testing, I saw that one of my feeds shows a relative link as its own address (the link the should lead to the blog, e.g.). :facepalm We can't fix that. We need the information about the actual server where the blog resides, because the feed might be hosted somewhere else (feedburner, e.g.). If we don't have that information, we can't fix relative links. The site I'm talking about doesn't use relative links anywhere else, so no problem here, but I wanted to tell you in case you run into such a situation.

If you find a feed where it doesn't work, please give me the feed address so that I can test with that feed myself and see what's going wrong.

If you don't have any problems with relative links, maybe wait a bit before you update. It could be that the regular expressions break something I wasn't thinking of.
  
Thanks a lot Zottel. I will test it later this day.
 
No problems so far. But have to wait for a week or more for some rogue feed item.
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Fri, 03 Jul 2015 12:18:41 +0200

fix relative links

fix relative links
  
No time to test it yet, but I will.
  
Recent Commits to feed2red:master schrieb den folgenden Beitrag Sun, 14 Jun 2015 16:58:02 +0200

Allow setting feed title via CustomFeedTitle config

Allow setting feed title via CustomFeedTitle config
  
@Feed2Red+  @zottel
I try to add an option to have custom feed titles, because some are empty or unusable. I tried this:

my %confVars =
    (
    'CustomTitle' => '',    
    );

And later in the 'post to red' section:

            if ($$f{UseShare} =~ /^y/i)
                {
                if ($$f{CustomTitle} !~ /^$/)
                {
                $title = $$f{CustomTitle};
                }
                $status = "[nobb][[/nobb]share author='" . uri_escape_utf8($title) . "' profile='$feedLink' link='" . $entry->link . "' posted='$modUTC']$status\[/share]";
                }


I get the following error in the terminal (testbed.pl is my test script):

testbed.pl: Error in [FEED] section before line 12 in file testbed.conf:
testbed.pl: No CustomTitle line found, and no default for CustomTitle available from previous [DEFAULTS] section.
testbed.pl: Skipping this feed.


Help!
  
Hi Zottel. Hopefully you had a great holiday. Thank you looking into this. Much appreciated.

It's very simple. The title of the feed (not the individual post) is sometimes empty or non descriptive. For those feeds I like to override the title. This can than be placed in the config file with the parameter CustomTitle.
  
@jeroenpraat I just updated the git of feed2red.pl. You can now set the variable CustomFeedTitle (note that I added "Feed" to your CustomTitle implementation to make it clearer what that does) at a feed to set a custom feed title.
  
@zottel Thank you!!!! :-D