sensible-cinema 0.23.4 → 0.23.5

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.
data/TODO CHANGED
@@ -17,6 +17,7 @@
17
17
  == high prio like blocking bugs ==
18
18
 
19
19
  == under next release specific items: ==
20
+ mplayerx work?
20
21
  latest dir "conflict" for grabbing sintel from file
21
22
  can I just use ffmpeg for -> ts ? http://eotmsnotes.wordpress.com/2011/04/25/tsmuxer-notes/
22
23
  cheap minimize demo "fake auto" :)
@@ -147,7 +148,8 @@
147
148
  investigate: can I use zoomplayer max?
148
149
  investigate dvdrsbvdl (windows media center edl plugin)
149
150
 
150
- == DVD/DVD-realtime backlog (totally unordered, some very low prio, basically all never do) ==
151
+ == DVD+-DVD-realtime backlog (totally unordered, some very low prio, basically all never do) ==
152
+ the auto-matcher filename to subtitles [?]
151
153
  "media browser" plugin?
152
154
  @makemkv: show us the title numbers, and number them *by those*
153
155
  @macports: set notestxt \
@@ -338,6 +340,7 @@ ask swank if individuals can rent too?
338
340
 
339
341
  == random non-DVD backlog ... or never do DVD. note: just plow forward, to "grab" available ideas...except that for now, just what *I* plan on needing for myself (filters for what I need/want). ==
340
342
 
