From 33c4f137baa7bc40cf959585c23b671398cfe31d Mon Sep 17 00:00:00 2001 From: Rego Sen Date: Mon, 1 Jan 2018 13:42:28 -0800 Subject: [PATCH] add plugin for gogoimage.org --- README.md | 21 +++++++++++---------- gallery_plugins/plugin_gogoimage.py | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 gallery_plugins/plugin_gogoimage.py diff --git a/README.md b/README.md index 5154308..322a8a2 100755 --- a/README.md +++ b/README.md @@ -18,26 +18,27 @@ Platforms, Python Versions: Gallery Plugins: -* imgur (albums and galleries) -* imgbox -* imagevenue -* imagefap * 4chan +* eroshare +* fuskator * gfycat -* xHamster +* gogoimage +* imagefap +* imagevenue +* imgbox +* imgur (albums and galleries) * Pornhub (albums and single videos) -* xVideos * shimmie -* fuskator -* eroshare * vidble +* xHamster +* xVideos Generic Plugin works for: -* setsdb.org * alafoto.com * forum.phun.org -* more +* setsdb.org +* (more) ## Installation diff --git a/gallery_plugins/plugin_gogoimage.py b/gallery_plugins/plugin_gogoimage.py new file mode 100644 index 0000000..8782c55 --- /dev/null +++ b/gallery_plugins/plugin_gogoimage.py @@ -0,0 +1,19 @@ +# Plugin for gallery_get. + +# Each definition can be one of the following: +# - a string +# - a regex string +# - a function that takes source as a parameter and returns an array or a string. (You may assume that re and urllib are already imported.) +# If you comment out a parameter, it will use the default defined in __init__.py + +# identifier (default = name of this plugin after "plugin_") : If there's a match, we'll attempt to download images using this plugin. + +# title: parses the gallery page for a title. This will be the folder name of the output gallery. + +# redirect: if the links in the gallery page go to an html instead of an image, use this to parse the gallery page. +redirect = r'href=[\"\'](http://gogoimage.org/img-\S+?\.html)[\"\']' + +# direct_links: if redirect is non-empty, this parses each redirect page for a single image. Otherwise, this parses the gallery page for all images. +direct_links = r"src='(http://gogoimage.org/upload/big/.+?)' alt='image'" + +# same_filename (default=False): if True, uses filename specified on remote link. Otherwise, creates own filename with incremental index.