Skip to content

Commit

Permalink
Don't find Mac versions on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marginal committed May 23, 2015
1 parent 7d823e0 commit 608dbc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions threadworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ def run(self):
soup = BeautifulSoup(result2)
for line in soup.findAll("table", { "id" : "files_list" }):
for row in line.findAll("tr", { "class" : "file" }):
if re.search("zip$", row['title'].strip()):
files.append(row['title'].strip()[9:-4])
match = re.search(r"EliteOCR\.([0-9\.]+)\.zip$", row['title'].strip())
if match:
files.append(match.group(1))

files.sort(reverse=True)

Expand All @@ -71,4 +72,4 @@ def run(self):
return

self.emit(SIGNAL("end()"))


0 comments on commit 608dbc3

Please sign in to comment.