aniview 0.1.0 → 0.1.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: d81c0b1844154bc94629cf7169c785a92666a668
4
- data.tar.gz: d616a2e6e77f1e2760d21f8c32b71353d67c51c0
3
+ metadata.gz: 2b66376f37357235ebbe99719bb1cbb0d0b5e8e0
4
+ data.tar.gz: 43a06a03050384618d6239dfd70dcbc6318e5273
5
5
  SHA512:
6
- metadata.gz: 36e06051afb3ec9d24319d2ab87e7ced2b12d9c80fa9f47ec0ebad466d2bd76582ac151cada7e9619cd6a20e89596eb03daf9b6485bc6b1338f2b44c66749401
7
- data.tar.gz: be788e75a654904503993761973bf88c626ea02a293971b1868b1755f188b368df603486ff0106ea2b3d34a4f9e18c9aea6f3602c8f1ec5f67f5154df0b72b0a
6
+ metadata.gz: c23568aac4d1e285150ac4b542957aa2e6358c4509a05551c131755ef70027805c86d664e2b7c2a4b6f27b77ed0da9694bc2eca07f8cb2adbda5f87abaff6946
7
+ data.tar.gz: b74432dc91c9b6702e7f1fb66b65ed37ec2591ac8b7f44ebe1837f4b0fe33a33ed682b96ab82e4422353829aeb8733e2fea214bd350fe445763bd8e768162e56
data/bin/aniview CHANGED
@@ -1,6 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'aniview'
3
+ begin
4
+ require 'aniview'
5
+ rescue LoadError
6
+ require_relative '../lib/aniview' if File.exist?(File.join(File.dirname(__FILE__), '../lib/aniview.rb'))
7
+ end
8
+
9
+ unless defined? AniView
10
+ puts "cant find aniview library"
11
+ exit
12
+ end
4
13
 
5
14
  av = AniView.new
6
15
  av.run
@@ -39,7 +39,7 @@ class AnimeIO
39
39
  def index_anime(force: false, verbose: false)
40
40
  ret = {}
41
41
  (@pref.get("anime_locations").split(":")).each { |dir|
42
- Dir.glob("#{dir}*/*.mkv").each { |file|
42
+ Dir.glob("#{dir}*/*.{mkv,avi,mp4}").each { |file|
43
43
  puts "indexing #{file}" if verbose
44
44
  seen_this = false
45
45
  if @@local_anime != nil and @@local_anime.key?(file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aniview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - annacrombie