343
+ @mplayer: you return the wrong return code, sillys! https://gist.github.com/1056292
341
344
  @smplayer: bounty or me fix: their for their display [if they use get_time_pos isn't that enough ?]
342
345
  @mplayer is it really too slow [link], and there thus no hope for EDL working right? maybe it could change to be based off the get_time_pos ?
343
346
  Also things skip-worthy include The prefix/endfix of Netflix
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.23.4
1
+ 0.23.5
@@ -114,7 +114,7 @@ module SensibleSwing
114
114
 
115
115
  def force_accept_license_first
116
116
  require_blocking_license_accept_dialog 'Sensible Cinema', 'gplv3', 'http://www.gnu.org/licenses/gpl.html', 'Sensible Cinema license agreement',
117
- "Sensible Cinema is distributed under the gplv3.\nBY CLICKING \"accept\" YOU SIGNIFY THAT YOU HAVE READ, UNDERSTOOD AND AGREED TO ABIDE BY THE TERMS OF THIS AGREEMENT"
117
+ "Sensible Cinema is distributed under the gplv3 (http://www.gnu.org/licenses/gpl.html).\nBY CLICKING \"accept\" YOU SIGNIFY THAT YOU HAVE READ, UNDERSTOOD AND AGREED TO ABIDE BY THE TERMS OF THIS AGREEMENT"
118
118
  require_blocking_license_accept_dialog 'Sensible Cinema', 'is_it_legal_to_copy_dvds.txt file', File.expand_path(File.dirname(__FILE__) + "/../documentation/is_it_legal_to_copy_dvds.txt"),
119
119
  'is_it_legal_to_copy_dvds.txt file', 'I acknowledge that I have read, understand, accept and agree to abide by the implications noted in the documentation/is_it_legal_to_copy_dvds.txt file'
120
120
  Storage['main_license_accepted'] = VERSION
@@ -503,7 +503,7 @@ module SensibleSwing
503
503
 
504
504
  def show_assert_dialog message
505
505
  returned = JOptionPane.showConfirmDialog self, message, message, JOptionPane::YES_NO_CANCEL_OPTION
506
- assert_confirmed_dialog returned
506
+ assert_confirmed_dialog returned, nil
507
507
  end
508
508
 
509
509
  def require_blocking_license_accept_dialog program, license_name, license_url_should_also_be_embedded_by_you_in_message,
@@ -511,7 +511,7 @@ module SensibleSwing
511
511
  puts 'Please confirm license agreement in open window.'
512
512
  old = ['no', 'yes', 'ok'].map{|name| 'OptionPane.' + name + 'ButtonText'}.map{|name| [name, UIManager.get(name)]}
513
513
  UIManager.put("OptionPane.yesButtonText", 'Accept')
514
- UIManager.put("OptionPane.noButtonText", "View File (#{license_name})")
514
+ UIManager.put("OptionPane.noButtonText", "View #{license_name}")
515
515
  # cancel button stays the same...
516
516
 
517
517
  message ||= "Sensible Cinema requires a separately installed program (#{program}). You can install this program
@@ -523,19 +523,21 @@ module SensibleSwing
523
523
  You agree that you are responsible for the download and use of this program, within sensible cinema or otherwise."
524
524
 
525
525
  returned = JOptionPane.showConfirmDialog self, message, title, JOptionPane::YES_NO_CANCEL_OPTION
526
- assert_confirmed_dialog returned
526
+ assert_confirmed_dialog returned, license_url_should_also_be_embedded_by_you_in_message
527
527
  p 'confirmed license noted: ' + license_name
528
528
  throw unless returned == 0
529
529
  old.each{|name, old_setting| UIManager.put(name, old_setting)}
530
530
  end
531
531
 
532
- def assert_confirmed_dialog returned
532
+ def assert_confirmed_dialog returned, license_url_should_also_be_embedded_by_you_in_message
533
533
  # 1 is view button was clicked
534
534
  # 0 is accept
535
535
  # 2 is cancel
536
536
  if returned == 1
537
- system_non_blocking("start #{license_url_should_also_be_embedded_by_you_in_message}")
538
- puts "Please restart after reading license agreement, to be able to then accept it."
537
+ if license_url_should_also_be_embedded_by_you_in_message
538
+ system_non_blocking("start #{license_url_should_also_be_embedded_by_you_in_message}")
539
+ puts "Please restart after reading license agreement, to be able to then accept it."
540
+ end
539
541
  System.exit 1
540
542
  end
541
543
  if returned == 2
@@ -754,13 +756,20 @@ module SensibleSwing
754
756
  save_to_file_name = save_to_file_name.gsub(' ', '_').gsub( /\W/, '') # no punctuation or spaces for now...
755
757
  fc.set_file(get_drive_with_most_space_with_slash + save_to_file_name)
756
758
  save_to = fc.go
759
+ begin
760
+ FileUtils.touch save_to
761
+ File.delete save_to
762
+ rescue Errno::EACCES => e
763
+ show_blocking_message_dialog "unable to write to that directory, please pick again: " + e.to_s
764
+ raise 'pick again!'
765
+ end
757
766
  a = File.open(File.dirname(save_to) + "/test_file_to_see_if_we_have_permission_to_write_to_this_folder", "w")
758
767
  a.close
759
768
  File.delete a.path
760
769
  freespace = get_freespace(save_to)
761
- if freespace < 16_000_000_000
770
+ if freespace < 8_000_000_000
762
771
  show_blocking_message_dialog("Warning: there may not be enough space on the disk for #{save_to}
763
- (depending on DVD size, you may need like 16G free, but typically will need around 10GB free--you have #{freespace/1_000_000_000}GB free). Click OK to continue.")
772
+ (depending on DVD size, you may need around 10G free--you have #{freespace/1_000_000_000}GB free). Click OK to continue.")
764
773
  end
765
774
  raise 'cannot save to filname with spaces yet (ask for it)' if save_to =~ / /
766
775
  save_to
@@ -920,7 +929,7 @@ module SensibleSwing
920
929
  show_blocking_message_dialog "Done--you may now watch file\n #{saved_to}\n in VLC player (or possibly smplayer)"
921
930
  end
922
931
  else
923
- show_blocking_message_dialog("Failed--please examine console output and report back!\nAlso consult the troubleshooting section of the README file.", "Failed", JOptionPane::ERROR_MESSAGE)
932
+ show_blocking_message_dialog("Failed--please examine console output and report back!\nAlso consult the documentation/troubleshooting file.", "Failed", JOptionPane::ERROR_MESSAGE)
924
933
  end
925
934
  end
926
935
 
@@ -1,6 +1,12 @@
1
+ == 0.23.5 ==
2
+
3
+ Cleanup some terminology/minor bug fix/usability fixes.
4
+
1
5
  == 0.23.4 ==
2
6
 
3
- Can process by filename now if no DVD is inserted (warns and asserts they must own it).
7
+ Can process by filename now if no DVD is inserted (warns and asserts they must own it, then uses it).
8
+ It also memorizes directory names auto-magically according to source line location.
9
+ This one was quickly superceded by 0.23.5 to accomodate for some fatal bug.
4
10
 
5
11
  == 0.23.3 ==
6
12
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sensible-cinema}
8
- s.version = "0.23.4"
8
+ s.version = "0.23.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roger Pack"]
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  "Rakefile",
24
24
  "TODO",
25
25
  "VERSION",
26
- "_DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_INSTEAD",
26
+ "_DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_FROM_SOURCEFORGE_INSTEAD",
27
27
  "bin/sensible-cinema",
28
28
  "bin/sensible-cinema-cli",
29
29
  "business_ideas.txt",
@@ -100,6 +100,7 @@ Gem::Specification.new do |s|
100
100
  "spec/tsmuxer.output",
101
101
  "spec/vlc_programmer.spec.rb",
102
102
  "template_bats/RUN SENSIBLE CINEMA CLICK HERE.bat",
103
+ "template_bats/_DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_FROM_SOURCEFORGE_INSTEAD",
103
104
  "template_bats/advanced--create or edit sensible cinema delete list files.bat",
104
105
  "todo.build_library.txt",
105
106
  "todo.inventionzy.txt",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sensible-cinema
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.23.4
5
+ version: 0.23.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Roger Pack
@@ -217,7 +217,7 @@ files:
217
217
  - Rakefile
218
218
  - TODO
219
219
  - VERSION
220
- - _DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_INSTEAD
220
+ - _DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_FROM_SOURCEFORGE_INSTEAD
221
221
  - bin/sensible-cinema
222
222
  - bin/sensible-cinema-cli
223
223
  - business_ideas.txt
@@ -294,6 +294,7 @@ files:
294
294
  - spec/tsmuxer.output
295
295
  - spec/vlc_programmer.spec.rb
296
296
  - template_bats/RUN SENSIBLE CINEMA CLICK HERE.bat
297
+ - template_bats/_DO_NOT_RUN_IT_FROM_HERE_DOWNLOAD_THE_RELEASE_ZIP_FROM_SOURCEFORGE_INSTEAD
297
298
  - template_bats/advanced--create or edit sensible cinema delete list files.bat
298
299
  - todo.build_library.txt
299
300
  - todo.inventionzy.txt