itzblitz98 / torrentflix Goto Github PK
View Code? Open in Web Editor NEWNodejs cli app to search torrent sites and stream using peerflix
License: MIT License
Nodejs cli app to search torrent sites and stream using peerflix
License: MIT License
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.
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.
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 source don't provide all the functionality the others have.
Please add support to https://thepiratebay.se/ since it is back online. Thanks.
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!
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!
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...
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
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.
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?
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 !
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.
% torrentflix
? What torrent site do you want to search? YTS
? Search for a torrent: before i wake
Searching for before i wake on YTS...
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?
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.
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.
It would be nice to be able to search for an episode in eztv, like this: game of thrones 4x2
https://www.diffchecker.com/nkkpxky9
After an upgrade of peerflix dependencies, peerflix won't start/shows. torrent isn't downloaded
Edit: it's since 0.31.0 , when read-torrent was replaced by parse-torrent . All working fine with [email protected]
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.
Kickass has results but In command line search nothing is coming. why ?
Is it possible to get support for https://www.gay-torrents.net/ ?
It would be nice to add support for yts.re, it has an API so it shouldn't be difficult.
Hello
Please upgrade your app to utilize the available api of our site instead of direct hitting it.
You can read the api docs here
https://torrentapi.org/apidocs_v2.txt
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.
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(?)
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)
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.
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'
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
Instead of the default at /tmp
is it possible to edit the script to use mpv or mplayer ad default player ?
As I don't use VLC at all, and I preffer to just open http://localhost:8888 on any player (gnome-mpv my favorite, which is a frontend for mpv), then I just set through "torrentflix --config=vim":
"peerflix_player": "",
And with that, the subtitles are never looked for, and there's no error about it.
How would I used this to just get the .torrent file so I can pass it to client?
I use these french qbittorrent search engine plugins for qBittorrent:
https://github.com/davy39/qbfrench/blob/master/smartorrent.py
https://github.com/davy39/qbfrench/blob/master/t411.py
https://github.com/davy39/qbfrench/blob/master/torrent9.py
It would be great to port them for torrentflix. ;)
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)
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?
Scraper might be outdated.
Since kickass.so is no longer working, I suggest you switch to kickass.to.
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
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
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_4.x | sudo -E bash - #NODE 4
RUN apt-get -y install nodejs
RUN npm install -g peerflix
RUN npm install -g torrentflix
CMD torrentflix
I pretty much always use the same site for search, have to select the same thing every time. Is it possible to set a default search site? Or can it be passed as an argument?
Hi. I have some questions:
Hi, i've found your project very interesting and as im learning nodejs i tried to refactor it and placed the "search for a torrent" task to a separated project https://github.com/94b/search-torrents using babel and es6 classes.
~$ 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
9.0.0
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!
settings this "peerflix_path": "$HOME/Downloads/",
doesn't work as it should.
All is does is make a directory called "$HOME" in the current directory.
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.