Skip to content

Improve to process lots of roms #2

@ronilaukkarinen

Description

@ronilaukkarinen

Hello! I love your tool. However in a ROM folder that has over 5000 roms the script crashes:

rolle@retropc:~/RetroPie/roms/c64$ clean_roms --rom_dir .
using cached list from: roms.txt
Traceback (most recent call last):
  File "/usr/local/bin/clean_roms", line 159, in <module>
    all_roms.add_rom(Rom(full_path_filename))
  File "/usr/local/bin/clean_roms", line 63, in __init__
    self.base_filename = self.describe_rom(full_path_filename)
  File "/usr/local/bin/clean_roms", line 84, in describe_rom
    ret_tokens.append(ret_base_filename[s_p[i]:e_p[i] + 1])
IndexError: list index out of range

Can you update the script so that it handles larger amount of roms?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions