mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-01 13:44:48 +01:00
Phoenixsong can have individual chapters req login. Add force_login parameter.
This commit is contained in:
parent
a6b9ca52bb
commit
ccc07676fb
3 changed files with 19 additions and 6 deletions
|
|
@ -1216,6 +1216,12 @@ extraships:Harry Potter/Ginny Weasley
|
|||
#username:YourName
|
||||
#password:yourpassword
|
||||
|
||||
## phoenixsong.net, oddly, can have high rated chapters (login
|
||||
## required) in the middle of a lower rated story. Use this to force
|
||||
## FFDL to always login to phoenixsong.net so those stories download
|
||||
## correctly.
|
||||
#force_login:true
|
||||
|
||||
[www.potionsandsnitches.net]
|
||||
## Site dedicated to these categories/characters/ships
|
||||
extracategories:Harry Potter
|
||||
|
|
|
|||
|
|
@ -112,6 +112,8 @@ class PhoenixSongNetAdapter(BaseSiteAdapter):
|
|||
logger.debug("URL: "+url)
|
||||
|
||||
try:
|
||||
if self.getConfig('force_login'):
|
||||
self.performLogin(url)
|
||||
data = self._fetchUrl(url)
|
||||
except urllib2.HTTPError, e:
|
||||
if e.code == 404:
|
||||
|
|
@ -123,7 +125,6 @@ class PhoenixSongNetAdapter(BaseSiteAdapter):
|
|||
# need to log in for this one.
|
||||
self.performLogin(url)
|
||||
data = self._fetchUrl(url)
|
||||
|
||||
|
||||
# use BeautifulSoup HTML parser to make everything easier to find.
|
||||
soup = bs.BeautifulSoup(data)
|
||||
|
|
|
|||
|
|
@ -654,6 +654,11 @@ cover_exclusion_regexp:/images/.*?ribbon.gif
|
|||
## Site dedicated to these categories/characters/ships
|
||||
extracategories:Harry Potter
|
||||
|
||||
## 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 require login (or login for some rated stories) The
|
||||
## program can prompt you, or you can save it in config. In
|
||||
## commandline version, this should go in your personal.ini, not
|
||||
|
|
@ -661,11 +666,6 @@ extracategories:Harry Potter
|
|||
#username:YourName
|
||||
#password:yourpassword
|
||||
|
||||
## Some sites also 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
|
||||
|
||||
[fanfic.potterheadsanonymous.com]
|
||||
## Site dedicated to these categories/characters/ships
|
||||
extracategories:Harry Potter
|
||||
|
|
@ -1200,6 +1200,12 @@ extraships:Harry Potter/Ginny Weasley
|
|||
#username:YourName
|
||||
#password:yourpassword
|
||||
|
||||
## phoenixsong.net, oddly, can have high rated chapters (login
|
||||
## required) in the middle of a lower rated story. Use this to force
|
||||
## FFDL to always login to phoenixsong.net so those stories download
|
||||
## correctly.
|
||||
#force_login:true
|
||||
|
||||
[www.potionsandsnitches.net]
|
||||
## Site dedicated to these categories/characters/ships
|
||||
extracategories:Harry Potter
|
||||
|
|
|
|||
Loading…
Reference in a new issue