Add/Remove PlayStat 1.3.1 (2012-09-03)

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Add/Remove PlayStat 1.3.1 (2012-09-03)

Post by Bex »

Add/Remove PlayStat
You find download link and installation instructions at the bottom of this post.
This script lets you modify your PlayHistory and/or PlayCount.


Descriptions and screen shots:
You run the script from the right click menu:
Image


Add one Play, Timestamp Now:
This little function adds one HistoryPlay with TimeStamp now, increases the PlayCount and sets the LastPlayedDate to now.
Useful to fix the playcount/history before you skip to next song or similar since MM doesn't do this unless the full song is played.
Works on single tracks only.


Add one Play, Timestamp X:
Here is it possible to add one HistoryPlay to multiple tracks at once. The tracks gets a TimeStamp which is incremental based the StartTime, their order and length. The LastPlayedDate is only updated if the given TimeStamp is later than the current LastPlayedDate.
You can optionally choose not to increase the playcount.
Image


Add Plays:
This works on single tracks only but lets you add multiple HistoryPlays at once. You need to set the StartTime and EndTime in which the plays should evenly be created. You can also adjust the TimeStamp on the individual Plays if they are incorrect. "Change" means that is already exists a History Play for that specific TimeStamp.
You can optionally choose not to increase the playcount.
Image


Remove Plays:
This also only works on single tracks. It lists all your PlayHistory for the selected track and lets you remove the ones you select.
The LastPlayedDate is only updated if the latest HistoryPlay is removed.
You can optionally choose not to decrease the playcount.
Image


Remove all Plays in Period:
This works either for all tracks played in the selected period or only the selected one(s). It's primarily supposed to be used if you accidentally added plays with the "Added one play, timestamp X" to several files at once or if you left MM playing over night or similar. Note, that the form is horizontally resizeable.
Image


Add LastPlayedDate as a HistoryPlay
This function looks for tracks which have:
- More playcount than in MM's internal History
- Current LastPlayedDate doesn't exist as a play in the History
You can then add the LastPlayedDate as a HistoryPlay
Useful to create one accurate HistoryPlay from portable devices
which synchs LastPlayedDate and increases the PlayCount.
Use it after you have synched your device to MM
Tracks that have been played more than once on the device
needs to get more HistoryPlays created. Use AddPlays for that.


Set LastPlayedDate:
Lets you correct the LastPlayedDate if it is incorrect for some reason.
Works on single tracks only.


Adjust Only PlayCounter:
Works on multiple tracks.
Only the PlayCounter is affected and you can either Add, Remove, Set To the specified number or Set To Count of HistoryPlays for all selected track in one go.
Note that you can press multiple times on a button. The change is immediately displayed in the tracks but only saved when you press the Save-button, pressing the Cancel-button revert made changes.
LastPlayedDate is blanked out if the PlayCounter reaches zero. It's also set to Now if you set or increase the PlayCounter from zero.
Image




Special thanks to Nyn who has helped with testing the script and suggested some smart changes.
Let me know what you think! :D


Enjoy!
/Bex
_________________________________________________________________________________
Change log:
Ver 1.3.1 (2012-09-03)
- Fixed all issues with UTC-time introduced in MM4
- Added possibility to correct some upgrade issues from MM3 to MM4

Ver 1.2.4 (2010-08-16)
- Fixed selections weren't remembered between MM sessions

Ver 1.2.3 (2010-08-06)
- Added adjusting selection is individually remembered per function
- Fixed "Remove all Plays in Period" could in rare occasions give negative playcount

Ver 1.2.2 (2010-08-05)
- Fixed uninstaller gave sql error
- Fixed custom date/time formats didn't work

Ver 1.2.1 (2008-12-20)
- Fixed compatibility issues with MM 3.1

Ver 1.2 (2008-11-27)
- Added new function "Add LastPlayedDate as HistoryPlay" (Thanks to MoDementia)
- Added new function "Set LastPlayedDate to LastHistoryPlay" (Idea by Nyn)
- Added "Set to Count of HistoryPlays" in "Adjust Only Playcounter" (Idea by Nyn)
- Added Save and Cancel buttons in "Adjust Only Playcounter"
- Improved "Add Plays" a lot

