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
  #1161  
Old 10-11-2015, 06:10 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
I just started trying out Plex and I'm am curious as to what sort of advantages there are for using this Plex Scanner over just pointing the Plex server to my SageTV recordings folders? My initial impression is that the Plex Scanner is built to gather metadata and fanart for recordings via BMT, but it looks like Plex does this already. What am I missing? Thanks.
Reply With Quote
  #1162  
Old 10-11-2015, 07:29 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by craigap View Post
I just started trying out Plex and I'm am curious as to what sort of advantages there are for using this Plex Scanner over just pointing the Plex server to my SageTV recordings folders? My initial impression is that the Plex Scanner is built to gather metadata and fanart for recordings via BMT, but it looks like Plex does this already. What am I missing? Thanks.
Plex will only recognize shows if the filename is formatted correctly. That is not the case for SageTV recordings. The plugin allows Plex to recognize SageTV recordings. Otherwise it doesn't find anything.
__________________
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
  #1163  
Old 10-12-2015, 10:01 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Quote:
Originally Posted by Taddeusz View Post
Plex will only recognize shows if the filename is formatted correctly. That is not the case for SageTV recordings. The plugin allows Plex to recognize SageTV recordings. Otherwise it doesn't find anything.
If I'm understanding you correctly; If I point Plex to my SageTV recordings folders for then I shouldn't see them populate into Plex when I create the Plex TV show Library??.... Because they do for me.
Reply With Quote
  #1164  
Old 10-12-2015, 10:10 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by craigap View Post
If I'm understanding you correctly; If I point Plex to my SageTV recordings folders for then I shouldn't see them populate into Plex when I create the Plex TV show Library??.... Because they do for me.
Correct. When you create a library as "TV Shows" it doesn't recognize anything and produces an empty library. If you create it as "Home Videos" it will recognize the videos but you will only get the filenames. No metadata.

You must use the Plex Scanner in order to get the metadata for SageTV recordings. Either that or do something to rename your recordings to the "<Series Title> - s<Season Number>e<Episode number> - <Episode Name>" format that Plex uses to recognize shows.
__________________
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
  #1165  
Old 10-12-2015, 10:27 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Well, this is odd then. I just installed the Plex Server on my HTPC that has SageTV installed; and all I have done so far is set up the Plex TV shows library by pointing to the two folders that I have for SageTV recordings, and I seem to get all the TV shows populating just fine into Plex that SageTV has recorded. Plus, Plex has added fanart, show description, as well as, labels it with a season and episode number. See attached image.

Last edited by craigap; 09-13-2022 at 05:15 PM.
Reply With Quote
  #1166  
Old 10-12-2015, 10:29 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by craigap View Post
Well, this is odd then. I just installed the Plex Server on my HTPC that has SageTV installed; and all I have done so far is set up the Plex TV shows library by pointing to the two folders that I have for SageTV recordings, and I seem to get all the TV shows populating just fine into Plex that SageTV has recorded. Plus, Plex has added fanart, show description, as well as, labels it with a season and episode number. See attached image.
You aren't using the SageTV Scanner/BMT Agent yet? Are you using a renamer on your recordings?
__________________
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
  #1167  
Old 10-12-2015, 10:35 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
I have not tried to install the Plex Scanner, and I have not done any renaming of my recordings or use any renaming tool that I am aware off. I have the BMT plugin installed, as well as, Complimentary Metadata Tools. Would one of those do something to the names of the recordings? I see that BMT is somehow part of the plex scanner, but like I said, I have not yet tried installing the scanner yet.
Reply With Quote
  #1168  
Old 10-12-2015, 11:36 AM
HelenWeathers's Avatar
HelenWeathers HelenWeathers is offline
Sage Icon
 
Join Date: Aug 2008
Location: Miami, Florida
Posts: 1,321
I use Plex for Movies and TV shows in two rooms - as long as I have Sage save recordings with the season and episode numbers imbeded in the filename Plex picks them up fine w/o the plugin. If you don't have season and episode in the TV show filename, you will need the plugin - unless Plex has advanced some since I set mine up.
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT
Reply With Quote
  #1169  
Old 10-12-2015, 12:30 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Quote:
Originally Posted by HelenWeathers View Post
... as long as I have Sage save recordings with the season and episode numbers imbeded in the filename Plex picks them up fine w/o the plugin.
I see there is a setting under "Detailed Setup" > "Customize" > "Include Season and Episode in File names" that I have set to "Yes". I guess that's why it works for me. Thanks.
Reply With Quote
  #1170  
Old 10-12-2015, 12:57 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
The only problem is that recorded movies won't be detected as they don't have the SxxExx in the name. Plex actually ignores everything after the second "-". I suppose you could create a separate library with the Scanner for SageTV recorded movies. Which is what I already do.
__________________
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
  #1171  
Old 10-12-2015, 01:22 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Taddeusz View Post
The only problem is that recorded movies won't be detected as they don't have the SxxExx in the name. Plex actually ignores everything after the second "-". I suppose you could create a separate library with the Scanner for SageTV recorded movies. Which is what I already do.
Why not use the Sage Scanner with the Plex Agent it works much better.
Reply With Quote
  #1172  
