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
  #361  
Old 09-11-2012, 08:00 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by seaverd View Post
I need some clarification. I have this plugin installed and working, however I have a couple of questions regarding playback of SageTV recordings.

I have the following plex clients installed and running: Plex Client on a Windows 7 PC, Roku 2 XS (wired Ethernet connection) and a Playstation 3 (dnla client). I am a Plex newbie but as I understand it, plex server looks at the client and determines what formats the client can play natively (Directplay), if a client can’t play the file then it transcodes the video file and sends it to the client in a format it can play. So my issue is mpeg files directly recorded in SageTV. What client are you using for playback. My issue is that I cannot conveniently fast forward a show, with the exception of the Plex Client on Win 7. When FF on Plex Client for win 7 I can see video as I am fast forwarding. On Roku 2 as I skip ahead I can move forward based on the time at the bottom of the screen and then hit OK and then the file rebuffers. At no point do I see and FF on the screen so I don’t know when the commercials are over. I went to the client settings and set it for Directplay however it will not…so is MPEG not a directplay format on the Roku? PS3 for FF I can play at 1.5X speed.

So I guess my question is what clients are people using. Is there a way to directplay my sagetv recordings? Any suggestions would be greatly appreciated!

Thanks,

Dan
I am using a PC client as well as a Roku 2 XS. Fast Forward does work for me, but its jumpy. What I mean is its not a smooth FF, its more of a skip ahead style feature. I have MKV files, and uncompresses OTA MPEG files all of which play fine. It does have to transcode the MPEG though. I believe the only thing the ROKU can play without transcode is mp4.

Does that answer your question?
Reply With Quote
  #362  
Old 09-11-2012, 08:20 AM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
It does, are you aware of any clients (other than Windows Client) that do not need to transcode OTA mpeg? My Roku 2 skip ahead requires a rebuffer each time..it works but not as nice as the win 7 client. My hd300 died several months ago and I am looking for a good way to playback recorded shows.

I'll have to look at encoding some recorded shows to mp4 to see how that plays back on the Roku.

Dan
Reply With Quote
  #363  
Old 09-11-2012, 08:22 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
The Windows 7 client should be able to play all of your files without transcoding anything.

Other option may be to use a ATV2 - granted that will require on the fly transcoding as well..
Reply With Quote
  #364  
Old 09-17-2012, 10:29 AM
IM2BZ2P IM2BZ2P is offline
Sage User
 
Join Date: Apr 2003
Location: Granger, Indiana
Posts: 48
No Audio on one TV recording

Installed Plex and the Plex scanner over the weekend. All went well (thanks for the excellent "how-to" instructions). Came across a couple of issues.

1. the episode of Glee that I recorded last week for my wife to show her how good Plex would look on her iPad has a good picture but no sound when I play it on the iPad. When I play it in Sage on my HD-300 the sound is fine. Are there any audio settings or codecs I need for the iPad? I haven't seen this issue reported elsewhere on this thread. I turned up audio boost in the advanced plex settings but that didn't help. Other recorded shows have good audio. It's just this one recording.

2. Recordings of Grimm each show up separately in the scan with really weird show titles. Do I need to manually fix these in BMT?

Thanks for some great work on the scanner and for any help you can offer.

Rick
__________________
Rick

Sage Beta 7;HD-300;Windows 7 64-bit;HP EX495 server with 7tb;Ceton 4-tuner cable card.
Reply With Quote
  #365  
Old 09-17-2012, 10:37 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by IM2BZ2P View Post
Installed Plex and the Plex scanner over the weekend. All went well (thanks for the excellent "how-to" instructions). Came across a couple of issues.

1. the episode of Glee that I recorded last week for my wife to show her how good Plex would look on her iPad has a good picture but no sound when I play it on the iPad. When I play it in Sage on my HD-300 the sound is fine. Are there any audio settings or codecs I need for the iPad? I haven't seen this issue reported elsewhere on this thread. I turned up audio boost in the advanced plex settings but that didn't help. Other recorded shows have good audio. It's just this one recording.

2. Recordings of Grimm each show up separately in the scan with really weird show titles. Do I need to manually fix these in BMT?

Thanks for some great work on the scanner and for any help you can offer.

Rick
AFAIk, There are no "Special Settings" that you need to change int he iPad application. The Plex Apps, actually have nothign to do with this code at all, sorry. This code is the root of what makes it possible for plex to manage your sagetv recorded media. AFA the Grimm issue, I would check to make sure you are running the most recent code released from the google code site. Also, I would go into BMT and see what those shows show up as in BMT. The custom scanners and metadata agent use the information that is stored in BMT via the sagex apis. If your show is stored and shows up in BMT as a title of "GRIMM - 123242421!@$!$" That is what plex will pull as the title of the show.

The above scenario is DEF. why your Grimm shows are showing up as seperate items. What you should see is "check the pic attached"

