darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
301 stars 28 forks source link

[VNDB Nexus] Space after tag prefix is sometimes trimmed #569

Closed nikolay-borzov closed 1 week ago

nikolay-borzov commented 4 weeks ago

Extension name

VNDB Nexus

Bug Description

Trailing spaces in tag prefixes (except for "Content") are sometimes trimmed.

Consider settings for tags (notice spaces in the end):

Content Prefix: [Content] Technical Prefix: [Techical] Sexual Prefix: [Sexual]

But when metadata's fetched through "VNDB Nexus" I see:

image

Some tags are missing space between prefix and tag

To Reproduce

  1. Go to Add-ons... > Extensions settings > Metadata Sources > VNDB Nexus
  2. Check Metadata fields to obtain > Tags
  3. Check Import for Content, Technical, Sexual
  4. Set prefixes with space at the end [Content], [Techical], [Sexual]
  5. Save settings
  6. Find a game that has page on VNDB or Add "Welcome To... Chichester OVN 1 : The Beach" game to library
  7. Edit the game and click Download Metadata... > VNDB Nexus
  8. Examine suggested tags

Logs

playnite.zip extensions.zip

Screenshots

image

nikolay-borzov commented 3 weeks ago

Nevermind. It seems extension remembers assigned tags' IDs, so new suggested tags has the same name as existing ones

darklinkpower commented 3 weeks ago

That's very weird. The extension doesn't remember any id, it basically gives Playnite the list with the name of the tags to import and trimming is never performed. It just joins/concatenates the text you have configured with the name of the tag so in theory it should not be possible to have differences in the tags: https://github.com/darklinkpower/PlayniteExtensionsCollection/blob/6ed1af21528a4349c53e0495556ef85b3509615b/source/Metadata/VNDBNexus/VNDBNexusMetadataProvider.cs#L569

I also just checked and I can't reproduce the issue with the problematic tags in your screenshot:

image

What font are you using? I'm wondering if the issue is that the font you are using is not displaying the space properly despite being there, although that would be weird. If the issue remains please let me know.

nikolay-borzov commented 3 weeks ago

I use font Jet Brains Mono.

There is no issue indeed.

Thanks for clarification!