JOCHLSDownloader 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -5
- metadata +1 -1
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
JOCHLSDownloader
|
2
|
-
|
2
|
+
|
3
|
+
[![Version ](https://badge.fury.io/rb/JOCHLSDownloader.svg) ](https://rubygems.org/gems/JOCHLSDownloader)
|
3
4
|
|
4
5
|
The JOCHLSDownloader is a very simple native ruby code that downloads all files linked by a m3u8 manifest
|
5
6
|
|
6
7
|
Usage examples:
|
7
8
|
|
9
|
+
```ruby
|
8
10
|
require 'JOCHLSDownloader.rb'
|
9
11
|
|
10
12
|
url = "https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8"
|
@@ -13,16 +15,17 @@ logfilename = "jochlsdownloader.log"
|
|
13
15
|
|
14
16
|
begin
|
15
17
|
|
16
|
-
|
18
|
+
hlsdownloader = CJOCHLSDownloader.new(url, downloadpath, logfilename, Logger::DEBUG)
|
17
19
|
|
18
|
-
|
20
|
+
hlsdownloader.startdownload
|
19
21
|
|
20
|
-
|
22
|
+
puts "End!"
|
21
23
|
|
22
24
|
rescue Exception => e
|
23
25
|
|
24
|
-
|
26
|
+
puts "Error: #{e.message}, Trace: #{e.backtrace.inspect}"
|
25
27
|
|
26
28
|
end
|
29
|
+
```
|
27
30
|
|
28
31
|
Note: Test URL from Apple HLS example
|