Hope that helps,

~Mike
Attached Images
File Type: png Screen Shot 2012-09-17 at 11.35.28 AM.png (197.0 KB, 175 views)
File Type: png Screen Shot 2012-09-17 at 11.36.37 AM.png (687.4 KB, 165 views)
Reply With Quote
  #366  
Old 09-17-2012, 10:52 AM
IM2BZ2P IM2BZ2P is offline
Sage User
 
Join Date: Apr 2003
Location: Granger, Indiana
Posts: 48
Thanks Mike. I will check the show titles in BMT tonight. If I figure out the audio problem I will post it here. I'll record some other shows on Fox to see if I can replicate the issue (hopefully it was a weird one-off).
__________________
Rick

Sage Beta 7;HD-300;Windows 7 64-bit;HP EX495 server with 7tb;Ceton 4-tuner cable card.
Reply With Quote
  #367  
Old 09-17-2012, 10:54 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by IM2BZ2P View Post
Thanks Mike. I will check the show titles in BMT tonight. If I figure out the audio problem I will post it here. I'll record some other shows on Fox to see if I can replicate the issue (hopefully it was a weird one-off).
Sounds good.

It very well may be a Plex transcoding issue that you ran into. Plex transcodes on the fly for any device that cannot direct play a file. iOS especially is always transcoded.

you could test the same file by loading up the plex windows or mac client on a pc, connecting to your plex server, and then seeing if that glee episode works. pcs almost always utilize direct play.

Maybe try changing the transcoding settings in the ipad app...
Reply With Quote
  #368  
Old 09-17-2012, 11:19 AM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Just a couple of thoughts to add to this discussion:

Make sure you're running the latest version of the Plex Media Server, it's being updated fairly regularly (once a month or so).

Also, content is not always transcoding to iOS devices. If the file is encoded in h.264 and you enable Direct Play (or Direct Streaming, I get the two confused, I probably have both enabled), and have the set the bit rate high enough for streaming (best over wifi, of course), Plex doesn't have to transcode at all to the iPad/iPhone.

Found this finally on the topic: http://wiki.plexapp.com/index.php/Pl...nd_Direct_Play
__________________
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
  #369  
Old 09-17-2012, 11:41 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by darcilicious View Post
Just a couple of thoughts to add to this discussion:

Make sure you're running the latest version of the Plex Media Server, it's being updated fairly regularly (once a month or so).

Also, content is not always transcoding to iOS devices. If the file is encoded in h.264 and you enable Direct Play (or Direct Streaming, I get the two confused, I probably have both enabled), and have the set the bit rate high enough for streaming (best over wifi, of course), Plex doesn't have to transcode at all to the iPad/iPhone.

Found this finally on the topic: http://wiki.plexapp.com/index.php/Pl...nd_Direct_Play
Darci is right, I should have clarified my statement by pointing out that all of MY content is transcoded due to my content sources :-)

Thanks Darci.
Reply With Quote
  #370  
Old 09-17-2012, 12:00 PM
IM2BZ2P IM2BZ2P is offline
Sage User
 
Join Date: Apr 2003
Location: Granger, Indiana
Posts: 48
Thanks Darci. I just downloaded Plex and the BMT agent yesterday, so it should be current.

Just so I understand, is there a recording quality setting in Sage to encode TV recordings in a format that would be optimal for Plex and/or ios devices?
__________________
Rick

Sage Beta 7;HD-300;Windows 7 64-bit;HP EX495 server with 7tb;Ceton 4-tuner cable card.
Reply With Quote
  #371  
Old 09-17-2012, 12:03 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by IM2BZ2P View Post
Thanks Darci. I just downloaded Plex and the BMT agent yesterday, so it should be current.

Just so I understand, is there a recording quality setting in Sage to encode TV recordings in a format that would be optimal for Plex and/or ios devices?
There are some presets in Sage which would work nicely for your iOs devices, but don't know them off the top of my head. Darci may know them.

AFA a "plex acceptable format" plex doesnt' care, its the devices that you are using to connect to plex that need the data in specific formats... iOs is much different than roku which is much different than LG smart streamers for example.
Reply With Quote
  #372  
Old 09-17-2012, 12:05 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by IM2BZ2P View Post
Just so I understand, is there a recording quality setting in Sage to encode TV recordings in a format that would be optimal for Plex and/or ios devices?
I believe that anything recorded will have to be transcoded for iOS devices; I have found that setting my set-top box to 720p only results in the best performance (vs 1080i). However, if you really like/need 1080i for your big screen TV, you might not be satisfied with giving up 1080i...

The other option is that if you know that you will always/only watch certain shows on an iOS device, to transcode ahead of time with handbrake or similar.
__________________
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
  #373  
Old 09-17-2012, 06:23 PM
IM2BZ2P IM2BZ2P is offline
Sage User
 
