gmusicbrowser Forum

Main board => Customization => Topic started by: laite on May 02, 2012, 06:42:03

Title: [PLUGIN] History/Stats
Post by: laite on May 02, 2012, 06:42:03
WARNING: This plugin does NOT work with current gmusicbrowser release (v1.1.9)! If you wish to use this, you must get latest development version from GIT or wait until next release of gmusicbrowser.

Okay, now that's out of the way I'd like to introduce a new plugin! Basically it shows playhistory and some neat statistics about your library. Plugin relies heavily on new 'playhistory'-field (introduced in development version of gmb), so you must merge existing playcounts to new field if you wish to have statistics from the past, or start 'from the scratch' should you wish so. There is a 'merge fields' - button in the preferences for converting old playcounts to playhistory.

There is no README yet, but I think options should be pretty self-explanatory. Ask me here or in IRC if something's not clear or not working like supposed to.

And as always, this is an initial version, tested only by me, so look out for bugs etc.

Pictures!

Playhistory is shown for tracks and albums
(http://i.imgur.com/uHUL0.png)

You can have your very own TOP40-list in overview  8)
(http://i.imgur.com/z6vIP.png)

Statistics can be shown either in 'natural'...

(http://i.imgur.com/RSuOb.png)

...or 'last.fm' - style

(http://i.imgur.com/3jZfj.png)


Download from github: https://github.com/laite/gmusicbrowser-plugins/tree/master/historystats (https://github.com/laite/gmusicbrowser-plugins/tree/master/historystats)
or from direct link: https://raw.github.com/laite/gmusicbrowser-plugins/master/historystats/historystats.pm (https://raw.github.com/laite/gmusicbrowser-plugins/master/historystats/historystats.pm)
Save *.png from 'icons'-folder to your ~/.config/gmusicbrowser/pix to use icons in overview-site.

-
Thanks,
laite
Title: Re: [PLUGIN] History/Stats
Post by: mgrubert on May 02, 2012, 08:02:28
Very nice.
Does it work with 1.1.9-1 ?
Title: Re: [PLUGIN] History/Stats
Post by: laite on May 02, 2012, 11:05:50
Quote from: mgrubert on May 02, 2012, 08:02:28
Very nice.
Does it work with 1.1.9-1 ?

I'm not sure what that is but my initial guess would be 'no'. You can check it yourself by opening file /usr/share/gmusicbrowser/gmusicbrowser_songs.pm in text editor and searching for 'playhistory'. If you find that, the plugin propably works.

If you're using ochosi's Ubuntu PPA-repository, he has promised to include history/stats - plugin automatically at some point, when possible.
Title: Re: [PLUGIN] History/Stats
Post by: zeltak on May 02, 2012, 12:38:52
Hya

looks cool, love to see new plugins

How does one use it (on a non ubuntu system -arch), do i stick the pm file under ~/.config/gmusicbrowser/plugins? i tried tha tbut didnt work..any ideas?

best

Z
Title: Re: [PLUGIN] History/Stats
Post by: laite on May 02, 2012, 13:36:30
Quote from: zeltak on May 02, 2012, 12:38:52
How does one use it (on a non ubuntu system -arch), do i stick the pm file under ~/.config/gmusicbrowser/plugins? i tried tha tbut didnt work..any ideas?

Yes, that should work IF you're using latest DEVELOPMENT version. I had a quick look but all the versions in AUR (even gmusicbrowser-git etc.) seemed to be too old to work.

If you're certain you have newest version, and history/stats still doesn't appear in preferences -> plugins, you could start gmusicbrowser from terminal emulator and see if there's some error messages.
Title: Re: [PLUGIN] History/Stats
Post by: zeltak on May 02, 2012, 20:53:20
hi

sorry, just noticed the file was corrupt, it works now and its damm awesome!! thx alot for this really neat plugin

best

z
Title: Re: [PLUGIN] History/Stats
Post by: lovecraft on May 03, 2012, 12:28:26
Great plugin laite
Only a litlle problem with Statistics tab
(http://db.tt/FVVMX8VR)
Title: Re: [PLUGIN] History/Stats
Post by: laite on May 03, 2012, 12:35:03
Quote from: lovecraft on May 03, 2012, 12:28:26
Only a litlle problem with Statistics tab

Whoa, that's ... strange  ???

It seems that for some reason my "" (dummy text in title) gets info from translation header... I changed it to 'item', could you please try download plugin again from github and test if it works. Link: https://raw.github.com/laite/gmusicbrowser-plugins/master/historystats/historystats.pm (https://raw.github.com/laite/gmusicbrowser-plugins/master/historystats/historystats.pm)
Title: Re: [PLUGIN] History/Stats
Post by: lovecraft on May 03, 2012, 12:42:35
Perfect now  8)

Title: Re: [PLUGIN] History/Stats
Post by: mgrubert on May 03, 2012, 21:17:18
No playhistory in 1.1.9-1.
Snif