z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
779 stars 81 forks source link

Rescan an anime when trying to play its next episode #433

Open felipe5 opened 5 years ago

felipe5 commented 5 years ago

Currently when I have the last episode of an anime but the library has not been updated yet, I'll get an error "Episode not in library" if I try to play it by clicking on "Play next episode". Maybe it could be better if it tries to scan it before sending the error, like Taiga does.

Example here trying to play episode 7: Screenshot_20190523_043320

z411 commented 5 years ago

So would you want a flow like this?

Episode in library -> Play it Episode not in library -> Rescan Library -> Try again once

Or do you prefer something more complex?

As a side note, the inotify trackers should add new episodes to the library automatically, so if you're using that this shouldn't be happening.

felipe5 commented 5 years ago

So would you want a flow like this?

Episode in library -> Play it Episode not in library -> Rescan Library -> Try again once

Yes, but maybe the rescan should be for that specific anime, not the whole library.

Or do you prefer something more complex?

As a side note, the inotify trackers should add new episodes to the library automatically, so if you're using that this shouldn't be happening.

I tried with inotify (was using pyinotify), it didn't work, got the same error :(