Rename Tapastic to Tapas
The site is know just as "Tapas" since longer then Dosage has support for it. Since the module was merged just recently, this rename shouldn't affect many users...
This commit is contained in:
parent
fb4788414b
commit
1d9b74bd66
4 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
||||||
from ..scraper import _ParserScraper
|
from ..scraper import _ParserScraper
|
||||||
|
|
||||||
|
|
||||||
class Tapastic(_ParserScraper):
|
class Tapas(_ParserScraper):
|
||||||
baseUrl = 'https://tapas.io/'
|
baseUrl = 'https://tapas.io/'
|
||||||
imageSearch = '//article[contains(@class, "js-episode-article")]//img/@data-src'
|
imageSearch = '//article[contains(@class, "js-episode-article")]//img/@data-src'
|
||||||
prevSearch = '//a[contains(@class, "js-prev-ep-btn")]'
|
prevSearch = '//a[contains(@class, "js-prev-ep-btn")]'
|
||||||
|
@ -12,7 +12,7 @@ class Tapastic(_ParserScraper):
|
||||||
multipleImagesPerStrip = True
|
multipleImagesPerStrip = True
|
||||||
|
|
||||||
def __init__(self, name, url):
|
def __init__(self, name, url):
|
||||||
super(Tapastic, self).__init__('Tapastic/' + name)
|
super().__init__('Tapas/' + name)
|
||||||
self.url = self.baseUrl + 'series/' + url + '/info'
|
self.url = self.baseUrl + 'series/' + url + '/info'
|
||||||
self.stripUrl = self.baseUrl + 'episode/%s'
|
self.stripUrl = self.baseUrl + 'episode/%s'
|
||||||
|
|
|
@ -9,7 +9,7 @@ d=$(dirname $0)
|
||||||
if [ $# -ge 1 ]; then
|
if [ $# -ge 1 ]; then
|
||||||
list="$*"
|
list="$*"
|
||||||
else
|
else
|
||||||
list="arcamax comicfury comicgenesis comicskingdom creators gocomics keenspot tapastic webcomicfactory"
|
list="arcamax comicfury comicgenesis comicskingdom creators gocomics keenspot tapas webcomicfactory"
|
||||||
fi
|
fi
|
||||||
for script in $list; do
|
for script in $list; do
|
||||||
echo "Executing ${script}.py"
|
echo "Executing ${script}.py"
|
||||||
|
|
|
@ -11,7 +11,7 @@ from urllib.parse import urlsplit, parse_qs
|
||||||
from scriptutil import ComicListUpdater
|
from scriptutil import ComicListUpdater
|
||||||
|
|
||||||
|
|
||||||
class TapasticUpdater(ComicListUpdater):
|
class TapasUpdater(ComicListUpdater):
|
||||||
def collect_results(self):
|
def collect_results(self):
|
||||||
# Retrieve the first 10 top comics list pages
|
# Retrieve the first 10 top comics list pages
|
||||||
url = 'https://tapas.io/comics?browse=ALL&sort_type=LIKE&pageNumber='
|
url = 'https://tapas.io/comics?browse=ALL&sort_type=LIKE&pageNumber='
|
||||||
|
@ -32,4 +32,4 @@ class TapasticUpdater(ComicListUpdater):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
TapasticUpdater(__file__).run()
|
TapasUpdater(__file__).run()
|
|
@ -11,7 +11,7 @@ d=$(dirname $0)
|
||||||
if [ $# -ge 1 ]; then
|
if [ $# -ge 1 ]; then
|
||||||
list="$*"
|
list="$*"
|
||||||
else
|
else
|
||||||
list="arcamax comicfury comicgenesis comicskingdom creators gocomics keenspot tapastic webcomicfactory"
|
list="arcamax comicfury comicgenesis comicskingdom creators gocomics keenspot tapas webcomicfactory"
|
||||||
fi
|
fi
|
||||||
for script in $list; do
|
for script in $list; do
|
||||||
target="${d}/../dosagelib/plugins/${script}.py"
|
target="${d}/../dosagelib/plugins/${script}.py"
|
||||||
|
|
Loading…
Reference in a new issue