From a2eaa9fb2298079725954b2b925fae3dccfa572f Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 21 Apr 2012 21:37:16 -0500 Subject: [PATCH] Fix for ArchiveOfOurOwn site change. --- calibre-plugin/__init__.py | 2 +- .../adapters/adapter_archiveofourownorg.py | 2 +- index.yaml | 11 +++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index 8a075343..a59cecfe 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -27,7 +27,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase): description = 'UI plugin to download FanFiction stories from various sites.' supported_platforms = ['windows', 'osx', 'linux'] author = 'Jim Miller' - version = (1, 5, 14) + version = (1, 5, 15) minimum_calibre_version = (0, 8, 30) #: This field defines the GUI plugin class that contains all the code diff --git a/fanficdownloader/adapters/adapter_archiveofourownorg.py b/fanficdownloader/adapters/adapter_archiveofourownorg.py index ede2a023..feda891a 100644 --- a/fanficdownloader/adapters/adapter_archiveofourownorg.py +++ b/fanficdownloader/adapters/adapter_archiveofourownorg.py @@ -101,7 +101,7 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter): # Now go hunting for all the meta data and the chapter list. ## Title - a = soup.find('a', href=re.compile(r"^/works/\w+")) + a = soup.find('a', href=re.compile(r"^/works/\d+$")) self.story.setMetadata('title',a.string) # Find authorid and URL from... author url. diff --git a/index.yaml b/index.yaml index 16bcaefe..a55512f1 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,6 @@ indexes: -# AUTOGENERATED +# notAUTOGENERATED # This index.yaml is automatically updated whenever the dev_appserver # detects that a new type of query is run. If you want to manage the @@ -21,13 +21,8 @@ indexes: - name: date direction: desc -- kind: DownloadedFanfic +- kind: SavedMeta properties: - - name: cleared - - name: date - -- kind: DownloadedFanfic - properties: - - name: user + - name: count - name: date direction: desc