Added a hebrew category word

This commit is contained in:
Alexander Yakovlev 2017-01-21 11:36:14 +07:00
parent beb70dda30
commit a5ec8f0469

View file

@ -8,7 +8,9 @@ config["sites"].each do |site|
for page in list do
page_text = wiki.get_text(page['title']).body.force_encoding("UTF-8")
changed = false
if not page_text.include?("[[Category:#{site["category"]}]]") then
unless page_text.include?("[[Category:#{site["category"]}]]")
or page_text.include?("[[קטגוריה:#{site["category"]}]]")
then
next
end
if not page_text.include?("<vote type=1 />") then