Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to check if the link is valid? #168

Closed
ghost opened this issue Dec 21, 2016 · 2 comments
Closed

Is there a way to check if the link is valid? #168

ghost opened this issue Dec 21, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2016

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

@ghost
Copy link
Author

ghost commented Dec 21, 2016

Just saw this feature is already being considered, sorry.

@ghost ghost closed this as completed Dec 21, 2016
@vheuken
Copy link
Collaborator

vheuken commented Dec 21, 2016 via email

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant