EpisodeObject is blank in Plex Home Theather

Hello. I'm trying to create EpisodeObject without using URL service. It's work ok in Web, LG-TV, but I'm getting empty meta info in detail screen on Plex Home Theater.

 

h_1411925020_9717358_d21f8d5bc2.png

 

 

With details:

h_1411925119_7801979_2692b19c64.png

 

If I change EpisodeObject to VideoClipObject, the detailed information is displayed normally.

<?xml version='1.0' encoding='utf-8'?>

  
    
      
        
        
      
    
    
    
  

...
        obj = EpisodeObject(
            key=Callback(
                VideoView,
                path=item['path'],
                episode=episode
            ),
            rating_key=GetEpisodeURL(
                item['url'],
                item['current_season'],
                episode
            ),
            source_title=TITLE,
            summary=item['summary'],
            thumb=item['thumb'],
            source_icon=ICON,
            rating=item['rating'],
            title=item['episodes'][episode],
            season=int(item['current_season']),
            index=int(episode),
            show=item['title'],
        duration=2637000,
        originally_available_at=date.fromtimestamp(1380571200),

        directors=item['directors'] if 'directors' in item else None,
        guest_stars=item['roles'] if 'roles' in item else None,
    )


obj.add(MediaObject(
parts=[PartObject(
key=HTTPLiveStreamURL(
Callback(
VideoPlay,
session=JSON.StringFromObject(item[‘session’])
)
)
)],
video_resolution=720,
container=Container.MP4,
video_codec=VideoCodec.H264,
audio_codec=AudioCodec.AAC,
optimized_for_streaming=True,
audio_channels=2
))

Any suggestions?

Please, move it to https://forums.plex.tv/forum/42-channel-development/

It's hard to be certain based on the code snippets you posted but this seems like a case where the Object key doesn't point back to the metadata creating function properly. Have a look at the IMDb Trailers code for reference. If that doesn't help clear things up, post a link to your complete code for help debugging.

It's hard to be certain based on the code snippets you posted but this seems like a case where the Object key doesn't point back to the metadata creating function properly. Have a look at the IMDb Trailers code for reference. If that doesn't help clear things up, post a link to your complete code for help debugging.

No. I wrote simple service, that return same XML object that my plugin and it's works correctly. I think, that PHT has very special crutch for /system/services/url/lookup callback.
I need to use Data storage in plugin  for normal object processing and I haven't any ideas how I can pass it to the URL-Service.

Source https://github.com/kolsys/HDSerials.bundle/tree/devel

You can see bug in "Популярное".

For looking my dummy service result, add to Episodes method:

oc.add(URLService.MetadataObjectForURL('http://www.hdserials.tv/test'))

Try to uncomment

# obj = MovieObject(

in GetVideoObject for getting one more bug: MovieObject without controls.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.