#Trying to create a collection for my IMDB watchlist
1 messages ยท Page 1 of 1 (latest)
Welcome @left basin!
Someone from <@&938443185347244033> will assist when they're available.
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.
๐ If you want to review this again, emanef.:
: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> ๐
file_poster is not an attribute of imdb_watchlist.
The issue seems pretty clear:
|============================= Validating My IMDB Watchlist Attributes ==============================|
| |
| Looking for: My IMDB Watchlist |
| |
| Validating Method: sync_mode |
| Value: sync |
| |
| Validating Method: collection_order |
| Value: custom |
| |
| Validating Method: imdb_watchlist |
| Value: {'user_id': 'ur1199812', 'file_poster': 'config/MyPosterImages/Movie-genre-posters/'} |
| |
| Validating Method: sort_title |
| Value: !090_My IMDB Watchlist |
| |
| Validating Method: sort_by |
| Value: title.asc |
| Traceback (most recent call last): |
| File "//kometa.py", line 792, in run_collection |
| builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/builder.py", line 1064, in __init__ |
| raise Failed(f"{self.Type} Error: {method_final} attribute not supported") |
| modules.util.Failed: Collection Error: sort_by attribute not supported |
| |
| Collection Error: sort_by attribute not supported |
| |
|====================================================================================================|
| Finished My IMDB Watchlist Collection |
| Collection Run Time: 0:00:00 |
|====================================================================================================|
| Collection Error: sort_by attribute not supported |
sort_by is not something you can use generally in collections.
It's only available to the defaults and in a couple other limited contexts.
For your own collections, you need to use collection_order
https://kometa.wiki/en/nightly/files/updates/?h=collection_order
You already have that, so just remove sort_by.
And file_poster isn't part of imdb_watchlist, so something like:
My IMDB Watchlist:
imdb_watchlist:
user_id: ur1199812
file_poster: config/MyPosterImages/Movie-genre-posters/
sort_title: "!090_My IMDB Watchlist"
collection_order: title.asc
sync_mode: sync
Ah, so I had file_poster indented in too far, thanks. I've amended it and run it again
OK, so it's still not liking that. I can see a " 'NoneType' object is not subscriptable" warning in the log. No idea what that means!
๐ If you want to review this again, emanef.:
: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> ๐
Looks like there's a problem getting that watchlist from IMDB. The data that comes back from IMDB is not what Kometa expects, which is what's causing that error.
It's private, so that's most likely the issue.
Ah! That was it, thank you! Changed it to public (hadn't realised it was set to private!)
๐
It's not sorting alphabetically though. I have it set to collection_order: title.asc it is listing it as release date order. Any suggestions? Thanks
I imagine there's something useful in the log.
๐ If you want to review this again, emanef.:
: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> ๐
The attempt to set the artwork on the collection fails because you've specified a directory instead of a file:
[DEBUG] | Method: file_poster Poster: /config/MyPosterImages/Movie-genre-posters |
[DEBUG] | Traceback (most recent call last): |
| File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 478, in __call__ |
| result = fn(*args, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/modules/plex.py", line 803, in _upload_image |
| item.uploadPoster(filepath=image.location) |
| File "/usr/local/lib/python3.11/site-packages/plexapi/mixins.py", line 452, in uploadPoster |
| data = openOrRead(filepath) |
| ^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/utils.py", line 670, in openOrRead |
| with open(file, 'rb') as f: |
| ^^^^^^^^^^^^^^^^ |
| IsADirectoryError: [Errno 21] Is a directory: '/config/MyPosterImages/Movie-genre-posters' |
Which kills the collection processing, and as a result Kometa doesn't get to the sorting.
All of the *_poster attributes take a reference to a specific thing, not a directory containing images. If you want Kometa to pick an image out of a directory you will need to use assets.
Ah, thanks. I usually leave it like that initially (just the path to the folder where the image will be) until I have created my poster but hadn't realised it might affect the ordering. I've removed that line for now, will add it back in when I have the poster, and it seems to be in order now. Thank you!
It's not that it affects the ordering; a folder is an invalid value for that attribute.
Your rationale for putting it there doesn't matter. It's an invalid value for that attribute. That attribute requires a path to a file, not a path to a folder.
antwanchild used !aenh
@left basin, anything else needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.