SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #641  
Old 07-01-2013, 08:47 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by Taddeusz View Post
Well, SageTV TV recordings are working fine but Movie recordings still aren't showing up.
R u using the custom scanner with default metadata agent? If so can you send me the default scanner log?
Reply With Quote
  #642  
Old 07-01-2013, 09:51 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
Your scans are failing because .tmp is not a valid extension. More importantly the scanner code does not specifically exclude it.
When you transcode it creates a tmp temporarily so it should be excluded.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #643  
Old 07-01-2013, 09:58 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by nyplayer View Post
When you transcode it creates a tmp temporarily so it should be excluded.
Wow, nice etiquette.

Ill fix it for you if I have the time.
Reply With Quote
  #644  
Old 07-01-2013, 10:05 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
Wow, nice etiquette.

Ill fix it for you if I have the time.
Didn't mean it the way it sounded don't worry too much about it as I can see future problems.. That means that the scanner could fail on any file name that is not excluded which I have quite a few edl vprj renamed etc....
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #645  
Old 07-02-2013, 08:02 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by nyplayer View Post
Didn't mean it the way it sounded don't worry too much about it as I can see future problems.. That means that the scanner could fail on any file name that is not excluded which I have quite a few edl vprj renamed etc....
I actually misspoke last night. Its not an exclude list, its an include list

#if the extension is in our list of acceptable sagetv file extensions, then process
if ext.lower() in ['.mpg', '.avi', '.mkv', '.mp4', '.ts', '.txt']:

The scanner is failing on tmp file for some reason. not sure without looking

- send me a sample file you are working with so that i can debug it.
- The file should be chucked as soon as the above code determines it is not in teh acceptable list. not sure how its squeaking through that.
Reply With Quote
  #646  
Old 07-02-2013, 10:06 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, this just keeps getting weirder. Just to narrow down the problem to either Plex or SageTV I decided to install Plex on my Ubuntu server vm. Installed and configured the SageTV scanners. Works great! However that machine isn't powerful enough to transcode video. Just proof that it works.

Installed Plex on another Windows machine separate from my SageTV server. Nothing works. I add my SageTV volumes and it doesn't find a dang thing.

Why would the linux version of Plex work but not the Windows version?
__________________
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
  #647  
Old 07-02-2013, 01:35 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
PiX64, can you please take a look at the attached log and see if you can tell me why it's not updating? To test whether it's going to see new recordings I made a test recording of "The Chew" today. It scanned but didn't pick up the new file.

I'm also having problems with the SageTV Movie scanner. All I see in the log when I do a movie scan is that it has errors on line whatever scanning in the Recycle Bin. That the function has 5 options but only received 4.

The movie scanner doesn't pick anything up.

Strange how this all worked perfectly on Linux but all sorts of problems on Windows.
Attached Files
File Type: txt Plex Media Scanner.log.txt (81.1 KB, 147 views)
__________________
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
  #648  
Old 07-02-2013, 02:00 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by Taddeusz View Post
PiX64, can you please take a look at the attached log and see if you can tell me why it's not updating? To test whether it's going to see new recordings I made a test recording of "The Chew" today. It scanned but didn't pick up the new file.

I'm also having problems with the SageTV Movie scanner. All I see in the log when I do a movie scan is that it has errors on line whatever scanning in the Recycle Bin. That the function has 5 options but only received 4.

The movie scanner doesn't pick anything up.

Strange how this all worked perfectly on Linux but all sorts of problems on Windows.
ODD indeed. its scanning the .recycle bin file. silly windows.
Reply With Quote
  #649  
Old 07-05-2013, 06:56 AM
ugh ugh is offline
Sage User
 
Join Date: Sep 2004
Location: CT
Posts: 58
I was having issue also where new TV data wasn't getting updated. I tried deleting, and starting fresh, but no joy.
My guess is it started after I updated to the newest version of Plex on Windows.

My log had an error:
"\SageTV Scanner.py", line 84, in Scan VideoFiles.Scan(path, files, mediaList, subdirs)
TypeError: Scan() takes exactly 5 arguments (4 given)
"

I looked at the built in Plex Series Scanner.py and they pass in the 5th argument, root. Looks like they force it to None.

So, I tried adding the 5th argument to the SageTVScanner.py VideoFile and I appear to be running correctly again.

VideoFiles.Scan(path, files, mediaList, subdirs, None)

Will update if I find any unanticipated side effects.
__________________
Hdr-2250 and PVR-1600| AMD QuadCore | 4GB | 2 terrabytes | MediaMVP | Nvidia 8800 | SageTV service | Plex Server (PlexPass, Windows) | Plex Clients (Roku 2XS, IOS, Windows Home Theater

Last edited by ugh; 07-05-2013 at 07:21 AM.
Reply With Quote
  #650  
Old 07-05-2013, 07:23 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by ugh View Post
I was having issue also where new TV data wasn't getting updated. I tried deleting, and starting fresh, but no joy.
My guess is it started after I updated to the newest version of Plex on Windows.

My log had an error:
"\SageTV Scanner.py", line 84, in Scan VideoFiles.Scan(path, files, mediaList, subdirs)
TypeError: Scan() takes exactly 5 arguments (4 given)
"

I looked at the built in Plex Series Scanner.py and they pass in the 5th argument, root. Looks like they force it to None.

So, I tried adding the 5th argument to the SageTVScanner.py VideoFile and I appear to be running correctly again.

VideoFiles.Scan(path, files, mediaList, subdirs, None)

Will update if I find any unanticipated side effects.
That is the same exact error I was getting.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #651  
Old 07-05-2013, 07:25 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by ugh View Post
I was having issue also where new TV data wasn't getting updated. I tried deleting, and starting fresh, but no joy.
My guess is it started after I updated to the newest version of Plex on Windows.

My log had an error:
"\SageTV Scanner.py", line 84, in Scan VideoFiles.Scan(path, files, mediaList, subdirs)
TypeError: Scan() takes exactly 5 arguments (4 given)
"

I looked at the built in Plex Series Scanner.py and they pass in the 5th argument, root. Looks like they force it to None.

So, I tried adding the 5th argument to the SageTVScanner.py VideoFile and I appear to be running correctly again.

VideoFiles.Scan(path, files, mediaList, subdirs, None)

Will update if I find any unanticipated side effects.
Awesome thanks! They do that from time to time and break old code. It doesn't happen very often but when they do it pisses me right off :-). Thanks for finding this and ill get a patch out ASAP for everyone else's.
Reply With Quote
  #652  
Old 07-05-2013, 10:18 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I made those changes to the two Python scripts and my problems with the SageTV scanners under Windows seems to have gone away.

They must not have updated the Linux version of Plex with the updated API or the Linux version fails more gracefully and doesn't cause the scan to fail completely.
__________________
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
  #653  
Old 07-08-2013, 01:56 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Finally fixed those pesky errors we were seeing in update, search, and serialization!! finally! that was pain to track down.

I have also incorporated Taddeusz mentioned fix above. code isn't in google yet, but Ill post the updates to this thread shortly.

you will not see poster art or fanart if it isn't in BMT

so this set of codes fixes:
- Shows not showing up with metadata due to the search, update, or serialization error
- Failed scans due to plex change to required arguments in one of their primary functions
- pinkish hue is gone
- I think thats it.

Reply With Quote
  #654  
Old 07-08-2013, 02:00 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
My issue appears to have been due to the function argument requirement. So it shouldn't require any more than what you've already done.
__________________
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
  #655  
Old 07-08-2013, 02:05 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by Taddeusz View Post
My issue appears to have been due to the function argument requirement. So it shouldn't require any more than what you've already done.
Thats good, but I was seeing in the newest version which removes the pinkish hue (not on google code site only posted in this thread a few weeks back) There were instances where shows would show up with season and episode from scanner, but NO other metadata regardless of the fact that BMT had metadata for it.. that is now fixed as well.
Reply With Quote
  #656  
Old 07-08-2013, 02:24 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
CODE FIX for Pink Hue, Missing metadata, Changes to Plex core function, and more

make sure to remove the section, empty trash and clean bundles before rerunning scanners and agent.
Attached Files
File Type: zip Archive.zip (66.1 KB, 131 views)
Reply With Quote
  #657  
Old 07-08-2013, 03:05 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
make sure to remove the section, empty trash and clean bundles before rerunning scanners and agent.
Pix which version of plex are you running. I am running the Plex Pass Version I got the error below.

Code:
Traceback (most recent call last):
  File "C:\Users\SAGETVUSER\AppData\Local\Plex Media Server\Scanners\Series\SageTV Scanner.py", line 84, in Scan
    VideoFiles.Scan(path, files, mediaList, subdirs, None)
TypeError: Scan() takes exactly 4 arguments (5 given)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #658  
Old 07-08-2013, 03:14 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by nyplayer View Post
Pix which version of plex are you running. I am running the Plex Pass Version I got the error below.

Code:
Traceback (most recent call last):
  File "C:\Users\SAGETVUSER\AppData\Local\Plex Media Server\Scanners\Series\SageTV Scanner.py", line 84, in Scan
    VideoFiles.Scan(path, files, mediaList, subdirs, None)
TypeError: Scan() takes exactly 4 arguments (5 given)
I am running the most recent plexpass version i believe: 0.9.8.1
Reply With Quote
  #659  
Old 07-08-2013, 03:16 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
I am running the most recent plexpass version i believe: 0.9.8.1
Now its working good I am using the same one. Guess Maybe I tried doing the scan too fast.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #660  
Old 07-08-2013, 03:19 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Forgot the movie scanner 5th arg fix in the zip file above.. so here it is
Attached Files
File Type: zip SageTV Movie Scanner.py.zip (2.5 KB, 114 views)
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
Comparing to Plex heffneil Batch Metadata Tools 20 01-08-2012 04:54 PM
Need help with SJQv4 remote agent coppit SageTV v7 Customizations 4 12-19-2010 11:03 AM
Plex in a TV? What about sage? rwc General Discussion 9 09-05-2010 04:38 PM
Possible to get SageTV to handle my library more like Plex? DAMAC SageTV Mac Edition 0 06-10-2009 10:33 AM
SagetTVService Virus Win32.Agent.dwo Ponchera SageTV Software 6 02-04-2008 06:33 PM


All times are GMT -6. The time now is 03:37 AM.


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