You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know I can check if the video is available.
I have the block if VideoInfo.new(link).available? blablabla end
But I still get an error if the link is is not an actual video link.
is there a way to go about this?
Or am I restricted to use the rails check if the input is indeed a link like: if url =~ URI::regexp # Correct URL end
Thanks
The text was updated successfully, but these errors were encountered:
I know I can check if the video is available.
I have the block
if VideoInfo.new(link).available? blablabla end
But I still get an error if the link is is not an actual video link.
is there a way to go about this?
Or am I restricted to use the rails check if the input is indeed a link like:
if url =~ URI::regexp # Correct URL end
Thanks
The text was updated successfully, but these errors were encountered: