From 64ad5468b9527a048841633a0349b39c31a50798 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Mon, 20 Apr 2015 19:42:12 +0200 Subject: [PATCH] Fix update scripts after htmlparser merge. --- scripts/comicfury.py | 2 +- scripts/comicgenesis.py | 2 +- scripts/creators.py | 2 +- scripts/drunkduck.py | 2 +- scripts/keenspot.py | 4 ++-- scripts/smackjeeves.py | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/comicfury.py b/scripts/comicfury.py index 8caae925a..797c5d457 100755 --- a/scripts/comicfury.py +++ b/scripts/comicfury.py @@ -256,7 +256,7 @@ def handle_url(url, session, res): """Parse one search result page.""" print("Parsing", url, file=sys.stderr) try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return diff --git a/scripts/comicgenesis.py b/scripts/comicgenesis.py index 6f82cc771..dc880923b 100755 --- a/scripts/comicgenesis.py +++ b/scripts/comicgenesis.py @@ -372,7 +372,7 @@ def handle_url(url, session, res): """Parse one search result page.""" print("Parsing", url, file=sys.stderr) try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return diff --git a/scripts/creators.py b/scripts/creators.py index 015487a18..88b4759ce 100755 --- a/scripts/creators.py +++ b/scripts/creators.py @@ -26,7 +26,7 @@ def handle_url(url, session, res): """Parse one search result page.""" print("Parsing", url, file=sys.stderr) try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return diff --git a/scripts/drunkduck.py b/scripts/drunkduck.py index 833aceb3b..147520d1f 100755 --- a/scripts/drunkduck.py +++ b/scripts/drunkduck.py @@ -169,7 +169,7 @@ exclude_comics = [ def handle_url(url, session, url_matcher, num_matcher, res): """Parse one search result page.""" try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return diff --git a/scripts/keenspot.py b/scripts/keenspot.py index 9803f8b1b..d6cee7cb1 100755 --- a/scripts/keenspot.py +++ b/scripts/keenspot.py @@ -57,7 +57,7 @@ def handle_url(url, session, res): """Parse one search result page.""" print("Parsing", url, file=sys.stderr) try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return @@ -88,7 +88,7 @@ def handle_url(url, session, res): def get_description(url, session): """Get comic strip description.""" try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return u"" diff --git a/scripts/smackjeeves.py b/scripts/smackjeeves.py index 22f0d3b0c..13e9ff241 100755 --- a/scripts/smackjeeves.py +++ b/scripts/smackjeeves.py @@ -252,7 +252,7 @@ def handle_url(url, session, res): """Parse one search result page.""" print("Parsing", url, file=sys.stderr) try: - data, baseUrl = getPageContent(url, session) + data = getPageContent(url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return @@ -276,7 +276,7 @@ def handle_url(url, session, res): # search for url in extra page print("Getting", page_url) try: - data2, baseUrl2 = getPageContent(page_url, session) + data2 = getPageContent(page_url, session) except IOError as msg: print("ERROR:", msg, file=sys.stderr) return