forked from manga-download/hakuneko
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
593 changed files
with
12,219 additions
and
3,291 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
.github/ISSUE_TEMPLATE/1-connector-website-not-working.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: ❗ Connector/Website not working | ||
description: Notify that a connector is not working | ||
title: "[<NameOfConnector>] Connector not working" | ||
labels: ["Website Change"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this connector? | ||
description: Do not create duplicate of an existing issue related to the connector | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Did you read the troubleshooting guide ? | ||
description: Please check [the troubleshooting guide](https://hakuneko.download/docs/troubleshoot/) if your issue might not be related to some known cases. | ||
options: | ||
- label: I read it but nothing seems related | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Is the website of the connector working properly ? | ||
description: If the website isn't working, hakuneko will not solve the issue. | ||
options: | ||
- label: Yes i'm able to see the manga within my standard browser | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Make sure to try Nightly Build | ||
description: The [nightly build](https://github.com/manga-download/hakuneko/releases) contains latest fixes. Perhaps your problem is already solved. | ||
options: | ||
- label: Yes nightly build didn't fix the issue | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: What kind of issue are you encountering | ||
options: | ||
- Manga list isn't refreshing | ||
- Chapter list isn't refreshing | ||
- Downloads aren't working | ||
- Images are missing in the embeded viewer | ||
- Other | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: To Reproduce | ||
description: Steps to reproduce the behavior | ||
value: | | ||
1. Name of connector | ||
2. Name of manga (if connector update is working) | ||
3. Name of chapter (if manga update is working) | ||
4. Copy any relevant error message that appears in a popup or (advanced) within the console (press F12) | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**Screenshots** | ||
If complex to describe, add screenshots to help explain your problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ cache | |
/redist/*.zip | ||
/test/*.log | ||
junit.xml | ||
.idea/ | ||
.idea/ | ||
.vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+15.3 KB
src/web/img/connectors/assortedscans → src/web/img/connectors/mangadig
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import WordPressMangastream from './templates/WordPressMangastream.mjs'; | ||
|
||
export default class AGS extends WordPressMangastream { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'ags'; | ||
super.label = 'AGS (Animated Glitched Scans)'; | ||
this.tags = [ 'manga', 'english', 'scanlation' ]; | ||
this.url = 'https://agscomics.com'; | ||
this.path = '/series/?list'; | ||
} | ||
|
||
get icon() { | ||
return '/img/connectors/anigliscans'; | ||
} | ||
|
||
async _getPages(chapter) { | ||
const data = await super._getPages(chapter); | ||
return data.map(element => this.createConnectorURI(element)); | ||
} | ||
|
||
async _handleConnectorURI(payload) { | ||
const request = new Request(payload, this.requestOptions); | ||
request.headers.set('x-referer', this.url); | ||
let response = await fetch(request); | ||
let data = await response.blob(); | ||
data = await this._blobToBuffer(data); | ||
this._applyRealMime(data); | ||
return data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import Connector from '../engine/Connector.mjs'; | ||
import Manga from '../engine/Manga.mjs'; | ||
|
||
export default class Agitoon extends Connector { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'agitoon'; | ||
super.label = 'Agitoon'; | ||
this.tags = [ 'webtoon', 'korean' ]; | ||
this.url = 'https://agit185.com'; | ||
this.cdns = []; | ||
this.img_per = []; | ||
|
||
} | ||
|
||
async _initializeConnector() { | ||
await this._getNeededValues(); | ||
} | ||
|
||
async _getNeededValues() { | ||
const uri = new URL(`/data/azitoon.js?v=${Math.random()}`, this.url); | ||
const request = new Request(uri, this.requestOptions); | ||
request.headers.set('x-referer', this.url); | ||
let response = await fetch(request); | ||
response = await response.text(); | ||
|
||
let matches = undefined; | ||
const imgRgx = /var img_domain\d?\s*=\s*"([\S]+)";/g; | ||
this.cdns = []; | ||
// eslint-disable-next-line no-cond-assign | ||
while (matches = imgRgx.exec(response)) { | ||
this.cdns.push(matches[1]); | ||
} | ||
|
||
const img_perRgx = /var img_per\d?\s*=\s*"([\S]+)";/g; | ||
this.img_per = []; | ||
// eslint-disable-next-line no-cond-assign | ||
while (matches= img_perRgx.exec(response)) { | ||
this.img_per.push(parseInt(matches[1])); | ||
} | ||
} | ||
|
||
//CDN is calculated from CHAPTER ID | ||
_getMangaCDN(chapterid) { //adapted from chapter html page script "show_content_img" | ||
if(chapterid % 100< this.img_per[1]) { | ||
return this.cdns[1]; | ||
} else if(chapterid % 100<this.img_per[1]+this.img_per[2]) { | ||
return this.cdns[2]; | ||
} else if(chapterid % 100<this.img_per[1]+this.img_per[2] + this.img_per[3]) { | ||
return this.cdns[3]; | ||
} else if(chapterid % 100<this.img_per[1]+this.img_per[2] + this.img_per[3] + this.img_per[4]) { | ||
return this.cdns[4]; | ||
} else{ | ||
return this.cdns[0]; | ||
} | ||
|
||
} | ||
|
||
async _getMangaFromURI(uri) { | ||
let request = new Request(uri, this.requestOptions); | ||
let data = await this.fetchDOM(request, 'title'); | ||
let id = uri.pathname.match(/\/azi_toon\/(\d+)\.html/)[1]; | ||
let title = data[0].text.split(' - ')[1].trim(); | ||
return new Manga(this, id, title); | ||
} | ||
|
||
async _getMangas() { | ||
const paths = ['/data/azi_webtoon_0.js?v=_', '/data/azi_webtoon_1.js?v=_']; | ||
const mangalist = []; | ||
for (const path of paths) { | ||
mangalist.push(... await this._fetchJSONMangas(path)); | ||
} | ||
return mangalist; | ||
|
||
} | ||
|
||
async _fetchJSONMangas(path) { | ||
const request = new Request(new URL(path, this.url)); | ||
request.headers.set('x-referer', this.url); | ||
let response = await fetch(request); | ||
response = await response.text(); | ||
const data = JSON.parse(response.match(/var data\d{1}\s*=\s*([\W\S]+);/)[1]); | ||
return data.map(element => { | ||
return { | ||
id: element.x, | ||
title: element.t.trim() | ||
}; | ||
}); | ||
} | ||
async _getChapters(manga) { | ||
const uri = new URL(`/data/toonlist/${manga.id}.js?v=${Math.random()}`, this.url); | ||
const request = new Request(uri, this.requestOptions ); | ||
request.headers.set('x-referer', this.url); | ||
let response = await fetch(request); | ||
response = await response.text(); | ||
const data = JSON.parse(response.match(/var clist\s*=\s*([\W\S]+);/)[1]); | ||
return data.map(element => { | ||
return { | ||
id: element.u, | ||
title: element.t.replace(manga.title, '').replace('- ', '').trim(), | ||
}; | ||
}); | ||
} | ||
|
||
async _getPages(chapter) { | ||
const chapterid = chapter.id.match(/\/(\d+)\.html/)[1]; | ||
const mangadomain = this._getMangaCDN(chapterid); | ||
const uri = new URL(chapter.id, this.url); | ||
const request = new Request(uri, this.requestOptions ); | ||
const data = await this.fetchDOM(request, 'div#toon_content_imgs source'); | ||
return data.map(link => this.getAbsolutePath(link.getAttribute('o_src'), mangadomain)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import WordPressMangastream from './templates/WordPressMangastream.mjs'; | ||
|
||
export default class Alceascan extends WordPressMangastream { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'alceascan'; | ||
super.label = 'Alceascan'; | ||
this.tags = ['manga', 'indonesian', 'scanlation']; | ||
this.url = 'https://alceascan.my.id'; | ||
this.path = '/manga/list-mode/'; | ||
} | ||
} |
Oops, something went wrong.