|
SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer. |
|
Thread Tools | Search this Thread | Display Modes |
#541
|
|||
|
|||
Hopefully I understand you correctly. I manually queued the task, checked the queue, clicked on view logs, and clicked 'View Log for Test Script'
It shows a handful of errors: LOG4J: Configured Logging for: sagex-api using file: sagex-api.log4j.properties javax.script.ScriptException: java.lang.NumberFormatException: null Is that what you wanted? |
#542
|
|||
|
|||
Yes, but go to the completed tasks view and look at the same data for Task ID #1. What does it show?
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#543
|
|||
|
|||
When I click on Completed Tasks, it just hangs indefinitely on that page. It doesn't lock up the client, as I can hit back, but it just says 'Loading...' and doesn't show the tasks.
Restarting the server and/or cient doesn't seem to resolve the issue. |
#544
|
|||
|
|||
Quote:
http://yourserver:8082/ Use this for the JDBC URL on the login form: jdbc:h2:tcp://localhost/plugins/sjq/sjq4 The id and password are both 'admin' (no quotes). Once in there, paste this into the input box and click Run: SELECT * FROM TASK_LOG WHERE ID=1 What's the output?
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#545
|
|||
|
|||
Running SELECT * from task_log returns 1 row (ID 2) with repeated copies of this (with different time stamps)
===== Thu Mar 10 14:13:13 CST 2011 ===== LOG4J: Configured Logging for: sagex-api using file: sagex-api.log4j.properties javax.script.ScriptException: java.lang.NumberFormatException: null ============================== |
#546
|
|||
|
|||
All ID=2? I don't know where task 1 went, but it seems to be gone. Task 2 is failing because you manually queued it and there's no metadata attached to it. Seems you're running an older version of the comskip_test.groovy script. Newer versions of that script better detect this and fail the job instead of constantly requeuing it. Clear the input box, click on the queue table, and delete the entry for ID=2 to remove that task from the queue. If you queued the first job that way, it's the same problem. Recordings need to be queued by event or through the detailed info screen.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#547
|
|||
|
|||
Awesome
I deleted the task, deleted all the events, and added 2 new events (recording start and recording stop). Comskip started right up.
Thanks! |
#548
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#549
|
|||
|
|||
Quote:
/*************** CONFIGURE VALUES IN THIS BLOCK ONLY! ***************/ boolean checkRecordingType = false; // Check the recording is of the type specified on the command line (i.e. only process mpg recordings) boolean checkForEdl = true; // If true, mark the task as skipped if an edl already exists String edlType = "edl"; // The edl extension (i.e. some people use .txt comskip files instead of .edl files) boolean comskipLive = true; // If false, this test will push the task back to the queue while the recording is in progress /********************************************************************/ /************************* DO NOT EDIT BELOW!! **********************/ // But if you do edit below to fix a bug, then email me the patch! Object mf = MediaFileAPI.GetMediaFileForID(Integer.parseInt(SJQ4_METADATA.get("SJQ4_ID"))); File path = new File(SJQ4_METADATA.get("SJQ4_PATH")); String fileName = SJQ4_METADATA.get("SJQ4_LAST_SEGMENT"); String fileType; if(SJQ4_ARGS.length > 0) fileType = SJQ4_ARGS[0]; else fileType = null; if(mf == null || path == null || path.getAbsolutePath().length() == 0 || fileName == null || fileName.length() == 0) { println("ERROR: Invalid environment data passed to scritpt!"); return 2; } String edl = fileName.substring(0, fileName.lastIndexOf('.')) + "." + edlType; if(new File(path, edl).exists()) { println("An edl already exists for this recording, skipping comskip!"); println("Found '" + new File(path, edl).getAbsolutePath() + "'"); return 2; } if(checkRecordingType && fileType != null && fileType.length() > 0 && !fileName.endsWith("." + fileType)) { println("Recording is not of specified type '" + fileType + "', skipping comskip!"); return 2; } if(!comskipLive && MediaFileAPI.IsFileCurrentlyRecording(mf)) { println("Recording in progress, waiting..."); return 1; } return 0; |
#550
|
|||
|
|||
Yeah, that's the latest, but you did find a bug. So now there's a Mar 10 version.
My entire Groovy script repository can be found here.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#551
|
|||
|
|||
I have some odd jobs appearing in the queue with almost no Metadata...type is "Object" instead of MediaFile (see screenshot). My comskip script just gives me a NullPointerException.
These seem to clog up the queue How do I tell SJQ to skip these? I also tried the latest comskip script, same error Last edited by madas; 03-11-2011 at 07:30 PM. |
#552
|
|||
|
|||
Quote:
1) The media file object is being deleted before it's being queued up in SJQ 2) The remote API calls are failing (network issues). This is unlikely if the task client is on the same machine as the server. 3) There is a bug in the Sage API where the API call IsMediaFileObject() is returning false when it should be returning true. If #1 doesn't apply (because the media file still exists) and #2 doesn't apply (because the task client is on the same host as the server) then try to requeue the task via the media file's detailed info screen and check out the metadata. If it keeps identifying it as an "Object" instead of a "MediaFile" then there's a bug in Sage API, which should be reported to Sage. If that's the case, send them that screen shot and a link to this post. As for fixing the job queue... which groovy script(s) are you using? I need to fix them to handle the possibility of that null pointer in this case. You will have to manually delete the existing tasks via the STV if they're being retried constantly (until I fix the Groovy script(s) to skip these tasks).
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#553
|
|||
|
|||
Quote:
Thanks for all of your hard work and support! |
#554
|
|||
|
|||
Hi Derek,
1. I don't know what the filename is as it doesn't tell me. It could be because SJQ is running on all of my live tv shows and once in a while they get removed before SJQ can read them in. For now i'll delete them from the queue as they clog up the queue. Is number 3 an easy fix? M |
#555
|
|||
|
|||
Quote:
Quote:
Also, you didn't tell me which Groovy script(s) you're using for this task setup in SJQv4 so I can fix the null pointer error in them.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#556
|
|||
|
|||
Hi Derek,
That mediafile doesn't exist, so it must have already gotten deleted. this was in the comskip.groovy file that was clogging up the queue. M |
#557
|
|||
|
|||
I fixed up comskip_test.groovy and united_comskip_test.groovy to handle the null pointer situation more gracefully. You can download the fix from svn.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#558
|
|||
|
|||
This week's Groovy addition: Full SageTV backups
This week's Groovy addition is my implementation of full SageTV backups.
Follow this wiki doc for details on how to set it all up. This is an advanced configuration for advanced SJQv4 users. The task must run on a standalone task client (or outside of SJQv4 altogether). You cannot run this task from the SageTV plugin version of the task client (because part of the process is to shutdown SageTV, more details in wiki). Basically, when you set it all up, you get the following: An SJQv4 task capable of determining when it's "safe" to stop SageTV and perform a full backup of the SageTV application folder then restart SageTV. See the wiki doc and the scripts for more details. Happy scripting!
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#559
|
||||
|
||||
I just tested the SJQ4 UI on the 7.1 beta and there are some quirks that need to be fixed. I'll try to get to it shortly.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#560
|
|||
|
|||
@madas Got an email about a new post from you, came here to reply and it's gone. Did you figure it out?
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
Currently Active Users Viewing This Thread: 4 (0 members and 4 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) | cslatt | SageTV Customizations | 48 | 06-11-2012 10:44 AM |
SJQv4: Technology Preview | Slugger | SageTV v7 Customizations | 39 | 12-17-2010 01:17 PM |
SageTV Plugin Developers: Any way to see stats for your plugin? | mkanet | SageTV Software | 4 | 12-12-2010 10:33 PM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
SJQv4: Design Discussion | Slugger | SageTV v7 Customizations | 26 | 10-18-2010 08:22 AM |