Skip to content

Commit

Permalink
have e-hentai and exhentai on supportedsites.rst (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 3, 2019
1 parent 3957d27 commit f687052
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 1.10.1 - 2019-08-02
## Fixes
- Restore functionality of both domains for `exhentai` extractors
- Use the correct domain for exhentai.org input URLs

## 1.10.0 - 2019-08-01
### Warning
Expand Down
1 change: 1 addition & 0 deletions docs/supportedsites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Dynasty Reader https://dynasty-scans.com/ Chapters, individual Im
E-Hentai https://e-hentai.org/ Favorites, Galleries, Search Results Optional
e621 https://e621.net/ Pools, Popular Images, Posts, Tag-Searches
EroLord.com http://erolord.com/ Galleries
ExHentai https://exhentai.org/ Favorites, Galleries, Search Results Optional
Fallen Angels Scans https://www.fascans.com/ Chapters, Manga
Fashion Nova https://www.fashionnova.com/ Collections, Products
Fireden https://boards.fireden.net/ Threads
Expand Down
13 changes: 12 additions & 1 deletion scripts/supportedsites.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"dynastyscans" : "Dynasty Reader",
"e621" : "e621",
"erolord" : "EroLord.com",
"exhentai" : "E-Hentai",
"e-hentai" : "E-Hentai",
"exhentai" : "ExHentai",
"fallenangels" : "Fallen Angels Scans",
"fashionnova" : "Fashion Nova",
"hbrowse" : "HBrowse",
Expand Down Expand Up @@ -109,6 +110,7 @@
AUTH_MAP = {
"danbooru" : "Optional",
"deviantart" : "Optional (OAuth)",
"e-hentai" : "Optional",
"exhentai" : "Optional",
"flickr" : "Optional (OAuth)",
"idolcomplex": "Optional",
Expand Down Expand Up @@ -203,6 +205,15 @@ def build_extractor_list():
for extrlist in extractors.values():
extrlist.sort(key=subcategory_key)

# ugly hack to add e-hentai.org
eh = []
for extr in extractors["exhentai"]:
class eh_extr(extr):
category = "e-hentai"
root = "https://e-hentai.org"
eh.append(eh_extr)
extractors["e-hentai"] = eh

# sort lists by category
return sorted(
extractors.values(),
Expand Down

0 comments on commit f687052

Please sign in to comment.