18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/streamio-cli.rb', line 18
def export
configure_streamio_gem
download_videos
download_audios
puts "\nAll files successfully downloaded!"
rescue Streamio::Errors::Unauthorized
puts "[ERROR]"
puts "Wrong username or password, please double check that the credentials provided are the same as on your API page on streamio.com."
exit
rescue SocketError
puts "[ERROR]"
puts "Could not connect to the internet, please check your connection and try again."
exit
end
|