JOCHLSDownloader 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.md +8 -5
  2. 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
- hlsdownloader = CJOCHLSDownloader.new(url, downloadpath, logfilename, Logger::DEBUG)
18
+ hlsdownloader = CJOCHLSDownloader.new(url, downloadpath, logfilename, Logger::DEBUG)
17
19
 
18
- hlsdownloader.startdownload
20
+ hlsdownloader.startdownload
19
21
 
20
- puts "End!"
22
+ puts "End!"
21
23
 
22
24
  rescue Exception => e
23
25
 
24
- puts "Error: #{e.message}, Trace: #{e.backtrace.inspect}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JOCHLSDownloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: