propre 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/bin/propre +4 -2
- data/lib/propre/version.rb +1 -1
- data/lib/propre.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8d4f8827aec0bc2ce9ff3581aa69e2b46973790
|
4
|
+
data.tar.gz: a7a6f9ec7d86dac0d7344e5666189e305bbf0fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7ceed35a8411953d75aa74a088349c16649786b4ad4fb933cf247792665e8896deac8d9bd4855f85cdf12260be6d14b0a4f188057620cda4b572cf560115dc
|
7
|
+
data.tar.gz: b56cfb345dd0888fa1ecfe176757bd0ce3a9967db5c38508b9836a786e77276c047f484d6e59563f77d1468e075b5536b27d63acafb59e9cda264411b0b68f4c
|
data/README.md
CHANGED
@@ -30,19 +30,17 @@ To use Propre, you need an API Key from TheMovieDB. Get your API key [here](http
|
|
30
30
|
|
31
31
|
##Changelog
|
32
32
|
|
33
|
+
### 0.1.1
|
34
|
+
|
35
|
+
- Fix bug when no movie was found
|
36
|
+
- Fix wording
|
37
|
+
|
33
38
|
### 0.1.0
|
34
39
|
|
35
40
|
- The first result is now the best match in the list (using similar_text)
|
36
41
|
- Results are now ordered by release date
|
37
42
|
- Extensions are now in lowercase when renaming (.AVI,.Avi -> .avi)
|
38
43
|
|
39
|
-
### 0.0.8
|
40
|
-
|
41
|
-
- Add version and usage params
|
42
|
-
- Fix: Create config directory if not present
|
43
|
-
- Fix: Wording
|
44
|
-
- Better errors handling
|
45
|
-
|
46
44
|
Disclaimer
|
47
45
|
----------
|
48
46
|
|
data/bin/propre
CHANGED
@@ -50,13 +50,15 @@ def main(options)
|
|
50
50
|
else
|
51
51
|
propre = Propre.new(options)
|
52
52
|
if File.directory?(ARGV[0])
|
53
|
-
puts "Searching for movies
|
53
|
+
puts "Searching for movies in directory..."
|
54
54
|
propre.crawlDirectory(ARGV[0])
|
55
55
|
end
|
56
56
|
|
57
57
|
if File.file?(ARGV[0])
|
58
58
|
puts "Searching for movie title..."
|
59
|
-
propre.searchMovieFromFile(ARGV[0])
|
59
|
+
if !propre.searchMovieFromFile(ARGV[0])
|
60
|
+
puts "No movie found for #{ARGV[0]}"
|
61
|
+
end
|
60
62
|
end
|
61
63
|
end
|
62
64
|
end
|
data/lib/propre/version.rb
CHANGED
data/lib/propre.rb
CHANGED
@@ -51,6 +51,7 @@ class Propre
|
|
51
51
|
abort("Error: Did you set you're API Key ? (401)")
|
52
52
|
end
|
53
53
|
end
|
54
|
+
if @movies.empty? then return false end
|
54
55
|
@movies = @movies.sort { |a,b| b.release_date <=> a.release_date }
|
55
56
|
movie = @movies.max_by {|v| filename.similar(v.title)}
|
56
57
|
@movies.delete(@movies.index(movie))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: propre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Yadomi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parseconfig
|