[no Bug] Auto update music db on changes in share not working (2 Viewers)

mhoogenbosch

MP Donator
  • Premium Supporter
  • April 21, 2008
    308
    70
    Utrecht, Netherlands
    Home Country
    Netherlands Netherlands
    uhh, i think we have a mixup :)

    The MusicInfoHandler 'BUG' is located at: https://forum.team-mediaportal.com/threads/artist-information-not-updating.123677/page-2
    This ofcourse is no bug, but a 'out-of-date' plugin which has been fixed by @Sebastiii . This is realllly great ofcourse because I was missing this.

    But the 'bug' this thread has been raised for was the 'not-updating' of the Music Database when adding new Files / Folders / Albums to the Share.

    @Sebastiii, could you please rearange? tnx!
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Oh :)
    Ah ok :) We have different issue then, could try to look into it but maybe not today or tomorrow (will see).

    So you mean, before when added something in share, it will auto update db (without MusicInfoHandler ?) are you sure ? :)
    If yes then something need to be change and/or use updated plugins (non official).

    I didn't really use music on my side, i mean start music and let play lol so i can't confirm how it was before :)
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    So you mean, before when added something in share, it will auto update db (without MusicInfoHandler ?) are you sure ? :)
    If yes then something need to be change and/or use updated plugins (non official).
    Let me Paraphrase it a little bit. When you add any music file to your storage place, e.g. to a server-based repository from another PC, MediaPortal is no longer taking note of this (since I believe MP 1.5). Newly added Music is only visible in share view, but not in any other Artist/Album view. The theoretical behavior is that you can tick a checkbox to have MP watch your Music storage and automatically add the data (from tagged information) to the database.
    This database update exclusively uses ID3 information from the newly discovered Music files. No online search is taking place.
     

    mhoogenbosch

    MP Donator
  • Premium Supporter
  • April 21, 2008
    308
    70
    Utrecht, Netherlands
    Home Country
    Netherlands Netherlands
    Oh :)
    Ah ok :) We have different issue then, could try to look into it but maybe not today or tomorrow (will see).

    So you mean, before when added something in share, it will auto update db (without MusicInfoHandler ?) are you sure ? :)
    If yes then something need to be change and/or use updated plugins (non official).

    I didn't really use music on my side, i mean start music and let play lol so i can't confirm how it was before :)
    No, this issue has nothing to do with MusicInfoHandler. There is a function which you can enable so MePo automatically scans and updates the music db on changes in the share. My experience is, this isn''t working anymore. It used to work. Now if i have added new music (either files or folders to the share) i have to manually run a '' update music db' action.

    It isn''t that much of an issue because I know when ive added music and the option to scan is avaliable from within MePo, but then still the function doens''t work and imo all functions should work :D

    No high prio :) so take your time.

    What @HTPC_Sourcer says :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi,

    I just do some test :
    Code:
    [2014-01-02 18:34:17,825] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.jpg
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.m3u
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.nfo
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.sfv
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\01-dvbbs_and_borgeous-tsunami_(radio_edit).mp3
    [2014-01-02 18:34:17,827] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\DVBBS_and_Borgeous-Tsunami_(Radio_Edit)-WEB-2013-gnvr.nfo
    [2014-01-02 18:34:18,916] [Log    ] [23      ] [DEBUG] - Util: FileDelete G:\Temp\pqfmzipp.hu4 successful.
    [2014-01-02 18:34:20,840] [MusicShareWatcher] [22      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\folder.jpg
    [2014-01-02 18:35:49,262] [MusicShareWatcher] [22      ] [DEBUG] - Rename File/Directory Fired: D:\!MusicLocal\tsunami\01-dvbbs_and_borgeous-tsunami_(radio_edit)-test.mp3
    [2014-01-02 18:36:06,771] [MusicShareWatcher] [24      ] [INFO ] - Song / Directory {0} renamed to {1]

    I have added a music into a share folder and MusicShareWatcher and seems to add it on db, after that i rename the file :
    01-dvbbs_and_borgeous-tsunami_(radio_edit).mp3 to 01-dvbbs_and_borgeous-tsunami_(radio_edit)-test.mp3 and i have see while debugging that the code is reached :

    Code:
    case MusicShareWatcherEvent.EventType.Rename:
                      if (musicDB.RenameSong(currentEvent.OldFileName, currentEvent.FileName))
                      {
                        Log.Info(LogType.MusicShareWatcher, "Song / Directory {0} renamed to {1]", currentEvent.OldFileName,
                                currentEvent.FileName);
                      }

    So it seems to works.
     

    mhoogenbosch

    MP Donator
  • Premium Supporter
  • April 21, 2008
    308
    70
    Utrecht, Netherlands
    Home Country
    Netherlands Netherlands
    Hi,

    I just do some test :
    Code:
    [2014-01-02 18:34:17,825] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.jpg
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.m3u
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.nfo
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\00-dvbbs_and_borgeous-tsunami_(radio_edit)-web-2013.sfv
    [2014-01-02 18:34:17,826] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\01-dvbbs_and_borgeous-tsunami_(radio_edit).mp3
    [2014-01-02 18:34:17,827] [MusicShareWatcher] [18      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\DVBBS_and_Borgeous-Tsunami_(Radio_Edit)-WEB-2013-gnvr.nfo
    [2014-01-02 18:34:18,916] [Log    ] [23      ] [DEBUG] - Util: FileDelete G:\Temp\pqfmzipp.hu4 successful.
    [2014-01-02 18:34:20,840] [MusicShareWatcher] [22      ] [DEBUG] - Add Song Fired: D:\!MusicLocal\tsunami\folder.jpg
    [2014-01-02 18:35:49,262] [MusicShareWatcher] [22      ] [DEBUG] - Rename File/Directory Fired: D:\!MusicLocal\tsunami\01-dvbbs_and_borgeous-tsunami_(radio_edit)-test.mp3
    [2014-01-02 18:36:06,771] [MusicShareWatcher] [24      ] [INFO ] - Song / Directory {0} renamed to {1]

    I have added a music into a share folder and MusicShareWatcher and seems to add it on db, after that i rename the file :
    01-dvbbs_and_borgeous-tsunami_(radio_edit).mp3 to 01-dvbbs_and_borgeous-tsunami_(radio_edit)-test.mp3 and i have see while debugging that the code is reached :

    Code:
    case MusicShareWatcherEvent.EventType.Rename:
                      if (musicDB.RenameSong(currentEvent.OldFileName, currentEvent.FileName))
                      {
                        Log.Info(LogType.MusicShareWatcher, "Song / Directory {0} renamed to {1]", currentEvent.OldFileName,
                                currentEvent.FileName);
                      }

    So it seems to works.
    Okay, that's weird. I'll try and do some more testing. Enabling the debug logging is probally somewhere in the Wiki right? I'll try to see if i can do that tonight.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I have this setting :
    upload_2014-1-2_18-46-33.png

    :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    ok :)

    I have look @ your log and it seems ready to scan : [MusicShareWatcher] [MusicShareWatcher] [INFO ] - \\nas-01\files\muziek
    So it should work :p
     

    Users who are viewing this thread

    Top Bottom