mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 12:21:31 +00:00
Change :on_change to string.
If not this the seed does not work
This commit is contained in:
parent
b65bb8d55f
commit
c8c46743e3
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ unless user.agents.where(:name => "XKCD Source").exists?
|
|||
:type => "html",
|
||||
:options => {
|
||||
:url => "http://xkcd.com",
|
||||
:mode => :on_change,
|
||||
:mode => "on_change",
|
||||
:expected_update_period_in_days => 5,
|
||||
:extract => {
|
||||
:url => {:css => "#comic img", :attr => "src"},
|
||||
|
@ -37,7 +37,7 @@ unless user.agents.where(:name => "iTunes Trailer Source").exists?
|
|||
:schedule => "every_1d",
|
||||
:options => {
|
||||
:url => "http://trailers.apple.com/trailers/home/rss/newtrailers.rss",
|
||||
:mode => :on_change,
|
||||
:mode => "on_change",
|
||||
:type => "xml",
|
||||
:expected_update_period_in_days => 5,
|
||||
:extract => {
|
||||
|
@ -76,4 +76,4 @@ unless user.agents.where(:name => "Afternoon Digest").exists?
|
|||
:schedule => "5pm",
|
||||
:options => { :subject => "Your Afternoon Digest", :expected_receive_period_in_days => "7" },
|
||||
:source_ids => user.agents.where(:name => ["iTunes Trailer Source", "XKCD Source"]).pluck(:id)).save!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue