rip
rip copied to clipboard
Count # of views per album, allow sorting based on view count
Ideas:
Store view counts in a txt file stats.txt
.
Could also implement a 'report' button which increments the # of reports an album gets (dupe on IP).
It'd be great if we knew the original URL for an album ... This should be contained in the first lines of the log.txt, but will have to double-check. The album viewer could link to the original URL.
Sort albums based on view count would be expensive -- iterating over every directory, retrieving stats.txt, parsing view count, adding to list, sorting list, returning ... This could be done every 5min via a cronjob, I guess (python_cleanup.py
?)