Author Topic: Auto-DJ - bug-ette or peculiarity?  (Read 5944 times)

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
Greetings!
After several months of problem free use, the Auto-DJ feature has recently started acting strangley again, (I first noticed it in April 2017).

Auto-DJ settings
==============
  Playlist: (Auto-Playlist mix of 200 tracks)
    Initial size: 10
    Maintain:    10
 
  Apply Filter:
    All
    Last Played is not in the last 3 days
    Title is not [playing track]
    Skip Count is < 3
    Rating is not 1*

The Now Playing window shows Auto-DJ maintains 15 tracks (Prefs/Player setting retains last 5 played).
After a number of tracks have been played, a track that has already been played in the last few minutes, pops up in the queue to get played again, sometimes it's the same track added twice!

I can't it figure out. Tried everything I can think of. Surely it must be a bug despite no other MB users having mentioned it!

MB v3.2.6672 - No error message.

Regards: Freddy :-)

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989
I dont see any incorrect MB coding reason for that to happen. When you see it next confirm the 2 files are in fact the same file (open in tag editor and check the filename). Also check the date late played has been updated

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
I dont see any incorrect MB coding reason for that to happen. When you see it next confirm the 2 files are in fact the same file (open in tag editor and check the filename). Also check the date late played has been updated

Will do  - and thank you for the suggestion and prompt response!
 ::)

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
I dont see any incorrect MB coding reason for that to happen. When you see it next confirm the 2 files are in fact the same file (open in tag editor and check the filename). Also check the date late played has been updated

   TEST RESULT for DUPLICATE(s)
   Updated to MB v3.2.6676
   Launched MB Sunday 15 Apr @ 12:50
   Double-click Auto-playlist 'LAUNCH DJ' (contains 1 JINGLE (of 65 -  least recently played))
   Message: Auto-DJ is active

   PLAYED TRACK ADDED @ 15:30
   Playing Tracks list item #4 "You Only Live Twice" is played
   Playing Tracks list item #5 "Radio Caroline Jingle" is played
   Playing Tracks list item #6 "You Only Live Twice" is played again
   Details Scrobbled to Last.FM 2 times
   https://www.last.fm/user/Fred_Barker
   Checked tag as recommended as per post - Item #4 was Last Played 15/04/2018 15:29

   Best regards: Freddy :-)
Last Edit: April 15, 2018, 06:09:37 PM by Freddy Barker [DIVERSITY FM]

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989
so if you had an auto-dj filter of "Last Played is not in the last 3 days"
then item #4 "You Only Live Twice" should not have been included in the first place or perhaps your comment "PLAYED TRACK ADDED @ 15:30" is not the accurate time?

In any case i think i can see a flaw in the refresh logic when a track has completed playback so i will fix that

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
so if you had an auto-dj filter of "Last Played is not in the last 3 days"
then item #4 "You Only Live Twice" should not have been included in the first place or perhaps your comment "PLAYED TRACK ADDED @ 15:30" is not the accurate time?

In any case i think i can see a flaw in the refresh logic when a track has completed playback so i will fix that

EDIT to clarify:
The Last Played Date and Time of 15:29 was when I checked the tags AFTER it had been added and started playing again at 15:30..

Links to images - hope this helps!
https://imgur.com/VQmsLRq
https://imgur.com/ibU979V
https://imgur.com/E8ToQMw

Best regards: Freddy :-)
Last Edit: April 15, 2018, 06:18:33 PM by Freddy Barker [DIVERSITY FM]

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989
I have checked the code and infact i cant see any bug.
One thing that is puzzling from your screenshot is there should be at least 10 items in the list, but  "You Only Live Twice" is at #4 and #6. When you initiated playback how many items were in the list and were any carry over from the last session eg. was "You Only Live Twice" is at #4 already in the list from the last session and then MB added it again at #6?

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
I have checked the code and infact i cant see any bug.
One thing that is puzzling from your screenshot is there should be at least 10 items in the list, but  "You Only Live Twice" is at #4 and #6. When you initiated playback how many items were in the list and were any carry over from the last session eg. was "You Only Live Twice" is at #4 already in the list from the last session and then MB added it again at #6?

I thought it would be an oddity, it's been acting this way on and off, ever since I started using MB a year ago this month.
Sometimes a few days pass before a previously played track is repeated, quite often the same track gets added 2 or 3 times in the same list of 15 tracks at the very same instant during a list refresh!

Immediately after playing item #5 in the list, and just as #5 had finished playing -  the list refreshed and started to play "You only live twice" as item #6

This all happened at 15:30 and the session was initiated at 12:50.
The list of 10 becomes 15 because the last 5 items are retained, (in settings) thereafter a list of 15 items!
As the oldest item is removed from the list - normally a new item would be added in position 15, however, in this case, it was added directly into slot #8 in the list..

Hope this helps!
Kind regards: Freddy :-)
Last Edit: April 15, 2018, 08:29:27 PM by Freddy Barker [DIVERSITY FM]

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989
i have made a change for the next update but its guesswork as to the probable cause

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
i have made a change for the next update but its guesswork as to the probable cause

Haha! Well your guess will be much better than mine!
I'll report back with success rating after trying the update when available!
Thanks very much for your valuable input and time..

Best regards: Freddy :-)

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
so if you had an auto-dj filter of "Last Played is not in the last 3 days"

For what it's worth, the Auto-play list that feeds Auto-dj has the criteria  "Last Played is not in the last 7 days", so theoretically should get filtered out before the Auto-dj logic needs to deal with it??

Freddy :-)

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989


Freddy Barker

  • Sr. Member
  • ****
  • Posts: 748
  • 🎧 MB 3.4.7628P
let me know if it works better
http://musicbee.niblseed.com/V3_2/MusicBee32_Patched.zip
unzip and replace the existing musicbee files
Alas not to be able to report success with the latest fix!!  :'(

   RESULTS OF TESTING
   Updated to MB v3.2.6679
   Changed Auto-DJ settings (in order to show more items in Playing Tracks screen), to:
   Initial size: 14, Maintain: 14
  
   Started MB Monday 16 Apr @ 12:15
   Message: "Auto-DJ is active"
   Message: "1 file has been updated" @ 12:30
   Screenshot 2018-04-16 12.49.54: https://imgur.com/uguDGQN

   Note: I "LOVED" the track "Waiting for the Night" by Ghost @ 12:30 via MB remote
  (The ONLY file listed as MODIFIED TODAY was "Summertime" by DJ Jazzy Jeff & The Fresh Prince @ 16/04/2018 14:05 - but not knowingly from any action by me, and which it totally bizarre as I stopped MB playing @ 13:48 to investigate and log the details of the DUPLICATE problem)...
  
   DUPLICATE problem noticed @ 13:48
   Item #5 "Summertime" played and updated Last Played tag @ 13:43
   Item #6 "Jack of Speed" played 4:23 into a 6:17 long track, during which time...
   Item #8 "Summertime" popped back into the Playing Tracks list..
   Screenshot 2018-04-16 13.48.07: https://imgur.com/Hi9Guyk

   PS. This was the worst case of the same track added multiple times:
   https://imgur.com/wECO1oV

   Hope this helps?
   Best regards: Freddy :-)
Last Edit: April 16, 2018, 04:31:34 PM by Freddy Barker [DIVERSITY FM]

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34989
this is a debug version:
http://www.mediafire.com/file/2h9e3ehzbv9vqcv/MusicBeeDebugDj.zip
unzip and replace musicbee.exe

it will potentially log a log of info to the error log, so when it happens can you send me a link to a zip of the error log (help/ support/ view error log).