Virtual Folders

Discuss issues related to PS3 Media Server development (only for programmers)

Re: Virtual Folders

Postby ExSport » Sun Sep 19, 2010 7:46 pm

Many thanks, will try it...
EDIT:
Code: Select all
[New I/O server worker #1-2] TRACE 21:30:15.877 java.lang.NullPointerException
[New I/O server worker #1-2] TRACE 21:30:15.877    at net.pms.dlna.MapFile.getFileList(MapFile.java:132)
[New I/O server worker #1-2] TRACE 21:30:15.878    at net.pms.dlna.MapFile.discoverChildren(MapFile.java:173)
[New I/O server worker #1-2] TRACE 21:30:15.878    at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:365)
[New I/O server worker #1-2] TRACE 21:30:15.878    at net.pms.network.RequestV2.answer(RequestV2.java:416)
[New I/O server worker #1-2] TRACE 21:30:15.878    at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:208)
[New I/O server worker #1-2] TRACE 21:30:15.878    at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:181)
[New I/O server worker #1-2] TRACE 21:30:15.879    at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:117)
[New I/O server worker #1-2] TRACE 21:30:15.879    at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:101)
[New I/O server worker #1-2] TRACE 21:30:15.879    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
[New I/O server worker #1-2] TRACE 21:30:15.879    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:506)
[New I/O server worker #1-2] TRACE 21:30:15.880    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:490)
[New I/O server worker #1-2] TRACE 21:30:15.880    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:427)
[New I/O server worker #1-2] TRACE 21:30:15.880    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
[New I/O server worker #1-2] TRACE 21:30:15.880    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
[New I/O server worker #1-2] TRACE 21:30:15.881    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
[New I/O server worker #1-2] TRACE 21:30:15.881    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
[New I/O server worker #1-2] TRACE 21:30:15.882    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
[New I/O server worker #1-2] TRACE 21:30:15.883    at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
[New I/O server worker #1-2] TRACE 21:30:15.883    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[New I/O server worker #1-2] TRACE 21:30:15.884    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[New I/O server worker #1-2] TRACE 21:30:15.884    at java.lang.Thread.run(Unknown Source)

Now when vfolders is missing, it is ok. Also it is ok when folder doesn't exists and PMS is loading.
But it is NOT OK when folder with missing path is browsed. At this point, exception is shown :(
PMS hides missing folders automatically but not for virtual folders...
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Virtual Folders

Postby lightglitch » Mon Sep 20, 2010 12:32 am

Fixed.
And now you can also define the vfolders in a different file:

In PMS.conf:
Code: Select all
vfolders = @vfolders.json


And then create a file named vfolders.json with the configuration:
Code: Select all
[
    {
       "name":"teste",
       "files":["D:\\play\\ps3mediaserver\\test1","D:\\play\\ps3mediaserver\\test"],
       "children":[
           {
               "name":"teste1",
               "files":["D:\\play\\ps3mediaserver"]
           }
       ]
    }
]
Attachments
ps3mediaserver.zip
Patch for developers
(163.44 KiB) Downloaded 113 times
ps3mediaserver_update.zip
Update.jar for testing
(156.65 KiB) Downloaded 132 times
Last edited by lightglitch on Tue Sep 28, 2010 9:39 pm, edited 2 times in total.
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: Virtual Folders

Postby ExSport » Mon Sep 20, 2010 6:39 pm

Tested and problem fixed 8-)
Thanks!!! :)
EDIT:
Also thanks for independend config file because PMS converts special chars incorrectly in pms.conf file so it is wrongly displayed in renderer when browsed. Now it is OK when defined in separate file :mrgreen:
Many thanks again 8-)
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Virtual Folders

Postby ExSport » Tue Sep 21, 2010 9:19 pm

Forgot to say I am using updated version of gson(v1.5 instead of v1.4 bundled in your pack) from here and it is working without problems :-)
http://code.google.com/p/google-gson/downloads/list
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Virtual Folders

Postby chocolateboy » Wed Sep 22, 2010 5:54 am

Small nit (the nit is really in English rather than your code): "childs" should be "children".
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Virtual Folders

Postby lightglitch » Wed Sep 22, 2010 10:27 am

chocolateboy wrote:Small nit (the nit is really in English rather than your code): "childs" should be "children".

No worries, I will fix it.

Edit: fixed at viewtopic.php?f=14&t=7844
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: Virtual Folders

Postby ExSport » Fri Sep 24, 2010 11:05 pm

Hi again
Some more testing and found one bug.
Without patch when you will rename file and browse back to this dir, it is automatically updated on PS3. Old file will hide immediately and new one will show up.
With patch, old one will stay visible and new one is added so when you will rename file few times, you will see many files but on disk there is only one physically.
It seems some update process is not called :?
Do you know where should be the problem?
Many thanks!
Last edited by ExSport on Sun Sep 26, 2010 4:39 pm, edited 1 time in total.
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Virtual Folders

Postby chocolateboy » Sat Sep 25, 2010 12:05 pm

I can confirm this. Wasn't sure which patch was responsible.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Virtual Folders

Postby ExSport » Sun Sep 26, 2010 4:39 pm

Another bug found.
When chapters are enabled, exceptions are made which broke displaying info about subtitles in MKV files and maybe also other problems... :(
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Virtual Folders

Postby lightglitch » Mon Sep 27, 2010 5:42 pm

Tomorrow I will check it.

Edit: I had some time
viewtopic.php?f=14&t=7844&p=36961#p36961
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

PreviousNext

Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests