Tweak plugin chapter range, bump appspot version.

This commit is contained in:
Jim Miller 2012-05-31 18:52:45 -05:00
parent ddabc4141a
commit ebd22ff966
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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."