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

Any luck launching netflix with contentId? #25

Open
ciberado opened this issue Jan 2, 2019 · 5 comments
Open

Any luck launching netflix with contentId? #25

ciberado opened this issue Jan 2, 2019 · 5 comments

Comments

@ciberado
Copy link

ciberado commented Jan 2, 2019

I'm triying to use Netflix with contentId (so I can directly watch a show) but with no luck at the present time. Has anyone been able to do it? I'm using ConnectSDK as doc of the API call.

@vietvudanh
Copy link

I am trying to open browser with contentId (which is url). I can with pylgtv

But I cannot open it fullscreen so I came here: #17

@vietvudanh
Copy link

vietvudanh commented Apr 11, 2019

Ah, actually my bad, there are two enpoints to launch app.

First I used com.webos.applicationManager/launch, the app open but contentId not recognize, later I use system.launcher/launch, with payload like this and it's ok:

lgtv.request('ssap://system.launcher/launch', {
            'id': BROWSER,
            'contentId': URL
        }, function (err, res) {
            if (err) {
                reject("cannot get app");
            } else {
                resolve(res);
            }
        });

also need to wait for a bit for the client to connect, so using setTimeout for like 1s is enough.

@poroping
Copy link

poroping commented Oct 2, 2019

I'm triying to use Netflix with contentId (so I can directly watch a show) but with no luck at the present time. Has anyone been able to do it? I'm using ConnectSDK as doc of the API call.

Hey not sure if you figured it out but I've found that you can do this using the ssap://system.launcher/launch endpoint. A working payload is:
{ "id": "netflix", "contentId": "m=http://api.netflix.com/catalog/titles/movies/80145130&source_type=4" }
Where the 80145130 is the content ID. Which seems to correlate to https://www.netflix.com/watch/80157974?trac.... portion of the URL when watching in the browser.

Doesn't appear to be any easy way or a public facing API where we can look up titles to IDs though which is a shame as that's all that's required now for me to yell at my TV. If you find a way to do this please let me know.

Shout out to this guy where I stumbled across a working example

@konzulta
Copy link

Hiya! Sorry to revive this one, but this is now possible with the following code. The important bit is to close the app and reopen, as at the moment I have not been able to just issue the URL to Netflix directly without relaunching it.

No need to search for APIs on the URl scheme above, all you need is to add the url as follows:

lgtv.request('ssap://system.launcher/close', { "id": "netflix"}); lgtv.request('ssap://system.launcher/launch', { "id": "netflix", "contentId": "m=https://www.netflix.com/watch/80189685" }); lgtv.disconnect();

Tested on an OLEDB9 with software version 4.8

As you can see the standard URL for watch works great, but the title url also works (it shows the title and the starts autoplay if you have it set up in your Netflix profile settings.

Example
https://www.netflix.com/title/80002472

Hope this helps someone!

@MDoreto
Copy link

MDoreto commented Dec 13, 2020

How can i do it for prime Video and disney+? just put the link of movie dont work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants