svn-1696 scanning (or not) Library.xml

FireFly Media Server Firefly Media Server Forums Firefly Media Server Setup Issues svn-1696 scanning (or not) Library.xml

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1910
    per99
    Participant

    I have this weird issue.

    When i copy the library.xml file from my PC based itunes to the NAS (DS-207), the file does not seem to be scanned (see d9 log extract below).
    The file is found OK. – but not scanned.

    But if i make a new iTunes library in //nas/music/itunes1 folder it is scanned, and playlists in it is found. (=half way there)

    My problem with that is that mt-daapd then wrongly seem to think the music is in the //nas/music/itunes1 folder, wheras it is actually in //nas/music/MP3.
    (it translate wrongly)..again please see the d9 log extract below.

    Any help is much appriciated:
    On my old NAS (god old NSLUG), all i had to do was to export the library file from the PC to the NAS, and i has all playlists. I do not seem to be able to get that going here.

    2007-11-05 15:27:22 (00004000): Firefly Version svn-1696: Starting with debuglevel 9
    .
    2007-11-05 15:29:59 (00004000): Found /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:29:59 (00004000): Adding /volume1/music/iTunes 1/iTunes Library.xml for deferred processing.
    .(my experiment, a 2nd local iTunes library)
    .
    2007-11-05 15:31:16 (00004000): Found /volume1/music/MP3/Library.xml
    2007-11-05 15:31:16 (00004000): Adding /volume1/music/MP3/Library.xml for deferred processing.
    .(what i really want, a copy from the PC base iTunes)
    .
    2007-11-05 15:34:10 (00004000): About to scan /volume1/music/MP3/Library.xml
    2007-11-05 15:34:10 (00004000): About to scan /volume1/music/MP3/fra Jannis/Di
    .(that’s it !!?? – the /music/MP3/Library.xml file is never really scanned)
    .
    .
    2007-11-05 15:34:10 (00004000): About to scan /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:34:10 (00004000): Scanning /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:34:10 (00004000): Opening file:///volume1/music/iTunes+1/iTunes+Library.xml?ascii=1
    2007-11-05 15:34:10 (00004000): Checking handler for file
    2007-11-05 15:34:10 (00004000): opening /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:34:10 (00004000): iTunes Version: 7.3.2
    2007-11-05 15:34:10 (00004000): iTunes base path: file://localhost/E:/MP3/iTunes%20Music/
    ..(more action, what i would rather have with the /mp3/library.xml )
    .
    2007-11-05 15:34:10 (00004000): scan_path: file://localhost//Diskstation/music/MP3/ Vangelis – The Best Of Jon & Vangelis/09 – I Hear You Now.mp3
    2007-11-05 15:34:10 (00004000): Translating file://localhost//Diskstation/music/MP3/ Vangelis – The Best Of Jon & Vangelis/09 – I Hear You Now.mp3, base /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:34:10 (00004000): New base: /volume1/music/iTunes 1/iTunes Library.xml
    2007-11-05 15:34:10 (00004000): Translating file://localhost//Diskstation/music/MP3/ Vangelis – The Best Of Jon & Vangelis/09 – I Hear You Now.mp3, base /volume1/music/iTunes 1/iTunes Library.xml

    (not sure what this means, the ‘local’ iTunes library base is /music/itunes1, but the actual music is at /music/MP3)

    The end result is it finds the playlist i the /music/itunes1/library.xml file, but it’s empty.

    2007-11-05 15:34:12 (00004000): Found playlist: playlist1
    2007-11-05 15:34:12 (00004000): Creating playlist for playlist1
    2007-11-05 15:34:12 (00004000): Converting native plid (203) to -515709496
    2007-11-05 15:34:12 (00004000): Executing: select * from playlists where path=’/volume1/music/iTunes 1/iTunes Library.xml’ and idx=-515709496
    2007-11-05 15:34:12 (00004000): Executing: select count(*) from playlists where upper(title)=upper(‘playlist1’)
    2007-11-05 15:34:12 (00004000): Executing: insert into playlists (title,type,items,query,db_timestamp,path,idx) values (‘playlist1′,3,0,NULL,1194273252,’/volume1/music/iTunes 1/iTunes Library.xml’,-515709496)
    2007-11-05 15:34:12 (00004000): Rows: 1
    2007-11-05 15:34:12 (00004000): Executing: select id from playlists where title=’playlist1′
    2007-11-05 15:34:12 (00004000): Executing: insert into plupdated values (10)
    2007-11-05 15:34:12 (00004000): Rows: 1
    2007-11-05 15:34:12 (00004000): Updating playlists

    As mention, playlist1 exsist on mt-daapd, but it is empty. i guess because firefly looked for the music in the /music/itunes1 path.

    .
    .
    2007-11-05 15:34:13 (00004000): Done Scanning /volume1/music/iTunes 1/iTunes Library.xml

    That’s it.
    I’ve left out some 10.000 pages of log, but a search for ‘Library’ and ‘Playlist1’ essentially turned out the above.

    thanks for any suggestions
    Per

    #14232
    rpedde
    Participant

    @per99 wrote:

    2007-11-05 15:34:10 (00004000): About to scan /volume1/music/MP3/fra Jannis/Di
    .(that’s it !!?? – the /music/MP3/Library.xml file is never really scanned).

    They have to be called “iTunes Music Library”, or “iTunes Library”, to avoid trying to scan arbitrary xml files as iTunes files and slowing the thing down.

    2007-11-05 15:34:10 (00004000): Translating file://localhost//Diskstation/music/MP3/ Vangelis – The Best Of Jon & Vangelis/09 – I Hear You Now.mp3, base /volume1/music/iTunes 1/iTunes Library.xml

    (not sure what this means, the ‘local’ iTunes library base is /music/itunes1, but the actual music is at /music/MP3)

    Then the xml file has to be in /music/MP3, not in /volume1/music.

    It can’t tell what E: on your workstation corresponds to. The only guess it can make is that E: is somewhere above where the xml file itself sits. Which is what it’s trying to do… figure out where the share point is relative to where the xml file sits. If the share point isn’t above the file, then it won’t succeed.

    Bottom line: put the xml file somewhere under the share that you have connected for your iTunes library.

    — Ron

    #14233
    per99
    Participant

    Thanks. I hear you.

    I do have a XML file in the /music/MP3 folder:

    2007-11-05 15:34:10 (00004000): About to scan /volume1/music/MP3/Library.xml
    it says it wants to scan it, but it never seem to actually do it.

    anyway:
    Playlists in that file points to music that sits in E:/MP3.
    I thought /volume1/music/MP3 on the NAS would be OK, but i guess i have to make it closer a la:
    E:/volume1/MP3
    NAS:/volume1/MP3

    (don’t want to create a seperate volume on the NAS, hence the stupid volume1)

    again, thanks
    Per

    #14234
    per99
    Participant

    I reworked the structure. Works fine now. Thanks.

    Just as refernce for others with the same issue, i list the log of a successful mapping.

    ps: it’s my wife’s musik!

    2007-11-06 14:52:17 (00004000): Found /volume1/music/MP3/iTunes Library.itl
    2007-11-06 14:52:17 (00004000): Ending song scan
    2007-11-06 14:52:17 (00004000): Executing: pragma synchronous = off
    2007-11-06 14:52:17 (00004000): Rows: 0
    2007-11-06 14:52:17 (00004000): Executing: begin transaction
    2007-11-06 14:52:17 (00004000): Rows: 0
    2007-11-06 14:52:17 (00004000): Processing playlists
    2007-11-06 14:52:17 (00004000): Starting playlist scan
    2007-11-06 14:52:17 (00004000): About to scan /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): Scanning /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): Opening file:///volume1/music/MP3/iTunes+Library.xml?ascii=1
    2007-11-06 14:52:17 (00004000): Checking handler for file
    2007-11-06 14:52:17 (00004000): opening /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): iTunes Version: 7.3.2
    2007-11-06 14:52:17 (00004000): iTunes base path: file://localhost/E:/MP3/iTunes%20Music/
    2007-11-06 14:52:17 (00004000): Scanning tracks
    2007-11-06 14:52:17 (00004000): Scanning iTunes id #38
    2007-11-06 14:52:17 (00004000): scan_path: file://localhost/E:/volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can’t Stop My Heart From Loving You.mp3
    2007-11-06 14:52:17 (00004000): Translating file://localhost/E:/volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can’t Stop My Heart From Loving You.mp3, base /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): New base: /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): Trying /volume1/music/MP3/01 – Can’t Stop My Heart From Loving You.mp3
    2007-11-06 14:52:17 (00004000): New base: /volume1/music/MP3/iTunes Library.xml
    2007-11-06 14:52:17 (00004000): Trying /volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can’t Stop My Heart From Loving You.mp3
    2007-11-06 14:52:17 (00004000): Found it!
    2007-11-06 14:52:17 (00004000): Mapping file://localhost/E:/volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can’t Stop My Heart From Loving You.mp3 to /volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can’t Stop My Heart From Loving You.mp3
    2007-11-06 14:52:17 (00004000): Executing: select * from songs where path=’/volume1/music/MP3/Aaron Neville – The Tattooed Heart/01 – Can”t Stop My Heart From Loving You.mp3′ and idx=0
    2007-11-06 14:52:17 (00004000): Executing: INSERT INTO updated VALUES (6)
    2007-11-06 14:52:17 (00004000): Rows: 1

    rgs
    Per

    #14235
    rpedde
    Participant

    @per99 wrote:

    rgs
    Per

    Yeah, you can kinda see how it’s trying to search around and find where the files might be. It’s kind of a dumb scanner, but I can’t really think of a better way to map those.

    Maybe I could have some user maps in the config, so you could say path X in the xml corresponds to Y on the nas, but that’s the only other way I could figure to do it.

    — Ron

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.