works in emulator and not xbox
#1
i'm working on my first script (first post too) and have this problem and no ideas. the goal with this script is basicly a container for other scripts with a little extra.

now, adding google video causes a problem on the xbox, but not when testing with the emulator.

here is the offending code, it is getting stuck with the progress at about 60%

Quote: def popgvlist(self):
print("reading google videos...")
progress.create("google videos", "loading popular 100...")
progress.update(1)

html_data = self.gethtmldata("http://video.google.com/videopopularpage?num=100")
progress.update(10)
tmpprogress = 10

# select video links with a regular expression
googlevideolinkre = re.compile(r'<div class="thumbtitle"> <a href="videoplay\?docid=(?p<url>[^"\'<>]+)"?[^>]+>(?p<title>.+?)</a>')
video_links = googlevideolinkre.findall(html_data)

# store compiled regular expressions
videourl_re = re.compile("url:(?p<url>[^\"\'<>]+)docid:")
#tagre = re.compile('<.+?>')-------tagre.sub('', link_data[1])

# iterate through matches
for link_data in video_links:
html_data = self.gethtmldata("http://video.google.com/videogvp?docid=" + link_data[0])
# get real url
videourl = videourl_re.search(html_data)
if tmpprogress < 100:
if emulating: print("popgvlist progress: " + str(tmpprogress))
tmpprogress = tmpprogress + 1
progress.update(tmpprogress)
if videourl != 'none': gvlist.append(listorg(link_data[1], videourl.group('url')))
else: print("skipped gv: " + link_data[1])
progress.close()

thanks for any ideas.
Reply

Logout Mark Read Team Forum Stats Members Help
works in emulator and not xbox0