#Can't get collection to adopt poster from asset folder.

1 messages · Page 1 of 1 (latest)

topaz dawn
#

Sorry for the dupe....I thought I had it figured out, but then it didn't work again. Although I suspect I'm not crossing my Ts and dotting my Is.

I've created a few collections with their own asset folders. My other collections work fine, including changing the artwork for some of the default collections.

But one isn't updating the metadata (according to the log) after Kometa runs. My other collection logs all finish with "1 poster found....no updates needed." But my Bond collection is doing something different than the others and I've got no idea what it is.

When I changed the collection name to "Bond" and used Bond as the folder name, it worked. But with the collection as "James Bond" and the folder James Bond, it doesn't.

ruby bluffBOT
#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

#

📝 If you want to review this again, cokrocord:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#

Welcome @topaz dawn!

Thanks for being a Kometa Sponsor, we greatly appreciate it! Your ticket will now be diverted to <@&1097919568334311495> and <@&938443185347244033>.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

ruby bluffBOT
#

📝 If you want to review this again, antwanchild:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: Antwan
Person who Invoked the Command: Antwan
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: Kometa Info
Page 03: Kometa Summary Info
Page 04: Kometa Config.yml YAML Validation
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Rec 01 - ❌ [ERROR]
Page 08: Rec 02 - ❌⏰ KOMETA SCHEDULED TIME CONFLICT
Page 09: Rec 03 - ⚠️ [WARNING]
Page 10: Rec 04 - 💬 CONVERT WARNING
Page 11: Rec 05 - 💬💡️ PLEX DB CACHE ADVICE

lapis badge
#
      - file: plexassets/collections/batman.yml
        assets_directory: plexassets/collections/Batman
      - file: plexassets/collections/bond.yml
        assets_directory: plexassets/collections/James Bond
      - file: plexassets/collections/indianajones.yml
        assets_directory: plexassets/collections/Indiana Jones
      - file: plexassets/collections/spiderman.yml
        assets_directory: plexassets/collections/Spiderman``` is not correct
ruby bluffBOT
#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

lapis badge
#

should be asset_directory:

topaz dawn
#

Noted. Out of curiosity, though, why is it working for the other ones?

leaden canyon
topaz dawn
#

Ok. So I've got a conflict there. Got it. Again, just out of curiosity, if the collections will get their asset from the folder set in settings: asset_directory, why do I need to specify the sub-folder for the collection's assets? Won't it just look for the sub-folder with the same name as the asset? (Sorry, went from blurry eyed overtired to half-asleep, not enough coffee yet).

leaden canyon
#

You don't need to specify the sub-folder

#

Based on your setup it will get it from the library-level asset folder plexassets/collections

topaz dawn
#

Ok. Now I need to remember why I started with the subfolders to begin with.

leaden canyon
#

if you have asset_folders: true then Kometa will look in your asset directory (plexassets/movieassets / plexassets/collections) for a dedicated folder for each collection/movie etc.

#

Doing that, you no longer need to specify the asset director for each yaml file

topaz dawn
#

Ah. I probably started that before I started with the full asset folders.

leaden canyon
#

unless the YAML file doesn't use one of your library or global-level asset directories, but in this case it seems liek tehy do.

topaz dawn
#

last (I hope) question on this one issue....when I changed the directory to "asset_directory" rather than "assets", it started creating sub-folders within the collection folders I already had. Is that from specifying the sub-folder in the collection setting?

#

sorry, I realize that question reads like word salad.

leaden canyon
#

so you're specifying for example

      - file: plexassets/collections/bond.yml
        assets_directory: plexassets/collections/James Bond

I'm guessing under settings you also have:

settings:
  asset_folders: true
  create_asset_folders: true
topaz dawn
#

yes.

leaden canyon
#

so you're telling it to create the asset folder within plexassets/collections/James Bond

#

which would be plexassets/collections/James Bond/James Bond

topaz dawn
#

that makes sense. thank you.

leaden canyon
#

No worries

topaz dawn
#

I'm still having an issue. I commented out the asset_directory for the collections. ``` - file: plexassets/collections/batman.yml

asset_directory: plexassets/collections/Batman

  - file: plexassets/collections/bond.yml

asset_directory: plexassets/collections/James Bond

  - file: plexassets/collections/indianajones.yml

asset_directory: plexassets/collections/Indiana Jones```

and turned off the create asset folders.

    settings:
      asset_directory:
        - plexassets/movieassets
        - plexassets/collections
      create_asset_folders: false```
#

But it still doesn't want to grab the poster.jpg for the James Bond collection.

#

but at least I can see that its looking at the metadata

|                                                                                                    |
| Collection Metadata Edits                                                                          |
| Label | +Kometa                                                                                    |
| Metadata: Update Completed                                                                         |
|                                                                                                    |
| Collection Order | custom   ```
#

But its not doing the same thing as my other collections, like Indiana Jones.

|                                                                                                    |
| Collection Metadata Edits                                                                          |
| 1 poster found:                                                                                    |
| Method: asset_directory Poster: {'attribute': 'asset_directory', 'location': '/plexassets/collections/Indiana Jones/poster.png', 'prefix': "Indiana Jones's ", 'is_poster': True, 'is_url': False, 'compare': 2645692, 'message': "Indiana Jones's poster to [File] /plexassets/collections/Indiana Jones/poster.png"} |
| Metadata: Indiana Jones's poster update not needed     ```
leaden canyon
#

Do you have /plexassets/collections/James Bond/poster.ext

topaz dawn
#

poster.jpg, yeah.

leaden canyon
#

If you go to edit the collection within Plex, and go to the posters section, is it appearing in there just unselected maybe?

topaz dawn
#

...which worked when I named the collection "Bond" but not "James Bond"

#

poster not in plex.

lapis badge
#

when i look at your James Bond file, i think there was only one space in front of James Bond, instead of the normal 2.
in addition, did you make sure there isn't a trailing space in the title of the collection?

topaz dawn
#

I'll check the spaces. But when I change the folder name to "Bond" and the collection to "Bond" it works.

|                                                                                                    |
| Collection Metadata Edits                                                                          |
| Label | +Kometa                                                                                    |
| Metadata: Update Completed                                                                         |
|                                                                                                    |
| Collection Order | custom                                                                          |
| 1 poster found:                                                                                    |
| Method: asset_directory Poster: {'attribute': 'asset_directory', 'location': '/plexassets/collections/Bond/poster.jpg', 'prefix': "Bond's ", 'is_poster': True, 'is_url': False, 'compare': 507432, 'message': "Bond's poster to [File] /plexassets/collections/Bond/poster.jpg"} |
| Metadata: asset_directory updated Bond's poster to [File] /plexassets/collections/Bond/poster.jpg ```
lapis badge
#

could be cached?

topaz dawn
#

Where would I clear that cache? I see the same thing on different computers with different browsers.

leaden canyon
#

try deleting the collection in Plex

#

If that doesn't work try deleting your config.cache file (which is what Antwan is referring to)

topaz dawn
#

OK. I've deleted the collections a few times to make sure I was seeing the latest config.yml updates. I'll delete the config.cache as well and re-run.

leaden canyon
#

Can you post the file that creates the collection as well

#

I'm guessing that's plexassets/collections/bond.yml 😄

topaz dawn
#
 James Bond:
    imdb_list: https://www.imdb.com/list/ls006405458
    collection_order: custom
#    sync_mode: sync```
leaden canyon
#

oh that's simple enough 😄

topaz dawn
ruby bluffBOT
#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

topaz dawn
#

I tried 'James Bond' as well, but no luck

leaden canyon
#

just to rule out the spacing, make it:

collections:
  James Bond:
    imdb_list: https://www.imdb.com/list/ls006405458
    collection_order: custom
    # sync_mode: sync
