Merge pull request #17 from frequency/master

fix off by one slice index when checking SkipDays of rss feed
This commit is contained in:
jimt 2013-06-05 12:04:51 -07:00
commit fae240c50c
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ func (this *Feed) CanUpdate() bool {
// If skipDays or skipHours are set in the RSS feed, use these to see if
// we can update.
if len(this.Channels) == 0 && this.Type == "rss" {
if len(this.Channels) == 1 && this.Type == "rss" {
if this.EnforceCacheLimit && len(this.Channels[0].SkipDays) > 0 {
for _, v := range this.Channels[0].SkipDays {
if time.Weekday(v) == utc.Weekday() {