video_chat_get 0.3.6.2 → 0.3.6.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: 4662e57c0a6c43ef81eb2bcc22c01b4f6d16645b4946be927dd6a24acbf91b40
4
- data.tar.gz: 856cac4e6c2bbe28df8dc559ef28868ca7cdf2ef787767fedccb51dff033116c
3
+ metadata.gz: 83418b0f926605a344db6ae3e0aa39ba74ab018d25de882fa901ace16159f871
4
+ data.tar.gz: f6b069aac3bee63994e3f82ef0c3152122cf00064e39c5dac4999957d5d66ec1
5
5
  SHA512:
6
- metadata.gz: 7bff3ec3b94ca8f83721f82c01a77653555e51d380ce06b392c36bffaa0e9f088261c8f61e79d4bbe0e5e000e3149947bf6078b60b260877ec85956c53554a0a
7
- data.tar.gz: 8cb60cd69d3771c1768a62e607ffbd60b7dbf9c156493de383a58d8b2f290f8867cc1c909ae6b31e6741af53cd357e0490b72e94ccfa80a157b516572662605d
6
+ metadata.gz: 52e74db9ecd2d52c6ae527a610d9eb2ed9efc21e678b658200bb0e2f70af331d7eaa653778a8225816601837f8d2311d92d4b854a51d68a6191320cc71ab63f3
7
+ data.tar.gz: c80d5d8599bdd73e229cc221ea1a935567193d4055b0ef53edc30e413aead5deb12f39b2ec2b5327bf3fe1273e42c4b84fcaa829cc78f7239539e03648944366
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video_chat_get (0.3.6.2)
4
+ video_chat_get (0.3.6.4)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -50,13 +50,18 @@ class Youtubelive_analyze<Video_analyze
50
50
  def videoinfo_extraction()
51
51
 
52
52
  videoinfo={}
53
- common_hash=@videoinfo_body["contents"]["twoColumnWatchNextResults"]["results"]["results"]["contents"]
53
+ common_hash = @videoinfo_body.dig("contents", "twoColumnWatchNextResults", "results" , "results", "contents")
54
+ if common_hash == nil then
55
+ return videoinfo
56
+ end
54
57
 
55
- videoinfo["ch"]=common_hash[1]["videoSecondaryInfoRenderer"]["owner"]["videoOwnerRenderer"]["title"]["runs"][0]["text"]
56
- videoinfo["title"]=common_hash[0]["videoPrimaryInfoRenderer"]["title"]["runs"][0]["text"]
57
- videoinfo["starttime"]=common_hash[0]["videoPrimaryInfoRenderer"]["dateText"]["simpleText"]
58
- videoinfo["videocount"]=common_hash[0]["videoPrimaryInfoRenderer"]["viewCount"]["videoViewCountRenderer"]["viewCount"]["simpleText"]
59
- videoinfo["good"]=common_hash[0]["videoPrimaryInfoRenderer"]["videoActions"]["menuRenderer"]["topLevelButtons"][0]["segmentedLikeDislikeButtonViewModel"]["likeButtonViewModel"]["likeButtonViewModel"]["toggleButtonViewModel"]["toggleButtonViewModel"]["defaultButtonViewModel"]["buttonViewModel"]["title"]
58
+ videoinfo["ch"]=common_hash.dig(1, "videoSecondaryInfoRenderer", "owner", "videoOwnerRenderer", "title", "runs", 0, "text")
59
+ videoinfo["chid"]=common_hash.dig(1, "videoSecondaryInfoRenderer", "owner", "videoOwnerRenderer", "title", "runs", 0, "navigationEndpoint", "browseEndpoint", "browseId")
60
+ videoinfo["title"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "title", "runs", 0, "text")
61
+ videoinfo["starttime"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "dateText", "simpleText")
62
+ videoinfo["endtime"]=common_hash.dig(0, "videoPrimaryInfoRenderer","relativeDateText","simpleText")
63
+ videoinfo["videocount"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "viewCount", "videoViewCountRenderer", "viewCount", "simpleText")
64
+ videoinfo["good"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "videoActions", "menuRenderer", "topLevelButtons", 0, "segmentedLikeDislikeButtonViewModel", "likeButtonViewModel", "likeButtonViewModel", "toggleButtonViewModel", "toggleButtonViewModel", "defaultButtonViewModel", "buttonViewModel", "title")
60
65
  return videoinfo
61
66
  end
62
67
 
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.3.6.2"
2
+ VERSION = "0.3.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_chat_get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6.2
4
+ version: 0.3.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tf0101
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler