Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -72,6 +72,7 @@ |
this.title = "Subscription " + url; |
this.disabled = false; |
this.lastDownload = 1234; |
+ this.downloadStatus = "synchronize_ok"; |
}, |
SpecialSubscription: function(url) |
@@ -83,6 +84,9 @@ |
}; |
modules.subscriptionClasses.Subscription.fromURL = function(url) |
{ |
+ if (url in knownSubscriptions) |
+ return knownSubscriptions[url]; |
+ |
if (/^https?:\/\//.test(url)) |
return new modules.subscriptionClasses.Subscription(url); |
else |
@@ -184,7 +188,13 @@ |
}; |
modules.synchronizer = { |
- Synchronizer: {} |
+ Synchronizer: { |
+ execute: function(subscription, manual) |
+ { |
+ subscription.lastDownload = Date.now() / 1000; |
+ modules.filterNotifier.FilterNotifier.triggerListeners("subscription.updated", subscription); |
Thomas Greiner
2016/01/19 11:27:26
Since you added error messages as part of this rev
saroyanm
2016/01/22 09:55:03
Done.
|
+ } |
+ } |
}; |
modules.matcher = { |