cinema 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cinema.rb +6 -3
- data/lib/cinema/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba917e49edd5b86cf329e6eb52852e37e02bd4c2
|
4
|
+
data.tar.gz: aafb7012609bdb0c9f2b076fa4020710f82f85d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c2c5bda97f19fe58baa324463dc972a7925c0c69a38e372dc109871fc8f1fc6d8ad7063a832a4216897bf0cb8261b3ae5d83861c50f408fb5117ff9d4938fa1
|
7
|
+
data.tar.gz: 3c7f8c122f2e2dcf1d6a6cdccfe068b56f0441d69e6cb612d2731a3500c617da1f4017e731f46e64cec38a54a20d9daf1b4970eca4e3d9240d5f5a6d90b5ab04
|
data/lib/cinema.rb
CHANGED
@@ -9,9 +9,12 @@ module Cinema
|
|
9
9
|
def ask_and_play
|
10
10
|
imdb_id = select("Select movie", watchlist, ->(x){ x["title"] })["imdb_id"]
|
11
11
|
torrent = select("Select quality", torrents(imdb_id), ->(x){ x.quality })["torrent_url"]
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
downloader = select("Select downloader", ["peerflix","qbittorrent","wget","echo"], ->(x){x})
|
13
|
+
if downloader == 'peerflix'
|
14
|
+
player = select("Select player", ["mplayer","vlc"], ->(x){x})
|
15
|
+
system downloader, torrent, "--#{player}"
|
16
|
+
else
|
17
|
+
system "sh", "-c", "#{downloader} #{torrent} &"
|
15
18
|
end
|
16
19
|
end
|
17
20
|
|
data/lib/cinema/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ales Guzik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|