Giter Site home page Giter Site logo

Comments (9)

amilajack avatar amilajack commented on July 28, 2024

I see that the port 9090 has been used as a static port for serving the video, srt

To my knowledge, I believe it only serves .srt files.

Shall I take this issue up and fix it ?

That would be great! I would recommend looking into how create-react-app does this.

from popcorn-time-desktop.

karuppiah7890 avatar karuppiah7890 commented on July 28, 2024

@amilajack I actually checked out the links which are serving the files, in my browser.
Here's a snapshot :

eg

You should check it out yourself. And yeah, I saw the code you linked. Looks pretty neat. I was looking at some similar packages for detecting if a given port is used or not. I guess I will just use detect-port and do it myself after checking about Promises.

By the way, the code you mentioned, it asks users if they want to use another port. But in our case, I think we don't need to ask the user such questions. We can just abstract them from that, and just use the free port provided by detect-port

from popcorn-time-desktop.

amilajack avatar amilajack commented on July 28, 2024

My bad. I forgot which port was which:
screen shot 2016-10-05 at 10 04 35 am
screen shot 2016-10-05 at 10 05 00 am

9090 is for torrents
4000 is for subtitles (vtt) files

from popcorn-time-desktop.

karuppiah7890 avatar karuppiah7890 commented on July 28, 2024

Oh, okay! And yeah, I did search for the port number in the repo in GitHub search box and found a constant port, only after which I reported the issue.

And actually, I saw that for some of the movies, the srt files were also being served at 9090. I don't know which movies they were though. Is that some weird behavior ? I will check those movies again if I can recall and get back.

from popcorn-time-desktop.

amilajack avatar amilajack commented on July 28, 2024

And actually, I saw that for some of the movies, the srt files were also being served at 9090

If you have FLAG_SUBTITLES=true, then .srt files should be served. If they're served and the flag is set to false, this is a bug.

from popcorn-time-desktop.

amilajack avatar amilajack commented on July 28, 2024

Would be great if you could make a PR to prevent port collision for the subtitle and torrent server.

from popcorn-time-desktop.

karuppiah7890 avatar karuppiah7890 commented on July 28, 2024

from popcorn-time-desktop.

amilajack avatar amilajack commented on July 28, 2024

Great! Thanks 🎉

from popcorn-time-desktop.

amilajack avatar amilajack commented on July 28, 2024

Fixed this

from popcorn-time-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.