cinema 2.0.0 → 2.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/README.md +8 -20
- data/lib/cinema.rb +2 -2
- data/lib/cinema/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d225844e5eceadc94ca34949f795de82bacdb5
|
4
|
+
data.tar.gz: e563cc3990759300cc0195594388636804cf540d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4a757678da6db59842ed64c5cf3352deb35c6cf60bd8379903edcfb5c68992e44b1cbd17c7777cf5c7161fa2df36e423220ebfbd4a5ebed5e7273b93b38073
|
7
|
+
data.tar.gz: 4767c973f7322eccd6458c36c61880a09191ff021ebb0210e412ffb8577c472cd57e0823192932be39a496516fc15cb31c4e2ac6d252ffd7e252b5c23330b076
|
data/README.md
CHANGED
@@ -1,31 +1,19 @@
|
|
1
1
|
# Cinema
|
2
2
|
|
3
|
-
|
3
|
+
Select movie from trakt.tv watchlist and stream it from torrents
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'cinema'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
7
|
$ gem install cinema
|
20
8
|
|
21
9
|
## Usage
|
22
10
|
|
23
|
-
|
11
|
+
Run `cinema` command.
|
12
|
+
|
13
|
+
On first run browser will open. Authorize the app
|
14
|
+
and enter PIN code.
|
24
15
|
|
25
|
-
|
16
|
+
You will be presented with movie list from your
|
17
|
+
trakt.tv account. Select movie, quality, app for streaming
|
18
|
+
and video player. Enjoy!
|
26
19
|
|
27
|
-
1. Fork it ( https://github.com/[my-github-username]/cinema/fork )
|
28
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
-
5. Create a new Pull Request
|
data/lib/cinema.rb
CHANGED
@@ -48,14 +48,14 @@ module Cinema
|
|
48
48
|
def watchlist
|
49
49
|
with_unreliable_api do
|
50
50
|
puts "Requesting watchlist..."
|
51
|
-
trakt_request(:get, "
|
51
|
+
trakt_request(:get, "sync/watchlist/movies")
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
55
|
def torrents(imdb_id)
|
56
56
|
with_unreliable_api do
|
57
57
|
puts "Searching torrents..."
|
58
|
-
response = RestClient.get("http://yts.
|
58
|
+
response = RestClient.get("http://yts.ag/api/v2/list_movies.json?query_term=#{imdb_id}").body
|
59
59
|
JSON.parse(response)["data"]["movies"].first["torrents"]
|
60
60
|
end
|
61
61
|
end
|
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: 2.
|
4
|
+
version: 2.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:
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,8 +103,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.6.3
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Select movie from trakt.tv watchlist and stream it from torrents
|
110
110
|
test_files: []
|
111
|
+
has_rdoc:
|