Skip to content

Zurplupz/laravel-ehentai-archiver

Repository files navigation

About

This is an exhentai gallery archiver based on Laravel and inspired by this project. I'm working on this to put my Laravel knowledge to the test.

Right now it can download a gallery zip file, store the gallery metadata, path, and track amount of credits.

Features

Top ones are most likely to come sooner.

  • Request to archive from favorites page (Unsupported modes: Extended)
  • Show feedback of succesful archiving to user in browser
  • Get official gallery metadata
  • Browse archived galleries through API
  • Search by name and tags
  • Download and store gallery from official archives using Credits
  • Keep track of archived galleries and show a badge on the exhentai list
  • Request to archive from gallery page and search page
  • Download using GP
  • Track Credits and GP and give warning when amount isn't enough to download gallery
  • Download torrent
  • Manually add gallery
  • Basic authorization
  • Gallery viewer and browser
  • Archive galleries on background (queue jobs)
  • Synchronize gallery with exhentai
  • Scheduled downloads
  • Mobile mode gallery viewer
  • Add public and private paths to galleries

Requirements

  • Apache2 and MySQL
  • PHP 7.2+
  • Composer
  • Browser with userscript extension installed

Setup

  1. git clone [email protected]:Zurplupz/laravel-ehentai-archiver.git exhentai-archiver && cd exhentai-archiver
  2. composer install
  3. Edit .env file with database login and name of database to use, defaults: root, no pass, exhentai
  4.  php artisan queue:table 
     php artisan queue:failed-table
     php artisan migrate
     php artisan queue:work
  5. Install an userscript extension on your browser (I recommend ViolentMonkey)
  6. Open file userscript.js. Replace every instance of http://localhost/lr/ehentai-archiver/public/api/, with the directory where you installed the project
  7. Add the userscript.js to the extension

Usage

  1. Go to exhentai favorites page
  2. Check the boxes of galleries you want to archive, select Archive and click Confirm. Careful not to select Delete
  3. The galleries will be downloaded and you will see a status label next to gallery name or on tags.

ToDo

  1. Write more detailed description
  2. Make noob friendly setup
  3. Make further testing