[RELEASE] HowStuffWorks.com
#7
The plugin can be fixed with a minor correction to the regular expression in the playVideo function

diff --git a/default.py b/default.py
index 0c1cccf..9712eda 100644
--- a/default.py
+++ b/default.py
@@ -167,7 +167,7 @@ def listSearch(url):

def playVideo(url):
content = getUrl(url)
- match = re.compile("m3u8 : '(.*?)'", re.DOTALL).findall(content)
+ match = re.compile("m3u8[^:]*: '([^']*)'").findall(content)
finalUrl = match[0]
if finalUrl:
listitem = xbmcgui.ListItem(path=finalUrl)


At least this works for 14, not sure about Gotham, I wll have to try my other machine.

I saved the commit to my github for safe keeping. I need to figure out how to get it to the author

https://github.com/pellcorp/xbmc-plugins...7038929759
Reply


Messages In This Thread
RE: [RELEASE] HowStuffWorks.com - by ab1x - 2012-08-12, 00:08
RE: [RELEASE] HowStuffWorks.com - by JasonPell - 2014-11-26, 15:35
Logout Mark Read Team Forum Stats Members Help
[RELEASE] HowStuffWorks.com1