2011-10-19, 22:53
The http://www.magnetwebtv.ie is not loading. Might need to change over to aertv.ie.
Slatri Wrote:The http://www.magnetwebtv.ie is not loading. Might need to change over to aertv.ie.
lanre Wrote:i just put that as an issue on his googlecode page.
still loving the plugin!
def getEpisodes(self, showID):
# Load and read the URL
f = urllib2.urlopen(EPISODE_URL % (showID))
def getEpisodes(self, showID):
# Load and read the URL
# HACK: temp correct the showID
showID = showID.replace('http://tv3.ie/','')
f = urllib2.urlopen(EPISODE_URL % (showID))
liamf Wrote:This VODie plugin is really nice, thanks to the original developer.
I also have the TV3 issue.
OK, so first time poking about with the innards of an XBMC plugin and so forth, and probably not the cleanest solution, but the following makes this almost work:
in TV3Scrapper.py, in function getEpisodes(), change
Code:def getEpisodes(self, showID):
# Load and read the URL
f = urllib2.urlopen(EPISODE_URL % (showID))
to
that is, add in the single line which strips out the incorrect "http://tv3.ie/" which is being passed in to the episode finder.Code:def getEpisodes(self, showID):
# Load and read the URL
# HACK: temp correct the showID
showID = showID.replace('http://tv3.ie/','')
f = urllib2.urlopen(EPISODE_URL % (showID))
Have not even readthe XBMC plugin docs yet, so don't have the foggiest where the regex or call or whatever is which is fetching the showID. Because it would probably be cleaner to fix it there.
This makes quite a few shows work properly ... have not tried them all ...
HTH
Liam
REGEXP = '<a href="(.*?)" class="dropDown" title="(.*?)">(.*?)</a>'
REGEXP = '<a href="(?:http\://.+?/)?(.*?)" class="dropDown" title="(.*?)">(.*?)</a>'
liamf Wrote:Okey dokey
Will take a gander to understand a bit better what the plugin is doing.
Regex'es always strike me as closer to what you'd get by randomly bashing a keyboard with your head than actual code though. And so generally to be avoided if possible