Logging not working properly. fix #50
This commit is contained in:
1 parent
f248d5812b
commit
2c4c36fadb
5 files changed
+13
-88
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import color_logs
|
||||
import logging
|
||||
import re
|
||||
|
||||
|
||||
@@ -64,10 +64,10 @@ Page.Log = new Class({
|
||||
addColors: function(text){
|
||||
var self = this;
|
||||
|
||||
text = text.replace(/\u001b\[31m\u001b\[31m/gi, '</span><span class="error">')
|
||||
text = text.replace(/\u001b\[36m\u001b\[36m/gi, '</span><span class="debug">')
|
||||
text = text.replace(/\u001b\[0m\u001b\[0m\n/gi, '</span><span class="time">')
|
||||
text = text.replace(/\u001b\[0m\u001b\[0m/gi, '</span><span>')
|
||||
text = text.replace(/\u001b\[31m/gi, '</span><span class="error">')
|
||||
text = text.replace(/\u001b\[36m/gi, '</span><span class="debug">')
|
||||
text = text.replace(/\u001b\[0m\n/gi, '</span><span class="time">')
|
||||
text = text.replace(/\u001b\[0m/gi, '</span><span>')
|
||||
|
||||
return '<span class="time">' + text + '</span>';
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class Moovee(NZBProvider):
|
||||
log.error('Failed to get data from %s.' % url)
|
||||
return results
|
||||
|
||||
match = re.compile(self.urls['regex'], re.DOTALL).finditer(data)
|
||||
match = re.compile(self.regex, re.DOTALL).finditer(data)
|
||||
|
||||
for nzb in match:
|
||||
new = {
|
||||
|
||||
Reference in new issue
Block a user