Help Making an old plugin work again

Hi!, I was playing with the Plex Channels and i found a plugin that wasn't working. So I assumed that it was because of the changes of the framework so i went on and updated the code the best i could and i replaced the init file and now the plugin doesn't even appear in the channels section.

 

Tried to make a new one but it doesnt work either.

 

Here is the original:

https://github.com/pejoo/Twitch.tv-Plex-Plugin

 

Here is my fork:

https://github.com/mhobbit/Twitch.tv-Plex-Plugin

 

I would really like to finish this. Please help me!

 

I would really like to make it appear in my channels to try it guys. Please help me!

Hi mhobbit,

Issues found with your __init__.py:

Line 37 is missing the enclosing brackets, change to

@handler('/video/twitch', 'Twitch.tv') 

Line 40 starts with a TAB instead of spaces (not in line with the rest of the indentation)

Line 97 has one too many closing brackets in the end and a bunch of spaces behind it (remote the spaces and the last ")")

Line 97 has one too many closing brackets in the end and a bunch of spaces behind it (remote the spaces and the last ")")

I have confirmed that these changes make your plugin show up in the Video Channel section of PHT and it's main menu is shown. The rest is not working yet.

By the way, have been using Python Tools for Visual Studio 2012 to find the above issues. If you want to use it yourself, here is how you install it: https://pytools.codeplex.com/wikipage?title=Installation%20-%20Details

Thanks man!

Pleasure. Lets see your best work then, I'd love to see my favourite SC2 Twtich channels on Plex :)

So i started to do a smaller plugin to test the twitch video in the VideoClipObject and i cannot figure out why it doesnt work. I made a new plug-in that has one VideoClipObject

    oc.add(VideoClipObject(
            url = 'http://www.twitch.tv/widgets/live_embed_player.swf?channel=MLGSC2',
            title = 'SC2',
            ))

But it doesn't show anything. I can acess through the plugin but when i reach the point where this object is supposed to appear it doesnt show. I tried with a Ustream url and it showed instantly. So i adapted the old Site Configuration and it still doesn't show anything. Here is the site configuration: 

<?xml version="1.0" encoding="UTF-8"?>


  
  
  
    
      
        
      
      
        
        
      
    
  
  
  
    
      
        
      
      
        
        
      
    
  

Cheers!

Sorry, hope some of the other channel devs will help, I just don't know enough about this.

Site Configs are a massive PITA, IMHO. I can't really offer any insight into your specific issue but, sometimes working with the webkit window in the visible mode will help shed some light on what's happening behind the scenes.

You can do that with these commands:

For OSX:

defaults write com.plexapp.plexmediaserver WebKitWindowVisible TRUE


For Windows:
  • Go to HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server
  • Add a new DWORD value, WebKitWindowVisible set to 1
  • Restart PMS

I've just updated the URL Service for Justin.tv/Twitch and am looking into the code of the Twitch plugin now B)

I've done some updates on the Justin.tv/Twitch URL Service: https://github.com/plexinc-plugins/Services.bundle/commits/master/Contents/Service%20Sets/com.plexapp.plugins.justintv

and on the Twitch plugin bundle: https://github.com/sander1/Twitch.bundle

But at the moment I got it working on Plex for iOS and on Plex/Web in Safari only.

Any update on this? It would be great to have a working twitch app for plex.

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