getpics 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/bin/getpics +5 -1
- data/lib/getpics/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: f2489dc81725d6f88708240c5b40ad06984a1979d774a2dd37234c92b51b8eee
|
4
|
+
data.tar.gz: a2c877a19df8c5c191b8c73ede24e0e5ee20d0a16cbdb0ef659a71cca52a7f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3e8e5af759309849a530a5d955b4684ba23d2df0fd5b3fdd75ab645f076fb4dd8697775edbf99fe70930bd0ad5f047947166f4f5c435f8f4f96f2c0cfa1b41
|
7
|
+
data.tar.gz: 7f140ef760fd6de21435abf871b7bf116993905635a3e2a598d6c397983977357839bdede11ce7fa0696c19fec6be0fd3ad83a9ed3b7c0044083d7cf651450fa
|
data/README.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Getpics
|
2
2
|
|
3
|
-
Use this script to copy and organize media files
|
3
|
+
Use this script to copy and organize media files from your camera or
|
4
|
+
other media source in one step. It will copy your files to a
|
5
|
+
```<dest>/YYYY/mm/dd/``` type folder structure, and add the file's
|
6
|
+
creation date to its name. It can also optionally convert quicktime
|
7
|
+
files (.mov) to .mp4, using ```ffmpeg``` if it's installed on the
|
8
|
+
system.
|
4
9
|
|
5
10
|
## Installation
|
6
11
|
|
@@ -8,13 +13,14 @@ Use this script to copy and organize media files in one step.
|
|
8
13
|
|
9
14
|
## Usage
|
10
15
|
|
11
|
-
Usage: getpics [options]
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
Usage: getpics [options]
|
17
|
+
-s, --src DIR Source directory
|
18
|
+
-p, --photo DIR Photo Destination directory
|
19
|
+
-m, --movie DIR Movie Destination directory
|
20
|
+
-c, --convert Convert movies to mp4
|
21
|
+
-v, --verbose Verbose
|
22
|
+
-h, --help Show this message
|
23
|
+
Version: 0.2.1
|
18
24
|
|
19
25
|
## Contributing
|
20
26
|
|
data/bin/getpics
CHANGED
@@ -22,6 +22,10 @@ OptionParser.new do |opts|
|
|
22
22
|
options[:movie_dest] = m
|
23
23
|
end
|
24
24
|
|
25
|
+
opts.on("-c", "--convert", "Convert movies to mp4") do |c|
|
26
|
+
options[:convert] = c
|
27
|
+
end
|
28
|
+
|
25
29
|
opts.on("-v", "--verbose", "Verbose") do |v|
|
26
30
|
options[:verbose] = v
|
27
31
|
end
|
@@ -36,7 +40,7 @@ end.parse!
|
|
36
40
|
dl = Getpics::Downloader.new(options[:verbose], options[:src], options[:photo_dest], options[:movie_dest])
|
37
41
|
dl.load_media
|
38
42
|
dl.copy_media
|
39
|
-
dl.convert_media
|
43
|
+
dl.convert_media if options[:convert]
|
40
44
|
|
41
45
|
puts "Do you want to delete the media from #{options[:src]}? [y/N]".yellow
|
42
46
|
delete = gets.strip
|
data/lib/getpics/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug P.
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.7.
|
142
|
+
rubygems_version: 2.7.7
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Download pictures from camera
|