getpics 0.2.0 → 0.2.1

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: dc21e026035f037a2f61dd5054460646e41c4bb72e8e236dee2ed7d24eeea428
4
- data.tar.gz: 384fd39d788784969e906f376eac195d81f721a8cfa4e950b47e3a9490c2dc15
3
+ metadata.gz: ab7ef4a42e7b9ea86e9abe6f083a6592bfd53169c57fd4fadbe7b663133cad14
4
+ data.tar.gz: 84403107add5048e2a56504f5e9533865ab88dfaf1034de4099b7461634d8548
5
5
  SHA512:
6
- metadata.gz: 9e9321d7cd8ad4f5d57ab1b27e70e2d0c8b96990d66d7351e9fed52841f0364923f1ad4e33bd9088447a3c32ff4190e31b4529ad622edc48353b8653cbc3a2a1
7
- data.tar.gz: 4e5832f060d18aa11818555e724aca6700a96e4a2eb0f4c038b6131b004be024a344a4db840b502a68984e781c2c43e5718f18473bd1ce4723ec4e2fe2d6f089
6
+ metadata.gz: ea01534e7ddf8525b5601da2aa625ec01040555ea3b64e98b6805807329b9ed76ef0d06f0606bb90afd1b5382539b2f04b96abdeca448fc2fceefc8ab2f2c9f1
7
+ data.tar.gz: 699dfd762471fd4f7c7b3b01f8a1af6b024751b48a96a4b075be4687bf6a8294d490b57bdd4cad50c22b1d381a90328bf20b6bc47970bd116a2ff198ab10f072
@@ -58,7 +58,7 @@ module Getpics
58
58
  end
59
59
  movies_to_process = []
60
60
  @media_list.movies.each do |movie|
61
- dest_path = "#{movie.target_folder}/#{File.basename(movie.target_name, '.MOV')}.mp4"
61
+ dest_path = "#{movie.target_folder}/#{File.basename(movie.target_name, movie.extension)}.mp4"
62
62
  if ! File.exists?(dest_path)
63
63
  movies_to_process << movie
64
64
  else
data/lib/getpics/media.rb CHANGED
@@ -15,7 +15,8 @@ module Getpics
15
15
  @orig_path = path
16
16
  @name = File.basename(@path)
17
17
  @folder = File.dirname(@path)
18
- @extension = File.extname(@path).downcase
18
+ @extension = File.extname(@path)
19
+ @down_case_extension = File.extname(@path).downcase
19
20
 
20
21
  if ! @name.match?(/^_/)
21
22
  @name = "_" + @name
@@ -34,11 +35,11 @@ module Getpics
34
35
  @date = File.mtime(@path)
35
36
  end
36
37
 
37
- if RAW_EXTENSIONS.include?(@extension)
38
+ if RAW_EXTENSIONS.include?(@down_case_extension)
38
39
  @type = RawType.new
39
- elsif DEVELOPED_EXTENSIONS.include?(@extension)
40
+ elsif DEVELOPED_EXTENSIONS.include?(@down_case_extension)
40
41
  @type = DevelopedType.new
41
- elsif MOVIE_EXTENSIONS.include?(@extension)
42
+ elsif MOVIE_EXTENSIONS.include?(@down_case_extension)
42
43
  @type = MovieType.new
43
44
  else
44
45
  @type = UnknownType.new
@@ -1,3 +1,3 @@
1
1
  module Getpics
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getpics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug P.