GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Best way to know if tube video is still working?? (https://gfy.com/showthread.php?t=1179732)

Badmaash 11-29-2015 03:34 AM

Best way to know if tube video is still working??
 
Hi

So many of you may have made a tube site linked from various places, eg youtube.

As you may know that these videos may get deleted or are unavailable for whatever reason. From your visitors point of view this is not good, so is there anyway of knowing/finding out what videos are no longer displaying especially if you have a large tube site?


Thanks

nightslit 11-29-2015 04:28 AM

Well if you look at your embed code you will find the url of the video in the src tag. This url can be vérified with a script using their api (most of them have one), or just compare your files to the RSS feeds of the deleted videos. I would use php I think.

Badmaash 11-29-2015 04:46 AM

Quote:

Originally Posted by nightslit (Post 20650639)
Well if you look at your embed code you will find the url of the video in the src tag. This url can be vérified with a script using their api (most of them have one), or just compare your files to the RSS feeds of the deleted videos. I would use php I think.

Is there a wp plugin to check youtube videos by any chance?

Thanks

j3rkules 11-29-2015 08:23 AM

There was a script/plugin for that, but I can not recall the name...

nightslit 11-30-2015 11:07 AM

Quote:

Originally Posted by Badmaash (Post 20650646)
Is there a wp plugin to check youtube videos by any chance?

Thanks

I think there are some, but just some manual scription should be enough... like taking the url of the video, executing it in a curl request and then see it the answer is 200... (status good)
By the way youtube does have an api, here a link to put you in the right direction:

How do I check if a video exists on YouTube, using PHP? - Stack Overflow

Several ways are exposed to do so... then just apply the script on all post_content rown in the wp_post table and if video no exist setting the post_status to pending, draw or I don't know what...


All times are GMT -7. The time now is 09:14 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc