From 45313c56a6fa6de49bdeb33c0a84372d0a0535c2 Mon Sep 17 00:00:00 2001 From: nonamethanks Date: Mon, 4 Oct 2021 14:17:47 +0200 Subject: [PATCH] Lofter: fix tag extraction --- app/logical/sources/strategies/lofter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logical/sources/strategies/lofter.rb b/app/logical/sources/strategies/lofter.rb index c91e45850..c5c136365 100644 --- a/app/logical/sources/strategies/lofter.rb +++ b/app/logical/sources/strategies/lofter.rb @@ -74,10 +74,10 @@ module Sources end def tags - tags = page&.search(".info .tag, .main .tag a, .tagarea") + tags = page&.search(".info .tag, .main .tag a, .tagarea, .m-info .tags .tag") tags.to_a.map do |tag| - [tag.text, tag.attr("href")] + [tag.text.gsub(/^● /, ""), tag.attr("href")] end end