erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.08k stars 222 forks source link

Check contained files before setting anime folder #352

Open momentary0 opened 7 years ago

momentary0 commented 7 years ago

Would be possible to filter the file scanning by file extension?

For example, currently Taiga is detecting my light novel folders of Spice and Wolf and A Certain Magical Index as their anime shows, when they're in different folders.

I can manually set the folders, but I think this could be easily prevented by checking the file extension of the detected files (pdf vs mkv/mp4/etc.) before auto-selecting that folder.

erengy commented 7 years ago

Taiga does check the extensions while scanning for available episodes, so than it can skip irrelevant files. However, when it encounters directories, it doesn't check what's in them. If its name matches to an anime, it may be automatically set as the anime folder.

As with #70, #187 and #202, this feature requires a more elaborate file management system and a significant change in how searches are performed. I'm afraid I don't have much planned in this area for the near future. For now, I'd suggest that your library folders should consist of nothing more than anime video files (actually, no matter how smart Taiga gets, this will always be the ideal situation).

momentary0 commented 7 years ago

Ah, I see. I'd noticed that the pdf's weren't recognised as episodes.

In regards to the file searching system, my thoughts are that it could first scan for the episode files in the library folder, then set their parent directory as the anime folder. However, I don't know how feasible this would be in practice. It might also break on some corner cases.

I'd grouped the files together, since the anime is just an adaptation of the novel, but if that's causing problems I'll just reorganise them.