def update_links_and_ffts(self):
for field in record_get_field_instances(self.record,<EOL>tag='<STR_LIT>',<EOL>ind1='<STR_LIT:4>'):<EOL><INDENT>subs = field_get_subfields(field)<EOL>newsubs = []<EOL>url = subs.get("<STR_LIT:u>", [])<EOL>if not url:<EOL><INDENT>record_delete_field(self.record, '<STR_LIT>', ind1='<STR_LIT:4>',<EOL>field_position_global=field[<NUM_LIT:4>])<EOL>continue<EOL><DEDENT>url = url[<NUM_LIT:0>]<EOL>if "<STR_LIT>" in url and url.endswith("<STR_LIT>"):<EOL><INDENT>newsubs.append(('<STR_LIT:a>', url))<EOL>description = subs.get("<STR_LIT:y>", [])<EOL>if description:<EOL><INDENT>newsubs.append(('<STR_LIT:d>', description[<NUM_LIT:0>]))<EOL><DEDENT>if newsubs:<EOL><INDENT>record_add_field(self.record, '<STR_LIT>', subfields=newsubs)<EOL>record_delete_field(self.record, '<STR_LIT>', ind1='<STR_LIT:4>',<EOL>field_position_global=field[<NUM_LIT:4>])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for idx, (key, value) in enumerate(field[<NUM_LIT:0>]):<EOL><INDENT>if key == '<STR_LIT:w>':<EOL><INDENT>del field[<NUM_LIT:0>][idx]<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
FFT (856) Dealing with files.