diff options
author | James Simmons <jim@localhost.simmons> | 2009-05-17 22:51:21 (GMT) |
---|---|---|
committer | James Simmons <jim@localhost.simmons> | 2009-05-17 22:51:21 (GMT) |
commit | d3e0cb7679c996b37fd7904e4b0cccaa75549a79 (patch) | |
tree | d70b7c427820e1111723fcb697998ac1457e0a3c /gutextract.py | |
parent | 4c714f4dad205e858b54ea0d474c50f71f8f427b (diff) |
modified: ReadEtextsActivity.py
modified: gutextract.py
modified: readtoolbar.py
Continue working on a facility to download books using PG's offline
catalog file.
Diffstat (limited to 'gutextract.py')
-rwxr-xr-x | gutextract.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gutextract.py b/gutextract.py index 9bcdd15..67f29fd 100755 --- a/gutextract.py +++ b/gutextract.py @@ -46,7 +46,10 @@ def main(file_path): path = path + '/' + name + '/' + name line = line[0:73] line = line.rstrip() - line = line.replace(', by ', '|') + if line.find(', by ') > -1: + line = line.replace(', by ', '|') + else: + line = line + '| ' out.write(line + '|' + path + '\n') gut_file.close() out.close() |