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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1281  
Old 09-05-2011, 10:35 AM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
The SJQ documentation define OFFDAY as 1=Sunday and 7=Saturday. What is not explained however is what is midnight for OFFHOUR - is that 0 or 24? What's the range for OFFHOUR - 0-23 or 1-24?
Reply With Quote
  #1282  
Old 09-05-2011, 12:52 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Quote:
Originally Posted by BKeadle View Post
The SJQ documentation define OFFDAY as 1=Sunday and 7=Saturday. What is not explained however is what is midnight for OFFHOUR - is that 0 or 24? What's the range for OFFHOUR - 0-23 or 1-24?
I would imagine OFFHOUR would be 0 since 1 minute after midnight is 00:01

00:00 - 23:59
Reply With Quote
  #1283  
Old 09-05-2011, 01:10 PM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Good thinking...that makes sense.

Thanks.
Reply With Quote
  #1284  
Old 09-13-2011, 11:06 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I've run into an odd problem. Over the weekend I upgraded my SageTV server from Windows XP to Windows 7. After getting SJQ v3 reinstalled I pasted my rules and client configuration and modified the paths as needed. I have a whole list of MAPDIR commands in my client configuration that seem to be completely ignored. Basically I have it turning the UNC paths it gets from SageTV into the physical drive paths. But when I look at the logs the UNC paths are there instead of the physical drive paths. I'm not sure why it's doing this. This was completely working under my previous installation.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1285  
Old 09-13-2011, 01:18 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Taddeusz View Post
I've run into an odd problem. Over the weekend I upgraded my SageTV server from Windows XP to Windows 7. After getting SJQ v3 reinstalled I pasted my rules and client configuration and modified the paths as needed. I have a whole list of MAPDIR commands in my client configuration that seem to be completely ignored. Basically I have it turning the UNC paths it gets from SageTV into the physical drive paths. But when I look at the logs the UNC paths are there instead of the physical drive paths. I'm not sure why it's doing this. This was completely working under my previous installation.
I do the same thing and it works just fine these are my mappings.

Code:
:MAPDIR "\\\\NYPLAYER\\SAGEM" "M:\\SAGEM"
:MAPDIR "\\\\NYPLAYER\\SAGEN" "N:\\SAGEN"
:MAPDIR "\\\\NYPLAYER\\SAGEO" "O:\\SAGEO"
:MAPDIR "\\\\NYPLAYER\\SAGEP" "P:\\SAGEP"
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #1286  
Old 09-13-2011, 01:50 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Yea, mine looks almost like that except they don't seem to be working.

Edit: Never mind, I figured out what it was. The paths are case sensitive. When I setup my new server I created the shares as all lower case while before I capitalized the first letter. That made all the difference.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD

Last edited by Taddeusz; 09-13-2011 at 01:55 PM.
Reply With Quote
  #1287  
Old 09-25-2011, 08:06 AM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Unexpected Archiving

I had an 3-day old, unwatched TV show unexpectedly moved to my archive drive. I have this Archive rule that automatically sets recordings as archived if watched and older than 60 days:
Code:
if [IsObjMediaFile == true && $.IsTVFile{} == "true" && $.IsWatchedCompletely{} == "true" && MediaAge > "60D" && Filename !* "_TVShows"] 
{
   :SCANMEDIA "true"
   :RUNQLOADER "true"
   _ARCHIVE
}
I then have this rule that moves archived shows from my Recording drive to my archive drive:
Code:
if [IsObjMediaFile == true && ($.IsTVFile{} == "true" && $.IsLibraryFile{} == "false") && IsSomethingRecording == "false"  && $.IsFileCurrentlyRecording{} == "false" && TimeUntilNextRecording >= "1H" && Filename =$ ".mpg" &&  $.GetNumberOfSegments{} == "1" && Filename !* "_TVShows"] 
{
   :RUNQLOADER "true"
   :FAILALERT "true"
   :SCANMEDIA "true"
   SJQMOVETVShows
}

Any ideas how this might have happened or how to find out why it was moved?

In addition, the show in the Video Library has no show information - only the filename. All my various other "archived" shows still show in my TV and Recording view, with all show information, and the Lock icon indicating archived.

I'm really confused why this show has been acted on and not displaying properly.
Reply With Quote
  #1288  
