nyaa-transmission 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nyaa_search.rb +3 -3
- data/lib/providers.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d4a7fd35e2e76c32a9f0d55ee59441a12b36ea53efd0d76948c88afa3f64be
|
4
|
+
data.tar.gz: 19c788466ce35314456a120802101364d208627437d7c4e2db7bc27d2cf73b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acbbdf0b554ccf35cba875d742bf7c307210d942ce408a2f1c8c5ec80540bd632ecfe63a11924af1621ecaad8289202880b780b37c1527bd1499e940b13bfd06
|
7
|
+
data.tar.gz: dd28a6cc25088c941ea887e84382336197cc078e50c8777b16ccce8a9bed5dd45fc18668b2ad45a7dc183679230106e7696b044ef5711151781c929e2a1a4d34
|
data/lib/nyaa_search.rb
CHANGED
@@ -20,13 +20,13 @@ module Nyaa::Category
|
|
20
20
|
end
|
21
21
|
|
22
22
|
class NyaaSearch
|
23
|
-
attr_accessor :filter, :category, :query, :
|
23
|
+
attr_accessor :filter, :category, :query, :submitter, :page
|
24
24
|
|
25
25
|
def initialize(args={})
|
26
26
|
self.filter = args[:filter] || Nyaa::Filter::NoFilter
|
27
27
|
self.category = args[:category] || Nyaa::Category::AllCategories
|
28
28
|
self.query = args[:query] || ""
|
29
|
-
self.
|
29
|
+
self.submitter = args[:submitter] || nil
|
30
30
|
self.page = args[:page] || 1
|
31
31
|
end
|
32
32
|
|
@@ -36,7 +36,7 @@ class NyaaSearch
|
|
36
36
|
"c" => self.category,
|
37
37
|
"q" => self.query,
|
38
38
|
"p" => self.page,
|
39
|
-
"u" => self.
|
39
|
+
"u" => self.submitter,
|
40
40
|
}
|
41
41
|
URI.encode_www_form(form.compact)
|
42
42
|
end
|
data/lib/providers.rb
CHANGED
@@ -14,7 +14,7 @@ class HorribleSubs < Provider
|
|
14
14
|
:filter => Nyaa::Filter::TrustedOnly,
|
15
15
|
:category => Nyaa::Category::Anime::EnglishTranslated,
|
16
16
|
:query => "1080p -batch #{series}",
|
17
|
-
:
|
17
|
+
:submitter => "HorribleSubs",
|
18
18
|
:page => 1
|
19
19
|
)
|
20
20
|
|
@@ -29,7 +29,7 @@ class EraiRaws < Provider
|
|
29
29
|
:filter => Nyaa::Filter::TrustedOnly,
|
30
30
|
:category => Nyaa::Category::Anime::EnglishTranslated,
|
31
31
|
:query => "1080p -\"~\" #{series}",
|
32
|
-
:
|
32
|
+
:submitter => "Erai-raws",
|
33
33
|
:page => 1
|
34
34
|
)
|
35
35
|
|
@@ -43,8 +43,7 @@ class Blackjaxx < Provider
|
|
43
43
|
search_criteria = NyaaSearch.new(
|
44
44
|
:filter => Nyaa::Filter::NoFilter,
|
45
45
|
:category => Nyaa::Category::Anime::EnglishTranslated,
|
46
|
-
:query => "1080p -batch #{series}",
|
47
|
-
:user => "Blackjaxx",
|
46
|
+
:query => "Blackjaxx 1080p -batch #{series}",
|
48
47
|
:page => 1
|
49
48
|
)
|
50
49
|
|