mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fix get size bug. Fixes #1306
This commit is contained in:
parent
3996147fb4
commit
d7b44659cf
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ def par2(dirname):
|
|||
objects = os.listdir(dirname)
|
||||
for item in objects:
|
||||
if item.endswith(".par2"):
|
||||
size = os.path.getsize(item)
|
||||
size = os.path.getsize(os.path.join(dirname, item))
|
||||
if size > sofar:
|
||||
sofar = size
|
||||
parfile = item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue