youtubeDL 0.0.2 → 0.0.3
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 +2 -2
- data/lib/youtubeDL/version.rb +1 -1
- data/lib/youtubeDL.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd622c432cbff9c3833a257afa28dda161ad7dd2
|
4
|
+
data.tar.gz: 20e23fbe17b381b1e216f31fa07b2187e90711c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b3db3ae428110792609b012d0148b988e2a5dbe77e2d8b13024286ef5ebffc567ee5a4a80a976c8f929609b7f4f9d712b37ba08f14f433340a03bc330cd3b0
|
7
|
+
data.tar.gz: deb5b69f9f80117735177f274df6c0390fb494c2235906c971682e5764d55f16037d02e069e16ef0ff31b6caf5ea32bd19761aeb93e6c7602f236cee33e95675
|
data/README.md
CHANGED
@@ -20,11 +20,11 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Gem wrapper for youtube-dl. You need youtube-dl (http://rg3.github.io/youtube-dl/index.html) installed on your system.
|
24
24
|
|
25
25
|
## Contributing
|
26
26
|
|
27
|
-
1. Fork it ( https://github.com/
|
27
|
+
1. Fork it ( https://github.com/cyburgee/youtubeDL/fork )
|
28
28
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
29
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
30
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/youtubeDL/version.rb
CHANGED
data/lib/youtubeDL.rb
CHANGED
@@ -8,7 +8,7 @@ class YoutubeDL
|
|
8
8
|
@vidID = videoID
|
9
9
|
@id = SecureRandom.uuid
|
10
10
|
@options = Array.new
|
11
|
-
@downloadPath = "/tmp/" << @id << "
|
11
|
+
@downloadPath = "/tmp/" << @id << ".mp4"
|
12
12
|
@downloadProgress = "/tmp/" << @id << "_progress.txt"
|
13
13
|
progressFile = File.open(@downloadProgress, "w+")
|
14
14
|
progressFile.close
|
@@ -16,6 +16,10 @@ class YoutubeDL
|
|
16
16
|
#$download_progress = '/tmp/'.$videoID.'_'.session_id().'_progress.txt';
|
17
17
|
end
|
18
18
|
|
19
|
+
def getVideoPath
|
20
|
+
return @downloadPath
|
21
|
+
end
|
22
|
+
|
19
23
|
# Your code goes here...
|
20
24
|
def addOption(option)
|
21
25
|
@options << option
|
@@ -66,5 +70,6 @@ class YoutubeDL
|
|
66
70
|
File.delete(@progressFile)
|
67
71
|
end
|
68
72
|
end
|
73
|
+
|
69
74
|
end
|
70
75
|
|