riscritto logger

This commit is contained in:
marco
2020-09-19 16:32:37 +02:00
parent d37050b85e
commit 0b605cf215
218 changed files with 1425 additions and 1511 deletions
+5 -5
View File
@@ -5,7 +5,7 @@
from core import support
from core.support import config, log
from core.support import config, info
host = config.get_channel_url()
headers = [['Referer', host]]
@@ -23,7 +23,7 @@ def mainlist(item):
def search(item, texto):
log(texto)
info(texto)
item.url = host + "/?s=" + texto
try:
return peliculas(item)
@@ -31,12 +31,12 @@ def search(item, texto):
except:
import sys
for line in sys.exc_info():
support.logger.error("%s" % line)
support.infoger.error("%s" % line)
return []
def newest(categoria):
support.log(categoria)
support.info(categoria)
itemlist = []
item = support.Item()
try:
@@ -56,7 +56,7 @@ def newest(categoria):
except:
import sys
for line in sys.exc_info():
support.logger.error("{0}".format(line))
support.infoger.error("{0}".format(line))
return []
return itemlist