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
  #621  
Old 06-10-2013, 09:13 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
Success!! here are 2 screens of things working nicely. i will put a new bmtagent init.py file attached to this post for those that want access right away, and will update the google code site as soon as i get a free moment.
If you can attach the py file. Thanks.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #622  
Old 06-10-2013, 09:36 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Directions:

1) Remove SageTV recordings section from plex library
2) clean bundles in plex media manager (see screenshot)
3) Empty Trash in plex media manager (see screenshot) MAKE SURE IT EMPTIES. it will give an error otherwise
4) shutdown plex
5) replace init.py in BMTAgentTVShows with file from this post
6) restart plex
7) in media manager go into settings -> Agents -> TVshows and make sure that theme music is still contributing to BMTAgent
8) readd your sagetv section, and let it scan


**** Note that I am still working out 1 issue that cropped up in which plex fails to serialize my metadata object created. most shows are find, but a handful of them end up failing and showing up in media library with no metadata :-/ this was present before as well, just thrown out by the code for some reason..
Attached Images
File Type: png Screen Shot 2013-06-10 at 9.51.09 PM.png (347.5 KB, 184 views)
Attached Files
File Type: zip __init__.py.zip (4.5 KB, 124 views)
Reply With Quote
  #623  
Old 06-11-2013, 11:19 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
just in case anyone wants to follow along with progress on the plex serialization issue, here is the link:

you prolly have to be a plexpass member in order to view though, i think

http://forums.plexapp.com/index.php/...ization-error/
Reply With Quote
  #624  
Old 06-11-2013, 01:09 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
No more purple haze thanks.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #625  
Old 06-11-2013, 01:10 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
No more purple haze thanks.
welcome.

still working on the other issue but the plexians aren't being very responsive.
Reply With Quote
  #626  
Old 06-11-2013, 01:27 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
welcome.

still working on the other issue but the plexians aren't being very responsive.
That is ok most of the shows found metadata except for a few mostly old series for that I did custom scan and used TVDB.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #627  
Old 06-17-2013, 03:15 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
So here is what I have found:

For whatever reason (still not sure why) certain shows (randomly from what i can tell) have malformed XML or json returned from the sage server. This causes 2 things to happen in plex
1) the search/update function fail
2) the xml is imporperly built inside of plex code which then causes a serialization exception.

I have no idea exactly why this is happening, but the fact is, it is.

so what are everyones thoughts on this:

1) scan sage recordings / movies.
2) IF there is a season and episode number found by the scanner, use the default TVDB metadata agent
3) if no results are found by tvdb OR there are no valid season and episode numbers, the use the BMT Agent code

tech. this should be feasible. I don't have it working as of yet, but i think it is a better option than what we have setup now.

Thoughts?
Reply With Quote
  #628  
Old 06-17-2013, 04:48 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
So here is what I have found:

For whatever reason (still not sure why) certain shows (randomly from what i can tell) have malformed XML or json returned from the sage server. This causes 2 things to happen in plex
1) the search/update function fail
2) the xml is imporperly built inside of plex code which then causes a serialization exception.

I have no idea exactly why this is happening, but the fact is, it is.

so what are everyones thoughts on this:

1) scan sage recordings / movies.
2) IF there is a season and episode number found by the scanner, use the default TVDB metadata agent
3) if no results are found by tvdb OR there are no valid season and episode numbers, the use the BMT Agent code

tech. this should be feasible. I don't have it working as of yet, but i think it is a better option than what we have setup now.

Thoughts?
That sounds good to me.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #629  
Old 06-23-2013, 09:28 AM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by PiX64 View Post
so what are everyones thoughts on this:

1) scan sage recordings / movies.
2) IF there is a season and episode number found by the scanner, use the default TVDB metadata agent
3) if no results are found by tvdb OR there are no valid season and episode numbers, the use the BMT Agent code

tech. this should be feasible. I don't have it working as of yet, but i think it is a better option than what we have setup now.

Thoughts?
Sounds good to me!
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #630  
Old 07-01-2013, 01:19 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I have no idea if this has anything to do with the serialization issues.

