Rename keenspot to comicgenesis and enable it.

This commit is contained in:
Bastian Kleineidam 2013-03-11 21:50:49 +01:00
parent f0eaba0f69
commit a16bf6c16b
6 changed files with 1014 additions and 6 deletions

File diff suppressed because it is too large Load diff

View file

@ -62,6 +62,7 @@ def has_comic(name):
("DrunkDuck/%s" % name).lower(), ("DrunkDuck/%s" % name).lower(),
("GoComics/%s" % name).lower(), ("GoComics/%s" % name).lower(),
("KeenSpot/%s" % name).lower(), ("KeenSpot/%s" % name).lower(),
("ComicGenesis/%s" % name).lower(),
("SmackJeeves/%s" % name).lower(), ("SmackJeeves/%s" % name).lower(),
] ]
for scraperclass in get_scraperclasses(): for scraperclass in get_scraperclasses():

View file

@ -1,7 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2012-2013 Bastian Kleineidam # Copyright (C) 2012-2013 Bastian Kleineidam
""" """
Script to get a list of keenspot comics and save the info in a JSON file for further processing. Script to get a list of ComicGenesis comics and save the info in a
JSON file for further processing.
""" """
from __future__ import print_function from __future__ import print_function
import re import re
@ -404,11 +405,13 @@ def get_results():
def has_comic(name): def has_comic(name):
"""Check if comic name already exists.""" """Check if comic name already exists."""
cname = ("Creators/%s" % name).lower() names = [
gname = ("GoComics/%s" % name).lower() ("Creators/%s" % name).lower(),
("GoComics/%s" % name).lower(),
]
for scraperclass in get_scraperclasses(): for scraperclass in get_scraperclasses():
lname = scraperclass.getName().lower() lname = scraperclass.getName().lower()
if lname == cname or lname == gname: if lname in names:
return True return True
return False return False

View file

@ -6,7 +6,7 @@ d=$(dirname $0)
if [ $# -ge 1 ]; then if [ $# -ge 1 ]; then
list="$*" list="$*"
else else
list="creators gocomics drunkduck keenspot smackjeeves arcamax comicfury" list="creators gocomics drunkduck comicgenesis keenspot smackjeeves arcamax comicfury"
fi fi
for script in $list; do for script in $list; do
echo "Executing ${script}.py" echo "Executing ${script}.py"

View file

@ -9,7 +9,7 @@ d=$(dirname $0)
if [ $# -ge 1 ]; then if [ $# -ge 1 ]; then
list="$*" list="$*"
else else
list="creators gocomics drunkduck keenspot smackjeeves arcamax comicfury" list="creators gocomics drunkduck comicgenesis keenspot smackjeeves arcamax comicfury"
fi fi
for script in $list; do for script in $list; do
target="${d}/../dosagelib/plugins/${script}.py" target="${d}/../dosagelib/plugins/${script}.py"