Author Topic: Lost Play Count on Playlists Only  (Read 1917 times)

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
Hello,

I've created multiple 'Playlists' in Musicbee over the years.  As of today, I click on a Playlist tab, it seemed to temporarily freeze up Musicbee for a moment or two.  Then when I reviewed the files in the playlist all of the play counts have been reset to 0.  The ratings and 'Love' indicator remain intact.  The music file is also intact.  I seemed to also lose the last modified and last played information within the record.

Interestingly enough, all of my music under my 'Music' section still has all my play counts.

Do you happen to know what would've caused this and how I could restore my play counts on the playlist files?

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10273
What you're saying doesn't quite make any sense. A playlist is nothing more than a text file which points to the actual location of the music file. If the music file is showing a play count, than it should also show when you check the track in the playlist. Are you certain you're looking at the same track and not two different tracks with the same name?
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
Okay, this is what I mean.

The way I use Musicbee, is I put my albums under 'Music' and when I'm reviewing a collection of music files (not related to a specific artist album per se), I put them into playlists.  For instance, I create a net-new playlist and drag and drop my music files directly into the the application.  I do not add them to playlists from existing music files within Musicbee.  These should not be the same music file.



From the above screenshot, What I'm seeing is that for all of my albums under the 'Music' section, all of my play counts are fine.  I can also see only files played from this directory in my 'History' tab.

However, when I go into a Playlist, for instance, I'll click on the 'Future Garage' playlist I have from the first screenshot. 

I see this:

This was working yesterday.  I did update Microsoft Visual C++ x64 last night (14.34.31938)...otherwise I don't know what would've caused this.

I am seeing errors in the Musicbee error log too (not sure if they are related):

4/13/2023 4:19:38 PM - 10.0.19044.0 - 3.5.8447.35892D - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path)
   at MusicBeePlugin.Plugin.ReceiveNotification(String sourceFileUrl, NotificationType type)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at #=z5PgYRDH$zNo7WhzgWg==.#=zwpPhZHyK7qbx()

4/13/2023 4:19:39 PM - 10.0.19044.0 - 3.5.8447.35892D - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.CurrentTitle()
   at MusicBeePlugin.Plugin.ImgCheck()
   at MusicBeePlugin.Plugin.ReceiveNotification(String sourceFileUrl, NotificationType type)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at #=z5PgYRDH$zNo7WhzgWg==.#=zwpPhZHyK7qbx()

