Anki add-on: File Fixer

File Fixer repairs broken local media references that can appear after pasting images or GIFs into Anki. Example: < img src="paste-... ." > becomes < img src="paste-....gif" > The add-on detects suspicious pasted media references, checks the matching file in collection.media, detects the real file type from the file bytes, and rewrites the note to the correct local filename. It runs: right after paste when a field loses focus after editing manually from Tools or the Browser Notes menu It is designed for malformed local media references such as missing extensions, trailing dots, and similar pasted-media filename issues. Remote URLs are ignored. Supported file detection includes GIF, PNG, JPEG, WEBP, SVG, BMP, ICO, TIFF, WAV, FLAC, OGG/Opus, MP3, MP4/M4A/MOV/AVIF, and WEBM/MKV. Note this was entiraly vibe coded. If you have any questions, you can email me at Orangeflash99@gmail.com