jeff-hughes / shellcaster

Terminal-based podcast manager built in Rust
GNU General Public License v3.0
199 stars 13 forks source link

Mismatch between the played episodes count & actually played episodes #10

Closed traxys closed 4 years ago

traxys commented 4 years ago

I'm sorry I have no more information on how I manage to create that issue, but I had a discrepancy between the played episodes count and the list of played episodes, the count was 0 but I had one unread episode. When I marked that episode as unplayed it underflowed the count

I have not managed to replicate that issue tough

jeff-hughes commented 4 years ago

It's not surprising that you ran into this -- the logic for counting played episodes is a bit fragile at the moment, I need to come up with a better way to manage it in general. At any rate, I'll see if I can replicate this issue. But even if not, I'll probably be ripping out that code and replacing it anyway. Thanks for reporting it!

jeff-hughes commented 4 years ago

I haven't been able to replicate this issue, but I have also revamped the code that tracks the count of played episodes, so this may correct the error. This code will be included in the next release. I'm going to consider this resolved for now, but feel free to reopen the issue if you still come across it.