4/13/2023 4:20:30 PM - 10.0.19044.0 - 3.5.8447.35892D - System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(String filename)
   at MusicBeePlugin.TagHistoryPlugin..ctor(Plugin tagToolsPluginParam, String[] trackUrlsParam, Int32[] trackIdsParam)
   at MusicBeePlugin.Plugin.tagHistoryEventHandler(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

4/13/2023 4:54:51 PM - 10.0.19044.0 - 3.5.8447.35892D - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\MusicBee\\Plugins\PlaylistHistory\' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at System.IO.Directory.CreateDirectory(String path)
   at MusicBeePlugin.Plugin.ReceiveNotification(String sourceFileUrl, NotificationType type)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at #=z5PgYRDH$zNo7WhzgWg==.#=zwpPhZHyK7qbx()


jesse.janssen32

  • Newbie
  • *
  • Posts: 12
Shoot sorry, looks like my screenshots didn't come through.

Screenshot 1 : https://imgur.com/a/SPNGH7X

Screenshot 2: https://imgur.com/a/n3Km6OI

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
MB only maintains one playcount for each file, so i dont see how files displayed in a playlist show a different playcount to the same files in your library.
Perhaps the playlist files are referring to a different copy of the same file.
If you right click/ Edit one of the files, check the file path in the properties tab and then compare that path to the same file in your library

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
That is what is stumping me.  I can confirm there's only one file in my library.  I checked the file properties and can confirm there's only one version of the file in my MB library.  It was there (with the proper play count) yesterday and today everything in the playlist structure has been reset to 0. 

frankz

  • Hero Member
  • *****
  • Posts: 3867
That is what is stumping me.  I can confirm there's only one file in my library.  I checked the file properties and can confirm there's only one version of the file in my MB library.  It was there (with the proper play count) yesterday and today everything in the playlist structure has been reset to 0. 
That's not what he was asking.

He's asking if the playlists may actually be referencing versions of the files that don't actually exist. You can do this by following the steps that he outlined.

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
Frankz, I understand what Steven is asking.  I checked and double checked the file properties like Steven asked.  I can confirm the file is not a different version of the file.  I checked the metadata of the file and it was not created/modified since the issue was noticed.  I checked the local file on my machine and can confirm its the same file that was in the playlist earlier.  Again, for some reason the play counts are fine under the 'Music' section however, every single file in the 'Playlist' section has been reset. 

I also exported my library to XML and I can only see the files referenced in my 'Music' section as well.

Lastly, I restored my PC to an earlier state before I updated a handful of programs but that didn't seem to work either.  I didn't think it would, but I wanted to try. 

Not sure if this helps or not, but this is how I use MB.  I have music files in various locations throughout the following locations.
1. Local PC
2. Additional Backup HDD
3. NAS
(this is one of the main reasons I love MB, it can consolidate all of my selected music throughout various locations and I love it for that reason)

I drag the MP3 files directly from one of the three locations mentioned above when I want to add them to my MB library.  I do this ad-hoc.  I do not have all of my music added to MB, only a handful of select files.

If an artist I follow comes out with a new album, I download that and add it to 'Music'. 

I also follow a few YouTube channels that release music as well.  I download individual MP3 files and add them into a folder structure on my PC.  Then I drag and drop the music file into a 'Playlist'.  These playlists lost the play count, however the 'Love' indicator was retained. 

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10273
What you're claiming still doesn't make any sense.

Please post two screen shots.
One with the track from your library showing the entire properties tab from the Tag Editor.
Another with the SAME track from the playlist showing the entire properties tab from the Tag Editor.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
I don't know how else to articulate this.  I only put the music file(s) in a playlist structure.  I drag it directly from the folder in Windows directory into MB.  This is the way I've always done this and it worked perfectly.  When you say "...the track from your library...", I don't know where that is.  Are you saying the local file of it in my file directory on my computer?  When I find the file in my playlist, this is what I see.

Screenshot from Playlist: https://imgur.com/a/RTYTViE

I played this song this morning and I can confirm the 'last played' tag, updated from 'Unknown' to today's date.  It also updated the play count from 0 to 1.  I updated MB to v3.5.8447.  When I relaunched MB it reset my play count from 1 back to 0 again.  It also wiped out the 'last played' tag.

I also tried to get the tag history and got this error.

MusicBee v3.5.8447.35892D  (Win10.0), 17 Apr 2023 9:22:

System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(String filename)
   at MusicBeePlugin.TagHistoryPlugin..ctor(Plugin tagToolsPluginParam, String[] trackUrlsParam, Int32[] trackIdsParam)
   at MusicBeePlugin.Plugin.tagHistoryEventHandler(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10273
When you say "...the track from your library...", I don't know where that is.  Are you saying the local file of it in my file directory on my computer?
No, I saying forget about playlists for the time being. Open the music tab and find the same file you posted the screenshot of in the playlist. Open the Tag Editor and show the entire properties tab.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10273
You're saying the play counts remain as they were when you look at the file in the music tab but not when in the playlists. We're saying that's impossible. Show us the properties from the same file viewed in the music tab.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
Perhaps that's my problem.  I cannot find this file under 'Music'.  I tried doing a global search using the 'Entire Library' setting and it found zero results. 

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10273
Perhaps that's my problem.
Or at least part of it.

How did you create the playlist(s)?
Do you have any tracks showing in the music tab, whether or not they're in a playlist?
Do you have a library set up, or do you only play tracks from playlists?
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

jesse.janssen32

  • Newbie
  • *
  • Posts: 12
I created the playlist by clicking under the 'Playlist' section.  Right Click - - > New - - > New Playlist - - > Then I gave my playlist a name.  From there, I would navigate to a folder on my computer/HDD/NAS, and drag and drop the music files directly into MB.

Yes, I have quite a few files still showing up in my 'Music' tab.  All of those files are correct (the play counts are still displaying properly).  I'm not able to find a single file in 'Music' that I have in my 'Playlist' section.  I thought it would be worth mentioning again, when I click on a playlist, it does lock up MB for about 30 seconds and then displays the songs in the playlist.  All of the songs are there, they do play when I double click on them and the 'Love' indicator is still associated with the song.  The anomaly I see is that the play count was reset to 0, the date added is blank, and the last played has been wiped out, which then displays 'unknown'.  This is shown from my screenshot earlier today.

I do have a library set up, yes.  But I suppose I should use that word carefully on this board  ;)

Here is a screenshot of my entire Library panel. https://imgur.com/RYzSoi9