fix linting + use .empty?
This commit is contained in:
parent
9f846127ae
commit
b51770dbdb
2 changed files with 4 additions and 4 deletions
|
@ -257,7 +257,7 @@ class Config
|
||||||
puts "Config: You can not run inv_sig_helper and invidious_companion at the same time."
|
puts "Config: You can not run inv_sig_helper and invidious_companion at the same time."
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
if !CONFIG.invidious_companion_key
|
if CONFIG.invidious_companion_key.empty?
|
||||||
puts "Config: Please configure a key if you are using invidious companion."
|
puts "Config: Please configure a key if you are using invidious companion."
|
||||||
exit(1)
|
exit(1)
|
||||||
elsif CONFIG.invidious_companion_key == "CHANGE_ME!!"
|
elsif CONFIG.invidious_companion_key == "CHANGE_ME!!"
|
||||||
|
|
|
@ -120,9 +120,9 @@ def extract_video_info(video_id : String)
|
||||||
new_player_response["storyboards"] = player_response["storyboards"] if player_response["storyboards"]?
|
new_player_response["storyboards"] = player_response["storyboards"] if player_response["storyboards"]?
|
||||||
new_player_response["captions"] = player_response["captions"] if player_response["captions"]?
|
new_player_response["captions"] = player_response["captions"] if player_response["captions"]?
|
||||||
|
|
||||||
player_response = new_player_response
|
player_response = new_player_response
|
||||||
params.delete("reason")
|
params.delete("reason")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
{"captions", "playabilityStatus", "playerConfig", "storyboards", "invidiousCompanion"}.each do |f|
|
{"captions", "playabilityStatus", "playerConfig", "storyboards", "invidiousCompanion"}.each do |f|
|
||||||
|
|
Loading…
Reference in a new issue