Bug 365624 - Statistics report
Summary: Statistics report
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.8.0
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: 2.9
Assignee: Amarok Bugs
URL: https://community.kde.org/Amarok/Arch...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 16:37 UTC by tukkek
Modified: 2016-07-13 20:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tukkek 2016-07-13 16:37:57 UTC
First of all huge thanks to all involved for the best music player / collection manager to ever be created, I've been using it since as long as I can remember!

This is a feature request: it would be awesome to let Amarok export a statistics report with things like favorite song / favorite band / most listened album, etc (using score, rating and other internal statistics). I think this would fit naturally as a menu item (Amarok -> Export statistics...). The output could be an HTML file for example.

I have written a few scripts for Amarok which I still use but I'm not sure this could be accomplished as a script. If someone thinks it is and: 1. could provide me with an architecture overview of how the script would work (how to make statistics queries and how to generate an external file from the script) and 2. could show me that the Amarok team would be interested in adopting the script into the main distribution; then I'd be happy to work on it myself.

I think this could be simple for starters but could grow into something really cool by generating image charts for ratio of genre in your collection and so on. Advanced features like that would most likely require the report to be generated from the C++ codebase so if anyone else is willing to bring an initial version of this as an actual C++ patch it would probably be even better, instead of a script (if it's even possible to create this feature via scripts).

Reproducible: Didn't try




The URL I provided is just a community page I found while searching for an existing plugin or feature - it has a few interesting ideas and draft implementation details.
Comment 1 tukkek 2016-07-13 16:47:07 UTC
Really sorry: I've just found out there is already a script that does that https://api.kde-look.org/p/1135860

I'll leave this report open though as a suggestion that this should be included as a default script.

Also the "Manage scripts" button on the Script configuration tab "hides" the feature of automatically finding cool new scripts via the KDE framework. It probably should be renamed to "Find new scripts" (which is what the resulting window says: "Get hot new stuff!"). "Manage scripts" really makes it look like it will open a new file dialog for you to manually add scripts or something like that - even myself, a long time Amarok user and script creator was "fooled" by the label. Let me know if I should open a new report for this.
Comment 2 Myriam Schweingruber 2016-07-13 20:14:09 UTC
No need to leave this open, and to answer your other suggestion:
"Get hot new stuff" is totally appropriate, as it is not meant for scripts alone, but also for radio lists, context view extensions, etc.
As for the script manager: it does exactly what it should, namely manage scripts and be able to write new ones. It has been completely overhauled in current git master, you should be able to test by downloading Amarok 2.9 beta (aka 2.8.90), released a few months ago.