# Site Config Problem

**URL:** <https://forums.plex.tv/t/site-config-problem/2026>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [June 14, 2009, 8:34am UTC](https://forums.plex.tv/t/site-config-problem/2026 "2009-06-14T08:34:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khakionion](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Khakionion](https://forums.plex.tv/u/Khakionion)\
**Post date:** [June 14, 2009, 8:34am UTC](https://forums.plex.tv/t/site-config-problem/2026/1 "2009-06-14T08:34:08Z")

</div>

Can't Get Past "Couldn't Find Configuration"
Aloha all,  
  
I'm making a MySoju plugin for Plex. [MySoju](http://www.mysoju.com) is a [CJK](http://en.wikipedia.org/wiki/CJK) drama site that links flash video players from several other sites.   
  
So far, I've got a screen scraper that can load the site's Korean dramas, and enumerate the different parts into which they're split. Right now, I'm just trying to test on episodes hosted on MSN Soapbox. Even so, I cannot get the site configuration to recognize the MSN Soapbox flash app. For my test case, I'm trying to load [Part 1 of Episode 17 of the Korean Version of Boys Before Flowers](http://www.mysoju.com/boys-before-flowers/episode-17/part-1/).  
  
I assume the rest of the file doesn't matter for simply recognizing the flash app, but my Site Configuration file starts as:  
  

```auto

<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://*.mysoju.com" plugin="http://images.video.msn.com/" <br />
		initialState="playing" version="1.0">

```

  
  
So, anyway, when I navigate through my Plex app's menu and try to load Part 1 of Episode 17 of Boys Before Flowers, Plex Media Server.app outputs this text:   
  

```auto

Request: GET /video/:/webkit?url=http%3A%2F%2Fwww.mysoju.com%2Fboys-before-flowers%2Fepisode-17%2Fpart-1%2F&prefix=/video/mysoju<br />
 * url => http://www.mysoju.com/boys-before-flowers/episode-17/part-1/<br />
<br />
 * prefix => /video/mysoju<br />
<br />
WebKit: [mysoju.com/boys-before-flowers/episode-17/part-1/]<br />
Found corresponding plug-in: /Users/khakionion/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.khakifirst<br />
ERROR: Couldn't find configuration.

```

  
  
As far as I can tell, it looks like Plex is sending the correct URL to WebKit. There's no extra detail on \*\*\*why\*\*\* the configuration couldn't be found, but I can't see why my site/plugin attributes wouldn't match that page on MySoju.com.   
  
Any hints? Am I missing something uber-simple?  
  
Cheers, all! I've been having a surprising amount of fun developing this plugin.  
  
./Khakionion

---

<div class="post-metadata">

**Author:** ![Khakionion](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Khakionion](https://forums.plex.tv/u/Khakionion)\
**Post date:** [June 14, 2009, 8:49am UTC](https://forums.plex.tv/t/site-config-problem/2026/2 "2009-06-14T08:49:49Z")

</div>

Here are some screenshots, if you’d like to see the progress of the app:

[http://khakionion.com/imagedump/mysoju1.png](http://khakionion.com/imagedump/mysoju1.png)

  

[http://khakionion.com/imagedump/mysoju2.png](http://khakionion.com/imagedump/mysoju2.png)

  

[http://khakionion.com/imagedump/mysoju3.png](http://khakionion.com/imagedump/mysoju3.png)

  

[http://khakionion.com/imagedump/mysoju4.png](http://khakionion.com/imagedump/mysoju4.png)

---

<div class="post-metadata">

**Author:** ![jam](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jam/32/186050_2.png) [@jam](https://forums.plex.tv/u/jam)\
**Post date:** [June 14, 2009, 11:04am UTC](https://forums.plex.tv/t/site-config-problem/2026/3 "2009-06-14T11:04:32Z")

</div>

Welcome to the forum! The plugin’s looking great so far 🙂  
  
  
  
I think the problem lies with the “plugin” attribute in the site config. It needs to be a regular expression that matches the URL of an SWF player on the page.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [June 14, 2009, 6:49pm UTC](https://forums.plex.tv/t/site-config-problem/2026/4 "2009-06-14T18:49:52Z")

</div>

Looking great so far! The problem is with

```auto

site="http://*.mysoju.com"

```

  
  
The site attribute is a regular expression as Jam said, not a "glob", so you'll need it to read:  
  

```auto

site="http://.*\.mysoju.com"

```

  
  
Because "." means "match anything" and "\*" means "zero or more of the previous character.  
  
Hope that helps!

---

<div class="post-metadata">

**Author:** ![Khakionion](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Khakionion](https://forums.plex.tv/u/Khakionion)\
**Post date:** [June 14, 2009, 7:17pm UTC](https://forums.plex.tv/t/site-config-problem/2026/5 "2009-06-14T19:17:40Z")

</div>

> [@](#):
>
> Looking great so far! The problem is with
> 
> ```auto
> 
> site="http://*.mysoju.com"
> 
> ```
> 
>   
>   
> The site attribute is a regular expression as Jam said, not a "glob", so you'll need it to read:  
>   
> 
> ```auto
> 
> site="http://.*\.mysoju.com"
> 
> ```
> 
>   
>   
> Because "." means "match anything" and "\*" means "zero or more of the previous character.  
>   
> Hope that helps!

  
  
Hmm, still getting the same error. Using your regex, or simply hardcoding it to "http://www.mysoju.com", the server still prints out exactly the same output as before.

---

<div class="post-metadata">

**Author:** ![Khakionion](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Khakionion](https://forums.plex.tv/u/Khakionion)\
**Post date:** [June 14, 2009, 7:38pm UTC](https://forums.plex.tv/t/site-config-problem/2026/6 "2009-06-14T19:38:56Z")

</div>

Daaa, there was an XML parser error that was flying by in my Terminal window. All is well now!  
  
  
  
Just out of curiosity; can I put multiple tags in one XML file, or should I break them out into different files?  
  
  
  
Cheers!  
  
  
  
./Khakionion

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [June 15, 2009, 10:09pm UTC](https://forums.plex.tv/t/site-config-problem/2026/7 "2009-06-15T22:09:15Z")

</div>

> [@](#):
>
> Just out of curiosity; can I put multiple tags in one XML file, or should I break them out into different files?

  
  
Multiple site tags are no allowed. If it's an identical site you can probably express this "site A or site B" with a regular expression, otherwise you'll need multiple XML files.

---

<div class="post-metadata">

**Author:** ![Khakionion](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Khakionion](https://forums.plex.tv/u/Khakionion)\
**Post date:** [June 16, 2009, 4:06am UTC](https://forums.plex.tv/t/site-config-problem/2026/8 "2009-06-16T04:06:36Z")

</div>

> [@](#):
>
> Multiple site tags are no allowed. If it’s an identical site you can probably express this “site A or site B” with a regular expression, otherwise you’ll need multiple XML files.

  
Cool, I'll just use multiple files.

---

<div class="post-metadata">

**Author:** ![Zane01](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/zane01/32/928_2.png) [@Zane01](https://forums.plex.tv/u/Zane01)\
**Post date:** [May 4, 2010, 3:18am UTC](https://forums.plex.tv/t/site-config-problem/2026/9 "2010-05-04T03:18:52Z")

</div>

Did you ever finish this MySoju App???  
  
  
  
I really want it : )  
  
  
  
Thank You

---

<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, 8:28pm UTC](https://forums.plex.tv/t/site-config-problem/2026/10 "2019-12-20T20:28:03Z")

</div>

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