ssnjr2002 / stremio-gdrive

Stremio addon for fetching videos from your google drive.
101 stars 93 forks source link

File name not passed to other players #8

Closed AlyafeiAli closed 3 years ago

AlyafeiAli commented 3 years ago

Hi,

Whenever I play anything on other players, the addon passes the file's name as "load" instead of the actual name, always. I'm running the latest update of your code and Stremio, and I'm using a proxy... This issue is on both Android and Windows.

Thank you for everything :)

ssnjr2002 commented 3 years ago

Just pushed some updates. Let me know if everything works as intended now.

AlyafeiAli commented 3 years ago

Just pushed some updates. Let me know if everything works as intended now.

Thank you for the quick reply. But now I'm getting "Playback Error" on both devices, Android and Windows, no matter what file I play or which Shared Drive it's on. Looks like something got broken

ssnjr2002 commented 3 years ago

Interesting... Everything seems to work fine for me... Okay to test whats wrong I need you to check if the addon results are correct, to do that:

  1. Get the link of your heroku app and at the end add this: /stream/movie/IMDB_ID.json Substitute IMDB_ID with an imdb id of an actual movie present in your google drive. For example if my heroku app name is sgd and the imdb id of a movie on my drive is tt2379713 my url would look like this: http://sgd.herokuapp.com/stream/movie/tt2379713.json

  2. Open the url and it will load a json file. In the json file you will see urls pointing to the cloudflare proxy. Open some of the urls and see if it downloads a file or if it errors out.

If multiple urls error out, then:

  1. Check if the url path is of the following pattern: https://cfproxy.name.workers.dev/load/FILE_ID/FILE_NAME.FILE_EXTENSION.

  2. Go to https://dash.cloudflare.com and open the editor to your worker and paste the url in the box in between GET and Send and click send. On the rightmost window you will see the response and with the error, tell me the error. If the error code is 500 then show me the console output below.

image

AlyafeiAli commented 3 years ago

All the links are giving me an error when I open them in my browser. The links are like this: https://stremiov2.xxxxx.workers.dev/load/FileID/Men.in.Black.1997.Remastered.BluRay.1080p.TrueHD.5.1.AVC.REMUX-FraMeSToR.mkv https://stremiov2.xxxxx.workers.dev/load/FileID/Men%20in%20Black%20%281997%29%20RM4K%20%281080p%20BluRay%20x265%2010bit%20Tigole%29.mkv

And I get error 404 when I paste it between GET and Send and click on Send, like shown below: image

AlyafeiAli commented 3 years ago

Wait I noticed that your script is slightly different than the one I have... I think I messed up when I updated to the latest update. I'll deploy from scratch and report back!

ssnjr2002 commented 3 years ago

I think you forgot to update your cloudflare proxy script.

AlyafeiAli commented 3 years ago

Exactly! I updated my cloudflare proxy script and now everything is working perfectly and the names are being passed as intended! Thank you so much and sorry for the confusion I caused lol

ssnjr2002 commented 3 years ago

No worries man, thanks for testing it out 👍