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 +4 -4
- data/lib/getpics/downloader.rb +1 -1
- data/lib/getpics/media.rb +5 -4
- data/lib/getpics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7ef4a42e7b9ea86e9abe6f083a6592bfd53169c57fd4fadbe7b663133cad14
|
4
|
+
data.tar.gz: 84403107add5048e2a56504f5e9533865ab88dfaf1034de4099b7461634d8548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea01534e7ddf8525b5601da2aa625ec01040555ea3b64e98b6805807329b9ed76ef0d06f0606bb90afd1b5382539b2f04b96abdeca448fc2fceefc8ab2f2c9f1
|
7
|
+
data.tar.gz: 699dfd762471fd4f7c7b3b01f8a1af6b024751b48a96a4b075be4687bf6a8294d490b57bdd4cad50c22b1d381a90328bf20b6bc47970bd116a2ff198ab10f072
|
data/lib/getpics/downloader.rb
CHANGED
@@ -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,
|
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)
|
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?(@
|
38
|
+
if RAW_EXTENSIONS.include?(@down_case_extension)
|
38
39
|
@type = RawType.new
|
39
|
-
elsif DEVELOPED_EXTENSIONS.include?(@
|
40
|
+
elsif DEVELOPED_EXTENSIONS.include?(@down_case_extension)
|
40
41
|
@type = DevelopedType.new
|
41
|
-
elsif MOVIE_EXTENSIONS.include?(@
|
42
|
+
elsif MOVIE_EXTENSIONS.include?(@down_case_extension)
|
42
43
|
@type = MovieType.new
|
43
44
|
else
|
44
45
|
@type = UnknownType.new
|
data/lib/getpics/version.rb
CHANGED