pierobot / mangapie

This is a self-hosted server for archived manga.
BSD 3-Clause "New" or "Revised" License
65 stars 9 forks source link

Auto update libraries #27

Closed pierobot closed 7 years ago

pierobot commented 7 years ago

Currently, in order for newly added manga to be added to the database, Library::scan() must be invoked. On the UI side, this is done through admin/libraries.blade.php and requires logging in as admin. This gets annoying pretty fast.


The following are possible implementations and some might require me to write a php module:

Linux

  • Use inotify
  • Use a script that is scheduled to run every xx minutes or hours.

    Windows

  • Use ReadDirectoryChangesW
  • Use a script that is scheduled to run every xx minutes or hours.
pierobot commented 7 years ago

I will create a command that will scan all the libraries. This command will be used in conjuction with cron.

pierobot commented 7 years ago