subdb 0.1.0 → 0.1.1
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.
- data/README.textile +28 -1
- data/bin/subdb +0 -1
- data/lib/subdb/version.rb +1 -1
- metadata +3 -3
data/README.textile
CHANGED
@@ -1 +1,28 @@
|
|
1
|
-
|
1
|
+
h1. Ruby SubDB
|
2
|
+
|
3
|
+
This project aims to provide a simple API for accessing "SubBD":http://thesubdb.com/
|
4
|
+
|
5
|
+
h2. Installation
|
6
|
+
|
7
|
+
bc. gem install subdb
|
8
|
+
|
9
|
+
h2. Command Line Usage
|
10
|
+
|
11
|
+
You can simply use it by command line to sync your subtitles with SubDB, let's say you have a folder called @~/Movies@ where all your movies are placed, you can do simple:
|
12
|
+
|
13
|
+
bc. subdb ~/Movies
|
14
|
+
|
15
|
+
It will upload any subtitle that you already have to SubDB, and will try to download subtitles for movies that don't already have a local one.
|
16
|
+
|
17
|
+
h2. Library Usage
|
18
|
+
|
19
|
+
If you plan to use on your project, SubDB gem also provides a simple interface for it. You can figure it all with the following example:
|
20
|
+
|
21
|
+
bc.. require 'subdb'
|
22
|
+
|
23
|
+
file = Subdb.new("path_to_your_movie.mp4")
|
24
|
+
file.search # will retrieve a string with available languages (ex: "pt,en") or nil if don't have anyone
|
25
|
+
file.download(["en", "pt"]) # will download the subtitle for given language, it tries in order of array
|
26
|
+
file.upload("path_to_subtitle.str") # will upload a subtitle for this movie
|
27
|
+
|
28
|
+
p. It's only this :)
|
data/bin/subdb
CHANGED
data/lib/subdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wilker Lucio
|