0.9.6.0 Beta bug? Using HDHomeRun plugin

menu population/navigation
I downloaded the beta server to test out the new DLNA feature and the WP7 client and noticed the HDHomeRun plugin was no longer working. Note that I am not the original author of the HDHomeRun plugin, but I wanted to get this working so I can watch TV using the new WP7 client. Anyways, the plugin will succesfully scan available channels, but after doing so, fails to list them on the menu so the user can verify that they work, and either enable or disable them.

Also note that I am new to Plex plugin development B)

So I tracked the problem down to this bit of code (specifically the for loop labeled with the comment!)...


def ExploreChannelsCallback(sender, lineupId):<br />
    lineup = GetLineupById( lineupId )<br />
    if not lineup:<br />
        return MessageContainer(<br />
            L('Error'),<br />
            "%s (%s)" % ( L('NoLineupDataFound'), lineupId )<br />
            )<br />
<br />
    if len(lineup.channelList) < 1:<br />
        return MessageContainer(<br />
            L('NoChannels'),<br />
            "%s %s" % ( L('NoChannelsFoundFor'), lineup.getTitle() )<br />
            )<br />
<br />
    dir = MediaContainer(viewGroup="ExploreChannelList", noCache=True)<br />
<br />
    #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
    # THE PROBLEM IS WITH THIS FOR LOOP!!!<br />
    #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
    for channel in lineup.channelList:<br />
        if not channel.isVerified():<br />
            title = "%s (%s)" % ( channel.getTitle(), L('NotVerifiedState'))<br />
        else:<br />
            if channel.isEnabled():<br />
                title = channel.getTitle()<br />
            else:<br />
                title = "%s (%s)" % ( channel.getTitle(), L('DisabledState'))<br />
                <br />
        dir.Append( Function(<br />
            DirectoryItem( ExploreOptionsCallback,<br />
                                title,<br />
                                subtitle=channel.getSubtitle(),<br />
                                summary=channel.getSummary(),<br />
                                thumb=R(EXPLORE_CHANNEL_ICON),<br />
                                art=R(ART)<br />
                                ),<br />
            lineupId=lineup.getId(),<br />
            channelId=channel.getId() ))<br />
        <br />
    return dir



So I added some logging to the code above (not shown) and it seems the channel list is filled with valid data, but the Media container never actually gets populated despite the "Append" calls. What is real odd is that if I break out of the loop early (I've tried up to 10 iterations), the menu is populated properly and I can go on to view the channel streams. I ran out of time, but I was going to check if there is some magic number where it fails, or if the channel it fails on is corrupt somehow (unlikely as this same code works on the previous server version)? Anyways, if I don't break out early, the menu is blank, and attempting to back out to the previous menu will kick me out of the plugin and leave it in a funky state where I can't relaunch it until I either restart the Plex server app, or run a different plugin first.

Any ideas? Is this a known problem with the Beta server? I read there is a V2 framework out and I believe this plugin is still using V1. Perhaps this is using some deprecated functionality?

I can append up to 11 channels from the channel list. It doesn’t matter which 11, so this appears to be a new bug/limitation in the beta. I’ll try converting this to v2 of the framework to see if that helps.

Cheers for doing this.



Was bummed that this plugin didn’t work.





When run the plugin it tells me there are 616 channels. List about 7 header groups but every one just hangs when you click on it.

Did anyone ever find out how to solve this?

I was in the middle of updating the plugin to version 2 of the framework to see if that would help when the system drive on my server failed. Once I get the server back up I’ll be able to continue. Progress is slow though as I don’t get much time to work on this. Most of my free time is spent building my house B)

BaseMale, I tried getting this to work and have had success by doing the following:



In the plugin’s natural state, add the config info for the tuner and download the channels. They don’t populate in Plex.

Then, I commented out lines 329-334 in init.py

Restart PMS and Plex client.

Streams are populated and working.



I have not python experience, so just tinkering. Anyone with any python experience ought to be able to fix what appears to be a small code error.



Can you try and see if the same works for you?



PS-the plugin does not appear in recently used channels after this edit, and the logo no longer appears for me. Check that too.

Wow, shame on me. I didn’t realize that I had somehow previously added a video source pointing to my .strm files for the hdhomerun. THAT is what was working and not the plugin. Sorry.



I’ll keep trying

I had to test a theory today so I installed an older version of PMS and configured the hdhomerun plugin. It worked as before. Then I upgraded PMS to the latest beta version and that broke the plugin again. So, apparently it’s a bug or a change in PMS that is causing our problems.



Is there no developer who is able to take a look and help us troubleshoot?

Has anyone been able to get this to work?

Yes, someone, in dev please!, take a look at this. It sounds like the long awaited plugin may be close. However, now that my server is updated, I don't see the channel anymore in my channels list! It is there but not showing. It just gets better .... I can see it in the web client but there is no longer an image associated with it. Nada on Roku either.