GithubHelp home page GithubHelp logo

firefoxchan / local-ehentai Goto Github PK

View Code? Open in Web Editor NEW
216.0 13.0 23.0 1.92 MB

Local E-Hentai / ExHentai Gallery Index + File Auto Discover (with ~830k exhentai metadata)

License: MIT License

Go 60.97% JavaScript 6.07% CSS 32.97%
ehentai exhentai e-hentai

local-ehentai's Introduction

local-ehentai

Local E-Hentai Gallery Index (with ~830k galleries' metadata)

中文简介

Features

  • Search multiple tags, in like mode / exact mode
  • Local thumbnails cache
  • Export search results as csv / json
  • Expunged / min-rating filter
  • (Filename / URL based) local files filter, with auto discover

Build

Requirement

  • Go >= 1.12

Build

Build package cmd/local-ehentai:

go build ./cmd/local-ehentai

Set your workdir to web when running

Usage

Quick Start

  1. Download gdata.json from Mega, shared by Sachia Lanlus.
  2. Download & unzip local-ehentai.win.zip (Releases)
  3. Put gdata.json in the same directory with local-ehentai.exe
  4. Run local-ehentai.exe
  5. Open http://127.0.0.1:8080/

Search

Syntax

Comma-separated tag:value pair

tag1:exact value1$, tag2:like value2 [, tag3:value3, value4, ...]

If the tag is omitted, all tags will be searched.
If the value ends with $, an exact match will be performed.

Valid Tags

  • category
  • uploader
  • parody
  • character
  • artist
  • group
  • female
  • male
  • language
  • misc
  • gid (exact match)

Example

artist:toyo$, female: swim
Will match
(artist is toyo) AND (female contains swim)

Local Files Filter

Filename Based

Auto Discover

  1. Put your archive files under files directory (or sub directory)
  2. Restart local-ehentai.exe

Manually Link File with Gallery

  1. Modify file filesMap.txt in the same directory with local-ehentai.exe
  2. Syntax: filename/gallery_id, eg: abcd.zip/1234
  3. Restart local-ehentai.exe

URL Based

  1. Modify file existUrls.txt in the same directory with local-ehentai.exe
  2. Restart local-ehentai.exe

Enable Local Thumbnails Cache

If you have downloaded thumbnails form this torrent, you can use local thumbs cache without connecting to eght.org

  1. Unzip thumbs_raw.7z, rename the directory to thumbs
  2. Put thumbs directory in the same directory with local-ehentai.exe, then restart it

Demo

Galleries

local-ehentai's People

Contributors

firefoxchan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

local-ehentai's Issues

meta会持续更新吗?

这个 gdata.json应该不是最新的

我想知道Sachia Lanlus这个作者是否会继续更新?
还是有别的工具可以自己去爬metadata?

因为我想避免重复给e绅士服务器制造负担。
我也在做一个漫画整理工具,希望可以用e绅士的最新的metadata

Error at the end of exe print

[websvr]2022/02/01 03:08:20 websvr.go:41: Serve HTTP Server: 127.0.0.1:8080
[websvr]2022/02/01 03:08:20 websvr.go:43: Error Serve HTTP Server: listen tcp 127.0.0.1:8080: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
[websvr]2022/02/01 03:08:20 websvr.go:36: Error Serve PProf Server: listen tcp 127.0.0.1:8081: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

and then I open
http://127.0.0.1:8080/
and see
open template/galleries_extended.tmpl: The system cannot find the path specified.

BTW, not sure what "Set your workdir to web when running" means.
I "export workidr=web" in terminal. I don't think this will work.

About add function to manage local zip file

希望能考虑添加管理本地文件(open/delete)的功能。
点击对应本子链接后能在本地预设路径下根据文件名检索相应文件然后打开。
由于已经实现了TAG管理和文件名,如果再能有文件管理的功能这项目以后就是大家本子管理的标配了w
很久以前有个类似的项目叫happypandaX,能为本地文件自动添加EH TAG。
https://github.com/happypandax/happypandax

function add request

Will be add export link function for compare what post user still not back up.
also suggest to add a function filter the Expunged post.

cant run the app on windows

hey,

im trying to run this app on windows 7 64bit, i have go installed all good, i even tried building this app and go did the job

but i cant seem to run the app, how do i do that? just double click local-ehentai.exe? it just disappear right away

just to make things clear, i didnt download the json file. cant i run the app without it? i cant download 600mb since i have limited internet and my collection is not that big so i can manage it adding tags manually

sorry if it's a newibe question

希望能支持将sqlite数据库作为数据源

关站风波之时我写了一个自动更新元数据库的程序,并且已经用来维护了本地数据库几年了。当时因为处理json会把电脑内存全部吃光导致操作失败,所以改用了sqlite实现,并把gdata.json的数据迁到了sqlite上
现在希望能使用这个软件来检索我自己的数据库,但是我现在还是go小白,看源码很头大(@_@)。
所以如果作者可以添加这个功能支持就好了,我可以提供数据库的表定义/数据结构

或者介绍一下程序如何从json中读取数据,以及搜索的实现思路

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.