justchokingaround / lobster

mmm lobster
GNU General Public License v2.0
572 stars 37 forks source link

android mpv error "no file given" #32

Closed 4cecoder closed 1 year ago

4cecoder commented 2 years ago

Describe the bug Running Lobster on android system fetches title then opens mpv succesfully but mpv says no file given

To Reproduce Steps to reproduce the behavior:

  1. Go to turmux install fzf and lobster
  2. input any movie and then hit return key
  3. Mpv opens displaying error (as floating android toast message) then immediately closes

Expected behavior MPV should display the selected video stream

Smartphone (please complete the following information):

pitsi commented 2 years ago

Same thing happens here. Something must have changed in the api's side, on the upcloud and vidcloud part. As it seems the search returns results as usual, the results return info for the movie/series, but when it comes to servers, no urls are returned for upcloud and vidcloud. Mixdrop returns urls, but it does not work on lobster. That is what I think the issue really is, but I will check it further later on.

Debian testing/unstable x64, mpv 0.34.1 and so on.

pitsi commented 2 years ago

Yea that seems to be the issue. I have trimmed the outputs below to keep the important parts only Search works

$ curl -s https://api.consumet.org/movies/flixhq/deadpool | jq .
    {
      "id": "movie/watch-deadpool-19694",
    },

Info works

$ curl -s https://api.consumet.org/movies/flixhq/info?id=movie/watch-deadpool-19694 | jq .
    {
      "id": "19694",
    }

Streaming links do not work for vidcloud and upcloud

$ curl -s "https://api.consumet.org/movies/flixhq/watch?episodeId=19694&mediaId=movie/watch-deadpool-19694&server=vidcloud" | jq .
{
  "message": "Media Not found."
}

$ curl -s "https://api.consumet.org/movies/flixhq/watch?episodeId=19694&mediaId=movie/watch-deadpool-19694&server=upcloud" | jq .
{
  "message": "Media Not found."
}

but work for mixdrop, which is not supported

$ curl -s "https://api.consumet.org/movies/flixhq/watch?episodeId=19694&mediaId=movie/watch-deadpool-19694&server=mixdrop" | jq .
    {
      "url": "https://s-delivery25.mxdcontent.net/v/0d097bb93c197127f37e24d151e5ff26.mp4?s=2aWSU0kHPEWTnEV_wNqLOQ&e=1665692979&_t=1665677379",
    }
pitsi commented 2 years ago

I did my part and reported the api issue upstream so that its devs can check it.

pitsi commented 2 years ago

The api maintainers have fixed the issue ~20 minutes ago, so the api returns links again and lobster works like it used to!

You are welcome :)