#`anidb-api` image tests

1 messages ยท Page 1 of 1 (latest)

fringe sundial
#
|============================= Validating Dragon Ball Shows Attributes ==============================|
|                                                                                                    |
| Looking for: Dragon Ball Shows                                                                     |
|                                                                                                    |
| Validating Method: anidb_id                                                                        |
| Value: 11210, 1530                                                                                 |
| Traceback (most recent call last):                                                                 |
|   File "D:\Repositories\Kometa\kometa.py", line 842, in run_collection                             |
|     builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str) |
|   File "D:\Repositories\Kometa\modules\builder.py", line 1070, in __init__                         |
|     self._anidb(method_name, method_data)                                                          |
|     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^                                                          |
|   File "D:\Repositories\Kometa\modules\builder.py", line 1418, in _anidb                           |
|     for anidb_id in self.config.AniDB.validate_anidb_ids(method_data):                             |
|                     ^^^^^^^^^^^^^^^^^                                                              |
| AttributeError: 'ConfigFile' object has no attribute 'AniDB'                                       |
|                                                                                                    |
| Unknown Error: 'ConfigFile' object has no attribute 'AniDB'                                        |
polar zodiacBOT
#

Welcome @fringe sundial!

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.

fringe sundial
#

@fallen mason ping for awareness ๐Ÿ™‚

fringe sundial
#

ISSUE 1
I've realised this is because I didn't have this in config.yml:

anidb:
  enable_mature: true
#

I think we should default that to false behind-the-scenes if the user doesn't have it in config.yml?

#

ISSUE 2
I've also noticed this during the initialization process. My collections do get created.

|====================================================================================================|
| Connecting to AniDB...                                                                             |
| Using cached Master Title List from AniDB.                                                         |
| AniDB Authorization Failed: AniDB Error: Could not fetch Anime ID 99                               |
| AniDB API Connection Failed                                                                        |
|====================================================================================================|
fallen mason
fringe sundial
#

ISSUE 3?

anidb_popular returns 0 AniDB IDs, I've manuallly matched some items to make sure I have items that are found in the AniDB Popular page

collections:
  AniDB Popular:
    anidb_popular: 20
    collection_order: custom
    sync_mode: sync
fringe sundial
#

this works (as in, doesn't produce the error, even if client and version are no longer used):

anidb:
  client: thisismytest
  version: 1
  language: en
  cache_expiration: 60
fallen mason
#

So something deleted it?

#

That's not anything I've seen, but I can try to repro it.

fringe sundial
#

No, I never had an anidb section in my config.yml because I don't use that service

#

If I don't use a service, I'll generally remove it from my config.yml

#

It's probably a bit of an edge case, but just something I noticed

fallen mason
#

Did you remove your test yml?

fringe sundial
#

It wasn't related to the error so I removed it earlier

#

I can post it again in a bit if needed

fringe sundial
fallen mason
#

I thought you posted a copy of - file: config/test.yml

fringe sundial
#

I can post that in a bit

#

I posted the file when I thought it was related to the ConfigFile error

#

Removed it when I realised it was the config.yml thing but will repost it once back on my computer

fallen mason
#

Okey doke. I can tell you that the tag builder isn't expected to work [it's removed] as it relied on scraping the AniDB site. Perhaps it can be restored based on the information we have in the cache.

fringe sundial
#

Yeah I realised I that one when I viewed the image's docs

fringe sundial
#
collections:
  AniDB Popular:
    anidb_popular: 20
    collection_order: custom
    sync_mode: sync
  All Attack on Titan:
    anidb_relation: 9541
  Dragon Ball Shows:
    anidb_id: 11210, 1530
#

You have the credentials to the plex server in your DM's if you need it for testing

fallen mason
#

Turns out I was trying to use an RSS feed that doesn't exist. mea culpa.

Would "hot anime" be a reasonable replacement for "popular"?

fringe sundial
#

Good question, not sure

fallen mason
#

Doesn't look like it since the hotanime API returns 8 items.

fringe sundial
#

Ah, so is popular not feasible anymore then?

fallen mason
#

Unless there's a non-scraping way to get that data, seems not.

fringe sundial
#

Ah well, get rid for now?

#

I'm happy to merge the PR once that's sorted out

fallen mason
#

Let me go through the whole thing

fringe sundial
#

Okidoki

fringe sundial
#

Saw your message to the guy, if we can get this resolved soon I'd like to do a push to master

fallen mason
#

Your test file and the tags builders work now

#
collections:
  # AniDB Popular:
  #   anidb_popular: 20
  #   collection_order: custom
  #   sync_mode: sync
  All Attack on Titan:
    anidb_relation: 9541
  Dragon Ball Shows:
    anidb_id: 11210, 1530
  Action Anime:
    anidb_tag_name: action
    collection_order: custom
    sync_mode: sync
  Future Setting:
    anidb_tag:
      tag_id: 2626
      limit: 50
    collection_order: custom
    sync_mode: sync

AniDB popular removed for now

jagged tiger
#

do any of the operations work or was that scraping based? that was only the only thing i was using for anidb

#
mass_audience_rating_update:
- anidb_average
- anidb_rating
- anidb_score
#

and

- default: other_chart
  template_variables:
    limit_anidb: 50
    sonarr_add_missing_anidb: true
    sonarr_folder_anidb: /home/johnfawkes/MergerFS/anime
    sonarr_tag_anidb: pmm_anidb
#

most of my anime stuff is through arialz's script using anilist

fallen mason
#

as I recall the operations end up getting the anime details, which used to scrape and now go through the new service.

fringe sundial
#

tested operations successfully:

      mass_audience_rating_update: anidb_average
      mass_critic_rating_update: anidb_rating
      mass_user_rating_update: anidb_score
      mass_studio_update: anidb
      mass_original_title_update: anidb
      mass_genre_update: anidb_1_0
#

Merged into nightly ๐Ÿ™‚