Eltaurus-Lt / CourseDump2022

Google Chrome extension to download Memrise courses as csv files
88 stars 7 forks source link

Limiting number of media files #40

Open NeoMD96 opened 6 months ago

NeoMD96 commented 6 months ago

Hey! I think your plug-in is wonderful and really helpful. But is there any way to limit the number of mp3 files or videos files to 1 learnable term? With the new courses on memrise, it doesn't, for example, make much sense to have 10 people telling me how to say hola.

If not, would it be possible for each mp3/mp4 file to parsed into multiple columns so that I can just delete them from the csv file?

Eltaurus-Lt commented 6 months ago

You can process your CSV file with this replacement option: regexr.com/7q8vi Open your file in a text editor and copy-paste the contents into the Text section there. Then copy the result from the bottom Tools [Replace] and replace the content of your original file with it (or better create a new CSV file just to be safe).

Alternatively, you can edit the CSV file directly with any editor that supports regular expressions, like VS Code or Sublime.

If you are importing the spreadsheet into Anki you can run Tools->Check Media->Delete Unused to automatically remove all unreferenced media files from the collection.media folder after the import.