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 +4 -4
- data/lib/youtube_dl/output_parser.rb +25 -0
- data/lib/youtube_dl/state.rb +2 -0
- data/lib/youtube_dl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c0f064c711d1c5c7df4d91a6ed987af9b864d14bda66ef83b5d6940e727e06d
|
4
|
+
data.tar.gz: 2681213e134127435630306bc64b79e79dbd36be7bebce20ee401eba174889b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/youtube_dl/state.rb
CHANGED
data/lib/youtube_dl/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2024-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|