Old 09-25-2011, 10:29 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
A couple weeks ago I upgraded my SageTV server to Windows 7. I've stayed with SJQ v3. Since I upgraded I've had various issues with the SJQ server and crashing problems with the client. Are there any known issues with SJQ v3 and Windows 7? Am I going to have to upgrade to v4?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1289  
Old 09-25-2011, 11:23 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by BKeadle View Post
I had an 3-day old, unwatched TV show unexpectedly moved to my archive drive. I have this Archive rule that automatically sets recordings as archived if watched and older than 60 days:
Code:
if [IsObjMediaFile == true && $.IsTVFile{} == "true" && $.IsWatchedCompletely{} == "true" && MediaAge > "60D" && Filename !* "_TVShows"] 
{
   :SCANMEDIA "true"
   :RUNQLOADER "true"
   _ARCHIVE
}
I then have this rule that moves archived shows from my Recording drive to my archive drive:
Code:
if [IsObjMediaFile == true && ($.IsTVFile{} == "true" && $.IsLibraryFile{} == "false") && IsSomethingRecording == "false"  && $.IsFileCurrentlyRecording{} == "false" && TimeUntilNextRecording >= "1H" && Filename =$ ".mpg" &&  $.GetNumberOfSegments{} == "1" && Filename !* "_TVShows"] 
{
   :RUNQLOADER "true"
   :FAILALERT "true"
   :SCANMEDIA "true"
   SJQMOVETVShows
}

Any ideas how this might have happened or how to find out why it was moved?

In addition, the show in the Video Library has no show information - only the filename. All my various other "archived" shows still show in my TV and Recording view, with all show information, and the Lock icon indicating archived.

I'm really confused why this show has been acted on and not displaying properly.
There is something weird with your 2nd Rule an archived recording should be $.IsTVFile{} == "true" and && $.IsLibraryFile{} == "true" you have && $.IsLibraryFile{} == "false".

see this thread

http://forums.sagetv.com/forums/show...4&postcount=16
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-25-2011 at 11:29 AM.
Reply With Quote
  #1290  
Old 09-26-2011, 06:35 AM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Ah...good catch! Thank you.

So .IsLibraryFile() doesn't necessarily mean it's *location* but in effect whether it has the lock icon or not? Files that are moved to my archive drive seem to automatically get the lock icon. Is that normal?
__________________
SageTV: 6.6.2.218 w/SageMC v6.1
Windows XP (SP3)
AMD Athlon 64 X2 4200+ (2.2GHz), 4GB RAM
Hauppauge HVR-1600 (x2)
NVideo GeForce 660 (256MB)

Last edited by BKeadle; 09-26-2011 at 06:37 AM.
Reply With Quote
  #1291  
Old 09-26-2011, 06:51 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Quote:
Originally Posted by BKeadle View Post
Ah...good catch! Thank you.

So .IsLibraryFile() doesn't necessarily mean it's *location* but in effect whether it has the lock icon or not? Files that are moved to my archive drive seem to automatically get the lock icon. Is that normal?
The "Lock" Icon is the same as the A icon in SageTV6. Just an icon indicating it is marked as Archived. Go into the options for one of your recordings...mark it Archived...shows the "Lock" icon....go in again and remove the Archive designation and the "Lock" icon goes away.

You can also modify your icons....For WAF reasons, I created a theme that had all the old V6 icons (M,F,A,W,CS,etc)
Reply With Quote
  #1292  
Old 09-26-2011, 08:13 AM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Yeah, I get that about setting Archive and seeing the lock icon. However, my question is whether the lock icon appears by virtue of the media directory it is in. It appears that all shows on my archive drive have the lock icon - I did not manually select archive on each show.
__________________
SageTV: 6.6.2.218 w/SageMC v6.1
Windows XP (SP3)
AMD Athlon 64 X2 4200+ (2.2GHz), 4GB RAM
Hauppauge HVR-1600 (x2)
NVideo GeForce 660 (256MB)
Reply With Quote
  #1293  
Old 09-26-2011, 10:08 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
If you use BMT and these got imported I think by default it marks them archived. You can change that in the BMT settings.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #1294  
Old 09-26-2011, 10:21 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by BKeadle View Post
Yeah, I get that about setting Archive and seeing the lock icon. However, my question is whether the lock icon appears by virtue of the media directory it is in. It appears that all shows on my archive drive have the lock icon - I did not manually select archive on each show.
That is the way it works... If you are moving them to a folder that you have as an import folder it will add the Archive flag. If you think about it it makes sense since... you by moving them to an import folder are telling sage that they cannot be deleted hence the Archive flag.

Read more about it here
http://forums.sagetv.com/forums/show...ive#post441579
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-26-2011 at 10:25 AM.
Reply With Quote
  #1295  
Old 09-28-2011, 01:35 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Now I've started to get "Out of Memory Detected" messages in my queue and SJQ is the only thing that seems to be screwing up. I have my Java Heap set to 1.5GB so it can't really be out of memory.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1296  
Old 09-28-2011, 08:53 PM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Thanks for the confirmation - and the idea about BMT, that could be too.

So back to the original client rule question then. When I watch a show on the recording drive, and I choose to Archive it, the lock appears immediately, but it obviously hasn't been moved to the archive drive (yet - until my SJQ task runs). So .IsLibraryFile() means the archive *flag* is set (indicated by the lock icon), not necessarily the location of the file. Thus the client rule know to run the SJQMOVETVShows task then.
__________________
SageTV: 6.6.2.218 w/SageMC v6.1
Windows XP (SP3)
AMD Athlon 64 X2 4200+ (2.2GHz), 4GB RAM
Hauppauge HVR-1600 (x2)
NVideo GeForce 660 (256MB)
Reply With Quote
  #1297  
Old 09-29-2011, 08:58 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by BKeadle View Post
So .IsLibraryFile() means the archive *flag* is set (indicated by the lock icon), not necessarily the location of the file.
Yes. IsLibraryFile() is a sagetv core function that reports the status of the library file flag, it has nothing to do with the files location.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #1298  
Old 09-30-2011, 08:57 AM
BKeadle BKeadle is offline
Sage Advanced User
 
Join Date: Mar 2010
Location: Illinois
Posts: 175
Thanks.
__________________
SageTV: 6.6.2.218 w/SageMC v6.1
Windows XP (SP3)
AMD Athlon 64 X2 4200+ (2.2GHz), 4GB RAM
Hauppauge HVR-1600 (x2)
NVideo GeForce 660 (256MB)
Reply With Quote
  #1299  
Old 12-02-2011, 12:47 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Still got a server on Sage 6, SJQ 3.

I know you don't actively support SJQ 3 but was wondering if you encountered or recall what might have caused the following:

As you can see, the Object ID jumped from 10174029 back down to 235535 and reprocessed a bunch from past history (logic error on my part)

Also, looks like all the past ones are Unknown now.

Any thoughts? Server logs don't go back that far so that didn't help.
Attached Images
File Type: jpg sjq3.jpg (285.8 KB, 148 views)

Last edited by Opus4; 12-02-2011 at 02:08 PM. Reason: removed inline display of attached image since it is too wide
Reply With Quote
  #1300  
Old 12-02-2011, 02:20 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by graywolf View Post
Still got a server on Sage 6, SJQ 3.

I know you don't actively support SJQ 3 but was wondering if you encountered or recall what might have caused the following:

As you can see, the Object ID jumped from 10174029 back down to 235535 and reprocessed a bunch from past history (logic error on my part)

Also, looks like all the past ones are Unknown now.

Any thoughts? Server logs don't go back that far so that didn't help.
This is a Sage v6 issue:

Prior to v7 (beta 4ish or so, I think), Sage would reset the counter in wiz.bin once the unique id hit 10,000,000 (10 million). When the core did this, external plugins would lose their links to Sage objects when those objects were linked by an id (and most objects are - favs, media files, airings, etc.). For the typical user, this would occur about once every two years.

Knowing this, I (and other devs) asked for this behaviour to be changed and it was. Now the counter doesn't reset until 500,000,000 (500 million) or maybe even 1 billion - anyway, it's some huge number. The typical user should not encounter a reset of the id for about 100 years.

As for this issue in v6, there's nothing I can do about it. When Sage resets your id counter in wiz.bin, SJQ loses all its "brains". Even worse, it's possible that objects will inherit an id that used to belong to a different object, which will really confuse SJQ. Again, however, this is a Sage feature/bug (depends who you ask) and when you hit it, there's nothing you can do. As for SJQ, the workaround is to include some kind of condition in your ruleset that isn't solely dependent on the object id number (i.e. looking for edl files when deciding to launch comskip). Such external conditions will prevent reexecution of previously completed 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...
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
Sage Job Queue (SJQ) new release notifications Slugger Customization Announcements 3 12-17-2009 09:59 AM
Plugin: Sage Job Queue (SJQ) Slugger SageTV Customizations 991 12-11-2009 03:52 PM
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 10:00 AM.


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