diff options
author | James Simmons <jim@localhost.simmons> | 2009-05-22 00:58:43 (GMT) |
---|---|---|
committer | James Simmons <jim@localhost.simmons> | 2009-05-22 00:58:43 (GMT) |
commit | 7ce103811119341300fa6d73d3035288ee64e27d (patch) | |
tree | 369ecc6760d8ac7ad7aaf90e9b8fce1333326f47 /gutextract.py | |
parent | 96827983ff2f4db68041ff0c053fe967a12b9319 (diff) |
modified: ReadEtextsActivity.py
modified: gutextract.py
modified: help.txt
Attempt to allow downloading of older filenames.
Diffstat (limited to 'gutextract.py')
-rwxr-xr-x | gutextract.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gutextract.py b/gutextract.py index 67f29fd..d2dc691 100755 --- a/gutextract.py +++ b/gutextract.py @@ -51,6 +51,16 @@ def main(file_path): else: line = line + '| ' out.write(line + '|' + path + '\n') + elif line[77].isdigit() and line.find("Audio:") < 0 and line[59] == '[': + path = '/etext' + line[6:8] + '/' + line[60:65] + path = path.replace('?', '8') + line = line[9:59] + line = line.rstrip() + if line.find(', by ') > -1: + line = line.replace(', by ', '|') + else: + line = line + '| ' + out.write(line + '|' + path + '\n') gut_file.close() out.close() print "All done!" |