Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
82b1fcc
Initial commit
twiddli Jun 26, 2017
43d0db9
merge
twiddli Jul 1, 2018
4f1e3a7
update
twiddli Jul 1, 2018
5e10e13
update
twiddli Jul 1, 2018
1e99eaf
update
twiddli Jul 1, 2018
fc9ce06
add plugin links;
twiddli Jul 1, 2018
82685e1
update file metadata plugin to 0.2.0b;
twiddli Jul 24, 2018
9badf6d
build readme
twiddli Jul 24, 2018
b006454
update readme
twiddli Jul 24, 2018
7ded693
update file metadata plugin to 0.2.0b; (#5)
twiddli Jul 24, 2018
e879cfd
LGPL;
twiddli Oct 27, 2018
c80579e
finish plugins;
twiddli Oct 30, 2018
87b8797
add readmes;
twiddli Oct 30, 2018
18cf3d3
EHentai Login & Ehentai Metadata (#7)
twiddli Oct 30, 2018
5361149
update readme;
twiddli Oct 30, 2018
5c0c0d4
merge
twiddli Oct 30, 2018
5786352
update readme;
twiddli Oct 30, 2018
078dafc
update readme;
twiddli Oct 30, 2018
1f57f27
add option
twiddli Oct 31, 2018
3665a2e
bump to 0.2.0b;
twiddli Oct 31, 2018
e798840
increase default delay limit;
twiddli Nov 1, 2018
e07a524
increase default delay to 9;
twiddli Nov 3, 2018
f3e221e
update readme;
twiddli Nov 3, 2018
fa5903c
Update File Metadata & EHentai Login plugins (#9)
twiddli Nov 3, 2018
42d58af
change default delay to 6 secs; update ehentai metadata;
twiddli Nov 5, 2018
e71e39e
merge
twiddli Nov 5, 2018
0b341ca
build
twiddli Nov 5, 2018
048b57f
merge
twiddli Nov 5, 2018
e1995fb
Update EHentai Metadata plugin (#11)
twiddli Nov 5, 2018
70f7db1
fix readme;
twiddli Nov 5, 2018
df0e2ac
fix readme;
twiddli Nov 5, 2018
0d00e57
merge
twiddli Nov 6, 2018
60aeb5d
update file metadata to 0.3.0b;
twiddli Nov 6, 2018
cb2a636
update readme
twiddli Nov 6, 2018
3c46ce4
clarify method;
twiddli Nov 6, 2018
98fd89f
Update File Metadata & files (#13)
twiddli Nov 6, 2018
ae7b9e9
chaika metadata
twiddli Nov 28, 2018
6189e3b
Merge branch 'master' into update
twiddli Nov 28, 2018
aa2895a
Chaika Metadata
twiddli Nov 28, 2018
e9cd549
small fixes;
twiddli Nov 28, 2018
6059524
merge;
twiddli Nov 28, 2018
6e2f774
Merge branch 'update' of github.com-pewpews:happypandax/plugins into …
twiddli Nov 28, 2018
6cfea47
Merge branch 'master' into update
twiddli Nov 28, 2018
3008c99
update Ehentai Metadata
twiddli Mar 30, 2019
f38a90c
update readme
twiddli Mar 30, 2019
e53065d
Update EHentai Metadata (#19)
twiddli Mar 30, 2019
ecf9c28
Updated to reflect new changes in HPX v0.10.0;
twiddli Jun 4, 2019
cf632fb
fix;
twiddli Jun 4, 2019
19b6987
update readme;
twiddli Jun 4, 2019
9237a00
merge update;
twiddli Jun 4, 2019
81aa071
fix;
twiddli Jun 4, 2019
b966695
updated the File Metadata plugin to v1.0.1;
twiddli Jun 6, 2019
6c7b86c
updated the File Metadata plugin to v1.0.1; (#22)
twiddli Jun 6, 2019
dfe8541
updated ehentai-metadata to 1.1.0;
twiddli Jun 15, 2019
a6eb586
Merge branch 'master' into update
twiddli Jun 15, 2019
11a7921
updated ehentai-metadata; fixed ci script;
twiddli Jun 15, 2019
cc8239b
update ci script; update ehentai-metadata;
twiddli Jun 15, 2019
262eb05
update ci;
twiddli Jun 15, 2019
d2a68c7
Updated ehentai-metadata to 1.1.0; (#25)
twiddli Jun 15, 2019
eda10bc
update default delays; update FileMetadata
twiddli Jun 22, 2019
5f176d8
udpate
twiddli Jun 22, 2019
72017b8
Update FileMetadata;
twiddli Jun 22, 2019
de4c4d5
Save published data in File Metadata (#27)
emmauss Jul 6, 2019
066d63a
fixed conflict;
twiddli Jul 29, 2019
c1675f2
updated File Metadata plugin to act as a regular metadata handler;
twiddli Aug 28, 2019
c1958f3
Update File Metadata (#32)
twiddli Aug 28, 2019
c702c12
update File Metadata
twiddli Sep 5, 2019
83dfc05
merge
twiddli Sep 5, 2019
d6c359a
Update File Metadata
twiddli Sep 5, 2019
76abde7
update EHentai Metadata
twiddli Sep 5, 2019
136fbba
Merge branch 'master' into update
twiddli Sep 5, 2019
cdbc20a
add a bunch of downloader plugins; update some plugins;
twiddli Oct 15, 2019
e59edb5
update readme;
twiddli Oct 15, 2019
ac37240
update ehentai login to 1.1.0;
twiddli Jul 7, 2020
3f1f083
Merge pull request #37 from happypandax/update
twiddli Jul 7, 2020
01faceb
updated nhentai metadata
twiddli Aug 17, 2020
6472a37
updated nhentai metadata (#38)
twiddli Aug 17, 2020
10e87d9
fix gallery name parsing because of layout change
AnonRaver Aug 31, 2020
6f98c40
Merge pull request #1 from AnonRaver/bugfix/anon-fix_nh_title_parsing…
AnonRaver Aug 31, 2020
4ecc1b3
add better error handling in filemetadata;
twiddli Mar 21, 2021
81becd7
Merge branch 'AnonRaver-master' into update
twiddli Mar 21, 2021
4c2a313
update readmes;
twiddli Mar 21, 2021
8ec25e3
update readme
twiddli Mar 21, 2021
b7c564f
Added tags to the title for common failure conditions
glop102 Sep 1, 2022
c338988
Failed attempt at expunged galleries
glop102 Sep 15, 2022
c5e6c02
Small refactor to the ehentai downloader
glop102 Sep 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ logs/
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
*.info

# Gradle
.idea/**/gradle.xml
Expand Down Expand Up @@ -174,6 +175,7 @@ venv.bak/
.mypy_cache/

### VisualStudioCode ###
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
Expand Down
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
notifications:
email:
on_success: never
on_failure: always
language: python
python: 3.6
addons:
apt:
update: true
env:
global:
- GH_USER=Twiddly
- GH_MAIL=pew@pewpew.moe
- REPO=happypandax/plugins
- secure: sogo+NT/2/Xr1LNmksFbMSoGCNCgVUcQynhkBiLqSfLrfT9zDXVYl4FGqIntARJSNK1BTvayV/XD0HOtMzbjeARoR91+NYgPScV3PRDu/Bw+X4yM8jjN7GZjz5+a5+co+A8cfuKdrf93CNVV6N02fxzqdC9lhoyp+HD7JxbWKl2+8YmQetrAD4dGf+KaVcJKHr/pgpBND5Tp17jO4vAEbqD+GT7aXDoC+81Onq8UOzNI0/A9s+2IzMlG4Jhfdr52ynpND1plycspByVI3kRqrFPEcWk4x2U5C8OKU6Hf4Zuj3G1d37c8MP6F9F362m6MWa4cfxOeKCmP6uRSVEf9Oxb/w2OnEg40U5nYEpBvziml1STINSgQQlwI4+iO0o1G4Zl7nRsyICZEAhzJRjoPcF5+IfzjGera0xxFkVd+0A9fz8kAyTp53BK5uAxgiaLcIfVj9WsZhSuJPG4kx0abnaNLPJtrDDTdBX9+A0Xk9sXHBCphFVOhobTUspmpCN4zWO9jH8xcPotRyo4D53I7yapSiia89yDxQNLnoNGDVPuX4KTMWO9w2snczEKo9rSJUDJVqdRU1LXbERFCoyCd33Rfm9EZsR06mtkjkpAL7YWOfbjSlyes87OBS3sRW7FqmQPEgSVbovmygOa564Yfo9B48doSKtg09aj0IBJxxXk=


script:
- python3 build.py
- git config --local user.name "$GH_USER"
- git config --local user.email "$GH_MAIL"
- git commit -am "build"
- git push --quiet "https://$GITHUB_TOKEN@github.com/$REPO.git" master > /dev/null 2>&1

branches:
only:
- master
3 changes: 3 additions & 0 deletions Example Plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@

@hpx.subscribe("init")
def inited():
"Called when this plugin is initialised"
pass

@hpx.subscribe("disable")
def disabled():
"Called when this plugin has been disiabled"
pass

@hpx.subscribe("remove")
def removed():
"Called when this plugin is about to be removed"
pass
File renamed without changes.
165 changes: 165 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

#### In this repository resides plugins for HappyPanda X. If you wish to write a plugin for HPX head over to [the docs](https://happypandax.github.io/plugin.html#plugins).

### How to download

I recommend these tools to download a single directory from this repo:
- https://minhaskamal.github.io/DownGit/ -- *Paste the url to the plugin folder in this repo*
- https://kinolien.github.io/gitzip/ -- *Paste the url to the plugin folder in this repo*
- [Firefox Addon](https://addons.mozilla.org/en-US/firefox/addon/gitzip/)
- [Chrome Extension](https://chrome.google.com/webstore/detail/gitzip-for-github/ffabmkklhbepgcgfonabamgnfafbdlkn)

### How to install

Please see [#Installing plugins](https://happypandax.github.io/usage.html#installing-plugins) in the documentation.

# Be careful about plugins

Read the relevant section [#Be careful about plugins](https://happypandax.github.io/usage.html#be-careful-about-plugins) in the documentation

# Plugins

Name | Version | Description
--- | --- | ---
[**Chaika Downloader**](https://github.com/happypandax/plugins/tree/master/plugins/Chaika%20Downloader) | `1.0.0` | *A plugin that enables downloading manga and doujinshi from panda.chaika.moe*
[**Chaika Metadata**](https://github.com/happypandax/plugins/tree/master/plugins/Chaika%20Metadata) | `1.0.0` | *A plugin that can fetch metadata from Panda.Chaika*
[**EHentai Downloader**](https://github.com/happypandax/plugins/tree/master/plugins/EHentai%20Downloader) | `1.0.0` | *A plugin that enables downloading manga and doujinshi from E-Hentai & ExHentai*
[**EHentai Login**](https://github.com/happypandax/plugins/tree/master/plugins/EHentai%20Login) | `1.1.0` | *A plugin that can login to E-Hentai & ExHentai*
[**EHentai Metadata**](https://github.com/happypandax/plugins/tree/master/plugins/EHentai%20Metadata) | `1.2.1` | *A plugin that can fetch metadata from E-Hentai & ExHentai*
[**File Metadata**](https://github.com/happypandax/plugins/tree/master/plugins/File%20Metadata) | `2.0.2` | *Extracts and applies metadata from a file accompanying a gallery. Supports files produced from eze, e-hentai-downloader and hdoujin*
[**NHentai Downloader**](https://github.com/happypandax/plugins/tree/master/plugins/NHentai%20Downloader) | `1.0.1` | *A plugin that enables downloading manga and doujinshi from nhentai.net*
[**NHentai Metadata**](https://github.com/happypandax/plugins/tree/master/plugins/NHentai%20Metadata) | `1.0.1` | *A plugin that can fetch metadata from nhentai.net*


65 changes: 65 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import json
import glob
import pathlib
from urllib.parse import quote

readme = """
#### In this repository resides plugins for HappyPanda X. If you wish to write a plugin for HPX head over to [the docs](https://happypandax.github.io/plugin.html#plugins).

### How to download

I recommend these tools to download a single directory from this repo:
- https://minhaskamal.github.io/DownGit/ -- *Paste the url to the plugin folder in this repo*
- https://kinolien.github.io/gitzip/ -- *Paste the url to the plugin folder in this repo*
- [Firefox Addon](https://addons.mozilla.org/en-US/firefox/addon/gitzip/)
- [Chrome Extension](https://chrome.google.com/webstore/detail/gitzip-for-github/ffabmkklhbepgcgfonabamgnfafbdlkn)

### How to install

Please see [#Installing plugins](https://happypandax.github.io/usage.html#installing-plugins) in the documentation.

# Be careful about plugins

Read the relevant section [#Be careful about plugins](https://happypandax.github.io/usage.html#be-careful-about-plugins) in the documentation

# Plugins

{}

"""

plugins_dir = "plugins"
readme_file = "README.md"
desc_max_length = 200
repo_user = "happypandax"
repo_name = "plugins"

def main():
print("Building...")
plugin_readme = "Name | Version | Description\n--- | --- | ---\n"

for p in sorted(glob.glob(f"{plugins_dir}/**/hplugin.json")):
with open(p, 'r', encoding="utf-8") as f:
d = json.load(f)
plugin_dir = pathlib.Path(p).parent
dir_name = plugin_dir.name
plugin_dir = str(plugin_dir).replace('\\', '/')
plugin_desc = d.get("description")
plugin_ver = d.get("version")

gh_url = f"https://github.com/{repo_user}/{repo_name}/tree/master/{quote(plugin_dir)}"

if plugin_desc and plugin_ver:
plugin_desc = plugin_desc.split('\n')[0]
if len(plugin_desc) > desc_max_length:
plugin_desc = plugin_desc[:desc_max_length] + '…'
plugin_readme += f"[**{dir_name}**]({gh_url}) | `{plugin_ver}` | *{plugin_desc}*\n"

txt = readme.format(plugin_readme)

with open(readme_file, 'w', encoding="utf-8") as f:
f.write(txt)
print("Done!")

if __name__ == '__main__':
main()
15 changes: 15 additions & 0 deletions plugins/Chaika Downloader/hplugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "dd86876d-4d4e-438e-bc2e-fbbb18e35742",
"shortname": "chaika-downloader",
"name": "Chaika Downloader",
"version": "1.0.0",
"description": "A plugin that enables downloading manga and doujinshi from panda.chaika.moe",
"author": "Twiddly",
"update_url": "https://github.com/happypandax/plugins/tree/master/plugins/Chaika%20Downloader",
"website": "https://github.com/happypandax/plugins/tree/master/plugins/Chaika%20Downloader",
"entry": "main.py",
"test": "test.py",
"require": [
"happypandax >= 0.12.0"
]
}
Loading