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 +4 -4
- data/bin/aniview +10 -1
- data/lib/aniview/interface/animeio/animeio.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b66376f37357235ebbe99719bb1cbb0d0b5e8e0
|
4
|
+
data.tar.gz: 43a06a03050384618d6239dfd70dcbc6318e5273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|