diff options
Diffstat (limited to 'lib/misc.py')
| -rw-r--r-- | lib/misc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/misc.py b/lib/misc.py index ce14313..f846388 100644 --- a/lib/misc.py +++ b/lib/misc.py | |||
| @@ -2,7 +2,7 @@ import hachoir_core | |||
| 2 | import parser | 2 | import parser |
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | class TorrentStripper(parser.Generic_parser): | 5 | class TorrentStripper(parser.GenericParser): |
| 6 | ''' | 6 | ''' |
| 7 | A torrent file looks like: | 7 | A torrent file looks like: |
| 8 | -root | 8 | -root |
| @@ -21,8 +21,7 @@ class TorrentStripper(parser.Generic_parser): | |||
| 21 | if self._should_remove(field): | 21 | if self._should_remove(field): |
| 22 | #FIXME : hachoir does not support torrent metadata editing :< | 22 | #FIXME : hachoir does not support torrent metadata editing :< |
| 23 | del self.editor['/root/' + field.name] | 23 | del self.editor['/root/' + field.name] |
| 24 | hachoir_core.field.writeIntoFile(self.editor, | 24 | hachoir_core.field.writeIntoFile(self.editor, self.output) |
| 25 | self.filename + parser.POSTFIX) | ||
| 26 | self.do_backup() | 25 | self.do_backup() |
| 27 | 26 | ||
| 28 | def is_clean(self): | 27 | def is_clean(self): |
