Site Configuration not loading

Hi,



I’m working on a new plugin and when I open a new video, I have this log.



Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Request: GET /video/:/webkit?url=http%3A%2F%2Fwww.radio-canada.ca%2Faudio-video%2Findex.shtml%23urlMedia%3Dhttp%3A%2F%2Fwww.radio-canada.ca%2Futil%2Fendirect%2FCBFTdirect.asx%26pos%3D0&prefix=/video/radiocanadalive [::ffff:127.0.0.1] (1 live)<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG -  * url => http://www.radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG -  * prefix => /video/radiocanadalive<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - WebKit: [radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0]<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Found corresponding plug-in: /Users/gcamp/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.radiocanadalive<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Could not find site configuration for http://www.radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0<br />
Apr 17, 2011 17:37:41 [0xb079d000] ERROR - ERROR: Couldn't find configuration.<br />
Apr 17, 2011 17:37:41 [0xb079d000] ERROR - WebKit: Could not initiate capture.



This is the content of my Site Configuration


<site  site="http://www.radio-canada.ca/*"<br />
       plugin="http://publique.radio-canada.ca/audio-video/player/flash/1.0/normal/player.swf"<br />
       initialState="playing"<br />
       version="1.0"><br />
       <br />
 <!-- PLAYING --><br />
 <state name="playing"><br />
  <event><br />
   <condition><br />
    <command name="pause" /><br />
   </condition><br />
   <action><br />
    <click x="15" y="304" /><br />
    <goto state="paused" /><br />
   </action><br />
  </event><br />
 </state><br />
 <!-- PAUSED --><br />
 <state name="paused"><br />
  <event><br />
   <condition><br />
    <command name="play" /><br />
   </condition><br />
   <action><br />
    <click x="15" y="304" /><br />
    <goto state="playing" /><br />
   </action><br />
  </event><br />
 </state><br />
</site>



I don't see anything wrong? Does somebody has an idea?

I have a github repo here : https://github.com/gcamp/Radio-Canada-Live---Plex-plugin

Hi!

It’s probably the * in the site attribute that’s the problem. In your case the * matches zero or more /'s. In this case you can just leave it out. I also like to suggest to make the plugin attribute a little less specific (in case they bump up the version number for example):



<site  site="http://www.radio-canada.ca"<br />
       plugin="http://publique.radio-canada.ca/audio-video.*player\.swf"<br />
       initialState="playing"<br />
       version="1.0"><br />


Thanks a lot sander1 for the suggestion.



However, that’s not it. I had placed that ‘*’ there because I had previously placed the full URL but that didn’t work. I was just trying other things.



I retried with the new Site configuration and still the same error in the console.



Most up to date Site Configuration

I’ve seem similar logs when there is an actual XML error in the file. When this has happened to me, I’ve found that the Plex Media Server.log (in ~/Library/Logs) will sometimes show more details of why it couldn’t use the Site Configuration file. Might be worth a scan as nothing obvious is jumping out.

One thing I can think of why your site config isn’t working, is because you don’t have a and element. I’m not sure if the seekbar element is required, but I wouldn’t be surprised if you can fix your problem by adding the crop element. Have a look at the site config from the NBC plugin to see how the elements should look like:

https://github.com/sander1/NBC.bundle/blob/master/Contents/Site%20Configurations/nbc.xml

Thanks everyone for the help.



I don’t know if that’s a bug in Plex or something I don’t understand in regular expressions, but the problem was in the site parameter. I tried with “www.radio-canada.ca”, without the “http://” and it worked.



Anyhow, it works now!

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