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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab7ef4a42e7b9ea86e9abe6f083a6592bfd53169c57fd4fadbe7b663133cad14
4
- data.tar.gz: 84403107add5048e2a56504f5e9533865ab88dfaf1034de4099b7461634d8548
3
+ metadata.gz: f2489dc81725d6f88708240c5b40ad06984a1979d774a2dd37234c92b51b8eee
4
+ data.tar.gz: a2c877a19df8c5c191b8c73ede24e0e5ee20d0a16cbdb0ef659a71cca52a7f65
5
5
  SHA512:
6
- metadata.gz: ea01534e7ddf8525b5601da2aa625ec01040555ea3b64e98b6805807329b9ed76ef0d06f0606bb90afd1b5382539b2f04b96abdeca448fc2fceefc8ab2f2c9f1
7
- data.tar.gz: 699dfd762471fd4f7c7b3b01f8a1af6b024751b48a96a4b075be4687bf6a8294d490b57bdd4cad50c22b1d381a90328bf20b6bc47970bd116a2ff198ab10f072
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 in one step.
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
- -s, --src DIR Source directory
13
- -p, --photo DIR Photo Destination directory
14
- -m, --movie DIR Movie Destination directory
15
- -v, --verbose Verbose
16
- -h, --help Show this message
17
- Version: 0.2.0
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
@@ -1,3 +1,3 @@
1
1
  module Getpics
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.1
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.6
142
+ rubygems_version: 2.7.7
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Download pictures from camera