video_transcoding 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 0a94a897c4b0d0b13222ade41f3b316c4b6cc301
4
- data.tar.gz: 5f380d8c5e13f6f6ef3c2e4a043d4b7f18a9bfe1
3
+ metadata.gz: 80b986149305c8a0c302c70abb056c81a90aed95
4
+ data.tar.gz: c95bed4f9b7d80859f4336e861e2688065b5bcbe
5
5
  SHA512:
6
- metadata.gz: 6408941ae8dda50ceee9dcf93e401e22bd75d51e5ba03bd685558dc7cc818e39df3867948eaf8ba1bb69ba497e5bc16afdda48e397318d74657226c64e04774f
7
- data.tar.gz: 78a010a87ae097a51f0c9c0322a0df1d36dc9fe3322439709306af302c192d2dee672932fe24cd3a4d9966875a3785abff8470b51648719edf00ed91bb7badf4
6
+ metadata.gz: c461f4d97f407a6c83d4270d5d5d2bce5a2d02b447c3dd273608b5c002e08751b73d778225b7f67687d8413fd941abbb7c4ca8dcd457bab8d74ec041c1205961
7
+ data.tar.gz: 6b8a577b426c1eafcbcd77c201c8b84dcef8602fd1551169b7d958eecd3a84b92dfe7fc03a6be225648c744415f9a23075d487f34a3115fa43c6a6c7c58de429
@@ -62,7 +62,7 @@ module VideoTranscoding
62
62
  @scan = Media.scan(@path, @title, @previews)
63
63
  end
64
64
 
65
- if @scan =~ / libhb: scan thread found ([0-9.]+) valid title/
65
+ if @scan =~ / libhb: scan thread found ([0-9]+) valid title/
66
66
  fail 'multiple titles found' if $1.to_i > 1
67
67
  end
68
68
 
@@ -92,7 +92,7 @@ module VideoTranscoding
92
92
 
93
93
  return @info unless @extended
94
94
 
95
- unless @scan =~ / \+ audio tracks:\r?\n(.*) \+ subtitle tracks:\r?\n(.*)(?:\r?\n)?HandBrake has exited./m
95
+ unless @scan =~ / \+ audio tracks:\r?\n(.*) \+ subtitle tracks:\r?\n(.*)HandBrake has exited./m
96
96
  fail 'audio and subtitle information not found'
97
97
  end
98
98
 
@@ -102,7 +102,7 @@ module VideoTranscoding
102
102
  @info[:subtitle] = {}
103
103
 
104
104
  audio.gsub(/\r/, '').each_line do |line|
105
- if line =~ /^ \+ ([0-9.]+), [^(]+\(([^)]+)\) .*\(([0-9.]+) ch\) .*\(iso639-2: ([a-z]{3})\)/
105
+ if line =~ /^ \+ ([0-9]+), [^(]+\(([^)]+)\) .*\(([0-9.]+) ch\) .*\(iso639-2: ([a-z]{3})\)/
106
106
  track = $1.to_i
107
107
  track_info = {}
108
108
  track_info[:format] = $2
@@ -116,20 +116,16 @@ module VideoTranscoding
116
116
  end
117
117
 
118
118
  @info[:audio][track] = track_info
119
- else
120
- fail "invalid audio track information: #{line}"
121
119
  end
122
120
  end
123
121
 
124
122
  subtitle.gsub(/\r/, '').each_line do |line|
125
- if line =~ /^ \+ ([0-9.]+), .*\(iso639-2: ([a-z]{3})\) \((?:Text|Bitmap)\)\(([^)]+)\)/
123
+ if line =~ /^ \+ ([0-9]+), .*\(iso639-2: ([a-z]{3})\) \((?:Text|Bitmap)\)\(([^)]+)\)/
126
124
  track = $1.to_i
127
125
  track_info = {}
128
126
  track_info[:language] = $2
129
127
  track_info[:format] = $3
130
128
  @info[:subtitle][track] = track_info
131
- else
132
- fail "invalid subtitle track information: #{line}"
133
129
  end
134
130
  end
135
131
 
@@ -5,5 +5,5 @@
5
5
  #
6
6
 
7
7
  module VideoTranscoding
8
- VERSION = '0.2.2'
8
+ VERSION = '0.2.3'
9
9
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_transcoding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Melton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Video Transcoding is a package of tools to transcode, inspect
@@ -52,6 +52,7 @@ files:
52
52
  - video_transcoding-0.1.4.gem
53
53
  - video_transcoding-0.2.0.gem
54
54
  - video_transcoding-0.2.1.gem
55
+ - video_transcoding-0.2.2.gem
55
56
  - video_transcoding.gemspec
56
57
  homepage: https://github.com/donmelton/video_transcoding
57
58
  licenses: