Skip to content

Suicide Squad Isekai is pulling the Japanese episode summaries from TVDB #576

@Jinra

Description

@Jinra

Problem

Oddly enough, the series summary is in english, but episode summaries are pulling from the Japanese version. I've done quite a bit of testing in the bundle, but can't figure out why it only wants to pull Japanese.

I've tested on another anime that's inheriting from TVDB (Berserk 1997), but that pulls both series and episode summaries in English as expected. Any API calls either from CLI or browser, both pull summaries in english, even when copying the exact headers and token the bundle is using.

Here's a python snippet I've been using for testing. The only way I can get it to pull in Japanese is to change the Accept-Language key value to ja

import requests

url = 'https://api.thetvdb.com'
test_ep = '/series/436846/episodes?page=1'
token = 'A27AD9BE0DA63333'
login_ep = '/login'
headers = {
    'User-agent': 'Plex/HAMA',
    'Content-type': 'application/json',
    'Accept-Language': 'en'
}
bearer_token = ''

data = {
    'apikey': token
}

if not bearer_token:
    r = requests.post(url+login_ep, headers=headers, json=data)
    bearer_token = r.json()['token']

headers['Authorization'] = f'Bearer {bearer_token}'
r = requests.get(url+test_ep, headers=headers)

Log Snippet

[X]    s1e1 s01e001 anidbid:   18098 air_date: 2024-06-27 abs_number: 1, title: 第1話
 - [1] title:   [en] 第1話
 - [1] summary: [en] ″新しい世界″。狂気に満ちた理想を掲げ毎夜ゴッサム・シティを暴れ回るハーレイ・クインとジョーカーだったが、カタナの襲撃により、ハーレイは監獄にブチ込まれてしまう。収監の半年後、A.R.G.U.S長官のアマンダはハーレイを気絶させ監獄から連れ出し、ヘリコプターへと乗せる。目を覚ましたハーレイの目の前にいたのは、悪党面したおっさん=デッドショット、お調子者のナルシスト=クレイフェイス、ズタ袋を被ったマッチョマン=ピースメイカー!!意味不明な状況下、モニター越しのアマンダから告げられたのは、爆弾付きの極秘ミッションだった!!
common.SaveFile() - CachePath: '/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems', file: 'TheTVDB/json/436846/episode_9879316_ja.json'

Root Agent Log

2024-08-22 00:20:16,149 - 15151ea57b38 - Fetching 'https://api.thetvdb.com/series/436846/episodes?page=1' from the HTTP cache
2024-08-22 00:20:16,171 - 15151ea57b38 - Downloaded URL 'https://api.thetvdb.com/series/436846/episodes?page=1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions