letterboxd-services icon indicating copy to clipboard operation
letterboxd-services copied to clipboard

warning popup

Open pypp opened this issue 3 years ago • 4 comments

image when film page loads this pops up

pypp avatar Aug 31 '22 10:08 pypp

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

guytepper avatar Mar 22 '24 15:03 guytepper

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.

pypp avatar Mar 22 '24 15:03 pypp

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

guytepper avatar Mar 22 '24 19:03 guytepper

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

pypp avatar Mar 23 '24 18:03 pypp