calvinaquino / LNReader-Android

Light novel reader for android test project collab
Apache License 2.0
119 stars 36 forks source link

Proper clean-up after chapter update #108

Closed ReggX closed 10 years ago

ReggX commented 10 years ago

Hello folks,

I noticed that recently updates seem to leave some unhandled garbarge around. Specifically, I'm talking about old Red-Links after "New Chapter" updates and empty Volumes after "(Full Text)" updates.

I'm aware that a radical cleanup could lead to stored chapters being deleted out of mistake, if they are not correctly linked in the BT backend/website.

That's why I'd like to request an option for a clean up feature. Either

Nandaka commented 10 years ago
  1. Empty Volume => This can be hidden from Settings > General > Hide Empty Volume. This can be done by deleting any volume without linked chapter in Database, but I prefer to hide it as it doesn't really take space.
  2. Redlink: There are few cases
    • Deleted Chapter: The chapter is deleted from BakaTsuki server e.g. Sword Art Online chapters from volume 1. , you can hide this by untick the checkbox in Settings > General > Show Missing page.
    • Renamed Chapter: The chapter is renamed, usually the old one will have redirection to the new page, but in the chapter listing is using new page title. I cannot detect this 100%, so I'll just keep both chapter.
    • Placeholder Chapter: url ended with redlink=1, you can hide this by untick the checkbox in Settings > General > Show Redlink page.

So everything that cannot be found in the Server will be marked as Missing, I can automate this, but not (now for ) the 'manual' part, as this require a dedicated screen just for this.

Nandaka commented 10 years ago

Implement manual clean up from Maintenance Activity, refer to e4a01357f613326819967da2369f2ebb66520fd9