FTW-Entertainment-LLC / Fay-Ray

Fay & Ray are the autonomous bots for AnimeFTW. The bots will download, encode and upload episodes to AnimeFTW as they get released to the nyaa feed.
0 stars 0 forks source link

Finished episodes array duplicate entries #5

Closed hanimayahi closed 7 years ago

hanimayahi commented 8 years ago

Sometimes, bot-san will save the finished_episode values more than once, which makes the savefile have more than one entry for each episode. Should also make it sort the numbers.

I assume this also happens due to several encodes on 480, 720 and 1080p

Update: This is partially fixed, now it will only put an entry to the savefile if it's the highest encoded file that's done, but if 720p would upload faster than the 480p for whatever reason, it will save the episode as done. I want to update the structure of the savefile to include which quality is done, but this is not a priority right now

hanimayahi commented 7 years ago

This is fixed with #9