YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Issue with offline libraries using the same access path #787

Open Omertron opened 9 years ago

Omertron commented 9 years ago

Original issue 788 created by Omertron on 2009-05-13T14:42:18.000Z:

What steps will reproduce the problem?

  1. Media files are located on 2 "movable/offline" USB disks A and B
  2. Disk A contains library named "Library A" and Disk B contains library named "Libray B"
  3. When you connect Disk A, the Windows access path is D:\
  4. When you connect Disk B (Disk A offline), the Windows access path is also D:\
  5. The "libraries.xml" file has been configured with both disks in it (see hereunder for sample)

What is the expected output? What do you see instead? When connecting Disk B, the user sets the "scrape library" to false for Disk A... the expected result is that library for Disk B is processed and library for Disk A is fully ignored. What I see instead is that both libraries are not scraped.

What version of the product are you using? On what operating system? Latest version, Windows Vista.

Please provide any additional information below.

Suggestion to solve this issue ("easy fix"): add a parameter to libraries.xml file to completely ignore and entire library.

Eg: <ignoreLibrary>true/false</ignoreLibrary>

This is a sample of libraries.xml file that will cause the issue with the steps described hereabove:

&lt;library&gt;
    &lt;path&gt;D:\&lt;/path&gt;
    &lt;nmtpath&gt;file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A-

1/</nmtpath> <exclude name="sample,tmp/,temp/"/> <description>Library A</description> <prebuf></prebuf> <scrapeLibrary>false</scrapeLibrary> </library>

&lt;library&gt;
    &lt;path&gt;D:\&lt;/path&gt;
    &lt;nmtpath&gt;file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A-

1/</nmtpath> <exclude name="sample,tmp/,temp/"/> <description>Library B</description> <prebuf></prebuf> <scrapeLibrary>true</scrapeLibrary> </library>

This is a sample of libraries.xml file with fix that will resolve the issue with the steps described hereabove:

&lt;library&gt;
    &lt;path&gt;D:\&lt;/path&gt;
    &lt;nmtpath&gt;file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A-

1/</nmtpath> <exclude name="sample,tmp/,temp/"/> <description>Library A</description> <prebuf></prebuf> <scrapeLibrary>true (or false, doesn't really matter because this library is fully ignored anyway)</scrapeLibrary> <ignoreLibrary>true</ignoreLibrary> </library>

&lt;library&gt;
    &lt;path&gt;D:\&lt;/path&gt;
    &lt;nmtpath&gt;file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A-

1/</nmtpath> <exclude name="sample,tmp/,temp/"/> <description>Library B</description> <prebuf></prebuf> <scrapeLibrary>true</scrapeLibrary> <ignoreLibrary>false</ignoreLibrary> </library>

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2009-05-13T15:10:53.000Z:

FYI

For those of you who don't know this yet, there's a wonderfull program out there to enhance the use of YAMJ, it's called NMTServer.

http://code.google.com/p/nmtserver/

NMTServer will soon provide support to edit the libraries.xml file "on the fly" before running YAMJ. If the developpers of YAMJ accept to fix this defect (788), combined with the NMTServer enhancement (defect 20: http://code.google.com/p/nmtserver/issues/detail?id=20) it will be an ideal solution for people with multiple offline medias.

Pros:

If you are as much interrested as I am by this enhancement, don't hesitate to star both defect... and encourage the developpers for support. ;-)

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2009-06-25T22:55:05.000Z:

In your case it makes a lot more sense to have library-A.xml and library-B.xml with the same NMT paths but different library name. You then run YAMJ on each xml file to create 2 different jukeboxes. No need to edit any library file again once it's setup, and you can even use a different skin for each with a different property file named on the command line.

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2009-06-26T13:19:24.000Z:

Hi garp999, the point of this addition is precisely to avoid creating multiple library.xml files ... and to have all movies in one central jukebox. Thanks anyway.

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2009-08-25T07:56:22.000Z:

<empty>