mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
Tweak plugin chapter range, bump appspot version.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# ffd-retief-hrd fanfictiondownloader
|
||||
application: fanfictiondownloader
|
||||
version: 4-4-13
|
||||
version: 4-4-14
|
||||
runtime: python27
|
||||
api_version: 1
|
||||
threadsafe: true
|
||||
|
||||
@@ -954,12 +954,14 @@ make_firstimage_cover:true
|
||||
uniqueurls = set()
|
||||
for url in urls:
|
||||
# look here for [\d,\d] at end of url, and remove?
|
||||
mc = re.match(r"^(?P<url>.*?)(?:\[(?P<begin>\d+)?(?:,(?P<end>\d+))?\])?$",url)
|
||||
mc = re.match(r"^(?P<url>.*?)(?:\[(?P<begin>\d+)?(?P<comma>,)?(?P<end>\d+)?\])?$",url)
|
||||
print("url:(%s) begin:(%s) end:(%s)"%(mc.group('url'),mc.group('begin'),mc.group('end')))
|
||||
url = mc.group('url')
|
||||
book = self._convert_url_to_book(url)
|
||||
book['begin'] = mc.group('begin')
|
||||
book['end'] = mc.group('end')
|
||||
if book['begin'] and not mc.group('comma'):
|
||||
book['end'] = book['begin']
|
||||
if book['url'] in uniqueurls:
|
||||
book['good'] = False
|
||||
book['comment'] = "Same story already included."
|
||||
|
||||
Reference in New Issue
Block a user