yt 0.25.22 → 0.25.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/yt/collections/videos.rb +1 -1
- data/lib/yt/request.rb +1 -1
- data/lib/yt/version.rb +1 -1
- 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: 45aacd71fdb8352422647b10814d733e9382a085
|
4
|
+
data.tar.gz: 83f5aa65698a2e94f22c4a441c9c0c46dbf1fd6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c9ef16c43ad3e7d46884051cde3bd9ac0845165e4c53e01d407debc69313346dfd3f48fb7798f512de44a7151f4f895cd26d78d55af512090ee945c2996fa1b
|
7
|
+
data.tar.gz: 9c9d869558c6ac9d782716962104dd59483f28f8256c6b8546605e963199d264baa0b43f0a1d87e8dce8fbc5fc9adad6092efda493ee02574ddab9b955189205
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 0.25.23 - 2016-02-23
|
10
|
+
|
11
|
+
* [IMPROVEMENT] Retry 3 times after a server error, to bypass temporary glitches by YouTube.
|
12
|
+
* [IMPROVEMENT] Don’t combine forMine and publishedBefore parameters in Search#list since YouTube does not support this anymore.
|
13
|
+
|
9
14
|
## 0.25.22 - 2016-02-04
|
10
15
|
|
11
16
|
* [IMPROVEMENT] Deal with channels with more than 500 videos in a better way
|
@@ -77,7 +77,7 @@ module Yt
|
|
77
77
|
def next_page
|
78
78
|
super.tap do |items|
|
79
79
|
halt_list if use_list_endpoint? && items.empty? && @page_token.nil?
|
80
|
-
add_offset_to(items) if !use_list_endpoint? && videos_params[:order] == 'date'
|
80
|
+
add_offset_to(items) if !use_list_endpoint? && videos_params[:order] == 'date' && videos_params[:channel_id]
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
data/lib/yt/request.rb
CHANGED
@@ -197,7 +197,7 @@ module Yt
|
|
197
197
|
# for a couple of seconds might solve the connection issues.
|
198
198
|
def run_again?
|
199
199
|
refresh_token_and_retry? ||
|
200
|
-
server_error? && sleep_and_retry? ||
|
200
|
+
server_error? && sleep_and_retry?(3) ||
|
201
201
|
exceeded_quota? && sleep_and_retry?(3)
|
202
202
|
end
|
203
203
|
|
data/lib/yt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
4
|
+
version: 0.25.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|