SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2011, 06:17 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Sorting by Original Air Date change?

Stuckless,


So I see you changed the format of Original Air Date a little bit. I had to reget all my metadata to fill them in,no biggie. But Now i'm trying to create a view and sort on the Original Air Date. I'm using the following , but it doesn't seem to like it. My guess is that there are a couple of items with NO originalAirDate value, and it's not handling the null value in the sort...


Code:
<sort by="originalairdate">
	<option name="sort-order" value="desc"/>
</sort>
I get the following in the phoenix.log

Code:
java.lang.NullPointerException
	at sagex.phoenix.vfs.sorters.OriginalAirDateSorter.compare(OriginalAirDateSorter.java:27)
	at sagex.phoenix.vfs.sorters.OriginalAirDateSorter.compare(OriginalAirDateSorter.java:15)
	at sagex.phoenix.vfs.sorters.Sorter.compare(Sorter.java:87)
	at sagex.phoenix.vfs.sorters.Sorter.compare(Sorter.java:22)
	at sagex.phoenix.vfs.sorters.MultiLevelComparator.compare(MultiLevelComparator.java:23)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.sort(Unknown Source)
	at java.util.Collections.sort(Unknown Source)
	at sagex.phoenix.vfs.views.ViewPresentation.sort(ViewPresentation.java:121)
	at sagex.phoenix.vfs.views.ViewFolder.decorate(ViewFolder.java:184)
	at sagex.phoenix.vfs.DecoratedMediaFolder.getChildren(DecoratedMediaFolder.java:90)
	at org.jdna.bmt.web.server.BrowsingServicesImpl.getView(BrowsingServicesImpl.java:861)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
2011-04-21 19:02:03,588 [12890586@qtp-26876421-1] INFO  sagex.phoenix.vfs.views.ViewFactory - Creating view for: Recently Released; id: Recent_Rel_Movies; Options: null
Reply With Quote
  #2  
Old 04-21-2011, 06:58 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Gustovier View Post
So I see you changed the format of Original Air Date a little bit. I had to reget all my metadata to fill them in,no biggie.
I don't recall changing OriginalAirDate. I changed how you can enter it (from the web ui), but it should still be stored as a long value.

Quote:
But Now i'm trying to create a view and sort on the Original Air Date. I'm using the following , but it doesn't seem to like it. My guess is that there are a couple of items with NO originalAirDate value, and it's not handling the null value in the sort...


Code:
<sort by="originalairdate">
	<option name="sort-order" value="desc"/>
</sort>
Thanks, I fixed that. It'll be in the next build.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Original air date in OSD info element33 SageTV v7 Customizations 1 03-26-2011 01:23 PM
Sorting based on released date and add to library date not working still Gustovier Diamond 35 03-15-2011 12:45 PM
Original Air Date? bigo93bronco Batch Metadata Tools 17 01-09-2011 11:55 AM
How to Display Recordings by Recording Date & Original Air Date joe123 SageTV Customizations 25 02-16-2010 05:28 AM
original air date gilded07 SageTV Software 4 10-20-2007 11:45 PM


All times are GMT -6. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.