Join Date: Apr 2003
Location: Granger, Indiana
Posts: 48
So I learned a couple of things tonight as I solved the problem. In Plex there is an info screen for each tv episode that shows the audio format. On most shows when you click on that box a popup message says that there is no other audio format available. On the Glee episode, there are 5 choices. The normal AC3 choices don't play audio on my iPad, but when I selected AC3 5.1 the audio plays perfectly. I also learned that my iPad video over wifi at home is optimal at 4mbps 720p.

The Grimm issue was caused by a number of small rogue .ts files in my recorded tv directory. The actual episode was correct in BMT, but Plex picked up each little .ts file as a separate show. Cleaned up my directory and all is well.

Thanks for your great work on this!
__________________
Rick

Sage Beta 7;HD-300;Windows 7 64-bit;HP EX495 server with 7tb;Ceton 4-tuner cable card.
Reply With Quote
  #374  
Old 09-18-2012, 06:38 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by IM2BZ2P View Post
So I learned a couple of things tonight as I solved the problem. In Plex there is an info screen for each tv episode that shows the audio format. On most shows when you click on that box a popup message says that there is no other audio format available. On the Glee episode, there are 5 choices. The normal AC3 choices don't play audio on my iPad, but when I selected AC3 5.1 the audio plays perfectly. I also learned that my iPad video over wifi at home is optimal at 4mbps 720p.

The Grimm issue was caused by a number of small rogue .ts files in my recorded tv directory. The actual episode was correct in BMT, but Plex picked up each little .ts file as a separate show. Cleaned up my directory and all is well.

Thanks for your great work on this!
Awesome! glad u got it all working.
Reply With Quote
  #375  
Old 10-17-2012, 09:30 AM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
So I finally installed and configured the Plex Scanner and BMT Agent for SageTV since my wife was tiring of switching between Plex and SageTV.

Question: Posters, etc., don't seem to show up for SageTV recordings in Plex. Is this by design, or should I be seeing them?
Reply With Quote
  #376  
Old 10-17-2012, 09:33 AM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
You should be seeing posters for any SageTV recording that has a poster in BMT.

