2011-02-27, 19:14
amet Wrote:2.3.4 is on GitHub, if you care to try it and let us know. I will push to official repo if all is in order.
Code:2.3.4
- fixed: On Unix some services failed in using the unpacked subtitle file
- added: more tvshow regex for file mode search
I think the changes has been made in the wrong place.
Downloaded rar/zip file should be ignored when setting timestamp of the newest existing file in the folder.
Code:
# determine the newest file from tmp_sub_dir
for file in files:
mtime = os.stat(os.path.join(tmp_sub_dir, file)).st_mtime
if (string.split(file,'.')[-1] in ['srt','sub','txt']) and (mtime > max_mtime):
max_mtime = mtime
init_max_mtime = max_mtime
#time.sleep(2) # wait 2 seconds so that the unpacked files are at least 1 second newer