aniview 3.2.0 → 3.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
  SHA1:
3
- metadata.gz: 0ea930584ab074643f3257cfb4ead82380d28a8e
4
- data.tar.gz: dd51a52724248c507c8fcf171181ed73aa30acd0
3
+ metadata.gz: 35841bf12f2ea102c4989e8ce4834fb71677720e
4
+ data.tar.gz: 59a991c9ab06d540d15eca688e90ba4aa2af5a78
5
5
  SHA512:
6
- metadata.gz: 337ae5115ba6619e0e526e8ef7d8dfc424671c36c8698d4e5b39dddb24fd6f873b715c8c383805e21d48f4cd33fc4d1ab9b7ba4cae0e16c4bf1cec8e95c813fe
7
- data.tar.gz: 657aee82a1a6ac61017368fd4d5238813535a25dcfe36d0c7326be23883188e58b1811786bfa06ce5124d0ac885c082ea84efbbaaff70eb35fa4f34afc44222c
6
+ metadata.gz: c52b3272b6a5fc92f4c2e01ed56939c8f309ba669cabd751ddcb1e4a2b5e54bed48755dff119bbfeff2d97c63c717ecbaa62932a14f6bd6e142093be2920cef8
7
+ data.tar.gz: cd05a2b6c9ebcf1ee532987e665136bd82d36b192cba2bbd98060cfdf4a4f1ff37556153810b6a9e41d4ed67a33604acf52d80a45dd14e7cf7a11102139c4d20
data/README.md CHANGED
@@ -1,10 +1,28 @@
1
1
  # aniview
2
- command line anime library viewer
2
+ command line media library viewer
3
3
 
4
4
  ![screenshot](https://raw.githubusercontent.com/annacrombie/aniview/master/screenshot.png)
5
5
 
6
+ ## features
7
+ + well optimized, aniview consues very little resources
8
+ + keeps track of which episodes you have watched, even on removable drives
9
+ + ability to set up subscriptions to automatically torrent new episodes of shows as they become available
10
+ + real time updating library as files are added / removed
11
+ + fully customizeable display with format strings
12
+ + client / server model with daemon process that keeps your shows up to date
13
+
6
14
  ## installation
7
- ### using rubygems
15
+ First ensure that all the requirements are satisfied
16
+
17
+ ### requirements
18
+ + ruby 2.4.0
19
+ + ffmpeg
20
+ + an up to date version of [mpv](https://mpv.io/installation/)
21
+ + Deluge*
22
+
23
+ * Only required to use the torrent feature
24
+
25
+ ### install using rubygems
8
26
  `gem install aniview`
9
27
 
10
28
  ## documentation
data/bin/aniview CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  begin
4
- require 'aniview'
5
- rescue LoadError
6
4
  require_relative '../lib/aniview' if File.exist?(File.join(File.dirname(__FILE__), '../lib/aniview.rb'))
5
+ rescue LoadError
6
+ require 'aniview'
7
7
  end
8
8
 
9
9
  unless defined? Aniview
data/lib/aniview.rb CHANGED
@@ -5,6 +5,8 @@ require_relative 'daemon'
5
5
  # Main namespace for Aniview and all its classes
6
6
  module Aniview
7
7
 
8
+ self::Version = "3.2.1"
9
+
8
10
  def self.show_help
9
11
  puts "aniview"
10
12
  puts "-h : show this message"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -25,15 +25,16 @@ module Aniview
25
25
  end
26
26
 
27
27
  def event_handler event
28
- @logger.debug event
29
28
  case event["event"]
30
29
  #file-loaded
31
30
  when "start-file"
31
+ @logger.debug "start file"
32
32
  @playing = true
33
33
  @what_changed = {:playing_status => :start}
34
34
  changed
35
35
  notify_observers
36
36
  when "end-file"
37
+ @logger.debug "end file"
37
38
  @playing = false
38
39
  @what_changed = {:playing_status => :end}
39
40
  changed
@@ -58,7 +59,7 @@ module Aniview
58
59
  @mpv_enabled = false
59
60
  begin
60
61
  @mpv = MPV::Session.new(user_args: @pref.get("mpv_args").split(" "))
61
- @mpv.callbacks << MPV::Callback.new(self, :event_handler)
62
+ @mpv.callbacks << method(:event_handler)
62
63
  @mpv.client.command("observe_property_string", 1, "path")
63
64
  #@mpv.client.command("observe_property_string", 1, "playback-abort")
64
65
  rescue MPV::MPVNotAvailableError
@@ -69,6 +70,7 @@ module Aniview
69
70
  end
70
71
 
71
72
  def play file
73
+ @logger.debug "playing file"
72
74
  return unless @mpv_enabled
73
75
  connect
74
76
  @playing_files = {file.path => file}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/application.rb CHANGED
@@ -186,13 +186,14 @@ module Aniview
186
186
 
187
187
  def drawview
188
188
  @view.draw
189
- @statusline.draw
189
+ #@statusline.draw
190
190
  @rcount ||= 0
191
191
  #puts "refreshed view #{@rcount+=1}"
192
192
  end
193
193
 
194
194
  def togglestatusline
195
- return unless @mpvbridge.what_changed[:playing_status]
195
+ @logger.debug "toggling status line"
196
+ return unless @mpvbridge.what_changed.key? :playing_status
196
197
  unless @statusthread
197
198
  @statusthread = Thread.new do
198
199
  while true
@@ -221,6 +222,7 @@ module Aniview
221
222
  # @return nil
222
223
  #
223
224
  def run
225
+ @logger.debug "yo"
224
226
  nm = @pref.get("menu_titles")
225
227
  views = {
226
228
  :unwatched => {view: @aiomenu, name: nm["unwatched"], format: "format_library_unwatched", rfunc: :unwatched},
data/lib/daemon.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aniview
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - annacrombie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-26 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: streamio-ffmpeg
@@ -116,20 +116,20 @@ dependencies:
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '1.2'
119
+ version: '2.0'
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 1.2.1
122
+ version: 2.0.2
123
123
  type: :runtime
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '1.2'
129
+ version: '2.0'
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 1.2.1
132
+ version: 2.0.2
133
133
  description: Browse local anime, based on cmus
134
134
  email: meotleft@gmail.com
135
135
  executables:
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.6.11
193
+ rubygems_version: 2.6.8
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: command line anime library manager