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

More precise matching #16

Closed
nanozuki opened this issue Jan 6, 2021 · 7 comments
Closed

More precise matching #16

nanozuki opened this issue Jan 6, 2021 · 7 comments
Assignees

Comments

@nanozuki
Copy link
Owner

nanozuki commented Jan 6, 2021

Search the tv anime "小魔女学园" in 2017 will match the movie "小魔女学园 魔法游行"; Search "リトルウィッチアカデミア" will match the OVA "小魔女学园" in 2013.

So,

  • We need a more precise matching method, maybe the year, even the month.
  • Should add some method to specify anime manually.
@laxect
Copy link
Collaborator

laxect commented Jan 6, 2021

So why not use tvshow.nfo(

@nanozuki
Copy link
Owner Author

nanozuki commented Jan 6, 2021

@laxect Parse XML and let a user write XML is too complexy. A user-friendly and program-friendly config file is better.
I plan to define a dantalian.toml in every anime folder.

@nanozuki
Copy link
Owner Author

nanozuki commented Jan 6, 2021

  • We need a more precise matching method, maybe the year, even the month:

User can add year or month in folder name:

小魔女学园 (2017)[BDRip]
小魔女学园 (201701)

@nanozuki
Copy link
Owner Author

nanozuki commented Jan 6, 2021

  • Should add some method to specify anime manually:

dantalian.toml in every folder:

subject = 185792
url = "https://bangumi.tv/subject/185792"
tv_anime_pattern = "^(?P<name>.+?) (?P<date>\(\d{4,6}\))(?P<tags> (\[[^\s]+\])+)?$"
episode_pattern = '^AnimeName (?P<sp>SP)?(?P<ep>[_\d]+)\..*$"
  • Subject id or URL to specify subject in bangumi.
  • tv_anime_patter is a regular expression with named captures, "name" to specify anime name, "date" for the premiered date, yyyy or yyyymm, "tags" for custom tags.
  • epidode_patter is a regular expression with named captures, "sp" to specify whether it's SP, "ep" for episode number.

@laxect
Copy link
Collaborator

laxect commented Jan 6, 2021

  • We need a more precise matching method, maybe the year, even the month:

User can add year or month in folder name:

小魔女学园 (2017)[BDRip]
小魔女学园 (201701)

Just use bgm id?

@nanozuki
Copy link
Owner Author

nanozuki commented Jan 6, 2021

@laxect you mean subject id in folder name? 小魔女学园 (185792). Sounds good.

@nanozuki nanozuki self-assigned this Feb 1, 2021
@nanozuki
Copy link
Owner Author

nanozuki commented May 1, 2021

closed by #25

@nanozuki nanozuki closed this as completed May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants