Skip to content

Commit

Permalink
Account for Edge Cases Where a Seiyuu is Listed on AniDB with no Char…
Browse files Browse the repository at this point in the history
…acter Attached

- bump versions
  • Loading branch information
natyusha committed Sep 6, 2024
1 parent 347f453 commit e93af30
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def ValidatePrefs():
pass

def Start():
Log('======================[Shoko Relay Agent v1.2.7]=======================')
Log('======================[Shoko Relay Agent v1.2.8]=======================')
HTTP.Headers['Accept'] = 'application/json'
HTTP.ClearCache() # Clear the cache possibly removing stuck metadata
HTTP.CacheTime = 0.1 # Reduce the cache time as much as possible since Shoko has all the metadata
Expand Down Expand Up @@ -220,7 +220,7 @@ def Update(self, metadata, media, lang, force):
for role in cast_crew:
role_type = role['RoleName']
if role_type != 'Seiyuu': continue # Skip if not Seiyuu
cv_check, meta_role, meta_role.name, meta_role.role = True, metadata.roles.new(), role['Staff']['Name'], role['Character']['Name']
cv_check, meta_role, meta_role.name, meta_role.role = True, metadata.roles.new(), role['Staff']['Name'], try_get(role.get('Character', None), 'Name', 'Unnamed (AniDB)')
image = role['Staff']['Image'] # Grab staff image (if available)
if image: meta_role.photo = 'http://%s:%s/api/v3/Image/%s/%s/%s' % (Prefs['Hostname'], Prefs['Port'], image['Source'], image['Type'], image['ID'])
Log('%-30s %-30s %s' % (meta_role.role, meta_role.name, try_get(image, 'ID', None)))
Expand Down
2 changes: 1 addition & 1 deletion Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleName</key>
<string>Shoko Relay</string>
<key>CFBundleVersion</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>CFBundleIdentifier</key>
<string>com.plexapp.agents.shokorelay</string>
<key>PlexClientPlatforms</key>
Expand Down
2 changes: 1 addition & 1 deletion Contents/Scanners/Series/Shoko Relay Scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def Scan(path, files, mediaList, subdirs, language=None, root=None):
if files : Log.debug('[Files] %s' % ', '.join(files))

for subdir in subdirs: Log.debug('[Folder] %s' % os.path.relpath(subdir, root))
Log.info('===========================[Shoko Relay Scanner v1.2.7]' + '=' * 245)
Log.info('===========================[Shoko Relay Scanner v1.2.8]' + '=' * 245)

if files:
# Scan for video files
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Shoko Relay Logo](https://github.com/natyusha/ShokoRelay.bundle/assets/985941/23bfd7c2-eb89-46d5-a7cb-558c374393d6 "Shoko Relay")
=======================
This is a bundle containing a Plex metadata agent, scanner, and automation scripts written to work with anything listed on AniDB. All you need to get started is a populated [Shoko Server](https://shokoanime.com/) (v4.2.2.122+) and [Plex Media Server](https://www.plex.tv/media-server-downloads/) (Not running on an Nvidia Shield). Unlike the original metadata bundle for Shoko this one does not include a movie scanner and is intended to work with series of all types within a single "TV Shows" library.
This is a bundle containing a Plex metadata agent, scanner, and automation scripts written to work with anything listed on AniDB. All you need to get started is a populated [Shoko Server](https://shokoanime.com/) (v4.2.2.124+) and [Plex Media Server](https://www.plex.tv/media-server-downloads/) (Not running on an Nvidia Shield). Unlike the original metadata bundle for Shoko this one does not include a movie scanner and is intended to work with series of all types within a single "TV Shows" library.

## Installation
- Extract [the latest release](https://github.com/natyusha/ShokoRelay.bundle/releases/latest/download/ShokoRelay.bundle.zip) into your [Plex Media Server Plug-ins Folder](https://support.plex.tv/articles/201106098-how-do-i-find-the-plug-ins-folder/) `\Plex Media Server\Plug-ins`
Expand Down

0 comments on commit e93af30

Please sign in to comment.