anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Filter /trending logs which are called from website #113

Closed aviaryan closed 7 years ago

aviaryan commented 7 years ago

Logs of type /trending should not be recorded when they are called from the website. Is there any way we can make this possible? Is it needed?

singhpratyush commented 7 years ago

We may check user agent in the case. If it's web-like, we can choose to ignore it.

By the way, the logs are meant to give us a rough idea of how many requests are we handling. If we choose to ignore some of them, we will not be looking at just stats. And if you are planning to remove it because they flood in the /logs page, we may ignore them while querying the DB for getting terms.

aviaryan commented 7 years ago

Upon prior thinking, I think it's better we leave this as it is, for now. No need to complicate things which are not in our primary focus.