Commit 749acabd authored by The Heavy's avatar The Heavy 🚂
Browse files

Trim the 'src attribute too long' output for readability.

parent 9259c01e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ if __name__ == '__main__':
                    log.warning('src attribute not long enough: {0}'.format(document[img_tag - 4:img_end_tag + 40]))
                    continue
                if len(url) > args.maxlen:
                    log.warning('src attribute too long (use -m if required): {0}'.format(document[img_tag - 4:img_end_tag + 40]))
                    log.warning('src attribute too long (use -m if required): {0}'.format(document[img_tag - 4:img_tag + args.maxlen]))
                    continue
                if url[:4] != 'http':
                    if url[:len(dest_folder.name)] == dest_folder.name or url[:11] == 'data:image/':