vidload 0.3.3 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7181701b014459237b2d54b48fa246a4218c002e8caf2bce4f36f7d2d4882d26
4
- data.tar.gz: f16e3bd0e7dfcb008a7c1cab1a14345c44e6e7b1ab0d202660cba1d19161adb0
3
+ metadata.gz: a4ec46038fec427696fc8d8e1f86c84f3df2d0ea39663a3a39daf5dfcafcd2c5
4
+ data.tar.gz: f519d1682b9fb02c9eaf123b9cc68850bf120234b84281cb9fd175dc1c40ba07
5
5
  SHA512:
6
- metadata.gz: 67470011b4518c594f4ea3c899a48ab0d5aa7104d64584a533df42ffa531d32d996e9962444fe1f09c637fd613cbf1762c8acee8494b16df4c1131b44789ff57
7
- data.tar.gz: fe9f12aeed6f937fc58225874dd037c50d2421f0cc2256f78be48d2efc57ee9f294133c8252a2e7ab510e4d33960d6940ed94c1c50dc40b096464d8dd6e331a9
6
+ metadata.gz: a4f75f282726d7c831bd716c6b7bcdb9fd892832350a8fb8d84b5a0c93801bf347fa6e3aaaccfb6fccc5d5733130083cf82c3a6b90609ff23b28e763751f855d
7
+ data.tar.gz: aaf65273085bff9ad12b516c6a264c96b07f1246c989b01a479583a402d6a1097d169c51596a324147003a4f0a52b876ac7625ec532bd682699a03d5a5d40d0d
@@ -5,6 +5,7 @@ require 'tty-spinner'
5
5
  require 'open3'
6
6
  require 'm3u8'
7
7
  require 'io/console'
8
+ require 'fileutils'
8
9
 
9
10
  module Vidload
10
11
  module Mp2t
@@ -170,6 +171,7 @@ module Vidload
170
171
  def trigger_video_download(video_url, seg_qty)
171
172
  VIDEO_START_DOWNLOAD_EVENT_QUEUE << true
172
173
  puts 'Video starts. Starting download...'
174
+ FileUtils.mkdir_p(@kwargs[:output_dir], mode: 0o755)
173
175
  run_cmd(DEMUXER_PATH, video_url, "#{@kwargs[:output_dir]}#{@kwargs[:video_name]}",
174
176
  @kwargs[:video_referer]) do |line|
175
177
  if (line.include?('hls @') || line.include?('https @')) && line.match?(/#{@kwargs[:ts_seg_pattern]}/i)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vidload
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patacode <pata.codegineer@gmail.com>