Tenma icon indicating copy to clipboard operation
Tenma copied to clipboard

Feature Request: Add option to append comicvine resource id to filename for better matching

Open ahahn94 opened this issue 6 years ago • 1 comments

Hi.

As the search-based matching is rather unstable I would suggest you add an option to specify the comicvine api resource id of a volume directly in the filename. This has 2 major advantages over the matching via search:

  • it saves at least one API call (the search), which makes importing of comics quicker
  • it lets users specify the exact resource they want to match to, which makes wrong matches nearly impossible

An example filename of a directory containing a volume could be "Batman (2016) {91273}", with "Batman 2016" being the volume name and year, "91273" being the resource id and "{}" being the delimiters of the id.

A similar approach could be used on the issues aswell. As it would be a rather painful process to gather the resource ids for every single issue, I would propose to use the issue number instead. An example filename of an issue could be "Batman 2016 - Issue 1 {01}".

This would realy help to speed things up and to reduce the time needed to fix bad matches when re-importing a collection.

ahahn94 avatar Aug 24 '18 12:08 ahahn94

Another option: Use some kind of config file to identify the volume. Maybe an .ini file with something like:

[Volume]
ID=91273

As the process for obtaining the issue number seems rather solid, just adding the resource id of the volume via the config file should be enough to improve matching and performance a lot. This would be much less invasive than my first suggestion.

Using isfile("volume.ini") and configparser, importing from the .ini file is only about 5 lines of code and can be decided on a per-directory basis, using the information from the directory name if the file is missing.

Sadly I do not have enough free time nor knowledge about Django, so I can not implement this by myself (at least for now).

Please let me know what you think about this.

Greetings from Germany.

ahahn94 avatar Sep 17 '18 09:09 ahahn94