The problem I'm having is that we had a power outage on Thursday night. No recordings since then are showing up in Plex. Everything up to before the power outage is accounted for in Plex.

I have tried restarting both Plex and SageTV as well as the entire system. I have also reinstalled the sagex-services plugin.

Is there anything specific I need to be doing to get this back up and running? Everything else in SageTV seems to be functioning normally.
__________________
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
  #631  
Old 07-01-2013, 01:23 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
I have no idea if this has anything to do with the serialization issues.

The problem I'm having is that we had a power outage on Thursday night. No recordings since then are showing up in Plex. Everything up to before the power outage is accounted for in Plex.

I have tried restarting both Plex and SageTV as well as the entire system. I have also reinstalled the sagex-services plugin.

Is there anything specific I need to be doing to get this back up and running? Everything else in SageTV seems to be functioning normally.
Is the plex.js file still present on the sage server? try performing a DEEP scan of the section and see if that fixes anything. I would also check to make sure that the plex server is still set to scan the recording directory at the interval you originally specified.
Reply With Quote
  #632  
Old 07-01-2013, 01:33 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by PiX64 View Post
Is the plex.js file still present on the sage server? try performing a DEEP scan of the section and see if that fixes anything. I would also check to make sure that the plex server is still set to scan the recording directory at the interval you originally specified.
Yes, I had already tried a deep scan. I have also just tried removing the section for my SageTV recordings and doing it all over again. Now nothing is showing in that section.
__________________
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
  #633  
Old 07-01-2013, 01:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by PiX64 View Post
Is the plex.js file still present on the sage server? try performing a DEEP scan of the section and see if that fixes anything. I would also check to make sure that the plex server is still set to scan the recording directory at the interval you originally specified.
Yes, plex.js is still there.
__________________
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
  #634  
Old 07-01-2013, 01:51 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Upon further inspection it appears that sagex isn't working. If I try, for example,
Code:
http://myserver/sagex/api?c=GetMediaFiles&1=T
I get a 404 error. It shows that sagex-services is installed. I'm not sure why it's not working.
__________________
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
  #635  
Old 07-01-2013, 02:40 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, sagex-services is definitely working now. I get api query results now. No more 404 error. Plex is still not finding anything though.
__________________
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
  #636  
Old 07-01-2013, 03:01 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Taddeusz View Post
Ok, sagex-services is definitely working now. I get api query results now. No more 404 error. Plex is still not finding anything though.
You know what is really weird I just checked my plex hadn't used it in a while and the last data it added was 3 days ago. It does not appear to be updating.

Code:
01, 2013 14:00:10:356 [2644] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:00:10:372 [2644] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Scanning directory N:\SAGEN\tmpEncode (parent: yes)
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Noting that 'tmpEncode' was updated at 2013-06-30 23:04:17
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Taking directory 'tmpEncode' (2) out of the map (6 left)
Jul 01, 2013 14:00:10:388 [2644] DEBUG - Adding file for scanner: N:\SAGEN\tmpEncode\Matlock-S02E04-TheAnnihilator-1885591-0.tmp
Jul 01, 2013 14:00:10:388 [2644] DEBUG - Adding file for scanner: N:\SAGEN\tmpEncode\Morning Drive - 2011-01-04 -5204587-0.tmp
Jul 01, 2013 14:00:10:388 [2644] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:00:10:388 [2644] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:00:10:435 [2644] ERROR - There were errors scanning location: N:\SAGEN
Jul 01, 2013 14:00:10:435 [2644] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Jul 01, 2013 14:00:10:481 [2644] DEBUG - Refreshing section 1 of type: 2

