mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-05-21 21:03:33 +12:00
Changed view_mature from a querystring to a header. querystring no longer worked
This commit is contained in:
parent
c318f5830c
commit
b747a6364f
|
@ -544,7 +544,7 @@ class FimFic2Epub extends Emitter {
|
|||
|
||||
fetchTitlePage () {
|
||||
let url = this.storyInfo.url.replace('http://www.fimfiction.net', '')
|
||||
return fetch(url + '?view_mature=true').then(this.extractTitlePageInfo.bind(this))
|
||||
return fetch(url).then(this.extractTitlePageInfo.bind(this))
|
||||
}
|
||||
|
||||
extractTitlePageInfo (html) {
|
||||
|
|
|
@ -11,7 +11,8 @@ function fetchNode (url, responseType) {
|
|||
url: url,
|
||||
encoding: responseType ? null : 'utf8',
|
||||
headers: {
|
||||
referer: 'http://www.fimfiction.net/'
|
||||
referer: 'http://www.fimfiction.net/',
|
||||
Cookie: 'view_mature=true',
|
||||
}
|
||||
}, (error, response, body) => {
|
||||
if (error) {
|
||||
|
|
Loading…
Reference in a new issue