pypp / letterboxd-services

🍿 Get torrents straight from Letterboxd
GNU General Public License v3.0
25 stars 4 forks source link

warning popup #5

Open pypp opened 2 years ago

pypp commented 2 years ago

image when film page loads this pops up

guytepper commented 7 months ago

Seems to be caused because the extension orverrides the "where to watch" panel, leading to failure of the call to https://letterboxd.com/csi/film/FILM_NAME/availability

pypp commented 7 months ago

Seems to be caused because the extension orverrides the "where to watch" panel, leading to failure of the call to https://letterboxd.com/csi/film/FILM_NAME/availability

Yeah, this is a konwn issue. The problem is that this way of overriding the original services seems to be the most reliable one. otherwise I would need wait for the /availability request to finish and only then change the services, which I have no way of knowing when would it happen.

guytepper commented 7 months ago

Isn't the /availability response the HTML for the 'Where to Watch' section? Then you can use something like MutationObserver to listen for when the element is added, and then replace it

pypp commented 7 months ago

That might be the right solution, I'm gonna try that approach.