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

YouTube Avaible Status #174

Closed
caiotarifa opened this issue Mar 27, 2017 · 7 comments
Closed

YouTube Avaible Status #174

caiotarifa opened this issue Mar 27, 2017 · 7 comments

Comments

@caiotarifa
Copy link

caiotarifa commented Mar 27, 2017

Hi.

I am having a strange problem with a YouTube video that is unavailable, but the avaible method is returning as true.

I noticed in the method's code returns true to any status unless it is rejected.

Looking at the YouTube documentation, I think other status should be considered, like deleted and failed.

Regards,
Caio Tarifa

@vheuken
Copy link
Collaborator

vheuken commented Mar 27, 2017

Hi @caiotarifa,

Thanks for the report. I have a few questions:

  1. Can you link me to the video in question?
  2. Are you using the scraper or the API? If you didn't provide an API key, you're using the scraper.
  3. What version of Ruby are you running?

@vheuken
Copy link
Collaborator

vheuken commented Mar 27, 2017

As for other statuses, I agree. I think available? should remain boolean, but I'd defiantly consider another method for more details. Perhaps called status or something.

@caiotarifa
Copy link
Author

I agree @vheuken, but deleted and failed should return false and not true.

@vheuken
Copy link
Collaborator

vheuken commented Mar 27, 2017

@caiotarifa I agree. Can you link me to the video in question? It'd make it easier to have a URL on hand for when I try to fix it tonight.

@vheuken
Copy link
Collaborator

vheuken commented Mar 27, 2017

@caiotarifa I have tried the following videos:

https://www.youtube.com/watch?v=IjVZ-_d1DHU
https://www.youtube.com/watch?v=M0kXknv0y6Q
https://www.youtube.com/watch?v=voO37qwmLkg

All three seem to be unavailable for different reasons, and available? returns false for all of them. Please link me to the video you are having issue with.

@caiotarifa
Copy link
Author

Hi, @vheuken.

I am sorry, I was trying with an embed URL.

(Maybe it could be a feature? 😄 )

@vheuken
Copy link
Collaborator

vheuken commented Mar 30, 2017

I'll think about that. That could be a good idea. I'm closing this issue, though.

@vheuken vheuken closed this as completed Mar 30, 2017
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

2 participants