Latest Scan
Code:
Jul 01, 2013 14:10:34:807 [5480] DEBUG - Adding file for scanner: N:\SAGEN\Wolverine - S01E12 - Logan - 2011-03-25 -5048299-0.renamed
Jul 01, 2013 14:10:34:807 [5480] DEBUG - Adding file for scanner: N:\SAGEN\Wolverine - S01E12 - Logan - 2011-03-25 -5048299-0.VPrj
Jul 01, 2013 14:10:34:807 [5480] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:10:34:807 [5480] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Scanning directory N:\SAGEN\tmpEncode (parent: yes)
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Noting that 'tmpEncode' was updated at 2013-07-01 14:06:40
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Taking directory 'tmpEncode' (2) out of the map (6 left)
Jul 01, 2013 14:10:34:839 [5480] ERROR - There were errors scanning location: N:\SAGEN
Jul 01, 2013 14:10:34:839 [5480] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Jul 01, 2013 14:10:34:870 [5480] DEBUG - Refreshing section 1 of type: 2
__________________
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; 07-01-2013 at 03:12 PM.
Reply With Quote
  #637  
Old 07-01-2013, 03:42 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
There must have been some corruption in the Plex database. I completely uninstalled and reinstalled Plex. Then put the SageTV scanners and plugin back in. Now it's scanning and finding all my recordings again.
__________________
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
  #638  
Old 07-01-2013, 03:50 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
My Problem is different. I just simply switched to the built in Scanner and it added the 3 days worth of missing data. I will keep it that way till the next release thanks.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #639  
Old 07-01-2013, 06:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Well, SageTV TV recordings are working fine but Movie recordings still aren't showing up.
__________________
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
  #640  
Old 07-01-2013, 08:45 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
You know what is really weird I just checked my plex hadn't used it in a while and the last data it added was 3 days ago. It does not appear to be updating.

Code:
01, 2013 14:00:10:356 [2644] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:00:10:372 [2644] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Scanning directory N:\SAGEN\tmpEncode (parent: yes)
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Noting that 'tmpEncode' was updated at 2013-06-30 23:04:17
Jul 01, 2013 14:00:10:372 [2644] DEBUG -     * Taking directory 'tmpEncode' (2) out of the map (6 left)
Jul 01, 2013 14:00:10:388 [2644] DEBUG - Adding file for scanner: N:\SAGEN\tmpEncode\Matlock-S02E04-TheAnnihilator-1885591-0.tmp
Jul 01, 2013 14:00:10:388 [2644] DEBUG - Adding file for scanner: N:\SAGEN\tmpEncode\Morning Drive - 2011-01-04 -5204587-0.tmp
Jul 01, 2013 14:00:10:388 [2644] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:00:10:388 [2644] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:00:10:435 [2644] ERROR - There were errors scanning location: N:\SAGEN
Jul 01, 2013 14:00:10:435 [2644] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Jul 01, 2013 14:00:10:481 [2644] DEBUG - Refreshing section 1 of type: 2

Latest Scan
Code:
Jul 01, 2013 14:10:34:807 [5480] DEBUG - Adding file for scanner: N:\SAGEN\Wolverine - S01E12 - Logan - 2011-03-25 -5048299-0.renamed
Jul 01, 2013 14:10:34:807 [5480] DEBUG - Adding file for scanner: N:\SAGEN\Wolverine - S01E12 - Logan - 2011-03-25 -5048299-0.VPrj
Jul 01, 2013 14:10:34:807 [5480] ERROR - Error in Python: Running scanner:
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)
TypeError: Scan() takes exactly 5 arguments (4 given)
Jul 01, 2013 14:10:34:807 [5480] ERROR - We got an error scanning in N:\SAGEN
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Scanning directory N:\SAGEN\tmpEncode (parent: yes)
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Noting that 'tmpEncode' was updated at 2013-07-01 14:06:40
Jul 01, 2013 14:10:34:807 [5480] DEBUG -     * Taking directory 'tmpEncode' (2) out of the map (6 left)
Jul 01, 2013 14:10:34:839 [5480] ERROR - There were errors scanning location: N:\SAGEN
Jul 01, 2013 14:10:34:839 [5480] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Jul 01, 2013 14:10:34:870 [5480] DEBUG - Refreshing section 1 of type: 2
Your scans are failing because .tmp is not a valid extension. More importantly the scanner code does not specifically exclude it.
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:36 AM.


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