|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Ok. I had some time.
I updated the file in the same location as before: https://www.dropbox.com/s/h761q3pbbz...ring_sort?dl=0 Here's the new version: Code:
public int compare(Object o1, Object o2) { Show s1 = getShowObj(o1); Show s2 = getShowObj(o2); long l1 = (s1 == null) ? 0 : s1.getOriginalAirDate(); long l2 = (s2 == null) ? 0 : s2.getOriginalAirDate(); if (l1 < l2) return -1; else if (l1 > l2) return 1; if (s1 != null && s2 != null) { int n1 = s1.getSeasonNumber(); int n2 = s2.getSeasonNumber(); if (n1 > n2) // larger season is older/earlier show return -1; else if (n1 < n2) return 1; n1 = s1.getEpisodeNumber(); n2 = s2.getEpisodeNumber(); if (n1 < n2) return -1; else if (n1 > n2) return 1; } Airing a1 = getAirObj(o1); Airing a2 = getAirObj(o2); l1 = (a1 == null) ? 0 : a1.getStartTime(); l2 = (a2 == null) ? 0 : a2.getStartTime(); return (l1 < l2) ? -1 : ((l1 > l2) ? 1 : 0); } |
#22
|
|||
|
|||
I don't think the negative or large numbers were the issue. I now suspect it's shows that share an original airing date but have mixed availability of season and episode numbers.
I wonder if imported shows either don't have original airing dates or they get populated with the same date when imported. That would make my failing scenario occur far more often. |
#23
|
|||
|
|||
I dont follow your season logic... a larger season number is a Newer show. An older show could be the same season or a smaller season number.
?
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#24
|
|||
|
|||
Quote:
Last edited by gary201; 09-28-2018 at 06:11 AM. |
#25
|
|||
|
|||
Quote:
If the shows are in the same series, then what you’re saying is true but then they should have really different original airing dates, shouldn’t they? I suppose the one place that’s tough to consider is when the original airing dates are both 0, they may or may not be from the same series. In the end, it’s probably not a big enough deal to worry about and easiest to leave it as it was. |
#26
|
|||
|
|||
Quote:
Great sleuthing BTW k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#27
|
|||
|
|||
Quote:
Thanks. I'm hoping this time it works. The last one was only a guess since I couldn't find anything else to blame. The multiple conditional compare logic makes it tricky. |
#28
|
|||
|
|||
I assume there isn't anything "confidential" in the wiz.bin (other than just all the stuff that was recorded/watched)? If not, you're welcome to it if you think that will help. Otherwise, we just wait and see since the problem seemed to appear/disappear periodically.
|
#29
|
|||
|
|||
Quote:
|
#30
|
|||
|
|||
Okay. So far, it's still working.
|
#31
|
|||
|
|||
Still good on your end? Has it been long enough that you think it would have surfaced otherwise? If it looks fixed I'll try to get the changes submitted along with a different one I'm already doing.
|
#32
|
|||
|
|||
You bet! The problem hasn't returned at all since the last change. I can't thank you enough.
|
#33
|
|||
|
|||
Good deal. I’ll sibmit the changes when I get the 64-bit Windows stuff submitted so you won’t have to stay on a temporary jar file.
|
#34
|
|||
|
|||
Please submit the changes for this fix independent from the 64-bit stuff. Makes it much easier to track changes and regression issues. "One submit for one bug" is the mantra.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#35
|
|||
|
|||
Will do. I guess what I meant was I'll do it when I get setup to do those. I haven't signed the open source agreement or ever submitted a pull request yet. I'll just submit them sequentially but separately. There's also another null pointer fix I have.
|
#36
|
||||
|
||||
I can't tell you how happy this makes me to see a comment like that. Thought it might never come.
|
#37
|
|||
|
|||
This fix has been pulled into the main code so any future builds will include it.
|
#38
|
|||
|
|||
Last night after watching/deleting a recording, the problem returned. I'm running v9.1.10.479. Is it possible that the fix was overwritten (and backed out) by someone else?
[Edit] Noticed the problem was intermittent as it did appear this morning, but after another show/two was watched/deleted the problem cleared up. As I recall, the issue was intermittent previously as well. I then upgraded to v9.2.1.485, so we'll see if the problem reappears again. Last edited by gary201; 04-13-2019 at 06:12 AM. |
#39
|
|||
|
|||
Grab the sagetv_0.txt log file if it happens again. The code should still be there but there's always the possibility of another issue
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blank Video / Audio for Some Recordings | KarylFStein | SageTV Placeshifter | 1 | 10-14-2012 03:17 PM |
SageTV Recordings blank after install on new pc | bobvoeh | SageTV Software | 2 | 07-22-2012 01:49 PM |
SageClient (6.1.9) LiveTv/Recordings=Good, Video = blank spots | riekl | SageTV Software | 2 | 04-28-2007 06:15 AM |
Sage Recordings now blank | eshafer_24 | SageTV Software | 3 | 07-25-2005 08:05 PM |
Some recordings showing up in Sage Recording with 'blank' names | JasonJoel | SageTV Beta Test Software | 2 | 04-15-2004 11:28 PM |