We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37d4ba commit 367a56eCopy full SHA for 367a56e
plugins/filter/description_link.rb
@@ -2,7 +2,7 @@
2
# Name:: Automatic::Plugin::Filter::DescriptionLink
3
# Author:: 774 <http://id774.net>
4
# Created:: Oct 03, 2014
5
-# Updated:: Oct 14, 2014
+# Updated:: Oct 15, 2014
6
# Copyright:: Copyright (c) 2014 Automatic Ruby Developers.
7
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
8
@@ -57,7 +57,11 @@ def rewrite_link(feed)
57
if @config['get_title'] == 1
58
begin
59
new_title = get_title(feed.link)
60
- feed.title = new_title unless new_title.nil?
+ unless new_title.nil?
61
+ if new_title.class == String
62
+ feed.title = new_title
63
+ end
64
65
rescue OpenURI::HTTPError
66
Automatic::Log.puts("warn", "404 Not Found in get title process.")
67
end
0 commit comments