Site Config Problem

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:


<?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:


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

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/mysoju2.png


http://khakionion.com/imagedump/mysoju3.png


http://khakionion.com/imagedump/mysoju4.png

Welcome to the forum! The plugin’s looking great so far :slight_smile:



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.

Looking great so far! The problem is with



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



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


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.

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



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.

Did you ever finish this MySoju App???



I really want it : )



Thank You

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