ytdl 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 439640337775a1bd6f925a57b09c51191bc39bfa5da4c923b34b47a8362f8ea7
4
- data.tar.gz: 248e1b7c2194dff4c04a3483a0655bd2c61347b3033ef1f94fe4ae0a30cc772b
3
+ metadata.gz: 4c0f064c711d1c5c7df4d91a6ed987af9b864d14bda66ef83b5d6940e727e06d
4
+ data.tar.gz: 2681213e134127435630306bc64b79e79dbd36be7bebce20ee401eba174889b3
5
5
  SHA512:
6
- metadata.gz: 473eb094c10cfc1b4920f6b4822ffc5b7b9f02223adc7d803c2493e20381936ac003b1f0986c5d653332cb24726eafe0e432004c9205201648b6588e632e12f7
7
- data.tar.gz: b75444244c3fdfd8817d0510c68d15a04de420b4d4c8e522bccf51aa6c388f778926066b68c811b1e6894bc2000ad1c78ca754790c77207f61a82ce064dfe173
6
+ metadata.gz: ef0726050a719d15f0851335bce6956ad7f90e21e83e9ab2aa87aa9fe839b7e17c431f6407b88d3cb83910cf8c72d0fd401599ba6b4ba0830becde1dc4de9870
7
+ data.tar.gz: 215f9e391841246a5e49a5bee06b57456197d693d98a12f1aeaccab85515cc79c33a7902110cbb195dad6b876c516c1268f5f3a14fad8887508a904ab9e32863
@@ -20,6 +20,15 @@ module YoutubeDL
20
20
  return :destination
21
21
  end
22
22
 
23
+ if m[:merger]
24
+ state.destination = Pathname(m[:merger])
25
+ return :merger
26
+ end
27
+
28
+ if m[:deleting]
29
+ return :deleting
30
+ end
31
+
23
32
  if m[:info_json]
24
33
  state.info_json = Pathname(m[:info_json]) if m[:info_json]
25
34
  return :info_json
@@ -53,6 +62,8 @@ module YoutubeDL
53
62
  #{progress_regex} |
54
63
  #{destination_regex} |
55
64
  #{existing_destination_regex} |
65
+ #{merger_regex} |
66
+ #{deletion_regex} |
56
67
  #{info_json_regex} |
57
68
  #{error_regex}
58
69
  }x
@@ -88,6 +99,20 @@ module YoutubeDL
88
99
  }x
89
100
  end
90
101
 
102
+ def merger_regex
103
+ %r{
104
+ \[Merger\] \s+ Merging \s+ formats \s+ into \s+
105
+ "(?<merger>[^"]+)"
106
+ }x
107
+ end
108
+
109
+ def deletion_regex
110
+ %r{
111
+ Deleting \s+ original \s+ file \s+
112
+ (?<deleting>.*)
113
+ }x
114
+ end
115
+
91
116
  def info_json_regex
92
117
  %r{
93
118
  \[info\] \s Writing \s video .*? \s metadata \s as \s JSON \s to: \s
@@ -10,6 +10,8 @@ module YoutubeDL
10
10
  :error,
11
11
  :info_json,
12
12
  :info,
13
+ :merger,
14
+ :deleting,
13
15
  )
14
16
 
15
17
  def error?
@@ -1,3 +1,3 @@
1
1
  module YoutubeDL
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ytdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Hollmann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-02 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable