Git Product home page Git Product logo

Comments (21)

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

Hi @aleung241,

  1. Looks like your cached scudlee file is not repulled from Github anidbTvdbMapping() - anidbid '11638' not found in file. You will need to wait for the 1day cache of the file to expire for it to get repulled and your agent to get reloaded for it to get repulled.
  2. AniDB API is currently down https://twitter.com/AniDBStatus
  3. Looks like there is a minor issue in variable usage. @ZeroQI please fix this line now or in your reduction pull.
FROM:
error_log['anime-list anidbid missing'].append("anidbid: %s | Title: '%s'" % (anidb_id, name))
TO:
error_log['anime-list anidbid missing'].append("anidbid: %s | Title: 'UNKNOWN'" % (WEB_LINK % (ANIDB_SERIE_URL % anidbid, anidbid)))

from hama.bundle.

ZeroQI avatar ZeroQI commented on June 25, 2024

Fix for variable name not found pushed. You can also check the copy of the mapping file saved in agent data folder to confirm it doesn't have the anidbid.

If you custom search a serie called "clear-cache" it will clear all http cache for you, then you just cancel the item found

from hama.bundle.

aleung241 avatar aleung241 commented on June 25, 2024

What is this custom search? I've tried searching for "clear-cache" through plex's normal search bar on top left in web browser, but it returns with no results.

from hama.bundle.

ZeroQI avatar ZeroQI commented on June 25, 2024

It's in the agent code. if you search a serie with that name, it calls the plex python defined function that clear the cache

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

Its the search when you do a match/fix match search.

image

image

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

@ZeroQI, this would only clear the HTTP cache. It would not trigger a reload of the 'ANIDB_TITLES'/'ANIDB_TITLES'/'ANIDB_TITLES'. Should we add in a search option that does that where it clears the cache then reloads those core files?
Is there a way we can clear the cache of just these files as well and not all cached data? I can see a possibility of AniDB ban people from repeated calls of the same item in <1day.

from hama.bundle.

YoeJates avatar YoeJates commented on June 25, 2024

ss 2016-07-07 at 10 20 32
I'm still having this issue, is there any way for me to fix it?
Slightly annoying having to manually go through newly added anime and include the poster, background, etc. myself.

Greatly appreciate your work on this though!

from hama.bundle.

ZeroQI avatar ZeroQI commented on June 25, 2024

While the agent can get the anidbid, with the error "UnboundLocalError: local variable 'name' referenced before assignment" present, it crash. did you replace the agent with the version there https://github.com/ZeroQI/Hama.bundle/blob/3f131531292d4fd1a70eb8bff629205265429856/Contents/Code/__init__.py ?
Please paste the content of the locally saved mapping file
Since ANIDB API[https://twitter.com/AniDBStatus] is down, the code might crash like above.
Please attach the agent log, so if the agent can't handle anidb down, we correct that

from hama.bundle.

YoeJates avatar YoeJates commented on June 25, 2024

Yes, I replaced the agent with that version and it doesn't apply any metadata after refreshing the library. I noticed when I edit each series, the metadata has been downloaded, such as posters, backgrounds and others but it isn't applying the metadata to the series. Is this the issue that the update was supposed to fix?

And sorry, I have no idea where the mapping file and agent logs are. Any directions for those?

from hama.bundle.

ZeroQI avatar ZeroQI commented on June 25, 2024

the readme mention all filenames and location
You NEED to copy in the agent data folder the empty folders or metadata will not be loaded as per the readme instructions

from hama.bundle.

YoeJates avatar YoeJates commented on June 25, 2024

I have the folders within the data folder in plug-in support, I've been using this for a couple of months without any issue. But the past two days it won't load the metadata properly, it will download it, but not apply it to each series. It seems to not be downloading the AniDB posters etc. and downloading TVDB stuff, but not applying those to the series.

The "com.plexapp.agents.hama" log is huge, and I don't want to paste it in here to spam. What's a better way of showing it?

from hama.bundle.

ZeroQI avatar ZeroQI commented on June 25, 2024

anidb API is down since the 5th of july!!!!!!
Link https://twitter.com/AniDBStatus confirming this has been pasted twice
You could have deleted the file, then matched a single serie and the log would be small...

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

Hey @ZeroQI,
I think the complaint at this point is that with AniDB down but TVDB is still up, posters/backgrounds are still being pulled but they are not being applied even if we couldn't get core metadata from AniDB.

image

image

This seems to be that even though posters are added, it is not enough to trigger them to be loaded.
By simply changing:

FROM:
      if anime:
        ### AniDB Title ###

TO:
      if not anime:
        try:
          if not metadata.title and tvdbtitle:  metadata.title = tvdbtitle
        except Exception as e:  
          Log.Error(e)
      else:
        ### AniDB Title ###

It will update the title of the series with the title from TVDB (If known/available).
This triggers the images to be loaded into Plex. And once AniDB is back up, a refresh will fix the title as this initial setting has the test of not metadata.title so even if AniDB goes out again, it will not override the AniDB title.

EX:
image

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

@YoeJates / @aleung241
Master has been updated and you should at least be able to now get posters while AniDB is currently down. ea29c41
https://raw.githubusercontent.com/ZeroQI/Hama.bundle/master/Contents/Code/__init__.py

from hama.bundle.

YoeJates avatar YoeJates commented on June 25, 2024

Thanks, this is a big help. When AniDB is back up, will it also refresh series synopsis', year of creation etc. as well?

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

Correct. When AniDB is back up. This workaround is for when AniDB is down is to just get the posters loaded from TVDB recognized by Plex.

from hama.bundle.

sven-7 avatar sven-7 commented on June 25, 2024

I have Berserk (2016) mapped with tvdb2, but it's not pulling down metadata correctly it seems.

(This could be scanner related too -- python file does not seem to be compiling - will open another issue (#49))

Also, I believe AniDB is back up now.

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

@sven-7, please open up a separate ticket and attach hama logs.
For this ticket, AniDB is indeed back up, we got the ability to make sure to get posters from TVDB while AniDB is down, and fixed 'anime-list anidbid missing' variable issue.

from hama.bundle.

EndOfLine369 avatar EndOfLine369 commented on June 25, 2024

@YoeJates, with AniDB back up, if you refesh your entries now it should work as usual now and you'll get all metadata.

from hama.bundle.

sven-7 avatar sven-7 commented on June 25, 2024

Berserk error self-corrected. Not going to open up a ticket.

from hama.bundle.

aleung241 avatar aleung241 commented on June 25, 2024

EDIT: issue has fixed itself

I still have issues even after updating init.py with the most current version and plex server restarted.

hama agent log:
http://www.paste.org/flat/81126

As in my first post, mapping is there in anime-list-master.xml and anidb's api anime-title.xml, but it the error logs still show it as not found.

When anidb's api was down, the newly added anime series had title as anime-title[anidb-xxxxx], but around the time when it went back up, newly added series will have the title, but no longer have the [anidb-xxxxx] part appended. However, in both cases, metadata is still not available.

The latest example of no metadata, but no longer having the [anidb-xxxxx] part is Planetarian, but it seems the agent crashes during the first update before it reaches, the UnboundLocalError.

All folders are correct and in the right place.
Permissions have been set to 775 as the installation instructions have said.

In addition, it seems the scanner's python file is not compiling, although that issue, #49, seems to be closed without any resolution

from hama.bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.