# Help Making an old plugin work again

**URL:** <https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [March 6, 2013, 10:35pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276 "2013-03-06T22:35:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhobbit](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mhobbit](https://forums.plex.tv/u/mhobbit)\
**Post date:** [March 6, 2013, 10:35pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/1 "2013-03-06T22:35:13Z")

</div>

Hi!, I was playing with the Plex Channels and i found a plugin that&nbsp;wasn't&nbsp;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&nbsp;doesn't&nbsp;even appear in the channels section.

&nbsp;

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

&nbsp;

Here is the original:

[https://github.com/pejoo/Twitch.tv-Plex-Plugin](https://github.com/pejoo/Twitch.tv-Plex-Plugin)

&nbsp;

Here is my fork:

[https://github.com/mhobbit/Twitch.tv-Plex-Plugin](https://github.com/mhobbit/Twitch.tv-Plex-Plugin)

&nbsp;

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

&nbsp;

---

<div class="post-metadata">

**Author:** ![mhobbit](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mhobbit](https://forums.plex.tv/u/mhobbit)\
**Post date:** [March 8, 2013, 6:51pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/2 "2013-03-08T18:51:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gundy](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@Gundy](https://forums.plex.tv/u/Gundy)\
**Post date:** [March 13, 2013, 1:32pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/3 "2013-03-13T13:32:36Z")

</div>

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&nbsp;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:&nbsp;[https://pytools.codeplex.com/wikipage?title=Installation%20-%20Details](https://pytools.codeplex.com/wikipage?title=Installation%20-%20Details)

---

<div class="post-metadata">

**Author:** ![mhobbit](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mhobbit](https://forums.plex.tv/u/mhobbit)\
**Post date:** [March 15, 2013, 1:19am UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/4 "2013-03-15T01:19:17Z")

</div>

Thanks man!

---

<div class="post-metadata">

**Author:** ![Gundy](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@Gundy](https://forums.plex.tv/u/Gundy)\
**Post date:** [March 15, 2013, 1:29pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/5 "2013-03-15T13:29:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mhobbit](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mhobbit](https://forums.plex.tv/u/mhobbit)\
**Post date:** [March 17, 2013, 10:03pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/6 "2013-03-17T22:03:41Z")

</div>

So i started to do a smaller plugin to test the twitch video in the VideoClipObject&nbsp;and i cannot figure out why it doesnt work. I made a new plug-in that has one&nbsp;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:&nbsp;

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

Cheers!

---

<div class="post-metadata">

**Author:** ![Gundy](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@Gundy](https://forums.plex.tv/u/Gundy)\
**Post date:** [March 19, 2013, 11:04pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/7 "2013-03-19T23:04:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [March 21, 2013, 10:41pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/8 "2013-03-21T22:41:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [March 22, 2013, 4:13am UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/9 "2013-03-22T04:13:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [March 22, 2013, 9:50pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/10 "2013-03-22T21:50:43Z")

</div>

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](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](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.

---

<div class="post-metadata">

**Author:** ![DotPdf](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dotpdf/32/3767_2.png) [@DotPdf](https://forums.plex.tv/u/DotPdf)\
**Post date:** [July 7, 2013, 10:38pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/11 "2013-07-07T22:38:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:07pm UTC](https://forums.plex.tv/t/help-making-an-old-plugin-work-again/30276/12 "2019-12-20T23:07:46Z")

</div>

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