video_chat_get 0.3.6.2 → 0.3.6.3

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: 195b68bafdd9bcd0d5a07c27843452963369be19fcc62770d1a0ece40d3256b0
4
+ data.tar.gz: c4e802d7201354f564fca6911dbacdaa68709b780d100fba6b9660586ef43d11
5
5
  SHA512:
6
- metadata.gz: 7bff3ec3b94ca8f83721f82c01a77653555e51d380ce06b392c36bffaa0e9f088261c8f61e79d4bbe0e5e000e3149947bf6078b60b260877ec85956c53554a0a
7
- data.tar.gz: 8cb60cd69d3771c1768a62e607ffbd60b7dbf9c156493de383a58d8b2f290f8867cc1c909ae6b31e6741af53cd357e0490b72e94ccfa80a157b516572662605d
6
+ metadata.gz: 78097f5b892e961b7c42c2e9e6688935dadd6ea1f25903f9ec660b1cdc76bec7aa74535ad26d64a040ca6017a0a93b72ca2cbaa4ca270c2a4503d46870a0bd8f
7
+ data.tar.gz: 6dcd715cdbad6a1f6a7f211d15b7164effb045a0beaea5c9ad83d93254ede49cc79369062605ae6d98730bb20a89ce8480668bb5f7758916c995280876e66968
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.3)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -50,13 +50,17 @@ 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["videocount"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "viewCount", "videoViewCountRenderer", "viewCount", "simpleText")
63
+ videoinfo["good"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "videoActions", "menuRenderer", "topLevelButtons", 0, "segmentedLikeDislikeButtonViewModel", "likeButtonViewModel", "likeButtonViewModel", "toggleButtonViewModel", "toggleButtonViewModel", "defaultButtonViewModel", "buttonViewModel", "title")
60
64
  return videoinfo
61
65
  end
62
66
 
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.3.6.2"
2
+ VERSION = "0.3.6.3"
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.3
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-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler