Dingmatt / AMSA

A Plex anime agent using TVDB and AniDB data
GNU General Public License v3.0
261 stars 7 forks source link

Agent does not show up in list #50

Closed Hylian closed 5 months ago

Hylian commented 1 year ago

Hello,

I'm trying to set up AMSA on my Plex instance, but when I try to create a Library of shows, only the stock Agents appear in the list. The "Absolute Series Scanner" does show up in the Scanner section. In the Agents section of my server settings, AMSA does not appear.

My PMS setup is as follows:

Here's a relevant snippet from Plex logs (there are no other mentions of 'amsa' in logs):

Sep 14, 2023 20:48:41.355 [140432367807288] DEBUG - NetworkService: Network change for browser (polled=0), closing 0 browse sockets.
Sep 14, 2023 20:48:41.355 [140432367807288] DEBUG - NetworkService: Setting up multicast listener on 0.0.0.0:1901
Sep 14, 2023 20:48:41.355 [140432365697848] DEBUG - [ChildProcessMonitor] Plex Tuner Service starting.
Sep 14, 2023 20:48:41.355 [140432367807288] DEBUG - NetworkService: Browsing on interface 172.16.0.110 on broadcast address 239.255.255.250 (index: 0)
Sep 14, 2023 20:48:41.355 [140432365697848] DEBUG - [ChildProcessMonitor/JobRunner] Job running: "/usr/lib/plexmediaserver/Plex Tuner Service" /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.32.7.7484-337c79318 32600
Sep 14, 2023 20:48:41.355 [140432365697848] DEBUG - [ChildProcessMonitor/JobRunner] Jobs: Starting child process with pid 385
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Request: [127.0.0.1:54112 (Loopback)] GET /:/plugins/com.plexapp.agents.amsa (2 live) #8 GZIP Signed-in Token (cascode)
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale ja_JP
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale de
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale zh_CN
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale uk
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale ru
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale fi
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale sv
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale cs_CZ
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale ko
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale pt
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale sl
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale sr
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale it
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale ro
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale da
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale sk
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale pt_BR
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale hr_HR
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale no
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale pl
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale es
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale hu
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale he
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale af
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale nl_BE
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale ar
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale lt
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale hu_HU
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale et_EE
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale nl
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale en
Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale fr
Sep 14, 2023 20:48:41.369 [140432376245048] WARN - [Req#8] Request for plug-in [com.plexapp.agents.amsa] but it doesn't exist.
Sep 14, 2023 20:48:41.370 [140432418503480] DEBUG - Completed: [127.0.0.1:54112] 404 GET /:/plugins/com.plexapp.agents.amsa (2 live) #8 GZIP 2ms 350 bytes
Sep 14, 2023 20:48:41.376 [140432399739704] DEBUG - [HttpClient/HCl#c] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:33849/system/agents
Sep 14, 2023 20:48:41.376 [140432388959032] DEBUG - [com.plexapp.system] HTTP reply status 200, with 9087 bytes of content.
Sep 14, 2023 20:48:41.377 [140432388959032] DEBUG - The system knows about 13 agents.
Sep 14, 2023 20:48:41.377 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/LastFM.bundle.
Sep 14, 2023 20:48:41.377 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/TheTVDBv4.bundle.
Sep 14, 2023 20:48:41.377 [140432359369528] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/TheMovieDB.bundle.
Sep 14, 2023 20:48:41.378 [140432388959032] DEBUG - Waiting for 18 plug-ins to finish starting.
Sep 14, 2023 20:48:41.378 [140432363588408] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.lastfm] yet.
Sep 14, 2023 20:48:41.378 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/PlexThemeMusic.bundle.
Sep 14, 2023 20:48:41.378 [140432359369528] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.themoviedb] yet.
Sep 14, 2023 20:48:41.378 [140432361478968] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.thetvdb] yet.
Sep 14, 2023 20:48:41.378 [140432359369528] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/Scanners.bundle.
Sep 14, 2023 20:48:41.378 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/MoviePosterDB.bundle.
Sep 14, 2023 20:48:41.379 [140432363588408] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.plexthememusic] yet.
Sep 14, 2023 20:48:41.379 [140432359369528] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/LocalMedia.bundle.
Sep 14, 2023 20:48:41.380 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/OpenSubtitles.bundle.
Sep 14, 2023 20:48:41.380 [140432361478968] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.movieposterdb] yet.
Sep 14, 2023 20:48:41.380 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/PlexMovie.bundle.
Sep 14, 2023 20:48:41.381 [140432363588408] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.opensubtitles] yet.
Sep 14, 2023 20:48:41.381 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/Fanart-TV.bundle.
Sep 14, 2023 20:48:41.381 [140432359369528] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.localmedia] yet.
Sep 14, 2023 20:48:41.381 [140432359369528] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/LyricFind.bundle.
Sep 14, 2023 20:48:41.381 [140432361478968] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.imdb] yet.
Sep 14, 2023 20:48:41.381 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/Musicbrainz.bundle.
Sep 14, 2023 20:48:41.382 [140432363588408] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.fanarttv] yet.
Sep 14, 2023 20:48:41.382 [140432359369528] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.lyricfind] yet.
Sep 14, 2023 20:48:41.382 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/HTbackdrops.bundle.
Sep 14, 2023 20:48:41.382 [140432359369528] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/WebClient.bundle.
Sep 14, 2023 20:48:41.382 [140432361478968] DEBUG - Perfect cache hit, we don't need to start [org.musicbrainz.agents.music] yet.
Sep 14, 2023 20:48:41.383 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/PersonalMedia.bundle.
Sep 14, 2023 20:48:41.383 [140432340384568] DEBUG - DVR: Starting up.
Sep 14, 2023 20:48:41.383 [140432428079760] DEBUG - [HCl#f] HTTP requesting GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Sep 14, 2023 20:48:41.383 [140432363588408] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.htbackdrops] yet.
Sep 14, 2023 20:48:41.383 [140432363588408] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/Media-Flags.bundle.
Sep 14, 2023 20:48:41.384 [140432340384568] DEBUG - Activity: registered new activity ae1a0fd0-7383-4005-a6b6-532006c3ee76 - "Processing subscriptions"
Sep 14, 2023 20:48:41.384 [140432361478968] DEBUG - Perfect cache hit, we don't need to start [com.plexapp.agents.none] yet.
Sep 14, 2023 20:48:41.384 [140432361478968] DEBUG - Starting plug-in /usr/lib/plexmediaserver/Resources/Plug-ins-337c79318/Framework.bundle.
Sep 14, 2023 20:48:41.384 [140432359369528] DEBUG - Starting plug-in /config/Library/Application Support/Plex Media Server/Plug-ins/Amsa.bundle.
Sep 14, 2023 20:48:41.385 [140432359369528] DEBUG - [com.plexapp.agents.amsa] Agent not known by system, so we're starting for sure.
Sep 14, 2023 20:48:41.385 [140432359369528] DEBUG - Starting file watcher for com.plexapp.agents.amsa
Sep 14, 2023 20:48:41.385 [140432359369528] DEBUG - Plugin: setting environment variable: 'PYTHONHOME=/usr/lib/plexmediaserver/Resources/Python'
Sep 14, 2023 20:48:41.385 [140432359369528] DEBUG - Plugin: setting environment variable: 'PYTHONPATH=/usr/lib/plexmediaserver/Resources/Python/python27.zip:/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/site-packages'
Sep 14, 2023 20:48:41.386 [140432359369528] DEBUG - Spawned plug-in com.plexapp.agents.amsa with PID 423
Sep 14, 2023 20:48:41.386 [140432359369528] DEBUG - [com.plexapp.agents.amsa] Sending command: GET /:/prefixes
Sep 14, 2023 20:48:41.466 [140432399739704] DEBUG - [HttpClient/HCl#d] HTTP/2.0 (0.1s) 200 response from GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (reused)
Sep 14, 2023 20:48:41.466 [140432395520824] DEBUG - [MediaProviderManager/HCl#10] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Sep 14, 2023 20:48:41.492 [140432399739704] DEBUG - [HttpClient/HCl#f] HTTP/2.0 (0.1s) 200 response from GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (reused)
Sep 14, 2023 20:48:41.493 [140432428079760] DEBUG - [DatabaseFixups] Running fix-ups.
Sep 14, 2023 20:48:41.494 [140432428079760] DEBUG - [DatabaseFixups] Destroyed 0 transient items.
Sep 14, 2023 20:48:41.495 [140432428079760] DEBUG - [DatabaseFixups] Running database fix-ups completed in 0.0 seconds.
Sep 14, 2023 20:48:41.495 [140432428079760] DEBUG - [HCl#11] HTTP requesting GET https://plex.tv/api/v2/release_channels?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Sep 14, 2023 20:48:41.579 [140432399739704] DEBUG - [HttpClient/HCl#10] HTTP/2.0 (0.1s) 200 response from GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (reused)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] discovered cloud provider (Movies & TV)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] discovered cloud provider (Music)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] discovered cloud provider (Metadata)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] loading cloud provider details (Metadata) (alive: 1)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] loading cloud provider details (Music) (alive: 1)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] loading cloud provider details (Movies & TV) (alive: 1)
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] we had 3 cloud providers online, we now have 3
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] cloud provider (Metadata) is online and available
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] cloud provider (Music) is online and available
Sep 14, 2023 20:48:41.580 [140432395520824] DEBUG - [MediaProviderManager] cloud provider (Movies & TV) is online and available

The PMS Logs directory is empty, so I may be missing a config option or permissions error for additional logging.

I tried messing with Info.plist and __init__.py, using TheTVDB.bundle as a reference, but wasn't able to get much.

I believe this section of the logs:

Sep 14, 2023 20:48:41.367 [140432376245048] DEBUG - Translator: Found locale fr
Sep 14, 2023 20:48:41.369 [140432376245048] WARN - [Req#8] Request for plug-in [com.plexapp.agents.amsa] but it doesn't exist.

only started showing up after I changed the PlexPluginClass to Agent instead of agent, but that may just be a coincidence.

If you have any tips on getting this plug-in working, I would appreciate it! It seems like the plug-in is loading, but it is not getting registered as an agent.

In particular, this line:

WARN - [Req#8] Request for plug-in [com.plexapp.agents.amsa] but it doesn't exist.

makes me think something may not be loading in the correct order, and it's racing.

HirschBerge commented 10 months ago

Plus one, with the same setup, minus Plex pass and v1.32.8.7639_1.7.59

HirschBerge commented 10 months ago

Resolved by running a simple chown. for me it was the user that owned the config folder which passed through from my NAS.

https://www.reddit.com/r/PleX/comments/xybkt1/comment/j2nuwsp/?utm_source=share&utm_medium=web2x&context=3

Edit: Unfortunately, it is orders of magnitude slower than Plex's default parsers and you need to manually match everything. Something seems broken on the latest versions of Plex, hopefully this plugin gets an update to make it good.

Dingmatt commented 5 months ago

Issues with speed and matching are usually a permissions issue, you'll need to grant the plex user access to the AMSA folders. If you're using NAS then the following guide might help.