Added a hebrew category word
This commit is contained in:
parent
beb70dda30
commit
a5ec8f0469
4
start.rb
4
start.rb
|
@ -8,7 +8,9 @@ config["sites"].each do |site|
|
||||||
for page in list do
|
for page in list do
|
||||||
page_text = wiki.get_text(page['title']).body.force_encoding("UTF-8")
|
page_text = wiki.get_text(page['title']).body.force_encoding("UTF-8")
|
||||||
changed = false
|
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
|
next
|
||||||
end
|
end
|
||||||
if not page_text.include?("<vote type=1 />") then
|
if not page_text.include?("<vote type=1 />") then
|
||||||
|
|
Loading…
Reference in a new issue