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

HiDive Sync broken after site update #2329

Open
Tama47 opened this issue Mar 8, 2024 · 4 comments
Open

HiDive Sync broken after site update #2329

Tama47 opened this issue Mar 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Tama47
Copy link

Tama47 commented Mar 8, 2024

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

@lolamtisch lolamtisch added the bug Something isn't working label Mar 8, 2024
lolamtisch added a commit that referenced this issue Mar 11, 2024
@Tama47
Copy link
Author

Tama47 commented Mar 29, 2024

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.

@lolamtisch
Copy link
Member

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.

@Tama47
Copy link
Author

Tama47 commented Mar 31, 2024

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.

@lolamtisch
Copy link
Member

lolamtisch commented Apr 7, 2024

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 >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants