ShokoAnime / ShokoServer

Repository for Shoko Server.
https://shokoanime.com/
MIT License
413 stars 74 forks source link

Storage Analytics, Deletion Recommendations, etc #761

Open da3dsoul opened 6 years ago

da3dsoul commented 6 years ago

Note: All "I"s are referring to me personally. I will pick on idols and harem anime.

So we have a lot of data. File size, Codec, ratings, tags, watched data, dates, etc.

When I'm going through and looking to clear out space, I tend to sort by ascending rating and delete things that I will never watch or watch again.

There's got to be a better way, considering how much available data there is. People are pretty predictable. I grab a bunch of shows every season, but never end up watching the moe idol shows, despite them piling up. Considering that I never watch the idol shows, yet watch a lot of the trash harem comedies, Shoko should be able to guess that I'm going to delete the moe idol shows first. It should also know that I'm going to delete the shows that are 40GB despite sitting unwatched for 2 years.

I understand that data analytics are not for everyone, but I enjoy it. I will probably be writing it all myself, but I'm curious what people's thoughts are.

bigretromike commented 6 years ago

calculating size by tag ... etc... can be time consuming.. its not like there is 100 tags. but I dig the idea. I don't mind could be useful to tell how much time/space we all waste before giving up.

Stats of any sort are always welcome to dashboards.

But then again you should include folders that are external drivers/disks/or even optic discs. That way 'deletion recommendations' would be a joke.

Cazzar commented 6 years ago

Size by tag could be done via a SQL query with a few joins on the right keys.

On Tue., 2 Oct. 2018, 2:10 am BigRetroMike, notifications@github.com wrote:

calculating size by tag ... etc... can be time consuming.. its not like there is 100 tags. but I dig the idea. I don't mind could be useful to tell how much time/space we all waste before giving up.

Stats of any sort are always welcome to dashboards.

But then again you should include folders that are external drivers/disks/or even optic discs. That way 'deletion recommendations' would be a joke.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ShokoAnime/ShokoServer/issues/761#issuecomment-425965958, or mute the thread https://github.com/notifications/unsubscribe-auth/AA8rpjHiDCVO5lUNW457WxDh1Lcwqtn0ks5ugj5vgaJpZM4XB6JD .

da3dsoul commented 6 years ago

Size by tags could be done by simply changing a few words in the function for batch generation of tag filters

bigretromike commented 6 years ago

so you want pre-calculate size by tag/genre/folders/rating/codes/dates/watched ...

or do you want calculate those ad-hoc ?

ElementalCrisis commented 6 years ago

Is this where we mention feature creep? :)

da3dsoul commented 6 years ago

This is a case of file management and file data. It's completely within Shoko's scope. It's just complex compared to most of Shoko's features

da3dsoul commented 6 years ago

@bigretromike IDK yet. It's not like I'm doing it now. I just thought it was a good idea to throw on the pile of big projects that may one day happen.