louist87 / Scrappy

Python module to rename media collections based on scrapes from thetvdb.com. CLI and GUI tools, too!
27 stars 0 forks source link

Remove duplicates in Scrape.files #1

Closed louist87 closed 11 years ago

louist87 commented 11 years ago

Passing overlapping entries into the Scrape object will produce duplicates. For example, Scrape(["*.mkv", "some file.mkv"]) will produce two entries for some file.mkv, leading to an error when attempting to rename it for the second time.

This should be fixed by filtering with a defaultdict.