qbittorrent 1.3 → 1.4

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
  SHA256:
3
- metadata.gz: 1a3812a79a260400595e389a56c86f356173b41384e3326f3ad7b0f72777b432
4
- data.tar.gz: 2123789d9dee0e7e62a842422a5a2c293e403a8fc396493a8d472d99c07aa8c8
3
+ metadata.gz: bd90e7798b2b3b4821706e7fc39b6e32dddbb3aa429fd3d495ff9e9e4b893bc4
4
+ data.tar.gz: d5a3111c25a399be3088c114db8066640f67317db9d0b78a8328b1b2b8ca38f5
5
5
  SHA512:
6
- metadata.gz: 7615e38c3df23ad84596b6536e5dd5c67a918839436b969e73b7c097dbb82416f43c0c152482412c78b059b66c27a5e1186507c1c91355871fd4e2fff633a717
7
- data.tar.gz: 017f2ee40149c1e06fa388137a75cebc56bb1b1c113e1c0214d2d5efa7ff874c612222e8870d95a520ef7e830a38480f4fb7b3f550c680eb379432e6c6eb2c39
6
+ metadata.gz: 567ab7d252edcdeed915192ae8f914e9050ed3df97483751594ed8f8277919af047fe6b13bc1f351de6e14305fee680ab18a6670f3e8069ee597d272618ffdc8
7
+ data.tar.gz: 142e0cbb0f1c0ec1154c1728c6d64f6b41c2f04bfa8399b3d8b0a5476c4f62962f1a1658c4ec2d9c1b50995178ba57705962511b5a8efc2dbbbe8315dfd006f6
data/.gitignore CHANGED
@@ -6,4 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- .byebug_history
9
+ .byebug_history
10
+ .DS_Store
data/README.md CHANGED
@@ -95,6 +95,10 @@ client.delete_torrents(hashes, delete_files)
95
95
  client.add_torrents(urls_of_file_path, options)
96
96
  ```
97
97
 
98
+ ### **[Reannounce torrents](https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#reannounce-torrents)**
99
+ ```
100
+ client.reannounce(hashes)
101
+ ```
98
102
  ## License
99
103
 
100
104
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module QBittorrent
2
- VERSION = '1.3'.freeze
2
+ VERSION = '1.4'.freeze
3
3
  end
@@ -27,6 +27,14 @@ module QBittorrent
27
27
  })
28
28
  end
29
29
  end
30
+
31
+ def reannounce(hashes = 'all')
32
+ send_request("/torrents/reannounce") do |api_url|
33
+ api_client.post(api_url, form: {
34
+ hashes: hashes
35
+ })
36
+ end
37
+ end
30
38
  end
31
39
  end
32
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbittorrent
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Zheng
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-26 00:00:00.000000000 Z
11
+ date: 2022-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -71,7 +71,7 @@ metadata:
71
71
  homepage_uri: https://github.com/royzheng/qbittorrent
72
72
  source_code_uri: https://github.com/royzheng/qbittorrent
73
73
  changelog_uri: https://github.com/royzheng/qbittorrent
74
- post_install_message:
74
+ post_install_message:
75
75
  rdoc_options: []
76
76
  require_paths:
77
77
  - lib
@@ -86,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.0.8
90
- signing_key:
89
+ rubygems_version: 3.1.2
90
+ signing_key:
91
91
  specification_version: 4
92
92
  summary: QBittorrent WEB API Client.
93
93
  test_files: []