2011-08-17, 22:38
DragonWin Wrote:Hey T0mm0
I think I found out what's wrong with the putlocker plugin
The submit on the page is different from the one that's in the plugin. It looks like they have multiple ways they present the streaming pages.
Here is the url taken from the debug output when it was added by the plugin (removed the url encoding)
http://www.putlocker.com/embed/B28AE94A046F58F1
Web page source
Code:<input type="hidden" value="1fb066322ff81229" name="hash">
<input name="confirm" type="submit" value="Close Ad and Watch as Free User" class="confirm_button" style="width:250px;">
Plugin code
Code:try:
self.net.http_POST(web_url, form_data={'hash': session_hash,
'confirm': 'Continue as Free User'})
except urllib2.URLError, e:
The submit value is different
I'm off again need some sleep before catching the plane tomorrow morning, I'll check here before I make changes to the putlocker plugin to see if you have changed it.
ah, looks like we just need to scrape the value of the submit button too then? i'll take a quick look now and see if that sorts it out.
edit: actually just committed the fix - the problem was that to get the url for the xml file to grab i was searching and replacing on 'file', but that didn't do anything when the url was an 'embed' url instead. changed now to look for 'file' or 'embed'. i also changed valid_url() to return True for both putlocker and sockshare urls and removed the sockshare plugin.
thanks,
t0mm0