Old 10-12-2015, 04:50 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
You also need to send the metadata to Plex to get shows like sports to show up as Sage can't scrape the filenames for them to get them into Plex.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #1173  
Old 10-12-2015, 05:00 PM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by wayner View Post
You also need to send the metadata to Plex to get shows like sports to show up as Sage can't scrape the filenames for them to get them into Plex.
Which isn't to mention certain networks that don't always provide accurate program guide data for what they're showing until after the fact. The Weather Channel is particularly bad for changing their programming lineup at the last minute. Nothing like having an episode of what was supposed to be an episode of "Highway Through Hell" with a filename to match that, turn into "Coast Guard Rescue: HMS Bounty" while the EPG did eventually update to reflect that change(so it is reflected in the metadata Sage is holding onto), the filename(and likely the metadata embedded in the file) didn't reflect that change.

Other edge cases I've seen include other networks who will just provide enough data to the guide for them to know an episode of _______________ will be showing, but no data as to which episode is showing, at least at the time of airing. So no SxxExx or even Episode Name is present in the filename.
Reply With Quote
  #1174  
Old 10-14-2015, 11:14 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I'm not sure why but some time ago the BMT agent seems to have stopped working for me. It pulls regular metadata but doesn't seem to be able to get any fanart. If I create a new Library and use the SageTV scanner with the tvdb agent it seems to work fine. But using the BMT agent on a new library fails to find any art.
__________________
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
  #1175  
Old 10-14-2015, 11:29 AM
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'm not sure why but some time ago the BMT agent seems to have stopped working for me. It pulls regular metadata but doesn't seem to be able to get any fanart. If I create a new Library and use the SageTV scanner with the tvdb agent it seems to work fine. But using the BMT agent on a new library fails to find any art.
There is a goofy bug within plex/agent code where it would lose context of what it was doing, and I never could quite figure it out.

Usually going into that item and manually updating its metadata within the plex ui would fix the issue.
Reply With Quote
  #1176  
Old 10-14-2015, 12:02 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by PiX64 View Post
There is a goofy bug within plex/agent code where it would lose context of what it was doing, and I never could quite figure it out.

Usually going into that item and manually updating its metadata within the plex ui would fix the issue.
That would be difficult since all the art was lost from every single recording in my Plex library.
__________________
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
  #1177  
Old 10-14-2015, 12:41 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Is there a forum thread for the newer Plex Scanner? It seems that Plex has, yet again, changed stuff around. Apparently there's now a bundle requirement to have an __iter__.py file as is evidenced by this section of log and explains why I am no longer getting any art:

Code:
2015-10-14 13:34:51,220 (193c) :  CRITICAL (core:572) - Exception in the update function of agent named 'SageTV BMT Agent (TV Shows)', called with guid 'com.plexapp.agents.bmtagenttvshows://70831?lang=en' (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1055, in _update
  File "C:\Users\jbean\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\__init__.py", line 236, in update
    for star in stars:
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 107, in <lambda>
AttributeError: 'NoneType' object has no attribute '__iter__'
__________________
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
  #1178  
Old 10-14-2015, 04:35 PM
wildgoose wildgoose is offline
Sage Advanced User
 
Join Date: Jan 2010
Location: CA
Posts: 156
Quote:
Originally Posted by Taddeusz View Post
Is there a forum thread for the newer Plex Scanner? It seems that Plex has, yet again, changed stuff around. Apparently there's now a bundle requirement to have an __iter__.py file as is evidenced by this section of log and explains why I am no longer getting any art:

Code:
2015-10-14 13:34:51,220 (193c) :  CRITICAL (core:572) - Exception in the update function of agent named 'SageTV BMT Agent (TV Shows)', called with guid 'com.plexapp.agents.bmtagenttvshows://70831?lang=en' (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1055, in _update
  File "C:\Users\jbean\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\__init__.py", line 236, in update
    for star in stars:
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 107, in <lambda>
AttributeError: 'NoneType' object has no attribute '__iter__'
Ah, the BMT Agent plugin needs to be updated to work with the latest PLEX server it seems. What PLEX server version are you using? I'll take a look at this tonight.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site.
Reply With Quote
  #1179  
Old 10-14-2015, 05:00 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by wildgoose View Post
Ah, the BMT Agent plugin needs to be updated to work with the latest PLEX server it seems. What PLEX server version are you using? I'll take a look at this tonight.
The latest, 0.9.12.13.
__________________
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
  #1180  
Old 10-14-2015, 05:04 PM
wildgoose wildgoose is offline
Sage Advanced User
 
Join Date: Jan 2010
Location: CA
Posts: 156
Quote:
Originally Posted by wildgoose View Post
Ah, the BMT Agent plugin needs to be updated to work with the latest PLEX server it seems. What PLEX server version are you using? I'll take a look at this tonight.
Spoke too soon. This doesn't look like it's related to PLEX. From your log looks like it's chocking on this line:

https://github.com/ai7/sagetv-for-pl...init__.py#L236

Code:
                stars = show.get('PeopleListInShow')
                episode.guest_stars.clear()
                for star in stars:
                    episode.guest_stars.add(star)
stars is None, so the for loop crashes. show basically comes from SageTV, so this is saying the SageTV object's show field is missing the 'PeopleListInShow' field. It's strange this field would be missing all of a sudden.

In theory if you comment out the last 2 lines in the file, it should bypass the problem:

C:\Users\jbean\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\__init__.py
Code:
                stars = show.get('PeopleListInShow')
                episode.guest_stars.clear()
                #for star in stars:
                #    episode.guest_stars.add(star)
Let me know if this makes any difference. I can send you an update file if you want. PM me.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site.
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 07:10 PM.


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