Git Product home page Git Product logo

torrentflix's People

Contributors

ahivert avatar amilajack avatar angauber avatar edoardo90 avatar etiennedub avatar itzblitz98 avatar jfasebook avatar jkevan avatar julien-f avatar leocolomb avatar leshow avatar p4bloch avatar paolomainardi avatar sayem314 avatar sergiogiogio avatar skalg avatar watchfulwisp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torrentflix's Issues

VLC prevents window switching

Arch + Gnome 3. Cannot switch windows once VLC is playing the show (VLC is always in the foreground). When in full-screen, cannot leave full-screen until the show ends. Window switching is prevented either way. Cannot switch windows using Alt+Tab or the super key. Super key shows overview of Activities, but clicking on any window other than VLC will bring VLC to the front again. Once VLC is closed, window switch resumes as normal.

Torrentflix close after select torrents, does not streaming

Hello, guys, I love torrenflix

Recently i did a fresh install on fedora 23 and i install nodejs and npm then i did the procedure of install peerflix and torrenflix has usual (npm install -g ) but torrenflix does not start streaming, it close after select the torrent, so i love torrenflix and reformat my pc and i did a fresh install of linux mint 17.3 but i have the same problem, i hope you can help me, because i spend the last 3 day searching a solution, even i tried different versions of nodejs trough nvm and persist the problem.

My very best regards.

new site support: nyaa.se

