Skip to content

Commit

Permalink
Download count is no longer present, do not try to parse it
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Feb 26, 2014
1 parent c242f54 commit 859ed20
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions render.py
Expand Up @@ -297,17 +297,11 @@ def dom2release(self, item, theme=False):
featured = (FILES_REGEXP.match(filename) is not None)
if featured:
helper.log.dbg('Release is featured!')
try:
dlcount = item.getElementsByTagName(
'files:download-count'
)[0].childNodes[0].data
except DOMException:
dlcount = None
try:
notes = item.getElementsByTagName(
'files:release-notes-url'
)[0].childNodes[0].data
except DOMException:
except (DOMException, IndexError):
notes = ''
media = item.getElementsByTagName('media:content')[0]
size = media.getAttribute('filesize')
Expand Down Expand Up @@ -336,7 +330,6 @@ def dom2release(self, item, theme=False):
'size_k': int(size) / 1024,
'size_m': int(size) / (1024 * 1024),
'humansize': fmt_bytes(size),
'dlcount': dlcount,
'md5': md5
}

Expand Down

0 comments on commit 859ed20

Please sign in to comment.