3 ms·
If you're interested in node, I highly recommend poking around the source files. Pretty amazing what's possible in a small amount of code. While the frontend i
by alexose 13y ago
If you're interested in node, I highly recommend poking around the source files. Pretty amazing what's possible in a small amount of code.
While the frontend is all Backbone, the real magic happens in its backend dependencies like peerflix (https://github.com/mafintosh/peerflix https://github.com/mafintosh/peerflix) and video.js (https://github.com/videojs/video.js/ https://github.com/videojs/video.js/).
Edit: And, of course, the remarkable (undocumented?) API provided by subapi.com. Check out http://subapi.com/popular.json http://subapi.com/popular.json !
Double Edit: The API appears to be developed by the Popcorn Time people, as per https://github.com/popcorn-time/popcorn-app/issues/294 https://github.com/popcorn-time/popcorn-app/issues/294
- fenghorn 13y agoPopcorn Time 0.1.0 depends on subapi.com to continue functioning. Based on the source the API returns JSON file with the following structure: { movies: { [ torrents: [ {'quality': '1080p', url: 'http://url.torrent' http://url.torrent'}, {'quality': '720p', url: 'http://url.torrent' http://url.torrent'}, {'quality': 'undefined', url: 'http://url.torrent' http://url.torrent'} ], subtitles: [ {'language': 'en', url: 'http://url.srt' http://url.srt'}, {'language': 'undefined', url: 'http://url.srt' http://url.srt'} ], imdb_id:, title:, year:, runtime:, synopsis:, voteAverage:, poster:, backdrop:, seeders:, leechers: ] } }