From dc5837badbbc0bcc198902899f0b5fc02cce6174 Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 21:42:18 -0300 Subject: [PATCH 1/6] orphan_account authorUrl This replaces the orphan_account authorUrl (which 404's) with a link to the AO3 homepage --- fanficfare/defaults.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 70733afc..3b125ec8 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -1581,6 +1581,10 @@ include_in_freefromtags:freeformtags include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: chapterstotal=>^([0-9])+/(.+)$=>\2 + + ## The link to orphan_account just leads to a 404 page. + ## This replaces it with a link to the AO3 homepage. + authorUrl=>(https://archiveofourown\.org)/users/orphan_account/pseuds/orphan_account=>\1 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline From cde8a739fb9177a1a020563ccf9a5f4cc8a9b342 Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 21:44:29 -0300 Subject: [PATCH 2/6] orphan_account authorUrl This replaces the orphan_account authorUrl (which 404's) with a link to the AO3 homepage --- calibre-plugin/plugin-defaults.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index edc4a108..0270d098 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -1577,6 +1577,10 @@ include_in_freefromtags:freeformtags include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: chapterstotal=>^([0-9])+/(.+)$=>\2 + + ## The link to orphan_account just leads to a 404 page. + ## This replaces it with a link to the AO3 homepage. + authorUrl=>(https://archiveofourown\.org)/users/orphan_account/pseuds/orphan_account=>\1 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline From 3f52734da23006f8c22482e849992bd789d32be2 Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 23:32:02 -0300 Subject: [PATCH 3/6] Replacing orphan_account regex --- calibre-plugin/plugin-defaults.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index 0270d098..88463d89 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -1578,9 +1578,10 @@ include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: chapterstotal=>^([0-9])+/(.+)$=>\2 - ## The link to orphan_account just leads to a 404 page. + ## Due to a bug with Archive of Our Own, the + ## link to orphan_account just leads to a 404 page. ## This replaces it with a link to the AO3 homepage. - authorUrl=>(https://archiveofourown\.org)/users/orphan_account/pseuds/orphan_account=>\1 + ## authorUrl=>(/users/orphan_account)/pseuds/.*$=>\1 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline From fc3e8bb8ff0d1d0814214385e35cbc87c3a60816 Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 23:32:37 -0300 Subject: [PATCH 4/6] Replacing orphan_account regex --- fanficfare/defaults.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 3b125ec8..825f7be5 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -1582,9 +1582,10 @@ include_in_chapterstotal:chapterslashtotal.NOREPL add_to_replace_metadata: chapterstotal=>^([0-9])+/(.+)$=>\2 - ## The link to orphan_account just leads to a 404 page. + ## Due to a bug with Archive of Our Own, the + ## link to orphan_account just leads to a 404 page. ## This replaces it with a link to the AO3 homepage. - authorUrl=>(https://archiveofourown\.org)/users/orphan_account/pseuds/orphan_account=>\1 + ## authorUrl=>(/users/orphan_account)/pseuds/.*$=>\1 ## adds to titlepage_entries instead of replacing it. #extra_titlepage_entries: fandoms,freeformtags,ao3categories,comments,chapterslashtotal,chapterstotal,kudos,hits,bookmarks,bookmarked,bookmarktags,bookmarksummary,series01HTML,series02HTML,series03HTML,byline From 6fec02f79e6fd20eed525ad09a0752d82d61b11c Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 23:38:51 -0300 Subject: [PATCH 5/6] missed a line... --- calibre-plugin/plugin-defaults.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index 88463d89..5205ad12 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -1580,7 +1580,6 @@ add_to_replace_metadata: ## Due to a bug with Archive of Our Own, the ## link to orphan_account just leads to a 404 page. - ## This replaces it with a link to the AO3 homepage. ## authorUrl=>(/users/orphan_account)/pseuds/.*$=>\1 ## adds to titlepage_entries instead of replacing it. From c7c029c7065fefc165a618197c4dcf1bf884c0c1 Mon Sep 17 00:00:00 2001 From: chocolatechipcats <47759676+chocolatechipcats@users.noreply.github.com> Date: Tue, 4 Apr 2023 23:39:28 -0300 Subject: [PATCH 6/6] missed a line... --- fanficfare/defaults.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 825f7be5..90575d5d 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -1584,7 +1584,6 @@ add_to_replace_metadata: ## Due to a bug with Archive of Our Own, the ## link to orphan_account just leads to a 404 page. - ## This replaces it with a link to the AO3 homepage. ## authorUrl=>(/users/orphan_account)/pseuds/.*$=>\1 ## adds to titlepage_entries instead of replacing it.