JOCHLSDownloader 0.0.3 → 0.0.4
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.md +8 -5
- metadata +1 -1
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
JOCHLSDownloader
|
2
|
-
|
2
|
+
|
3
|
+
[ ](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
|