Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support detecting anime on title metadata #751

Open
barraIhsan opened this issue Jan 10, 2025 · 3 comments
Open

[Feature Request] Support detecting anime on title metadata #751

barraIhsan opened this issue Jan 10, 2025 · 3 comments

Comments

@barraIhsan
Copy link

barraIhsan commented Jan 10, 2025

While the usual format of downloaded anime usually includes the anime name (either romaji or english title) in the filename itself, so e.g. Frieren - S1E01.mkv, there's however some provider that distribute anime with a weird formatting, like only episode information on the filename

S01E01-Like a Lone Sword [E2514310].mkv

or just a hard, and unusual filename such as

0Otakudesu_ToniKawa--01_720p.mp4

Do note however that those files have a title metadata inside and the format is

Wistoria-Wand.and.Sword.S01E01.1080p.Dual.Audio.WEBRip.10.bits.DD+.x265-EMBER

However, trackma doesn't extract title metadata for detection, and it would be really helpful to detect if somehow the title metadata is giving a lot more information (which usually do) than the filename

@barraIhsan
Copy link
Author

image
Owh, I'm dumb.

Support for title metadata would be really helpful tho, im changing the title

@barraIhsan barraIhsan changed the title [Feature Request] Support detecting anime under a directory [Feature Request] Support detecting anime on title metadata Jan 10, 2025
@barraIhsan barraIhsan changed the title [Feature Request] Support detecting anime on title metadata [Feature Request] Support detecting anime on title metadata and on english title Jan 10, 2025
@barraIhsan barraIhsan changed the title [Feature Request] Support detecting anime on title metadata and on english title [Feature Request] Support detecting anime on title metadata Jan 10, 2025
@FichteFoll
Copy link
Collaborator

FichteFoll commented Jan 11, 2025

Which tracker are you currently using and which OS? The mpris tracker prefers the title currently and I think plex and jellyfin do as well. For the strictly file-based ones, suche as inotify and polling, we could probably add metadata inspection via mediafile, an external dependency.

Either way, I occasionally get the opposite situation where the file name is easier to recognize because the title has the episode name in it, so I've been meaning to make a configuration option for it but haven't gotten around to it because it requires touching all UIs, which I've been trying to avoid unless necessary (I personally just use the CLI).

@barraIhsan
Copy link
Author

barraIhsan commented Jan 11, 2025

Which tracker are you currently using and which OS?

Arch, auto-detect so it should be using inotify by default

The mpris tracker prefers the title currently and I think plex and jellyfin do as well. For the strictly file-based ones, suche as inotify and polling

Owh yea, I tried with MPRIS (on mpv, using the mpv-mpris plugin) and it detected from the title. Yea, however the inotify—the one that got selected by default when you choose auto detect—is checking on the filename instead of the title metadata

we could probably add metadata inspection via mediafile, an external dependency.

did you mean mediainfo?

Either way, I occasionally get the opposite situation where the file name is easier to recognize because the title has the episode name in it, so I've been meaning to make a configuration option for it but haven't gotten around to it because it requires touching all UIs, which I've been trying to avoid unless necessary (I personally just use the CLI).

Yea, sometimes the title metadata is used as a... well title. So It'll probably contain something like E01 - Episode Name or something in similar, just like what ani-cli does. (They're using --force-media-title)
image

But its not always the case, just like these one
image

So my idea would be, check the filename first, then the title metadata second. As doing such, will gather a lot more info about the video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants