Took out the need for VLC. The program will just use MPV to stream movies/tv, because it's already needed for streaming music.

This commit is contained in:
Kepoor Hampond 2016-07-19 15:13:41 -07:00
parent 151c73cd19
commit 773e00240f
2 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,6 @@ There are some more external command-line programs that are essential to movies,
``` ```
- OSX: Same as Windows, except follow [this](http://blog.teamtreehouse.com/install-node-js-npm-mac) guide. - OSX: Same as Windows, except follow [this](http://blog.teamtreehouse.com/install-node-js-npm-mac) guide.
- Ubuntu: Again, the same, only follow [this](http://blog.teamtreehouse.com/install-node-js-npm-linux) guide instead. - Ubuntu: Again, the same, only follow [this](http://blog.teamtreehouse.com/install-node-js-npm-linux) guide instead.
- VLC: Just download and install it [here](http://www.videolan.org/vlc/index.html).
### Install ### Install

4
irs.py
View file

@ -290,7 +290,7 @@ def main():
elif media == "movie": elif media == "movie":
if what_to_do == "stream": if what_to_do == "stream":
os.system('peerflix "%s" -a -d --vlc' % get_torrent_url(args, 'movie')) os.system('peerflix "%s" -a -d --mpv' % get_torrent_url(args, 'movie'))
exit(0) exit(0)
elif what_to_do == "download": elif what_to_do == "download":
os.system("rtorrent '%s'" % get_torrent_url(args, 'movie')) os.system("rtorrent '%s'" % get_torrent_url(args, 'movie'))
@ -298,7 +298,7 @@ def main():
elif media == "tv": elif media == "tv":
if what_to_do == "stream": if what_to_do == "stream":
os.system('peerflix "%s" -a -d --vlc' % get_torrent_url(args, 'tv')) os.system('peerflix "%s" -a -d --mpv' % get_torrent_url(args, 'tv'))
exit(0) exit(0)
elif what_to_do == "download": elif what_to_do == "download":
os.system("rtorrent '%s'" % get_torrent_url(args, 'tv')) os.system("rtorrent '%s'" % get_torrent_url(args, 'tv'))