mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-30 10:42:33 +05:30
Moved methods around
This commit is contained in:
parent
2a6a32e667
commit
0d22af6564
@ -239,8 +239,8 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
||||
.dig?("secondaryResults", "secondaryResults", "results")
|
||||
secondary_results.try &.as_a.each do |element|
|
||||
if item = element["compactVideoRenderer"]?
|
||||
if rv_published_time_text = item["publishedTimeText"]["simpleText"]?
|
||||
rv_decoded_time = decode_date(rv_published_time_text.to_s)
|
||||
if rv_published_time_text = item["publishedTimeText"]?
|
||||
rv_decoded_time = decode_date(rv_published_time_text["simpleText"].to_s)
|
||||
rv_published_timestamp = rv_decoded_time.to_unix.to_s
|
||||
else
|
||||
rv_published_timestamp = nil
|
||||
|
Loading…
Reference in New Issue
Block a user