Double-check your settings and make sure the URL/password are correct for your SageTV webserver (more details are in the Wiki documentation: http://code.google.com/p/sagetv-for-...allingAndUsing)
__________________
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
  #377  
Old 10-17-2012, 11:18 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by darcilicious View Post
You should be seeing posters for any SageTV recording that has a poster in BMT.

Double-check your settings and make sure the URL/password are correct for your SageTV webserver (more details are in the Wiki documentation: http://code.google.com/p/sagetv-for-...allingAndUsing)
Thanks for answering Darci. Please let me now if you have further issue. We can help you debug.
Reply With Quote
  #378  
Old 10-17-2012, 01:10 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Checking the logs, I was getting:
Code:
2012-10-17 13:58:05,729 (11f8) :  DEBUG (networking:160) - Requesting 'http://127.0.0.1:32400/library/metadata/2848/tree'
2012-10-17 13:58:05,746 (11f8) :  DEBUG (logkit:13) - ***UPDATE CALLEDDDDDDDDDDDDDDDDDDDDDDDD
2012-10-17 13:58:05,746 (11f8) :  DEBUG (logkit:13) - *** sagex request URL: /sagex/api?c=GetMediaFileForID&1=3508631&encoder=json
2012-10-17 13:58:10,849 (11f8) :  DEBUG (logkit:13) - ERROR in executeSagexAPICall: Unable to connect to SageTV server
2012-10-17 13:58:10,852 (11f8) :  CRITICAL (core:561) - Exception in the update function of agent named 'SageTV BMT Agent (TV Shows)', called with guid 'com.plexapp.agents.bmtagenttvshows://3508631?lang=en' (most recent call last):
  File "C:\Users\media\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 964, in _update
    agent.update(obj, media, lang, force)
  File "C:\Users\media\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\__init__.py", line 173, in update
    airing = mf.get('Airing')
AttributeError: 'NoneType' object has no attribute 'get'
So, I copied what I had for SAGEX_HOST in BMTAgent.properties directly to __init__.py, and now it doesn't seem to error, but I don't get a poster when I refresh metadata.

Code:
2012-10-17 14:01:08,907 (1264) :  DEBUG (model:223) - Deserializing from C:\Users\media\AppData\Local\Plex Media Server\Metadata\TV Shows\4\7778ec71f40e929ec4fc85df5d5192826a3b867.bundle\Contents\com.plexapp.agents.bmtagenttvshows\Info.xml
2012-10-17 14:01:08,926 (1264) :  DEBUG (networking:160) - Requesting 'http://127.0.0.1:32400/library/metadata/2848/tree'
2012-10-17 14:01:08,944 (1264) :  DEBUG (logkit:13) - ***UPDATE CALLEDDDDDDDDDDDDDDDDDDDDDDDD
2012-10-17 14:01:08,944 (1264) :  DEBUG (logkit:13) - *** sagex request URL: http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetMediaFileForID&1=3508631&encoder=json
2012-10-17 14:01:09,983 (1264) :  DEBUG (logkit:13) - *** sagex API call "http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetMediaFileForID&1=3508631&encoder=json" [args: {u'MediaFile': {u'IsLibraryFile': True, u'SegmentFiles': [u'\\\\media-server1\\Media\\Recordings\\60Minutes-3441487-0.mpg'], u'IsPictureFile': False, u'IsVideoFile': True, u'NumberOfSegments': 1, u'IsCompleteRecording': True, u'MediaFileEncoding': u'', u'IsDVD': False, u'IsMusicFile': False, u'IsShowReRun': False, u'IsBluRay': False, u'IsFileCurrentlyRecording': False, u'IsTVFile': True, u'IsDVDDrive': False, u'Airing': {u'AiringChannelNumber': u'', u'AiringPartNumber': 1, u'AiringTitle': u'60 Minutes', u'IsWatched': False, u'ScheduleRecordingRecurrence': u'', u'ParentalRating': u'', u'AiringAttributeList': [u'HDTV', u'Stereo', u'CC', u'New'], u'RecordingName': u'', u'Channel': {u'IsChannelObject': True, u'ChannelDescription': u'', u'ChannelLogoCount': 0, u'StationID': 0, u'ChannelNumber': u'', u'ChannelName': u'', u'IsChannelViewable': False}, u'AiringDuration': 3660000, u'ExtraAiringDetails': u'Closed Captioned, Stereo, HDTV', u'WatchedDuration': 0, u'IsShowReRun': False, u'RealWatchedEndTime': 0, u'ScheduleDuration': 3660000, u'AiringStartTime': 1346022000000L, u'AiringChannelName': u'', u'ScheduleEndTime': 1346025660000L, u'IsFavorite': True, u'RealWatchedStartTime': 0, u'WatchedEndTime': 0, u'IsShowFirstRun': True, u'WatchedStartTime': 0, u'AiringPremiereFinaleInfo': u'', u'LatestWatchedTime': 1346022000000L, u'TrackNumber': 0, u'IsManualRecord': False, u'AiringTotalParts': 1, u'AiringEndTime': 1346025660000L, u'RecordingQuality': u'', u'IsDontLike': False, u'ScheduleStartTime': 1346022000000L, u'IsWatchedCompletely': False, u'IsAiringObject': True, u'Show': {u'ShowYear': u'', u'ShowEpisode': u'', u'ShowCategoriesList': [u'Newsmagazine'], u'ShowSeasonNumber': 0, u'ShowSubCategory': u'', u'ShowCategoriesString': u'Newsmagazine', u'ShowExternalID': u'EP0000351080', u'ShowEpisodeNumber': 0, u'IsShowEPGDataUnique': True, u'ShowDescription': u'Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.', u'OriginalAiringDate': 1346025600000L, u'RolesInShow': [u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent'], u'PeopleListInShow': [u'Steve Kroft', u'Lesley Stahl', u'Scott Pelley', u'Katie Couric', u'Morley Safer', u'Bob Simon', u'Lara Logan', u'Byron Pitts', u'Anderson Cooper', u'Charlie Rose'], u'PeopleAndCharacterListInShow': [u'Steve Kroft', u'Lesley Stahl', u'Scott Pelley', u'Katie Couric', u'Morley Safer', u'Bob Simon', u'Lara Logan', u'Byron Pitts', u'Anderson Cooper', u'Charlie Rose'], u'ShowExpandedRatings': u'', u'ShowRated': u'', u'ShowLanguage': u'', u'ShowCategory': u'Newsmagazine', u'ShowTitle': u'60 Minutes', u'ShowMisc': u'', u'ShowParentalRating': u'', u'IsShowObject': True, u'PeopleInShow': u'Steve Kroft, Lesley Stahl, Scott Pelley, Katie Couric, Morley Safer, Bob Simon, Lara Logan, Byron Pitts, Anderson Cooper, Charlie Rose', u'ShowDuration': 0}, u'IsAiringHDTV': True, u'IsNotManualOrFavorite': False, u'AiringID': 3508633, u'AiringRatings': [u'Unrated']}, u'ParentDirectory': u'\\\\media-server1\\Media\\Recordings', u'FileStartTime': 1346022003833L, u'IsShowFirstRun': True, u'MediaFileMetadataProperties': {u'Rated': u'', u'SeriesInfoID': u'35', u'Guest': u'', u'SeriesFinale': u'false', u'Title': u'60 Minutes', u'Misc': u'', u'Writer': u'', u'Stereo': u'true', u'Actor': u'', u'Live': u'false', u'ParentalRating': u'', u'New': u'true', u'Contestant': u'', u'PartNumber': u'0', u'Letterbox': u'false', u'OriginalAirDate': u'1346025600000', u'Language': u'', u'Narrator': u'', u'Description': u'Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.', u'Judge': u'', u'Premiere': u'false', u'SeasonPremiere': u'false', u'Director': u'', u'CC': u'true', u'Host': u'', u'X3D': u'false', u'Genre': u'Newsmagazine', u'GuestStar': u'', u'SAP': u'false', u'EpisodeName': u'', u'EpisodeNumber': u'0', u'MusicalGuest': u'', u'Correspondent': u'Steve Kroft;Lesley Stahl;Scott Pelley;Katie Couric;Morley Safer;Bob Simon;Lara Logan;Byron Pitts;Anderson Cooper;Charlie Rose', u'SeasonFinale': u'false', u'Year': u'', u'Dubbed': u'false', u'ExecutiveProducer': u'', u'Widescreen': u'false', u'Surround': u'false', u'Taped': u'false', u'TotalParts': u'0', u'GuestVoice': u'', u'Team': u'', u'ExtendedRatings': u'', u'Voice': u'', u'Anchor': u'', u'SeasonNumber': u'0', u'Producer': u'', u'Choreographer': u'', u'ChannelPremiere': u'false', u'SeriesPremiere': u'false', u'HDTV': u'true', u'RunningTime': u'0', u'DD51': u'false', u'ExternalID': u'EP0000351080', u'Composer': u'', u'Subtitled': u'false', u'Dolby': u'false'}, u'MediaFileRelativePath': u'60Minutes-3441487-0.mpg', u'IsMediaFileObject': True, u'FileDuration': 3656519, u'MediaFileFormatDescription': u'MPEG2-PS[MPEG2-Video 16:9 1080i@29.97fps, Dolby Digital/384Kbps@48kHz 5.1 eng, Dolby Digital/96Kbps@48kHz spa]', u'IsThumbnailLoaded': True, u'IsLocalFile': True, u'FileEndTime': 1346025660352L, u'MediaTitle': u'60 Minutes', u'MediaFileID': 3508631, u'Size': 6495820031L}}] succeeded!
2012-10-17 14:01:09,984 (1264) :  DEBUG (logkit:13) - *** sagex request URL: http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetShowSeriesInfo&1=show:EP0000351080&encoder=json
2012-10-17 14:01:10,990 (1264) :  DEBUG (logkit:13) - *** sagex API call "http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetShowSeriesInfo&1=show:EP0000351080&encoder=json" [args: {u'SeriesInfo': {u'SeriesID': u'35', u'SeriesTitle': u'60 Minutes', u'SeriesSubCategory': u'', u'SeriesDayOfWeek': u'', u'NumberOfCharactersInSeries': 9, u'IsSeriesInfoObject': True, u'SeriesDescription': u"The oldest and most-watched newsmagazine on television gets the real story of America's most prevalent issues. A revolving team of CBS News correspondents contribute segments to each hourlong episode. Topics range from hard news coverage to politics to lifestyle and pop culture.", u'SeriesImage': u'', u'SeriesHistory': u'', u'SeriesNetwork': u'CBS', u'SeriesPremiereDate': u'1968-09-24', u'SeriesHourAndMinuteTimeslot': u'', u'SeriesCategory': u'Newsmagazine', u'SeriesFinaleDate': u''}}] succeeded!
2012-10-17 14:01:10,992 (1264) :  DEBUG (logkit:13) - ***seriesPremiere=1968-09-24
2012-10-17 14:01:10,992 (1264) :  DEBUG (logkit:13) - ***airDate=1968-09-24 00:00:00
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - cat=Newsmagazine
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - UPDATING METADATA FOR SEASON: 0; EPISODE: 0
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - star=Steve Kroft
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - star=Lesley Stahl
2012-10-17 14:01:10,994 (1264) :  DEBUG (logkit:13) - star=Scott Pelley
2012-10-17 14:01:10,994 (1264) :  DEBUG (logkit:13) - star=Katie Couric
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Morley Safer
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Bob Simon
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Lara Logan
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Byron Pitts
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Anderson Cooper
2012-10-17 14:01:10,997 (1264) :  DEBUG (logkit:13) - star=Charlie Rose
2012-10-17 14:01:10,997 (1264) :  DEBUG (logkit:13) - Metadata that was set includes: episode.title=None;episode.summary=Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.;episode.originally_available_at=2012-08-26;episode.duration=3656519;episode.season=0;episode.show=None;metadata.content_rating=None;
2012-10-17 14:01:11,023 (1264) :  DEBUG (model:218) - Serializing to C:\Users\media\AppData\Local\Plex Media Server\Metadata\TV Shows\4\7778ec71f40e929ec4fc85df5d5192826a3b867.bundle\Contents\com.plexapp.agents.bmtagenttvshows\Info.xml
2012-10-17 14:01:11,026 (1264) :  DEBUG (runtime:843) - Response: [200] str, 16 bytes
Reply With Quote
  #379  
Old 10-17-2012, 05:00 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by brainbone View Post
Checking the logs, I was getting:
Code:
2012-10-17 13:58:05,729 (11f8) :  DEBUG (networking:160) - Requesting 'http://127.0.0.1:32400/library/metadata/2848/tree'
2012-10-17 13:58:05,746 (11f8) :  DEBUG (logkit:13) - ***UPDATE CALLEDDDDDDDDDDDDDDDDDDDDDDDD
2012-10-17 13:58:05,746 (11f8) :  DEBUG (logkit:13) - *** sagex request URL: /sagex/api?c=GetMediaFileForID&1=3508631&encoder=json
2012-10-17 13:58:10,849 (11f8) :  DEBUG (logkit:13) - ERROR in executeSagexAPICall: Unable to connect to SageTV server
2012-10-17 13:58:10,852 (11f8) :  CRITICAL (core:561) - Exception in the update function of agent named 'SageTV BMT Agent (TV Shows)', called with guid 'com.plexapp.agents.bmtagenttvshows://3508631?lang=en' (most recent call last):
  File "C:\Users\media\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 964, in _update
    agent.update(obj, media, lang, force)
  File "C:\Users\media\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\__init__.py", line 173, in update
    airing = mf.get('Airing')
AttributeError: 'NoneType' object has no attribute 'get'
So, I copied what I had for SAGEX_HOST in BMTAgent.properties directly to __init__.py, and now it doesn't seem to error, but I don't get a poster when I refresh metadata.

Code:
2012-10-17 14:01:08,907 (1264) :  DEBUG (model:223) - Deserializing from C:\Users\media\AppData\Local\Plex Media Server\Metadata\TV Shows\4\7778ec71f40e929ec4fc85df5d5192826a3b867.bundle\Contents\com.plexapp.agents.bmtagenttvshows\Info.xml
2012-10-17 14:01:08,926 (1264) :  DEBUG (networking:160) - Requesting 'http://127.0.0.1:32400/library/metadata/2848/tree'
2012-10-17 14:01:08,944 (1264) :  DEBUG (logkit:13) - ***UPDATE CALLEDDDDDDDDDDDDDDDDDDDDDDDD
2012-10-17 14:01:08,944 (1264) :  DEBUG (logkit:13) - *** sagex request URL: http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetMediaFileForID&1=3508631&encoder=json
2012-10-17 14:01:09,983 (1264) :  DEBUG (logkit:13) - *** sagex API call "http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetMediaFileForID&1=3508631&encoder=json" [args: {u'MediaFile': {u'IsLibraryFile': True, u'SegmentFiles': [u'\\\\media-server1\\Media\\Recordings\\60Minutes-3441487-0.mpg'], u'IsPictureFile': False, u'IsVideoFile': True, u'NumberOfSegments': 1, u'IsCompleteRecording': True, u'MediaFileEncoding': u'', u'IsDVD': False, u'IsMusicFile': False, u'IsShowReRun': False, u'IsBluRay': False, u'IsFileCurrentlyRecording': False, u'IsTVFile': True, u'IsDVDDrive': False, u'Airing': {u'AiringChannelNumber': u'', u'AiringPartNumber': 1, u'AiringTitle': u'60 Minutes', u'IsWatched': False, u'ScheduleRecordingRecurrence': u'', u'ParentalRating': u'', u'AiringAttributeList': [u'HDTV', u'Stereo', u'CC', u'New'], u'RecordingName': u'', u'Channel': {u'IsChannelObject': True, u'ChannelDescription': u'', u'ChannelLogoCount': 0, u'StationID': 0, u'ChannelNumber': u'', u'ChannelName': u'', u'IsChannelViewable': False}, u'AiringDuration': 3660000, u'ExtraAiringDetails': u'Closed Captioned, Stereo, HDTV', u'WatchedDuration': 0, u'IsShowReRun': False, u'RealWatchedEndTime': 0, u'ScheduleDuration': 3660000, u'AiringStartTime': 1346022000000L, u'AiringChannelName': u'', u'ScheduleEndTime': 1346025660000L, u'IsFavorite': True, u'RealWatchedStartTime': 0, u'WatchedEndTime': 0, u'IsShowFirstRun': True, u'WatchedStartTime': 0, u'AiringPremiereFinaleInfo': u'', u'LatestWatchedTime': 1346022000000L, u'TrackNumber': 0, u'IsManualRecord': False, u'AiringTotalParts': 1, u'AiringEndTime': 1346025660000L, u'RecordingQuality': u'', u'IsDontLike': False, u'ScheduleStartTime': 1346022000000L, u'IsWatchedCompletely': False, u'IsAiringObject': True, u'Show': {u'ShowYear': u'', u'ShowEpisode': u'', u'ShowCategoriesList': [u'Newsmagazine'], u'ShowSeasonNumber': 0, u'ShowSubCategory': u'', u'ShowCategoriesString': u'Newsmagazine', u'ShowExternalID': u'EP0000351080', u'ShowEpisodeNumber': 0, u'IsShowEPGDataUnique': True, u'ShowDescription': u'Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.', u'OriginalAiringDate': 1346025600000L, u'RolesInShow': [u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent', u'Correspondent'], u'PeopleListInShow': [u'Steve Kroft', u'Lesley Stahl', u'Scott Pelley', u'Katie Couric', u'Morley Safer', u'Bob Simon', u'Lara Logan', u'Byron Pitts', u'Anderson Cooper', u'Charlie Rose'], u'PeopleAndCharacterListInShow': [u'Steve Kroft', u'Lesley Stahl', u'Scott Pelley', u'Katie Couric', u'Morley Safer', u'Bob Simon', u'Lara Logan', u'Byron Pitts', u'Anderson Cooper', u'Charlie Rose'], u'ShowExpandedRatings': u'', u'ShowRated': u'', u'ShowLanguage': u'', u'ShowCategory': u'Newsmagazine', u'ShowTitle': u'60 Minutes', u'ShowMisc': u'', u'ShowParentalRating': u'', u'IsShowObject': True, u'PeopleInShow': u'Steve Kroft, Lesley Stahl, Scott Pelley, Katie Couric, Morley Safer, Bob Simon, Lara Logan, Byron Pitts, Anderson Cooper, Charlie Rose', u'ShowDuration': 0}, u'IsAiringHDTV': True, u'IsNotManualOrFavorite': False, u'AiringID': 3508633, u'AiringRatings': [u'Unrated']}, u'ParentDirectory': u'\\\\media-server1\\Media\\Recordings', u'FileStartTime': 1346022003833L, u'IsShowFirstRun': True, u'MediaFileMetadataProperties': {u'Rated': u'', u'SeriesInfoID': u'35', u'Guest': u'', u'SeriesFinale': u'false', u'Title': u'60 Minutes', u'Misc': u'', u'Writer': u'', u'Stereo': u'true', u'Actor': u'', u'Live': u'false', u'ParentalRating': u'', u'New': u'true', u'Contestant': u'', u'PartNumber': u'0', u'Letterbox': u'false', u'OriginalAirDate': u'1346025600000', u'Language': u'', u'Narrator': u'', u'Description': u'Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.', u'Judge': u'', u'Premiere': u'false', u'SeasonPremiere': u'false', u'Director': u'', u'CC': u'true', u'Host': u'', u'X3D': u'false', u'Genre': u'Newsmagazine', u'GuestStar': u'', u'SAP': u'false', u'EpisodeName': u'', u'EpisodeNumber': u'0', u'MusicalGuest': u'', u'Correspondent': u'Steve Kroft;Lesley Stahl;Scott Pelley;Katie Couric;Morley Safer;Bob Simon;Lara Logan;Byron Pitts;Anderson Cooper;Charlie Rose', u'SeasonFinale': u'false', u'Year': u'', u'Dubbed': u'false', u'ExecutiveProducer': u'', u'Widescreen': u'false', u'Surround': u'false', u'Taped': u'false', u'TotalParts': u'0', u'GuestVoice': u'', u'Team': u'', u'ExtendedRatings': u'', u'Voice': u'', u'Anchor': u'', u'SeasonNumber': u'0', u'Producer': u'', u'Choreographer': u'', u'ChannelPremiere': u'false', u'SeriesPremiere': u'false', u'HDTV': u'true', u'RunningTime': u'0', u'DD51': u'false', u'ExternalID': u'EP0000351080', u'Composer': u'', u'Subtitled': u'false', u'Dolby': u'false'}, u'MediaFileRelativePath': u'60Minutes-3441487-0.mpg', u'IsMediaFileObject': True, u'FileDuration': 3656519, u'MediaFileFormatDescription': u'MPEG2-PS[MPEG2-Video 16:9 1080i@29.97fps, Dolby Digital/384Kbps@48kHz 5.1 eng, Dolby Digital/96Kbps@48kHz spa]', u'IsThumbnailLoaded': True, u'IsLocalFile': True, u'FileEndTime': 1346025660352L, u'MediaTitle': u'60 Minutes', u'MediaFileID': 3508631, u'Size': 6495820031L}}] succeeded!
2012-10-17 14:01:09,984 (1264) :  DEBUG (logkit:13) - *** sagex request URL: http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetShowSeriesInfo&1=show:EP0000351080&encoder=json
2012-10-17 14:01:10,990 (1264) :  DEBUG (logkit:13) - *** sagex API call "http://xxxx:xxxxxxxx@localhost:8080/sagex/api?c=GetShowSeriesInfo&1=show:EP0000351080&encoder=json" [args: {u'SeriesInfo': {u'SeriesID': u'35', u'SeriesTitle': u'60 Minutes', u'SeriesSubCategory': u'', u'SeriesDayOfWeek': u'', u'NumberOfCharactersInSeries': 9, u'IsSeriesInfoObject': True, u'SeriesDescription': u"The oldest and most-watched newsmagazine on television gets the real story of America's most prevalent issues. A revolving team of CBS News correspondents contribute segments to each hourlong episode. Topics range from hard news coverage to politics to lifestyle and pop culture.", u'SeriesImage': u'', u'SeriesHistory': u'', u'SeriesNetwork': u'CBS', u'SeriesPremiereDate': u'1968-09-24', u'SeriesHourAndMinuteTimeslot': u'', u'SeriesCategory': u'Newsmagazine', u'SeriesFinaleDate': u''}}] succeeded!
2012-10-17 14:01:10,992 (1264) :  DEBUG (logkit:13) - ***seriesPremiere=1968-09-24
2012-10-17 14:01:10,992 (1264) :  DEBUG (logkit:13) - ***airDate=1968-09-24 00:00:00
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - cat=Newsmagazine
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - UPDATING METADATA FOR SEASON: 0; EPISODE: 0
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - star=Steve Kroft
2012-10-17 14:01:10,993 (1264) :  DEBUG (logkit:13) - star=Lesley Stahl
2012-10-17 14:01:10,994 (1264) :  DEBUG (logkit:13) - star=Scott Pelley
2012-10-17 14:01:10,994 (1264) :  DEBUG (logkit:13) - star=Katie Couric
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Morley Safer
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Bob Simon
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Lara Logan
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Byron Pitts
2012-10-17 14:01:10,996 (1264) :  DEBUG (logkit:13) - star=Anderson Cooper
2012-10-17 14:01:10,997 (1264) :  DEBUG (logkit:13) - star=Charlie Rose
2012-10-17 14:01:10,997 (1264) :  DEBUG (logkit:13) - Metadata that was set includes: episode.title=None;episode.summary=Claims that Grover Norquist is to blame for holding up the deficit-reduction process; fraudulent stem cell treatments; polo player Ignacio "Nacho" Figueras.;episode.originally_available_at=2012-08-26;episode.duration=3656519;episode.season=0;episode.show=None;metadata.content_rating=None;
2012-10-17 14:01:11,023 (1264) :  DEBUG (model:218) - Serializing to C:\Users\media\AppData\Local\Plex Media Server\Metadata\TV Shows\4\7778ec71f40e929ec4fc85df5d5192826a3b867.bundle\Contents\com.plexapp.agents.bmtagenttvshows\Info.xml
2012-10-17 14:01:11,026 (1264) :  DEBUG (runtime:843) - Response: [200] str, 16 bytes
Check out the install instructions that Darci wrote on the wiki. There are 2 spots you need to have the host hardcoded, once in the BMTAgent Properties and once in each of the 2 scanners. You also need make sure that plex.js is copied to your server and accessible.

If all of those are setup correctly, and you are able to hit the url produced by the bmtagent directly in a browser, Then you should see the metadata and potentially the fanart (if you copy the fanart url).

If those are accessible via a browser, then Plex won't be able to fetch fanart from SageTV.

Hopefully that makes sense, if not, let me know and ill try again.
Reply With Quote
  #380  
Old 10-17-2012, 06:01 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Quote:
Originally Posted by PiX64 View Post
Check out the install instructions that Darci wrote on the wiki. There are 2 spots you need to have the host hardcoded, once in the BMTAgent Properties and once in each of the 2 scanners. You also need make sure that plex.js is copied to your server
Yep, did all that. Only variance is as I listed above.

Quote:
Originally Posted by PiX64 View Post
and accessible.
Not sure how to test if plex.js is accessible. It's in SageTV\SageTV\sagex\services

Quote:
Originally Posted by PiX64 View Post
If all of those are setup correctly, and you are able to hit the url produced by the bmtagent directly in a browser, Then you should see the metadata and potentially the fanart (if you copy the fanart url).
Posters will not show.

http://xxx:xxxx@192.168.50.30:8080/s...mbnail/3508163 will work for pulling a thumbnail of the video.
http://xxx:xxxx@192.168.50.30:8080/s...poster/3508163 will not, even though there is a poster for the show. In the BMT Web Interface, the first poster url for 3508163 is http://192.168.50.30:8080/bmt/media/...2d-73290-1.jpg, so I know a poster image is available, but /sagex/media/poster/3508163 will not pull it, as the __init__.py is apparently trying to do.

Last edited by brainbone; 10-17-2012 at 07:29 PM.
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.