------------------------------------------------------------------------------------
Download:
Latest version:
MM4 (Installer)
Download and rate the script from its Addon Page


MM3 (Installer)
AddRemovePlaystat 1.2.4


Installation Instructions:
Avoid "Product installation error"
- Vista/Win 7 Users:
- - To be able to install scripts you must Run MM as an administrator.
- - It means that you must right click the MM icon and select "Run as administrator" even if you are logged in as an administrator.
- All Users:
- - Check in your task manager that you only have one instance of MediaMonkey.exe running.

1. Download the .mmip file and double click on it.
2. Restart MediaMonkey if needed
3. Run the script from the Right Click Menu

- Upgrade:
As above but if you wish to save the old version simply rename its extension to .BAK or similar before you run the installer.
Last edited by Bex on Sun Dec 21, 2008 4:04 pm, edited 11 times in total.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nynaevelan »

I am so glad this one is officially released, I have enjoyed testing it. :D 8) This is definately one of the ones that I will use ALOT. Thanks for all your hard work and tolerating me. 8) :P

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
dypsis
Posts: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by dypsis »

Thanks for your great work Bex. :)

For those who feel the need to alter their play stats, this will be very handy.
I personally believe that a database should be left true and accurate.
Last edited by dypsis on Wed Aug 06, 2008 12:30 am, edited 2 times in total.
spacefish
Posts: 1427
Joined: Mon Jan 14, 2008 7:21 am
Location: Denmark

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by spacefish »

Excellent! Thanks, Bex. :)
Image
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by Bex »

Thank you all! :D
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
spacefish
Posts: 1427
Joined: Mon Jan 14, 2008 7:21 am
Location: Denmark

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by spacefish »

dypsis wrote:Thanks for your great work Bex. :)

For those who feel the need to alter their play stats, this will be very handy.
I personally believe that a database should be left true and accurate.
Assuming the program works properly, I agree. I had several issues with MM when I first started using it in that it wouldn't increase play counts intermittently. I now have the occasional slip-up where I will accidentally or idiotically do stuff that requires me to fix the play counts/dates later. :P
Image
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
Benn
Posts: 300
Joined: Sat Jul 12, 2008 11:59 am
Location: Cornwall, United Kingdom

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by Benn »

Amazing! thank you :D
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nynaevelan »

Hi Bex:

Can you refresh my memory of the start time in the Add One Play, Timestamp X section. When you select several tracks, does it automatically display the logical start time for these tracks to have been played?

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by Bex »

Yes, that's correct. The default starttime is calculated with this formula:
Now()-Sum_of_Length_of_All_Selected_Tracks
It can of course be adjusted.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nynaevelan »

Thanks, I don't need to make any adjustments, my times were coming out incorrectly but that was because I wasn't paying attention to the time displaying before I added my adjustments. :oops:

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nynaevelan »

Bex:

When you get a moment, can you add a progress bar to the Add One Play, Timestamp X section? Thanks.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by Bex »

Sure, I'll put it on my to do list.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
terrypin
Posts: 945
Joined: Mon May 10, 2004 7:48 am

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by terrypin »

I assume there's no version for 2.5?

--
Terry, East Grinstead, UK
Terry, East Grinstead, UK
MM 5.0.2.2532 (Gold), i7 4.0 GHz running Win 10 Pro
MM 4.1.31.1919 (Gold)
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nynaevelan »

No, for MM3 only.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nduke
Posts: 55
Joined: Sat Jul 09, 2005 7:29 am
Location: Marietta, GA

Re: Add/Remove PlayStat 1.0 (2008-08-05) [MM3]

Post by nduke »

Thank you very much for this script. It does simply and cleanly what I used to do in multiple steps. I use my Zen Vision for music during my work day and commute, but when I sync it with MM the play count is increased but not the Last Played date or the internal play history. This allows me to easily make sure that all my daily listening has the correct play info.

I wish my Zen and MM got along a little better, but this script helps fill in the gaps!
Post Reply