diff --git a/mediawikibot.rb b/mediawikibot.rb index 121d624..be47517 100755 --- a/mediawikibot.rb +++ b/mediawikibot.rb @@ -60,7 +60,8 @@ class WikiBot post_form(url_submitlogin(), { "wpName" => wiki_name, - "wpPassword" => wiki_password }) + "wpPassword" => wiki_password, + "wpLoginattempt" => "" }) end def is_redirect? (title) diff --git a/stadtwiki-upcoming b/stadtwiki-upcoming index 4cdbe68..ccbdb85 100755 --- a/stadtwiki-upcoming +++ b/stadtwiki-upcoming @@ -24,7 +24,7 @@ def get_events() return events end -body = "Folgende Termine stammen von http://upcoming.org:\n\n" +body = "Folgende Termine stammen von #{$ical_url}:\n\n" get_events().each do |event| body += "* #{event.dtstart.mday}.#{event.dtstart.month}. #{event.summary}\n" end