topaz dawn
#
|                                                                                                    |
| Collection Metadata Edits                                                                          |
| Label | +Kometa                                                                                    |
| Metadata: Update Completed                                                                         |
|                                                                                                    |
| Collection Order | custom  ```
#

Does it matter that the "James" is showing up in white

lapis badge
#

you could try wrapping "James Bond" in quotes like so

leaden canyon
#

do a trace run as well

obsidian silo
leaden canyon
#

(add --trace to your run command)

topaz dawn
#

I'm using nano

leaden canyon
#

trace run should tell us exactly what's happening

topaz dawn
#

ok. stand by.....

obsidian silo
topaz dawn
ruby bluffBOT
#

📝 If you want to review this again, cokrocord:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

leaden canyon
#

ty

#

well that didn't help 😄

#

out of interest, does this work?

collections:
  James Bond:
    imdb_list: https://www.imdb.com/list/ls006405458
    collection_order: custom
    file_poster: /plexassets/collections/James Bond/poster.jpg
    # sync_mode: sync
topaz dawn
leaden canyon
#

Log please

topaz dawn
#

1 sec.

ruby bluffBOT
#

📝 If you want to review this again, cokrocord:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

leaden canyon
#
Method: file_poster Poster: /plexassets/collections/James Bond/poster.jpg                    
Metadata: file_poster updated poster to [File] /plexassets/collections/James Bond/poster.jpg 
#

It says it's updated it

topaz dawn
#

yep. that works.

leaden canyon
#

I have literally 0 idea why it wasn't working 🤣

topaz dawn
#

MARVELOUS.

#

at least I know I wasn't crazy.

leaden canyon
#

If I had to guess

#

you have -co (Collections Only) in your run command, so the operation for assets_for_all isn't being respected

#

That's a complete stab in the dark

topaz dawn
#

I was just trying to get it to run quicker while working on the collections.

leaden canyon
#

You could delete the collection and the file_poster and do a run without -co if you wanted to, but if it's working you're welcome to just leave it as is 😛

topaz dawn
#

I'll give it a shot just to find out.

topaz dawn
#

so when I comment out the "file poster" line, it does not use the poster.

ruby bluffBOT
#

📝 If you want to review this again, cokrocord:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

topaz dawn
obsidian silo
#

I can't reproduce this.

bond-test.yml:

collections:
  James Bond:
    imdb_list: https://www.imdb.com/list/ls006405458
    collection_order: custom
#    sync_mode: sync

config.yml:

libraries:
  Kometa-Demo-Movies:
    collection_files:
      - file: config/bond-test.yml

settings:
  asset_directory:
  - config/assets/movies/
  - config/assets/shared/
  show_missing_assets: true
  asset_folders: true
  create_asset_folders: true
  prioritize_assets: true
  asset_depth: 2
  dimensional_asset_rename: true
  download_url_assets: false
  show_asset_not_needed: true
  show_missing_season_assets: false
  show_missing_episode_assets: false

Asset dir:

 find config/assets/movies
config/assets/movies
config/assets/movies/James Bond
config/assets/movies/James Bond/poster.png

log:

|============================ Updating Metadata of James Bond Collection ============================|
|                                                                                                    |
| Collection Metadata Edits                                                                          |
| Label | +Kometa                                                                                    |
| Metadata: Update Completed                                                                         |
|                                                                                                    |
| Collection Order | custom                                                                          |
| 1 poster found:                                                                                    |
| Method: asset_directory Poster: {'attribute': 'asset_directory', 'location': '/home/chaz/kometa/config/assets/movies/James Bond/poster.png', 'prefix': "James Bond's ", 'is_poster': True, 'is_url': False, 'compare': 32772, 'message': "James Bond's poster to [File] /home/chaz/kometa/config/assets/movies/James Bond/poster.png"} |
| Metadata: asset_directory updated James Bond's poster to [File] /home/chaz/kometa/config/assets/movies/James Bond/poster.png |

result:

ruby bluffBOT
#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

#

✅ YAML validation passed!! That is valid YAML, but may not meet Kometa's requirements

topaz dawn
#

_(ツ)_/

#

I'm ok with the solution we've got.