Edit Playcount Properties [#22247]

Help improve MediaMonkey 2027 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

fetzenschaedl
Posts: 14
Joined: Mon Feb 17, 2014 12:06 pm

Edit Playcount Properties [#22247]

Post by fetzenschaedl »

Hello,
While testing an addon, i noticed that if you edit the playcount via Properties/Details tab MM always adds a played entry to the database, even when the playcount is decreased or set to zero.
For Example, song has zero plays, adjusting the playcount to 1 will add a played entry to the database and the lastplayeddate will be set. Setting the playcount to zero again removes the lastplayeddate but it adds another played entry to database.
I am not sure if this is intended behaviour.

Version is 2024.2.2.3222
Peke
Posts: 18686
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Edit Playcount Properties

Post by Peke »

Hi,
I can't replicate your issue of MM adding Played and playcount on its own.

See Video https://drive.google.com/file/d/1ofrGNm ... drive_link

If I do wrong something can you please point in my video where you observe that issue?

NOTE: I do not have any addon that temper with Playcounts to keep MM design behavior only.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
Posts: 18686
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Edit Playcount Properties

Post by Peke »

Hi,
First I would like to thank you for porting MM4 plugin, but it too much interfere with playcounts, that user data like you described here can be can be risky to use.

Please let us know how we can help you with hammering down the possible issues and make it work better or if you have found issue in our API please point us to them so that they can be fixed on mutual benefit.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
fetzenschaedl
Posts: 14
Joined: Mon Feb 17, 2014 12:06 pm

Re: Edit Playcount Properties

Post by fetzenschaedl »

Hello,

unfortunately I couldn't access your video. Also the issue is not really with the addon I submitted, which just made me notice the behaviour while testing the remove plays function. But I understand the concerns about data loss when not used properly. Let me try to explain better:

I start with song "aaa", artist "bbb", never played, zero playcounts

Image

Then I put the following into the sql editor

Code: Select all

SELECT
    Songs.SongTitle,
    Songs.Artist,
    Songs.PlayCounter,
    datetime(
        (Songs.LastTimePlayed - 25569) * 86400,
        'unixepoch',
        'localtime'
    ) AS LastPlayed,

    datetime(
        (Played.PlayDate - 25569) * 86400,
        'unixepoch',
        'localtime'
    ) AS PlayDate

FROM Songs
LEFT JOIN Played
    ON Songs.ID = Played.IdSong
WHERE Songs.SongTitle = 'aaa'
  AND Songs.Artist = 'bbb'
ORDER BY Played.PlayDate DESC;
Which will result in

Image

Then I open the properties dialog, and set the play counter to 1 in the details tab

Image

which leads to

Image

everything as expected so far, playcounter, LastTimePlayed and PlayDate are updated. However if I set the play counter back to zero in the properties/details tab

Image

I end up with

Image

so the PlayCounter and the LastTimePlayed Tables get reset as I expected, the PlayDate however does not. It seems to me that Mediamonkey always adds an entry to the PlayDate everytime the Playcounter is edited by the Properties/Details dialog, regardless if the playcounter is increased, decreased or set to zero. So I don't know if this behaviour is intentional or not.

MM 2024.2.2.3222
Ludek
Posts: 5125
Joined: Fri Mar 09, 2007 9:00 am

Re: Edit Playcount Properties

Post by Ludek »

Post Reply