SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #701  
Old 05-19-2009, 06:25 AM
theringnebula's Avatar
theringnebula theringnebula is offline
Sage User
 
Join Date: Jul 2008
Location: Kingston, NH
Posts: 49
Thanks, That code appears to be working as expected although I did add the NODELETE option as well to play it safe.

Thanks!
  #702  
Old 05-25-2009, 03:26 PM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Hey Slugger. I think I may have found a bug.
Currently none of the shows in my Sage database are imported videos but SJQ seems to think they all are. I tested the IsVideo and IsTV functions and this is what I get.

2009/05/25 14:22:20.547 Processing 'Dirty Jobs'...
2009/05/25 14:22:20.547 Line 1: Evaluating 'IsVideo == "true"' == true
2009/05/25 14:22:20.547 Line 1: Evaluating 'IsTV == "true"' == true

I'm looking to do this...
Code:
if [IsVideo == true] {
   :PRIORITY 10
   AddToSageDB
}
..but can't isolate imported videos at this point.

Thanks for the amazing tool man.
-Jeremy
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7
  #703  
Old 05-25-2009, 06:18 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by GollyJer View Post
Hey Slugger. I think I may have found a bug.
Currently none of the shows in my Sage database are imported videos but SJQ seems to think they all are. I tested the IsVideo and IsTV functions and this is what I get.

2009/05/25 14:22:20.547 Processing 'Dirty Jobs'...
2009/05/25 14:22:20.547 Line 1: Evaluating 'IsVideo == "true"' == true
2009/05/25 14:22:20.547 Line 1: Evaluating 'IsTV == "true"' == true

I'm looking to do this...
Code:
if [IsVideo == true] {
   :PRIORITY 10
   AddToSageDB
}
..but can't isolate imported videos at this point.

Thanks for the amazing tool man.
-Jeremy
Thanks for finding this bug. The bug is fixed in snapshot build 477.
__________________
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...
  #704  
Old 05-26-2009, 10:01 AM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Tested build 478 (assuming it still had the fix applied in 477). Although IsVideo didn't cause anything to show up in the queue, it still showed as true in the log. Weird. Also, none of the Imported Videos show up in the queue with the job code I posted above. Strangely, if I run a debug on one of the files they show up in the queue for a little while.

