LiveTL / LiveTL

Get live translations for YouTube streams, crowdsourced from multilingual viewers!

Home Page:https://livetl.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: TLDex Twitch support

r2dev2 opened this issue · comments

Checklist

  • This is a suggestion for LiveTL, not Hyperchat. I will go to the Hyperchat repo to suggest a feature for Hyperchat.
  • This is a suggestion for the LiveTL web extension, not LiveTL iOS or LiveTL Android. I will go to the iOS or Android repo to suggest features for those platforms.
  • I have checked for a duplicate or similar feature request/issue. I made sure to check closed issues as well.
  • I am not reporting a bug. If I am, I will use the bug report issue template.
  • By submitting this issue, you agree to follow our Code of Conduct

Is your feature request related to a problem? Please describe.

TLDex doesn't work on twitch

Describe the solution you'd like

Make TLDex work on twitch

Describe alternatives you've considered

resurrect mchad kudasai

Anything else?

lmaono

Some extra information with regards to implementing this:

Start Time

TLDex translations are stored with unix time, you need to find the start time in order to show tls at the correct time.

POST
https://gql.twitch.tv/gql

request body: https://pastebin.com/Vg881UVH

response: https://pastebin.com/bjnTM2dS

created time: json[0].data.video.createdAt (in format of 2022-07-25T11:02:42Z)

Example VOD

VOD link: https://www.twitch.tv/videos/1542195649

API link: https://holodex.net/api/v2/videos/custom/chats?tl=1&custom_video_id=https://www.twitch.tv/videos/1542195649

Schema:

api json response

Realizing I forgot to comment here: there were some issues with TLDex live api for twitch making it hard to implement for live.