MALSync / MALSync

Integrates MyAnimeList/AniList/Kitsu/Simkl into various sites, with auto episode tracking.

Home Page:https://malsync.moe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HiDive Sync broken after site update

Tama47 opened this issue · comments

commented

Describe the Bug

HiDive episodes no longer detect and sync properly with MAL after site update and URL restructure.

Steps to reproduce the behavior

https://www.hidive.com/stream/chained-soldier/s01e010
https://www.hidive.com/video/590403?seasonId=20685

Browser

Chrome

Type

Extension

URL

hidive.com

commented

Hey, thanks for the update! Not sure if I'm doing anything wrong, but seems like the "edit" button won't go away when I'm in fullscreen on Hidive, unlike on Crunchyroll where it goes away immediately as soon as I enter fullscreen.
Screenshot 2024-03-28 at 23 21 25

Also, could you explain how did you Get title for hidive5e6281d? I noticed that in the new UI, the title is no where to be found on the video page itself.

Will look into the icon.

Yeah working with the page was quite difficult. What we did in the end was override the fetch function on the website, making it possible to intercept and read every request the page does. Somewhere in there is the series Id and ep info But they don't have the title in these requests either. For the title we do a request to their API to get the title. We put the result into a cache so it does not need to request the title every episode. We use the intercepted headers of the other request and that way we did not need to reverse engineer the authorisation process like we did in crunchy roll.

commented

For the title we do a request to their API to get the title.

Could you explain this part a bit more? How did you make a request to their API? There is a Hidive API? Would I be able to make request for the title as well? I'm looking to extract the title for metadata use, their video page contains a json for the episode title and thumbnail, which is very handy. So the only part that I'm not able to get is the title.

Pretty much just calling their API. No idea if you need to be authenticated. You can open the overview page check the network tab of the browsers dev tools to get the request with the needed info. Here is the format we use

https://< domainOfTheApi >/api/v1/view?type=season&id=< seriesId >