layback 0.1.3 → 0.2.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/Android_installer/layback_app.apk +0 -0
- data/README.md +23 -13
- data/bin/layback_loader +3 -2
- data/lib/layback/version.rb +1 -1
- data/media/logo.jpg +0 -0
- data/media/remote_control_screenshot.jpg +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc6442788ee8b4521e8de02034870376e5c3ccf8
|
4
|
+
data.tar.gz: feeaad713fd1d185a3bbc8fac2823c76534c2cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10a24874c5553a6595e05b5c9f530e834e65c6909ace6047b791db01c2003bcab91bf0b029b944a477aadb879d5780c6dc6a8beb152954d2fb3a0fd98e1825b1
|
7
|
+
data.tar.gz: 3add4bc7700b01418bda75cdd65dea10e60a47d151154b88501491de551420f325672ed55c580009eedafdc705f1559eaeaa6f1a274c568c098149615ced13e9
|
Binary file
|
data/README.md
CHANGED
@@ -5,6 +5,11 @@
|
|
5
5
|
|
6
6
|
When a movie finishes downloading `Layback` will search and download its subtitles automatically.
|
7
7
|
|
8
|
+
<center>
|
9
|
+
<img src="https://raw.github.com/evandrojr/layback/master/media/logo.jpg" height="350" />
|
10
|
+
</center>
|
11
|
+
<BR>
|
12
|
+
|
8
13
|
## Installation
|
9
14
|
|
10
15
|
I don't know the reason for it, but installing the gem using sudo it not working. So I recommend you install RVM or rbenv in advance and then install layback with a non privileged user like yourself.
|
@@ -17,22 +22,28 @@ Then install Layback yourself as:
|
|
17
22
|
|
18
23
|
$ gem install layback
|
19
24
|
|
20
|
-
|
21
25
|
## Tools
|
22
26
|
|
23
|
-
There are
|
27
|
+
There are 4 tools at the moment:
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
crawl4subs: Will download the subtitles of the movies
|
30
|
+
inside a parent folder recursively.
|
27
31
|
|
28
|
-
|
29
|
-
|
32
|
+
watch4subs: Watches a folder for new movies and downloads the subtitles as soon
|
33
|
+
as the movie finishes downloading.
|
30
34
|
|
31
|
-
|
32
|
-
|
35
|
+
lang4subs: Change the default language of
|
36
|
+
all the movies in a parent folder recursively.
|
33
37
|
|
38
|
+
layback remote app: Android remote control.
|
39
|
+
[Download at:]( https://github.com/evandrojr/layback/blob/master/Android_installer/layback_app.apk?raw=true)
|
34
40
|
|
35
|
-
|
41
|
+
<center>
|
42
|
+
<img src="https://raw.github.com/evandrojr/layback/master/media/remote_control_screenshot.jpg" height="300" />
|
43
|
+
</center>
|
44
|
+
<BR>
|
45
|
+
|
46
|
+
Sorry but just for now if you want to use the remote control keep your movies files in the directory "~Downloads" otherwise it won't work.
|
36
47
|
|
37
48
|
## Usage
|
38
49
|
|
@@ -40,7 +51,7 @@ In case you are a polyglot you can pass as many languages as you like as paramet
|
|
40
51
|
|
41
52
|
$ crawl4subs "folder-with-movies" pob eng por
|
42
53
|
|
43
|
-
for
|
54
|
+
In case you are a polyglot you can pass as many languages as you like as parameters. The first language available for the movie will be set as the default language for the movie.
|
44
55
|
|
45
56
|
Default languages are: eng por spa ger on this sequence of priority. [Sub language ISO 639-2](https://github.com/byroot/ruby-osdb/blob/master/lib/osdb/language.rb) code like pob (Brazilian Portuguese), fre or eng.
|
46
57
|
|
@@ -48,10 +59,10 @@ Default languages are: eng por spa ger on this sequence of priority. [Sub langua
|
|
48
59
|
|
49
60
|
Edit your rc.local file to start watch4subs after boot
|
50
61
|
|
51
|
-
su (username) -lc "
|
62
|
+
su (username) -lc "layback_loader {folder-with-movies}"
|
52
63
|
|
53
64
|
Example
|
54
|
-
`su evandro -lc "
|
65
|
+
`su evandro -lc "layback_loader ~/Downloads"`
|
55
66
|
|
56
67
|
|
57
68
|
### Change the languages of the subtitles
|
@@ -60,7 +71,6 @@ Example
|
|
60
71
|
|
61
72
|
Bug reports and pull requests are welcome on GitHub at https://github.com/evandrojr/layback. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
62
73
|
|
63
|
-
|
64
74
|
## License
|
65
75
|
|
66
76
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/bin/layback_loader
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
|
2
3
|
system(__dir__ + "/layback_remote_control_server -o 0.0.0.0 &")
|
3
|
-
system("watch4subs
|
4
|
-
system("crawl4subs
|
4
|
+
system("watch4subs #{ARGV[0]} pob por spa eng bre ger &")
|
5
|
+
system("crawl4subs #{ARGV[0]} pob por spa eng bre ger &")
|
data/lib/layback/version.rb
CHANGED
data/media/logo.jpg
ADDED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: layback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evandro Junior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -158,6 +158,8 @@ files:
|
|
158
158
|
- lib/settings.rb
|
159
159
|
- lib/sl.rb
|
160
160
|
- lib/watcher.rb
|
161
|
+
- media/logo.jpg
|
162
|
+
- media/remote_control_screenshot.jpg
|
161
163
|
homepage: https://github.com/evandrojr/layback
|
162
164
|
licenses:
|
163
165
|
- MIT
|