diff --git a/gazouilleur/bot.py b/gazouilleur/bot.py index 387d9a0..f7cd8a3 100644 --- a/gazouilleur/bot.py +++ b/gazouilleur/bot.py @@ -1249,6 +1249,7 @@ def command_list(self, database, channel=None, *args): @inlineCallbacks def command_newsurl(self, name, channel=None, *args): """newsurl : Displays the url of a RSS feed saved as for current channel.""" + # TODO Handle urls for monitor channel = self.getMasterChan(channel) res = yield self.db['feeds'].find({'database': 'news', 'channel': channel, 'name': name.lower().strip()}, fields=['query', 'name'], limit=1) if res: diff --git a/gazouilleur/lib/webmonitor.py b/gazouilleur/lib/webmonitor.py index 24a9d25..fbe359f 100644 --- a/gazouilleur/lib/webmonitor.py +++ b/gazouilleur/lib/webmonitor.py @@ -15,7 +15,8 @@ def __init__(self, name): def check_diff(self, url, data): # TODO: - # apply url_rewrite for '<[^>]*=['"]/([^/]|$)' et '<[^>]*=['"](!:http)' + # - handle error pages + # - apply url_rewrite for '<[^>]*=['"]/([^/]|$)' et '<[^>]*=['"](!:http)' # - check if file -last exists # - if so diff md5 current/last # - check if exist and not diff diff --git a/web/templates/monitor.html b/web/templates/monitor.html index 4bebbc5..77caacd 100644 --- a/web/templates/monitor.html +++ b/web/templates/monitor.html @@ -3,13 +3,15 @@ - WebMonitor by gazouilleur for {{name}} + WebMonitor for {{name}} powered by Gazouilleur -

WebMonitor by gazouilleur for {{name}} at {{url}}

+

WebMonitor for {{name}} at {{url}} Powered by

Available versions

Actual version

+