Side note, I almost think some variable name updates are in order. The concept of "Videos" being separate from "TV" is flawed. TV is a video and very often videos are of tv. The SJQ job code would be more readable (this is the programmer in me coming out) if the variables were more clear.
Suggestion:
Change IsTV to IsRecordedVideo (originally I though IsRecording would be good but the verb-ness of it doesn't sit well)
Change IsVideo to IsImportedVideo
Change IsDVD to IsImportedDVD (assuming this tests for imported DVD's vs a DVD being played in the DVD drive).
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7
  #705  
Old 05-26-2009, 07:18 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by GollyJer View Post
Tested build 478 (assuming it still had the fix applied in 477). Although IsVideo didn't cause anything to show up in the queue, it still showed as true in the log. Weird. Also, none of the Imported Videos show up in the queue with the job code I posted above. Strangely, if I run a debug on one of the files they show up in the queue for a little while.

Side note, I almost think some variable name updates are in order. The concept of "Videos" being separate from "TV" is flawed. TV is a video and very often videos are of tv. The SJQ job code would be more readable (this is the programmer in me coming out) if the variables were more clear.
Suggestion:
Change IsTV to IsRecordedVideo (originally I though IsRecording would be good but the verb-ness of it doesn't sit well)
Change IsVideo to IsImportedVideo
Change IsDVD to IsImportedDVD (assuming this tests for imported DVD's vs a DVD being played in the DVD drive).
I'm a little confused as to which build you're running because there is no snapshot 478. Build 477 is the last build of SJQ. SVN commit 478 was an update to the SRE plugin. The latest available build of SJQ is 477, check the Help > About menu in the SJQ GUI to ensure you're running build 477, which is currently the only build that has the fix for the IsVideo test.

I don't disagree with your suggested name changes for those tests (except for the IsTV one, I think that's fine), but changing the names will break users' rulesets and cause syntax errors. IsDVD is the only one that could use a more detailed description in the docs, but the Sage API docs aren't clear as to whether or not a DVD in the tray would pass this test. Therefore, I think everything will stay as is (though I'm still willing to read and consider arguments for change).
__________________
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...

Last edited by Slugger; 05-26-2009 at 07:38 PM.
  #706  
Old 05-27-2009, 01:49 AM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Yeah. I quickly saw 478 in your download area and assumed it was SJQ. I'm currently using 477 and it's ALMOST working as expected. Now IsVideo works but I'm getting weird entries in the queue. There's an entry for each tuner card in the system and for each tuner card entry there is a corresponding "Tender Is the Pork" entry. They look like this:
Code:
9099687	Hauppauge HD PVR Capture Device S-Video  AddToSageDB 	
9099690	Tender Is the Pork                       AddToSageDB
Any ideas? Thanks.

[Edit]
Tender Is The Pork is the currently recording show which I wouldn't have expected to be added to the queue with the rule I'm using.
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7

Last edited by GollyJer; 05-27-2009 at 01:58 AM.
  #707  
Old 05-27-2009, 05:27 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
What does your ruleset look like?
__________________
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...
  #708  
Old 05-27-2009, 10:39 AM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Quote:
Originally Posted by Slugger View Post
What does your ruleset look like?
Like this.
Code:
if [IsVideo == true] {
   AddToSageDB
}
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7
  #709  
Old 05-27-2009, 03:49 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Try snapshot 480.
__________________
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...
  #710  
Old 05-27-2009, 09:21 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I seem to be having issues with comskip hanging for some strange reason--obviously not the fault of SJQ. But, is there a way to get SJQ to kill the process and requeue it after a certain period of time? I'm thinking this is something that comskip should be on the lookout for, but thought I'd ask it here.
  #711  
Old 05-27-2009, 10:04 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Skirge01 View Post
I seem to be having issues with comskip hanging for some strange reason--obviously not the fault of SJQ. But, is there a way to get SJQ to kill the process and requeue it after a certain period of time? I'm thinking this is something that comskip should be on the lookout for, but thought I'd ask it here.
Always on the wish list, but never implemented as I've never had a need for it personally. Someone's already opened an issue ticket for this item. However, with the summer here on top of the fact that I'm moving next month, one shouldn't hold their breath in anticipation of new SJQ features over the summer. This seems like something I may tackle in the fall. Until then, you will need to manually stop the task client and kill any lingering task processes.
__________________
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...
  #712  
Old 05-27-2009, 10:13 PM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Quote:
Originally Posted by Slugger View Post
Try snapshot 480.
Working perfectly. Thanks Slugger.
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7
  #713  
Old 05-31-2009, 07:33 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
Giant sjq.sqllite

my sjq.sqllite fiel is huge, it is 1,533,850 KB. Should it be this large? I have been running sjq for a few months to run comskip. It works fine... I upgraded to the latest production release this morning
  #714  
Old 05-31-2009, 08:06 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by personalt View Post
my sjq.sqllite fiel is huge, it is 1,533,850 KB. Should it be this large? I have been running sjq for a few months to run comskip. It works fine... I upgraded to the latest production release this morning
Some older versions had bugs in the log purging code that have since been fixed. Also, older versions logged excessive amounts of data, which has also been fixed. SQLite only marks deleted data for reuse internally, it does not release the disk space so even though your db file might be 1.5GB, it's likely that a lot of that space has since been released and is just being wasted b/c under normal use SJQ should no longer require anywhere near that much space. Perhaps if you open an issue ticket I'll add a feature that will periodically "vacuum" (the SQLite operation used to reclaim the unused disk space) the unused space out of the db file. But as long as things are working as expected and you don't absolutely need the space then I don't think there's anything to worry about. But if you do want SJQ to periodically release that unused disk space then please open an issue ticket at the project web site to remind me.

Note: For those who are interested, one can manually reclaim the disk space from their SQLite db files by installing the SQLite command line program, loading the SJQ db file and running the "VACUUM" statement against the db. That statement will reclaim all unused disk space from the db file.
__________________
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...
  #715  
Old 06-06-2009, 11:44 PM
baudfather baudfather is offline
Sage User
 
Join Date: Nov 2006
Location: Vancouver, BC
Posts: 61
Just want to clarify the use of the :RETURNCODE option - would it be placed before or after the call to comskip.exe in the client config file? Thanks!
__________________
I used to have a handle on life, but it broke.

Server: Win10Pro, GigaByte GA-MA78GPM-DS2H, AMD 64 x2 5600, 4GB Dual Channel RAM, 1-DCT-3416 / 2-DCX3400 via FireWire & Unisheen BM3000-HDMI Encoder, NMedia 200SA Case, Crystalfontz 632, USBUIRT, Client & Placeshifter license, 2x HD300 extenders, 2x HD200 extenders.
  #716  
Old 06-07-2009, 08:32 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Before.
__________________
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...
  #717  
Old 06-11-2009, 05:47 AM
antplugger antplugger is offline
Sage Advanced User
 
Join Date: Sep 2005
Posts: 167
Hey Guys,

I wonder if I could get a little help fault finding SJQ. I am running Vista x64 with SJQ 2.1.3.414 - Everything was working perfectly until I upgraded to SP2 now COMSKIP is not being run anymore. Client is running ad SJQ is running the only error I can see in the logs is

2009/06/11 21:40:45.610 IPv6 interface detected; client restriction settings ignored [restrictions do not support IPv6 addresses]
2009/06/11 21:40:55.605 IPv6 interface detected; client restriction settings ignored [restrictions do not support IPv6 addresses]
2009/06/11 21:41:05.592 IPv6 interface detected; client restriction settings ignored [restrictions do not support IPv6 addresses]

I dont remember seeing those before

Queue looks like this
4575130 Olivia COMSKIP WAITING 10 Jun 8, 2009 1:10:19 PM
4575131 Jakers!: The Adventures Of Piggley Winks COMSKIP WAITING 10 Jun 8, 2009 7:10:29 PM
4575390 Monarchy COMSKIP WAITING 10 Jun 8, 2009 8:30:09 PM
4575392 Top Gear Australia COMSKIP WAITING 10 Jun 8, 2009 8:30:09 PM

Any help greatly appreciated.

Cheers
  #718  
Old 06-11-2009, 07:21 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Is there a firewall (perhaps installed or reenabled with the upgrade to SP2) blocking access to the SJQ server from the task client? Are you sure the task client is still running?
__________________
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...
  #719  
Old 06-11-2009, 03:30 PM
antplugger antplugger is offline
Sage Advanced User
 
Join Date: Sep 2005
Posts: 167
Fixed - The client had lost its config for comskip. I just had to re-enter and save it.

For future reference - Where are these config's kept ?

Thanks
  #720  
Old 06-11-2009, 03:56 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
The configs are stored on the sjq.sqlite DB. It is based on IP address so if your Client's IP changed for some reason then you will not see your config. It is best to use a static IP address.

If you ever have to format and redo your client you can use the same IP you used when you set up the config.... and it will still be there.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Closed Thread


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
Plugin: Sage Job Queue (SJQ) v3 Slugger SageTV Customizations 1355 07-25-2013 07:44 AM
Sage Job Queue (SJQ) new release notifications Slugger Customization Announcements 3 12-17-2009 09:59 AM
Sage Job Queue Completed tasks problem raffmanlt SageTV Customizations 2 08-18-2009 07:34 PM
Comskip Monitor VS Sage Job Queue SJQ personalt SageTV Customizations 6 03-02-2009 10:27 AM
Plugin: SJQ v1.1.0RC1 Available - Testers Needed Slugger SageTV Customizations 35 04-21-2008 08:12 AM


All times are GMT -6. The time now is 02:18 PM.


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