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
  #1  
Old 12-04-2015, 05:02 PM
al_uk al_uk is offline
Sage User
 
Join Date: Dec 2008
Location: Dorset, UK
Posts: 36
Plex Scanner - incorrect metadata populated from Sage?

Hi, I've just tried the Scanner and BMT agent, and almost have it working, but it seems Plex is not populating the correct Metadata from Sage. Here is an excerpt of bmttvagentshows.log. Most of the shows are coming up in Plex as "Phil Spencer Secret Agent"

I think that the Plex BMT agent is matching the filename correctly and getting data back, but for some reason Plex is not populating it properly. Anyone any ideas on how to diagnose further?

I'm using SageTV7 with a new Plex install. The Plex install is running as a docker on UnRaid.

Thanks!



Code:
2015-12-03 23:47:11,063 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://sage:frey@192.168.27.15:8080/sagex/api?c=plex:GetMediaFileForName&1=GrandDesignsAustralia-88025071-0.mpg&encoder=json
2015-12-03 23:47:11,075 (2af8aa500700) :  DEBUG (sandbox:19) - getMediaFileForName(GrandDesignsAustralia-88025071-0.mpg): found
2015-12-03 23:47:11,075 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: mfid: 88757645
2015-12-03 23:47:11,076 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: setting episode level metadata
2015-12-03 23:47:11,076 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: airdate: 2015-01-18 11:05:00
2015-12-03 23:47:11,076 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: no PeopleListInShow data.
2015-12-03 23:47:11,076 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: rating:  -> -
2015-12-03 23:47:11,077 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: IsWatched: False
2015-12-03 23:47:11,077 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://localhost:32400/:/unscrobble?key=3013&identifier=com.plexapp.plugins.library
2015-12-03 23:47:11,086 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: metadata.posters already has data
2015-12-03 23:47:11,086 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: metadata.art already has data
2015-12-03 23:47:11,087 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: metadata.banners already has data
2015-12-03 23:47:11,087 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: season.posters already has data
2015-12-03 23:47:11,087 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: season.banners already has data
2015-12-03 23:47:11,087 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://sage:frey@192.168.27.15:8080/sagex/media/fanart?mediafile=88757645&artifact=episode
2015-12-03 23:47:11,089 (2af8aa500700) :  WARNING (sandbox:19) - getFanArt: <html> detected in fanart response, not fanart
2015-12-03 23:47:11,090 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e8933: COMPLETED SETTING EPISODE-LEVEL METADATA: episode.title=Grand Designs Australia;episode.summary=Brand new series: A Melbourne couple try to build a lightweight, modern house on a speedy schedule on a perfect plot high up on Mount Eliza. But they face costly redesigns and long delays.  [S];episode.originally_available_at=2015-01-18;episode.duration=3600000;episode.season=2015;metadata.content_rating=TV-M;
2015-12-03 23:47:11,090 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: NCIS-93064385-0.mpg
2015-12-03 23:47:11,090 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://sage:frey@192.168.27.15:8080/sagex/api?c=plex:GetMediaFileForName&1=NCIS-93064385-0.mpg&encoder=json
2015-12-03 23:47:11,153 (2af8aa500700) :  DEBUG (sandbox:19) - getMediaFileForName(NCIS-93064385-0.mpg): found
2015-12-03 23:47:11,154 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: mfid: 93131380
2015-12-03 23:47:11,154 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: setting episode level metadata
2015-12-03 23:47:11,154 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: airdate: 2015-09-23 22:00:00
2015-12-03 23:47:11,155 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: no PeopleListInShow data.
2015-12-03 23:47:11,155 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: rating:  -> -
2015-12-03 23:47:11,155 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: IsWatched: False
2015-12-03 23:47:11,155 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://localhost:32400/:/unscrobble?key=3332&identifier=com.plexapp.plugins.library
2015-12-03 23:47:11,171 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: metadata.posters already has data
2015-12-03 23:47:11,171 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: metadata.art already has data
2015-12-03 23:47:11,171 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: metadata.banners already has data
2015-12-03 23:47:11,171 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: season.posters already has data
2015-12-03 23:47:11,172 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: season.banners already has data
2015-12-03 23:47:11,172 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://sage:frey@192.168.27.15:8080/sagex/media/fanart?mediafile=93131380&artifact=episode
2015-12-03 23:47:11,174 (2af8aa500700) :  WARNING (sandbox:19) - getFanArt: <html> detected in fanart response, not fanart
2015-12-03 23:47:11,175 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e238: COMPLETED SETTING EPISODE-LEVEL METADATA: episode.title=NCIS;episode.summary=Special Agent Gibbs leads his NCIS Team of investigators in the world of military crime. The team step in when a marine's wife is murdered live on the internet.;episode.originally_available_at=2015-09-23;episode.duration=3600000;episode.season=2015;metadata.content_rating=TV-M;
2015-12-03 23:47:11,175 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: TopGear-92514269-0.mpg
2015-12-03 23:47:11,176 (2af8aa500700) :  DEBUG (sandbox:19) - openUrl: http://sage:frey@192.168.27.15:8080/sagex/api?c=plex:GetMediaFileForName&1=TopGear-92514269-0.mpg&encoder=json
2015-12-03 23:47:11,226 (2af8aa500700) :  DEBUG (sandbox:19) - getMediaFileForName(TopGear-92514269-0.mpg): found
2015-12-03 23:47:11,226 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: mfid: 92591420
2015-12-03 23:47:11,226 (2af8aa500700) :  INFO (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: setting episode level metadata
2015-12-03 23:47:11,227 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: airdate: 2015-07-30 19:00:00
2015-12-03 23:47:11,227 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: no PeopleListInShow data.
2015-12-03 23:47:11,227 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: rating:  -> -
2015-12-03 23:47:11,227 (2af8aa500700) :  DEBUG (sandbox:19) - Phil Spencer: Secret Agent/s2015/e239: IsWatched: False

Here is a paste of the results of

http://192.168.27.15:8080/sagex/api?...88025071-0.mpg

which seems to show metadata for the correct show.

Code:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<MediaFile>
<MediaFileFormatDescription>
<![CDATA[
MPEG2-PS[MPEG2-Video 16:9 576i@25fps, MP2/192Kbps@48kHz Stereo eng, MP2/64Kbps@48kHz eng, Subpic dvbsub]
]]>
</MediaFileFormatDescription>
<IsThumbnailLoaded>false</IsThumbnailLoaded>
<FileStartTime>1421578800002</FileStartTime>
<FileEndTime>1421582996238</FileEndTime>
<SegmentFiles size="1">
<File>
<![CDATA[
\\tower\SageTV\SageTV\GrandDesignsAustralia-88025071-0.mpg
]]>
</File>
</SegmentFiles>
<FileDuration>4196236</FileDuration>
<IsCompleteRecording>true</IsCompleteRecording>
<ParentDirectory>
<![CDATA[ \\tower\SageTV\SageTV ]]>
</ParentDirectory>
<NumberOfSegments>1</NumberOfSegments>
<Airing>
<AiringChannelNumber>
<![CDATA[ ]]>
</AiringChannelNumber>
<RealWatchedStartTime>0</RealWatchedStartTime>
<RecordingName>
<![CDATA[ ]]>
</RecordingName>
<AiringChannelName>
<![CDATA[ More-4 ]]>
</AiringChannelName>
<AiringEndTime>1421582700000</AiringEndTime>
<AiringTitle>
<![CDATA[ Grand Designs Australia ]]>
</AiringTitle>
<IsNotManualOrFavorite>false</IsNotManualOrFavorite>
<AiringStartTime>1421579100000</AiringStartTime>
<IsAiringObject>true</IsAiringObject>
<AiringRatings size="1">
<Item>
<![CDATA[ Unrated ]]>
</Item>
</AiringRatings>
<WatchedDuration>0</WatchedDuration>
<WatchedEndTime>0</WatchedEndTime>
<TrackNumber>0</TrackNumber>
<RecordingQuality>
<![CDATA[ ]]>
</RecordingQuality>
<RealWatchedEndTime>0</RealWatchedEndTime>
<IsManualRecord>false</IsManualRecord>
<ExtraAiringDetails>
<![CDATA[ ]]>
</ExtraAiringDetails>
<ScheduleStartTime>1421578800000</ScheduleStartTime>
<ScheduleDuration>4200000</ScheduleDuration>
<ScheduleEndTime>1421583000000</ScheduleEndTime>
<WatchedStartTime>0</WatchedStartTime>
<LatestWatchedTime>1421579100000</LatestWatchedTime>
<IsWatchedCompletely>false</IsWatchedCompletely>
<ParentalRating>
<![CDATA[ ]]>
</ParentalRating>
<AiringDuration>3600000</AiringDuration>
<AiringPartNumber>1</AiringPartNumber>
<AiringTotalParts>1</AiringTotalParts>
<AiringPremiereFinaleInfo>
<![CDATA[ ]]>
</AiringPremiereFinaleInfo>
<AiringAttributeList size="0"/>
<Show>
<ShowMisc>
<![CDATA[ ]]>
</ShowMisc>
<ShowRated>
<![CDATA[ ]]>
</ShowRated>
<ShowTitle>
<![CDATA[ Grand Designs Australia ]]>
</ShowTitle>
<IsShowObject>true</IsShowObject>
<ShowYear>
<![CDATA[ ]]>
</ShowYear>
<ShowExpandedRatings>
<![CDATA[ ]]>
</ShowExpandedRatings>
<ShowCategoriesString>
<![CDATA[ Show ]]>
</ShowCategoriesString>
<IsShowEPGDataUnique>true</IsShowEPGDataUnique>
<ShowSubCategory>
<![CDATA[ ]]>
</ShowSubCategory>
<ShowCategoriesList size="1">
<Item>
<![CDATA[ Show ]]>
</Item>
</ShowCategoriesList>
<ShowCategory>
<![CDATA[ Show ]]>
</ShowCategory>
<ShowDuration>0</ShowDuration>
<PeopleInShow>
<![CDATA[ ]]>
</PeopleInShow>
<ShowExternalID>
<![CDATA[ DT1894468933 ]]>
</ShowExternalID>
<PeopleListInShow size="0"/>
<RolesInShow size="0"/>
<ShowLanguage>
<![CDATA[ English ]]>
</ShowLanguage>
<ShowDescription>
<![CDATA[
Brand new series: A Melbourne couple try to build a lightweight, modern house on a speedy schedule on a perfect plot high up on Mount Eliza. But they face costly redesigns and long delays. [S]
]]>
</ShowDescription>
<ShowEpisode>
<![CDATA[ ]]>
</ShowEpisode>
<ShowParentalRating>
<![CDATA[ ]]>
</ShowParentalRating>
<OriginalAiringDate>0</OriginalAiringDate>
<ShowSeasonNumber>0</ShowSeasonNumber>
<ShowEpisodeNumber>0</ShowEpisodeNumber>
<PeopleAndCharacterListInShow size="0"/>
</Show>
<Channel>
<ChannelNetwork>
<![CDATA[ More-4 ]]>
</ChannelNetwork>
<ChannelNumber>
<![CDATA[ ]]>
</ChannelNumber>
<ChannelDescription>
<![CDATA[ More-4 ]]>
</ChannelDescription>
<IsChannelViewable>false</IsChannelViewable>
<IsChannelObject>true</IsChannelObject>
<ChannelLogoCount>0</ChannelLogoCount>
<ChannelName>
<![CDATA[ More-4 ]]>
</ChannelName>
<StationID>1216</StationID>
</Channel>
<IsWatched>false</IsWatched>
<IsAiringHDTV>false</IsAiringHDTV>
<IsDontLike>false</IsDontLike>
<IsFavorite>true</IsFavorite>
<AiringID>88025071</AiringID>
<ScheduleRecordingRecurrence>
<![CDATA[ ]]>
</ScheduleRecordingRecurrence>
<IsShowFirstRun>false</IsShowFirstRun>
<IsShowReRun>true</IsShowReRun>
</Airing>
<MediaFileID>88757645</MediaFileID>
<IsMediaFileObject>true</IsMediaFileObject>
<AlbumForFile/>
<MediaFileEncoding>
<![CDATA[ Nova-DT DVB-T Capture (Dev1 Path0) More-4 ]]>
</MediaFileEncoding>
<MediaFileRelativePath>
<![CDATA[ ]]>
</MediaFileRelativePath>
<IsFileCurrentlyRecording>false</IsFileCurrentlyRecording>
<IsMusicFile>false</IsMusicFile>
<IsBluRay>false</IsBluRay>
<IsDVDDrive>false</IsDVDDrive>
<IsVideoFile>true</IsVideoFile>
<IsLocalFile>true</IsLocalFile>
<IsLibraryFile>false</IsLibraryFile>
<IsTVFile>true</IsTVFile>
<MediaTitle>
<![CDATA[ Grand Designs Australia ]]>
</MediaTitle>
<IsPictureFile>false</IsPictureFile>
<Size>1303772523</Size>
<IsDVD>false</IsDVD>
<MediaFileMetadataProperties>
<Subtitled>
<![CDATA[ false ]]>
</Subtitled>
<Genre>
<![CDATA[ Show ]]>
</Genre>
<Contestant>
<![CDATA[ ]]>
</Contestant>
<ChannelPremiere>
<![CDATA[ false ]]>
</ChannelPremiere>
<RunningTime>
<![CDATA[ 0 ]]>
</RunningTime>
<Widescreen>
<![CDATA[ false ]]>
</Widescreen>
<Guest>
<![CDATA[ ]]>
</Guest>
<Choreographer>
<![CDATA[ ]]>
</Choreographer>
<ExtendedRatings>
<![CDATA[ ]]>
</ExtendedRatings>
<Dolby>
<![CDATA[ false ]]>
</Dolby>
<Composer>
<![CDATA[ ]]>
</Composer>
<Writer>
<![CDATA[ ]]>
</Writer>
<Stereo>
<![CDATA[ false ]]>
</Stereo>
<ParentalRating>
<![CDATA[ ]]>
</ParentalRating>
<EpisodeNumber>
<![CDATA[ 0 ]]>
</EpisodeNumber>
<Description>
<![CDATA[
Brand new series: A Melbourne couple try to build a lightweight, modern house on a speedy schedule on a perfect plot high up on Mount Eliza. But they face costly redesigns and long delays. [S]
]]>
</Description>
<ExternalID>
<![CDATA[ DT1894468933 ]]>
</ExternalID>
<SAP>
<![CDATA[ false ]]>
</SAP>
<HDTV>
<![CDATA[ false ]]>
</HDTV>
<Title>
<![CDATA[ Grand Designs Australia ]]>
</Title>
<SeasonNumber>
<![CDATA[ 0 ]]>
</SeasonNumber>
<CC>
<![CDATA[ false ]]>
</CC>
<SeriesFinale>
<![CDATA[ false ]]>
</SeriesFinale>
<TotalParts>
<![CDATA[ 0 ]]>
</TotalParts>
<Live>
<![CDATA[ false ]]>
</Live>
<Voice>
<![CDATA[ ]]>
</Voice>
<Surround>
<![CDATA[ false ]]>
</Surround>
<Judge>
<![CDATA[ ]]>
</Judge>
<EpisodeName>
<![CDATA[ ]]>
</EpisodeName>
<Director>
<![CDATA[ ]]>
</Director>
<SeriesPremiere>
<![CDATA[ false ]]>
</SeriesPremiere>
<Anchor>
<![CDATA[ ]]>
</Anchor>
<PartNumber>
<![CDATA[ 0 ]]>
</PartNumber>
<GuestVoice>
<![CDATA[ ]]>
</GuestVoice>
<X3D>
<![CDATA[ false ]]>
</X3D>
<DD51>
<![CDATA[ false ]]>
</DD51>
<ExecutiveProducer>
<![CDATA[ ]]>
</ExecutiveProducer>
<GuestStar>
<![CDATA[ ]]>
</GuestStar>
<SeasonPremiere>
<![CDATA[ false ]]>
</SeasonPremiere>
<MusicalGuest>
<![CDATA[ ]]>
</MusicalGuest>
<New>
<![CDATA[ false ]]>
</New>
<Letterbox>
<![CDATA[ false ]]>
</Letterbox>
<Taped>
<![CDATA[ false ]]>
</Taped>
<Producer>
<![CDATA[ ]]>
</Producer>
<Misc>
<![CDATA[ ]]>
</Misc>
<Language>
<![CDATA[ English ]]>
</Language>
<Dubbed>
<![CDATA[ false ]]>
</Dubbed>
<Narrator>
<![CDATA[ ]]>
</Narrator>
<SeasonFinale>
<![CDATA[ false ]]>
</SeasonFinale>
<Rated>
<![CDATA[ ]]>
</Rated>
<Correspondent>
<![CDATA[ ]]>
</Correspondent>
<OriginalAirDate>
<![CDATA[ 0 ]]>
</OriginalAirDate>
<Host>
<![CDATA[ ]]>
</Host>
<Team>
<![CDATA[ ]]>
</Team>
<Year>
<![CDATA[ ]]>
</Year>
<Premiere>
<![CDATA[ false ]]>
</Premiere>
<Actor>
<![CDATA[ ]]>
</Actor>
</MediaFileMetadataProperties>
<IsShowFirstRun>false</IsShowFirstRun>
<IsShowReRun>true</IsShowReRun>
</MediaFile>
Reply With Quote
  #2  
Old 12-05-2015, 04:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Have you looked at the item in the BMT web UI to see if the BMT metadata is correct?
Reply With Quote
  #3  
Old 12-06-2015, 07:31 PM
al_uk al_uk is offline
Sage User
 
Join Date: Dec 2008
Location: Dorset, UK
Posts: 36
Hi Stuckless, thanks for the reply. I have not used the BMT ui much, but navigated my way to this file (I couldn't see how to search for the file name) and it appears correct. See screenshot below. Does that answer your question?

ScreenClip.png
Reply With Quote
  #4  
Old 12-10-2015, 05:13 PM
al_uk al_uk is offline
Sage User
 
Join Date: Dec 2008
Location: Dorset, UK
Posts: 36
Please! Anyone any pointers? Thanks!
Reply With Quote
  #5  
Old 12-11-2015, 06:28 PM
al_uk al_uk is offline
Sage User
 
Join Date: Dec 2008
Location: Dorset, UK
Posts: 36
I found a workaround - I set the Plex language to English, rather than English UK and all the metadata started coming through for both tv shows and music. Not sure why, but now it works.
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
Plex Scanner and BMT Agent for SageTV PiX64 SageTV v7 Customizations 1412 11-11-2022 12:35 AM
Plex 4.0 - better peruse the Plex.forum before updating.... tvmaster2 General Discussion 18 08-17-2015 10:16 AM
Plex as a front end for Sage wayner General Discussion 228 07-24-2012 01:40 PM
Plex in a TV? What about sage? rwc General Discussion 9 09-05-2010 04:38 PM
Runningtime not populated in Metadata mycorona SageMC Custom Interface 2 11-30-2008 01:08 PM


All times are GMT -6. The time now is 07:00 PM.


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