Bug Fixes: Removed limit on music dir, fixed issue with converting bytes to MBs

This commit is contained in:
Remy
2011-07-17 01:24:37 -07:00
parent 1009ecea2c
commit 803a924782
3 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ def today():
def bytes_to_mb(bytes):
mb = bytes/1048576
mb = int(bytes)/1048576
size = '%.1f MB' % mb
return size

View File

@@ -130,7 +130,7 @@ def searchNZB(albumid=None):
try:
url = item.link
title = item.title
size = int(item.links[1]['length'])
size = int(item.report_size)
if size < maxsize:
resultlist.append((title, size, url))
logger.info('Found %s. Size: %s' % (title, helpers.bytes_to_mb(size)))

View File

@@ -146,7 +146,7 @@ configform = form = '''
<td>
<br>
<p>Music Download Directory:</p><input type="text" name="download_dir" value="%s" size="60" maxlength="40"><br>
<p>Music Download Directory:</p><input type="text" name="download_dir" value="%s" size="60"><br>
<i class="smalltext">Absolute or relative path to the dir where SAB downloads your music<br>
i.e. Downloads/music or /Users/name/Downloads/music</i>