Issues with Site Config

IGN plugin rewrite
Back in the day my IGN plugin used direct video feeds. Oh how nice it was. Now they've redesigned the site and I need to use a Site Configuration. I'd be fine with that but what I think should be working is not and it's ***driving me crazy!*** :blink:

I'm on the latest version of Plex with Flash 10.2 and other plug-ins work, but I get sound and no video like when it wasn't compatible with the latest Flash. A part of me thinks it's a local issue to me but it happens on both my laptop and my Mini. The Config is really simple so I don't know what I could be missing.


<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://www.ign.com/videos/"<br />
      plugin="http://media.ign.com/ev/prod/embed.swf"<br />
      initialState="playing"<br />
      version="1.0"><br />
<br />
	<crop x="0" y="0" width="624" height="351" /><br />
	<br />
	<!-- PLAYING --><br />
	<state name="playing"><br />
		<event><br />
			<condition><br />
				<command name="pause" /><br />
			</condition><br />
			<action><br />
				<click x="312" y="175" /><br />
				<goto state="paused" /><br />
			</action><br />
		</event><br />
	</state><br />
	<br />
	<!-- PAUSED --><br />
	<state name="paused"><br />
		<event><br />
			<condition><br />
				<command name="play" /><br />
			</condition><br />
			<action><br />
				<click x="312" y="175" /><br />
				<goto state="playing" /><br />
			</action><br />
		</event><br />
	</state><br />
</site><br />



I see this in the log so I swear it should be matching correctly:

Mar 29, 2011 00:19:51 [0xb0aa7000] DEBUG - WebKit: [ign.com/videos/2011/03/24/batman-arkham-city-afterparty-thoughts]<br />
Mar 29, 2011 00:19:51 [0xb0aa7000] DEBUG - Found corresponding plug-in: /Users/Chris/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.ign<br />
Mar 29, 2011 00:19:51 [0xb0aa7000] DEBUG - Resetting to state playing<br />
Mar 29, 2011 00:19:51 [0xb0aa7000] DEBUG - Using /Users/Chris/Library/Application Support/Plex Media Server/Plug-ins/IGN.bundle/Contents/Site Configurations/ign.xml with score of 26.<br />
Mar 29, 2011 00:19:51 [0xb0a25000] DEBUG - LINE: HELLO<br />
Mar 29, 2011 00:19:52 [0xa0235540] DEBUG - Received title [Batman: Arkham City - Afterparty Thoughts Video - Xbox 360 - IGN].<br />
Mar 29, 2011 00:19:53 [0xa0235540] DEBUG - 0x27d1180 Plugin loaded [media.ign.com/ev/prod/embed.swf?0.636348768370226] (30 355 624 351 IGNPlayer)<br />




On one hand I really think it should be working but on the other if anyone tries it and it does work I don't know what to do on my end. Sigh. :unsure:


And if anyone's still reading :rolleyes: a quick Xpath question. How would you get the text here?

<br />
<p><br />
  <span>other text</span><br />
  text i want<br />
</p><br />



.findtext('p') returns blank for me, as does find('p').text

Thanks in advance!

I do not know about the site config issue, the xml seems ok, the problem may not be coming from the actual site config itself but possibly somewhere else.



As far as you Xpath question, you need to use



xpath(’//p’)[0].text_content()



.text will return the text immediately after the opening tag and before the next child, in you case, nothing!

.text_content() will return the entire text, ignoring all children(well returning their text as well iirc)

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