Absolute Series Scanner (for anime mainly)

I apologize if this has been answered somewhere I couldn’t find. I’m using youtubedl with your agent and scanner to archive some youtube channels. Everything works great except for episode number assignment. What this results in is the incorrect posters per episode. In the hama log I can see it identify something and for example assign episode 3 and dl all the metadata correct for the episode, then another episode will show up in the folder and it will shuffle episode numbers so what was episode 3 is now 5, and the new episode is 3. Still all the metadata is correct except the poster for 3 is wrong, when looking at the episode details, the correct poster is there, but not selected. In the end what was episode 3 is now 211 so a lot of posters to have to fix manually. How can I avoid this? If I remove and readd the episodes it just goes through the same process.