Commits

heliostatic committed cdb0f18

should eliminate fields where the author is a directory, the title is in the file name, but the series name and number are also in the file name

Comments (0)

Files changed (1)

lib/extensions/book_cleaner.rb

       fields = File.basename(path, ext)
       parent_directory = clean_field(File.dirname(self.fullpath).split('/').last)
       fields_array = split_fields(fields)
-      fields_array = clean_fields(fields_array)
       fields_array = add_parent_directory(fields_array, parent_directory)
+      fields_array = clean_fields(fields_array)
     end
 
     def split_fields(fields)