neonrust / epm

Command-line TV episode calendar/manager/scheduler/tracker (EPisode Manager)
MIT License
0 stars 0 forks source link

Defer refresh until (and if) actually needed. #12

Closed neonrust closed 2 years ago

neonrust commented 2 years ago

Currently, most commands will do a refresh_series(), regardless of it being required or not. This seems a bit unnecessary.

For example, printing a list where no series are stale -> no refresh required at all. More specifically, printing the list should proceed "as long as" no refresh is needed, then if a stale series is encountered, do the refresh call as usual, then continue printing the list.