Coder Social home page Coder Social logo

zflix's Introduction

GitHub issues Build Status

A python CLI to seek torrent and directly stream them with peerflix.

Requirements

npm install -g peerflix

Usage

zflix.py [-h] [-d DESTDIR] [-m] [-p PLAYER] [-no NUMBER_OF_OUTPUT] search

positional arguments: | --------------------------------------------------------- | ------------------------------------------------------------ search |

optional arguments: Help message.
-h, --help Show this help message and exit.
-d DESTDIR, --destdir DESTDIR Destination of the downloaded torrent.
-m, --magnet Use magnet link (no torrent download).
-p PLAYER, --player PLAYER Choose the player you want to use to watch your streamed torrent.
-no NUMBER_OF_OUTPUT, --number_of_output NUMBER_OF_OUTPUT Number of torrent displayed with your search.
-s, --subtitle Make the program download subtitle (or not if the option is already set to "True" in your config file (default))
-l LANGUAGE, --language LANGUAGE Set the language you want to use for the subtitles (see here in ISO 639-2/5 column to find your language).

Example

python3 zflix.py "Revolution OS"

zflix screenshot

Want to contribute ?

It would be awesome !! Check out the wiki, you will find some documentation.

License

GPLv3.

zflix's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

zflix's Issues

Error with python3

File "zflix.py", line 275, in
main(option)
File "zflix.py", line 135, in main
torrentToStream = ref.get_magnet(torrentLink)
File "/home/thomas/Documents/zflix/src/trackers/torrentz.py", line 205, in get_magnet
trackerPage, trackerName = next(downloadLocationTest, None)
File "/home/thomas/Documents/zflix/src/trackers/torrentz.py", line 161, in get_specific_tracker
os.write(sys.stdout.fileno(), "trying %s... \n" % name)
TypeError: 'str' does not support the buffer interface

zflixrc

got this error : IOError: [Errno 2] No such file or directory: '~/.zflixrc'

Issue when getting the first in the list

Traceback (most recent call last):
File "zflix.py", line 238, in
main(option)
File "zflix.py", line 142, in main
torrentToStream = pageLink['ref'].get_magnet(pageLink['link'])
File "/home/thomas/Documents/zflix/src/trackers/torrentz.py", line 217, in get_magnet
magnet = self.get_magnet_from_tracker(trackerPage)
File "/home/thomas/Documents/zflix/src/trackers/torrentz.py", line 150, in get_magnet_from_tracker
if 'magnet:' in urls[i].get('href'):
IndexError: list index out of range

Add trackers

Torrentproject, torrentreactor use an other page to the download. And bitsnoop, tpb, kat are blocked in belgium.

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.