mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-22 08:44:13 +01:00
Bump plugin version, add links to FAQ & Supported list to About & Config.
Add DB error to mw.
This commit is contained in:
parent
8c5f784afb
commit
0f68c6ec29
7 changed files with 49 additions and 8 deletions
|
|
@ -27,7 +27,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase):
|
||||||
description = 'UI plugin to download FanFiction stories from various sites.'
|
description = 'UI plugin to download FanFiction stories from various sites.'
|
||||||
supported_platforms = ['windows', 'osx', 'linux']
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
author = 'Jim Miller'
|
author = 'Jim Miller'
|
||||||
version = (1, 5, 8)
|
version = (1, 5, 9)
|
||||||
minimum_calibre_version = (0, 8, 30)
|
minimum_calibre_version = (0, 8, 30)
|
||||||
|
|
||||||
#: This field defines the GUI plugin class that contains all the code
|
#: This field defines the GUI plugin class that contains all the code
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,11 @@ group</a> for the downloader. That covers the web application and CLI, too.
|
||||||
|
|
||||||
The source for this plugin is available at it's
|
The source for this plugin is available at it's
|
||||||
<a href="http://code.google.com/p/fanficdownloader">project home</a>.
|
<a href="http://code.google.com/p/fanficdownloader">project home</a>.
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<p>
|
||||||
|
See the <a href="http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderSupportedsites">list of supported sites</a>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Read the <a href="http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderFAQs">FAQs</a>.
|
||||||
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,10 @@ class ConfigWidget(QWidget):
|
||||||
self.l = QVBoxLayout()
|
self.l = QVBoxLayout()
|
||||||
self.setLayout(self.l)
|
self.setLayout(self.l)
|
||||||
|
|
||||||
|
label = QLabel('<a href="http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderSupportedsites">List of Supported Sites</a> -- <a href="http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderFAQs">FAQs</a>')
|
||||||
|
label.setOpenExternalLinks(True)
|
||||||
|
self.l.addWidget(label)
|
||||||
|
|
||||||
tab_widget = QTabWidget(self)
|
tab_widget = QTabWidget(self)
|
||||||
self.l.addWidget(tab_widget)
|
self.l.addWidget(tab_widget)
|
||||||
|
|
||||||
|
|
|
||||||
14
defaults.ini
14
defaults.ini
|
|
@ -330,6 +330,12 @@ extratags: FanFiction,Testing,HTML
|
||||||
#username:YourName
|
#username:YourName
|
||||||
#password:yourpassword
|
#password:yourpassword
|
||||||
|
|
||||||
|
[nfacommunity.com]
|
||||||
|
## Some sites do not require a login, but do require the user to
|
||||||
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
## this should go in your personal.ini, not defaults.ini.
|
||||||
|
#is_adult:true
|
||||||
|
|
||||||
## Some sites also require the user to confirm they are adult for
|
## Some sites also require the user to confirm they are adult for
|
||||||
## adult content. In commandline version, this should go in your
|
## adult content. In commandline version, this should go in your
|
||||||
## personal.ini, not defaults.ini.
|
## personal.ini, not defaults.ini.
|
||||||
|
|
@ -396,8 +402,6 @@ extratags:
|
||||||
## when a password is required rather than prompting every time.
|
## when a password is required rather than prompting every time.
|
||||||
#fail_on_password: false
|
#fail_on_password: false
|
||||||
|
|
||||||
[www.gayauthors.org]
|
|
||||||
|
|
||||||
[www.harrypotterfanfiction.com]
|
[www.harrypotterfanfiction.com]
|
||||||
## Some sites do not require a login, but do require the user to
|
## Some sites do not require a login, but do require the user to
|
||||||
## confirm they are adult for adult content. In commandline version,
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
|
@ -412,6 +416,12 @@ extratags:
|
||||||
|
|
||||||
[www.mediaminer.org]
|
[www.mediaminer.org]
|
||||||
|
|
||||||
|
[www.midnightwhispers.ca]
|
||||||
|
## Some sites do not require a login, but do require the user to
|
||||||
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
## this should go in your personal.ini, not defaults.ini.
|
||||||
|
#is_adult:true
|
||||||
|
|
||||||
[www.potionsandsnitches.net]
|
[www.potionsandsnitches.net]
|
||||||
|
|
||||||
[www.siye.co.uk]
|
[www.siye.co.uk]
|
||||||
|
|
|
||||||
|
|
@ -274,12 +274,16 @@ class MidnightwhispersCaAdapter(BaseSiteAdapter): # XXX
|
||||||
|
|
||||||
logging.debug('Getting chapter text from: %s' % url)
|
logging.debug('Getting chapter text from: %s' % url)
|
||||||
|
|
||||||
soup = bs.BeautifulStoneSoup(self._fetchUrl(url),
|
data = self._fetchUrl(url)
|
||||||
|
soup = bs.BeautifulStoneSoup(data,
|
||||||
selfClosingTags=('br','hr')) # otherwise soup eats the br/hr tags.
|
selfClosingTags=('br','hr')) # otherwise soup eats the br/hr tags.
|
||||||
|
|
||||||
div = soup.find('div', {'id' : 'story'})
|
div = soup.find('div', {'id' : 'story'})
|
||||||
|
|
||||||
if None == div:
|
if None == div:
|
||||||
raise exceptions.FailedToDownload("Error downloading Chapter: %s! Missing required element!" % url)
|
if "A fatal MySQL error was encountered" in data:
|
||||||
|
raise exceptions.FailedToDownload("Error downloading Chapter: %s! Database error on the site reported!" % url)
|
||||||
|
else:
|
||||||
|
raise exceptions.FailedToDownload("Error downloading Chapter: %s! Missing required element!" % url)
|
||||||
|
|
||||||
return self.utf8FromSoup(url,div)
|
return self.utf8FromSoup(url,div)
|
||||||
|
|
|
||||||
|
|
@ -302,6 +302,12 @@ extratags: FanFiction,Testing,HTML
|
||||||
#username:YourName
|
#username:YourName
|
||||||
#password:yourpassword
|
#password:yourpassword
|
||||||
|
|
||||||
|
[nfacommunity.com]
|
||||||
|
## Some sites do not require a login, but do require the user to
|
||||||
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
## this should go in your personal.ini, not defaults.ini.
|
||||||
|
#is_adult:true
|
||||||
|
|
||||||
## Some sites also require the user to confirm they are adult for
|
## Some sites also require the user to confirm they are adult for
|
||||||
## adult content. In commandline version, this should go in your
|
## adult content. In commandline version, this should go in your
|
||||||
## personal.ini, not defaults.ini.
|
## personal.ini, not defaults.ini.
|
||||||
|
|
@ -365,8 +371,6 @@ extratags:
|
||||||
## when a password is required rather than prompting every time.
|
## when a password is required rather than prompting every time.
|
||||||
#fail_on_password: false
|
#fail_on_password: false
|
||||||
|
|
||||||
[www.gayauthors.org]
|
|
||||||
|
|
||||||
[www.harrypotterfanfiction.com]
|
[www.harrypotterfanfiction.com]
|
||||||
## Some sites do not require a login, but do require the user to
|
## Some sites do not require a login, but do require the user to
|
||||||
## confirm they are adult for adult content. In commandline version,
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
|
@ -381,6 +385,12 @@ extratags:
|
||||||
|
|
||||||
[www.mediaminer.org]
|
[www.mediaminer.org]
|
||||||
|
|
||||||
|
[www.midnightwhispers.ca]
|
||||||
|
## Some sites do not require a login, but do require the user to
|
||||||
|
## confirm they are adult for adult content. In commandline version,
|
||||||
|
## this should go in your personal.ini, not defaults.ini.
|
||||||
|
#is_adult:true
|
||||||
|
|
||||||
[www.potionsandsnitches.net]
|
[www.potionsandsnitches.net]
|
||||||
|
|
||||||
[www.siye.co.uk]
|
[www.siye.co.uk]
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,10 @@ python downloader.py http://www.fanfiction.net/s/5192986/1/A_Fox_in_Tokyo
|
||||||
|
|
||||||
Do 'python downloader.py -h' for more options.
|
Do 'python downloader.py -h' for more options.
|
||||||
|
|
||||||
This tool uses Python 2.5.2, but should work with newer versions of Python.
|
This tool uses Python 2.7, but should work with newer versions of Python.
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
|
||||||
|
http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderSupportedsites
|
||||||
|
|
||||||
|
http://code.google.com/p/fanficdownloader/wiki/FanFictionDownloaderFAQs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue