Make linkbot title parsing more robust

Linkbot titles now check the "meta" tags for either "og:title" or
"title" attributes. This is usually a more accurate/correct title than
using the "title" tag, but this is checked as a last resort.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-02 18:09:09 -07:00
parent 67192f2c5e
commit e3f30d30c1
3 changed files with 24 additions and 5 deletions

View File

@@ -31,8 +31,9 @@ defmodule Omnibot.MixProject do
defp deps do
# TODO : figure out how to make contrib modules optional (umbrella project?) and enable specific requirements
[
{:tesla, "~> 1.3.0"}, # Used by Omnibot.Contrib.Linkbot
{:sqlitex, "~> 1.7"}, # Used by Omnibot.Contrib.Wordbot
{:tesla, "~> 1.3.0"}, # Used by Omnibot.Contrib.Linkbot
{:meeseeks, "~> 0.15.1"}, # Used by Omnibot.Contrib.Linkbot
{:sqlitex, "~> 1.7"}, # Used by Omnibot.Contrib.Wordbot
]
end
end