It would be good to see support for nyaa.se. If possible, tokyotosho.info as well (there's overlap, but also unique content on each site).

Torrent project don't provide all functionality #48

Torrent project source don't provide all the functionality the others have.

  • limit the number of response
  • set the base url in config file (permit to change the url without wait an update)
  • cat argument (even if not use for now)

Streaming torrent problem on Windows (EDITED)

On Windows 8.1 I can't stream with Torrentflix using npm 2.14.4 with nodejs 4.1.2

I used these instructions from Github page until I selected one of these torrents I've wanted to watch

And then I get stuck on this message from the torrent I opened:

Streaming Revolution OS (2001) - 20-year history of GNU, Linux, open source, and the free software movement

It doesn't grab the torrent to stream it and doesn't show the seeders and peers from cmd for some reason regardless the configuration I've tried...

Is this a bug? Because on Linux especially on Ubuntu based distros like Linux Mint 17.x I never had that problem!

Bear in mind that Peerflix did not make any problems as Torrentflix.

Thanks in Advance!

can an "all" trackers be used, or automatically do the search on all trackers available?

When using torrentflix, one needs to select a tracker, from the ones supported by torrentflix, and then search for the wanted torrent on that particular tracker.

I'm wondering if instead torrentflix could just ask for the wanted torrent, and then it would automatically round robin over all trackers, and then offer results showing the tracker and the torrent found. That would improve the user experience, and accelerate things, since one doesn't have to do the round robin manually.

If not an option at all, perhaps a tracker selection item could be all, so that the round robin is done upon selecting all, and not in an automatic way as proposed before.

Thx!

KAT still supported?

Seems like torrentflix is still supporting KAT, when it's already dead, :-) Perhaps easy to remove from the config file, but would be like if removed...

Opensubtitles: TypeError: Cannot read property 'params' of undefined

Getting this when trying to stream something..

/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:128
                    throw e;
                          ^
TypeError: Cannot read property 'params' of undefined
    at Object.exports.parseXmlLoginResult (/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/lib/Utils.js:96:56)
    at /usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/lib/API.js:52:27
    at _fulfilled (/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:794:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:823:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:756:13)
    at /usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:564:44
    at flush (/usr/local/lib/node_modules/torrentflix/node_modules/opensubtitles-client/node_modules/q/q.js:110:17)
    at process._tickCallback (node.js:355:11)

Config is:

"use_subtitle": "true",
"subtitle_language": "fre",

Version is 8.6.1

Arguments handling in config

I want to open peerflix with peerflix mymagnet --vlc -r -d -- -f

Right now it looks like it's impossible.
peerflix_player_arg is not working because it's not the last one in the chain (peerflix_port is after) and-f should produce -- -f.

It may be a lot simpler to use only one config option with all the arguments inside as an array, instead of using peerflix_player, peerflix_player_args, peerflix_port, .... Peerflix is well documented, no need re-code every parameter. peerflix_args: ['--ports=8080','-r', '-d', '--', '-f']

Also, it would be nice to add --engine and --limit default config options.
-s is quite useless, it would be simpler to use it like torrentflix search [options]

At the end, the UX would be torrentflix MyMovie, select a torrent, done.

An index of the file to stream.

My version of peerflix exits after initial "peers" screen with all zeroes. Doesn't matter if I try it myself from BASH command-line, or from the torrentflix CLI.

But if I give it an -l and select the file I want to stream all seems to work OK.

-i, --index     changed streamed file (index)                
-l, --list      list available files with corresponding index

Is this something that changed in peerflix, or just my specific torrent?

Magnet or .torrent

Can you please add support for magnet links or torrent files ?

I really like the subtitles feature and i would like to use it on other torrents.

Thanks !

Way to search programmatically?

Is there a way to use this module programmatically to search for torrents and save the magnet/torrent info for later use?

for example something like

var tflix = require('torrentflix');

tflix.search('search terms', function(err, results){
console.log(results):
});

I would like to use your torrent search scrapers for searching many torrents and storing it for later, not necessarily just for streaming video right after a search.

failing identifying the torrent files

% torrentflix
? What torrent site do you want to search? YTS
? Search for a torrent: before i wake
Searching for before i wake on YTS...

  1. Before I Wake (2016) 720p 712.38 MB 1418 617
  2. Before I Wake (2016) 1080p 1.47 GB 1136 478
    ? Torrent to stream (eg. 1, 2, 3..) or (b)ack or (e)xit: 1
    Streaming Before I Wake (2016) 720p
    /usr/local/lib/node_modules/torrentflix/lib/torrent_parse.js:20
    if(typeof torrent.files !== undefined){
    ^

TypeError: Cannot read property 'files' of undefined
at /usr/local/lib/node_modules/torrentflix/lib/torrent_parse.js:20:26
at /usr/local/lib/node_modules/torrentflix/node_modules/read-torrent/index.js:18:13
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Please notice that peerflix (including subtitles) works OK with:

peerflix "magnet:?xt=urn:btih:409FE3B892B5B546E5058A205ECC7460F68711C6&dn=Before+I+Wake+%282016%29+%5B720p%5D+%5BYTS.AG%5D&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fp4p.arenabg.ch%3A1337&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337" -t download/Before\ I\ Wake\ 2016\ 1080p-720p\ BluRay\ x264-[YTS\ AG]\ [All\ Releases].srt -k -- --fs

So, not sure why torrentflix fails... I tried it with mpv or vlc players, and them with or without subtitles enabled... Seems like torrentflix can't handle torrents, or files in torrents?

peerflix won't start: ENAMETOOLONG

I'm experiencing this since 8.6.0 (8.5.3 works fine), peerflix won't start, the console says:

Streaming [filename]
ENAMETOOLONG, open '""magnet:?MAGNET_THINGS""'

Those double quotes look quite suspicious...
I'm on lubuntu 14.04 with npm 3.3.4.

Add some tests

I wanted to add some tests to this repo but I think this need a refactoring of the app (maibe I'm wrong and I want to discuss). I started with Tape but in test files, we can't access to vars or functions because of the architecture of the files main.js and cli.js. All vars and function are wrapped by function which isolate all vars inside.

I'll be happy to discuss about it.

Airplay not working

i'm trying to play something via airplay but it's always streaming to VLC.

here's my config :

/* what player you want peerflix to use */
var peerflix_player = "--airplay";

and if i try to load a torrent or magnet it's always trying to stream to vlc.

results not coming

Kickass has results but In command line search nothing is coming. why ?

Site support : yts.re

It would be nice to add support for yts.re, it has an API so it shouldn't be difficult.

Encryption?

Hello,

Is there a way to configure torrentflix to work with a proxy server? For instance, I have a subscription to BTGuard, which uses private servers to encrypt my downloaded torrent traffic so my ISP doesn't see. Its been working very well for me and I'd like to continue using it with this if possible.

Arrow key selection for torrent site not working

the arrows aren't working for selecting torrent site in git shell windows 10
cursor moves (invisibly) up and down without moving >
when enter is pressed YTS is selected
after search and selection an invalid "torrent identifier" error crash occurs when torrent begins to play(?)

node 12, npm 2

events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn peerflix ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
at child_process.js:1137:20
at process._tickCallback (node.js:355:11)

Feature req: Select search engine on command line

Hello, excellent work! As a useful bonus, torrentflix circumvents my ISP's firewall (UK), so I use it for all my torrent searches, streaming or otherwise.

As the title says, I'd like an option to select the search site from the CLI. Perhaps like this:

-e, --engine [name] Site to use for searching. Use --list-engines for possible values.
--list-engines      List valid names for --engine 

Examples:

$ torrentflix -s ebook -e kickass
$ torrentflix -s "movie title" -e tpb

(Hmm, if there were also a -n 1 to select the first match, torrentflix could be used entirely non-interactively)


Update: I'm now implementing this, but it would be nice if there were a way to go from tpb to The Pirate Bay.

deprecated modules

Getting these when i try npm install -g torrentflix. Do i need to do something?

npm WARN deprecated [email protected]: The module was renamed. Please run 'npm install subtitler' instead.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'

crash for bad http certificate

Bad http certificate may cause application to crash.
This can be fixed with
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
in torrent_parse.js
I made a pull request: the #70

won't stream

is it possible to edit the script to use mpv or mplayer ad default player ?

How would I?

How would I used this to just get the .torrent file so I can pass it to client?

Print magnet link to console

I would like to have an option to print the magnet link/torrent file. I don't have a convenient way to set a default torrent application or anything like that. I will try to get a pull request together but if it would be a quick fix for you that would be awesome (I don't know node/javascript)

question: redundancy in onResolve in main.js

It seems like the callback for the various torrent searches have a lot of copy-pasted code, I'm referring to all of the xxxxSearch methods in main.js

specifically this part:

        for (var torrent in data) {
          var date_added, title;
          var number = data[torrent].torrent_num;
          //var title = data[torrent].title;
          var size = data[torrent].size;
          var seed = data[torrent].seeds;
          var leech = data[torrent].leechs;

          if(history == "true"){
            var found = searchHistory(data[torrent].title);
            if(found){
               title = chalk.red(data[torrent].title);
             } else {
               title = chalk.yellow(data[torrent].title);
             }
          } else {
            title = chalk.yellow(data[torrent].title);
          }

          console.log(
            chalk.magenta(number) + chalk.magenta('\) ') + title + (' ') + chalk.blue(size) + (' ') + chalk.green(seed) + (' ') + chalk.red(leech)
          );
        }

is there any reason why this code isn't moved into it's own function to reduce the LOC in that file and the redundancy there? I see some small differences but nothing that couldn't be handled and still let us abstract the code elsewhere.

Before I make this change I wanted to get your thoughts. Is there any specific reason you've written it this way?

Custom Config Location

torrentflix --config="nano" opens an empty file ~/.node/lib/config.js. This file is not loaded by torrentflix. The default config is used every time.

I have prefix = ~/.node in my .npmrc

Subtitles not working

When I set "use_subtitle": "true" on config, video is not downloaded or started (tested with Brazillian Portuguese).

Recorded bug:
asciicast

Error

So I've tried two different cli search and both return the same error. Ubuntu 14.04 can you tell me what this means? I'm kinda new to this. Everything looks like it installed correctly.

yukaputz@media-1:~$ torrentflix
/usr/bin/env: node: No such file or directory

torrentflix crashs

Crashes in docker "Dockerfile"

FROM ubuntu:14.04.3
RUN apt-get update
RUN apt-get -y install vim git curl wget python

RUN curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash - #NODE 0.10

RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - #NODE 4

RUN curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - #NODE 1.12

RUN curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - #NODE 5

RUN apt-get -y install nodejs

RUN npm install webtorrent -g

RUN npm install -g peerflix
RUN npm install -g torrentflix
CMD torrentflix

Questions: Adding private tracker

Hi. I have some questions:

  1. Is it possible to stream videos packed in RAR archives?
  2. I'm planning on adding a scraper for a private tracker. Any idea how to handle login?
  3. Feature request: How about making it possible to view the newest torrents (scraped from a page)?

Crashes while using GetStrike

Output

~$ torrentflix 
A new version of torrentflix is available run:

$ npm install -g torrentflix

Or go here to get it: https://github.com/ItzBlitz98/torrentflix
? What torrent site do you want to search? GetStrike
? Search for a torrent:  archer
Searching for archer on GetStrike...
undefined:1

<!DOCTYPE html>
^

SyntaxError: Unexpected token <
    at Object.parse (native)
    at Request._callback (/usr/lib/node_modules/torrentflix/lib/strike.js:17:19)
    at Request.self.callback (/usr/lib/node_modules/torrentflix/node_modules/request/request.js:186:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/lib/node_modules/torrentflix/node_modules/request/request.js:1081:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/torrentflix/node_modules/request/request.js:1001:12)
    at IncomingMessage.g (events.js:260:16)

torrentflix version

~$ torrentflix --version
9.0.0

[ENHANCEMENT] Chromecast support

First off, amazing project. Thank you for this :)

I'd like to know if you are considering working on the Chromecast support for torrentflix. Is it in the roadmap?

I've been doing some research and chromecast-player seems to be a nice starting point. Also peercast and castnow might be easier to integrate, depending on how you want to integrate this into torrentflix.

If you do are interested in developing this, what do you think is the best way to integrate it?

Thanks!

Error message

It would be nice to have an option to exit the program or return to the tracker choice list if I don't want to stream any torrent
"? Torrent to stream (eg. 1, 2, 3..): "
Besides, I want to see a customized error message when I enter the wrong number/letter (or nothing).

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.