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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d1c617ce0683c042b2fd3f872af909fc4c70a26
4
- data.tar.gz: cf2d3672bdaebd5e2e866ff188d2aef4351dceec
3
+ metadata.gz: bd622c432cbff9c3833a257afa28dda161ad7dd2
4
+ data.tar.gz: 20e23fbe17b381b1e216f31fa07b2187e90711c0
5
5
  SHA512:
6
- metadata.gz: 64f870b12d11642bfd8cb8fe3293e0cab6aaae68515e2969b688e46cf202c9cccdc96c3f70142450547ed2cb2b74a58949c3965998ac760cad3f1f6b3f498433
7
- data.tar.gz: 7a029f38ff619014b7c8e1cfb20f445c94d412609ecefd1f81c0073fb0a3a0de3b5cee0ca60e002dad46cd9ba3c7bab0fe5cec6befedabcf3068e48143853824
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
- TODO: Write usage instructions here
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/[my-github-username]/youtubeDL/fork )
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`)
@@ -1,3 +1,3 @@
1
1
  module YoutubeDL
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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 << ".%(ext)s"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtubeDL
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - cyburgee