Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small support for showing episode titles and images instead of just numbers #106

Closed
tachibana-shin opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tachibana-shin
Copy link
Member

Usage data from myanimelist.net

Search anime: https://myanimelist.net/search/prefix.json?type=all&keyword=${keyword}&v=1
Get info episodes: https://api.jikan.moe/v4/anime/${id anime}/episodes
Translate title episodes:

fetch("https://translate.google.it/translate_a/single", {
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "client=gtx&dt=t&dt=bd&dj=1&source=input&q=${text}&sl=${from}&tl=${to}&hl=en",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
{
  "sentences": [
    {
      "trans": "${output line 1}",
      "orig": "${source line 1}",
      "backend": 3,
      "model_specification": [
        {}
      ],
      "translation_engine_debug_info": [
        {
          "model_tracking": {
            "checkpoint_md5": "f814b0a94dca425c3f2480666680aa4f",
            "launch_doc": "vi_en_2021q1.md"
          }
        },
        {
          "has_untranslatable_chunk": true
        }
      ]
    }
  ],
  "src": "${source lang}",
  "spell": {}
}
@tachibana-shin tachibana-shin added the enhancement New feature or request label Apr 21, 2023
@tachibana-shin tachibana-shin self-assigned this Apr 21, 2023
@tachibana-shin tachibana-shin added the inprogress Work in progress label Apr 25, 2023
@tachibana-shin tachibana-shin removed the inprogress Work in progress label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant