miyuki 0.5 → 0.5.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: 0d1d62e953d637ca08c623be1773c1fe6e9d96ec
4
- data.tar.gz: cae2deff7388f7bfc4d8f6f28f751eb03aa476fe
3
+ metadata.gz: c1b5cdd2ca3a7334fb2e26d3d487ebc3a3412da4
4
+ data.tar.gz: ba67c450e2fd42b800e81563e83579f4fa8e46a7
5
5
  SHA512:
6
- metadata.gz: fa4d58397e07128b437f0e9308e4e36e7c2ed2edffd99db3e922467a86c8c9094d9a042ede7fd5ffdbef4e67f83e1928a0256f43bf1cd2b16280ab6091a7c3c4
7
- data.tar.gz: 2dc1f9116496dfc6be9a6079ca5808c077a7bb256cffe78d2d2bc19f7c0380135f483e5cb639a0364e9e114ddb79367b4fd8217f3475eea757fbfcef6c7dba5c
6
+ metadata.gz: db06c6faa82622ca30115340ea6c501910d4ef6e294b0c76290471a2dd98d4919732cd27a917d5c900627266085de1af6158face2a6de8e9c92bb972c461525c
7
+ data.tar.gz: 8319890577375d7694bbecbfff86ce1e5fc0a0d52c9392e625b688bdad77a340c63d40c3ff36a67b91daa6005d8289e02a4694e2ca5e3da1d2d93569643f0e25
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.5.1
2
+ - Fix bug that ignores already downloaded episodes
3
+
1
4
  # 0.5
2
5
  - Add episodes block in the configuration file to download range of episodes
3
6
 
data/lib/miyuki/miyuki.rb CHANGED
@@ -59,10 +59,9 @@ module Miyuki
59
59
  old_torrents = @tracker.torrents
60
60
 
61
61
  @tracker.refresh
62
- @tracker.remove_duplicates(old_torrents)
62
+ @tracker.remove_duplicates_from(old_torrents)
63
63
 
64
- new_torrents = @tracker.torrents
65
- new_torrents.each { |new_torrent| notify_torrents(new_torrent) }
64
+ old_torrents.each { |new_torrent| notify_torrents(new_torrent) }
66
65
  end
67
66
 
68
67
  def load_config
@@ -48,11 +48,9 @@ module Miyuki
48
48
  end
49
49
  end
50
50
 
51
- def remove_duplicates(other_torrents)
52
- @torrents.delete_if do |torrent|
53
- other_torrents.each do |other_torrent|
54
- return true if torrent.link == other_torrent.link
55
- end
51
+ def remove_duplicates_from(other_torrents)
52
+ other_torrents.delete_if do |torrent|
53
+ @torrents.select { |other_torrent| torrent.link == other_torrent.link }.any?
56
54
  end
57
55
  end
58
56
 
@@ -13,5 +13,5 @@
13
13
  ##
14
14
 
15
15
  module Miyuki
16
- VERSION = '0.5'
16
+ VERSION = '0.5.1'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miyuki
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roxas Shadow