• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] New Video on Search Engine

Started by megaman79,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megaman79Topic starter

Hello PHPVibe,

In the past 24 hours I start an investigation when a video is auto upload in my site,
this video was Index hours later after it was indexed by Youtube or any other sites...

So my video sometimes don't get index, but those videos that get indexed in google,
usually don;t get in #1 in Search. I know is not 100% Garanteed, but I came to a conclusion.

If I get the Videos Upload right after is uploaded in YouTube, I have more than 50% chances to get
my video Index fast. Got my point ?

Ok. so the Issue is the following. In other to get the new Uploaded Videos on Youtube and get imported in my site as soon the YouTube User Uploaded, I need to have my Cron Task to Run a least every 5 minutes, but I have over 700 Cron Task.

When I configure the Cron Task that fast, almost all the videos get Upload with no Title, and some times with no Title and Description. (( BIG PROBLEM ))

I hope we can get a Fix for this. This is a very important issue, because I want to get a better rank in Search Engine. what Can I do to get this working. I use to have another script and the cron task was every Minutes, I never had this issue.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

Can I see that cron? Since I've tried all other platforms and I haven't seen what you describe go flawless on any.
Maybe this was before Youtube introduced quotas and the data pulling was pretty much unlimited.

megaman79Topic starter

Quote from: Alexander on
Can I see that cron? Since I've tried all other platforms and I haven't seen what you describe go flawless on any.
Maybe this was before Youtube introduced quotas and the data pulling was pretty much unlimited.

How can I show you my Crons Alexander?

ftp access? moderator access ? cron.php

"Very Happy with PHPVibe"
  •  

PHPVibe A.

No, no, the other one which you say works (from the other script).

megaman79Topic starter

Quote from: Alexander on
No, no, the other one which you say works (from the other script).

Hello Alexander,

Here I send you 2 .php files, this files was made by a developer for auto import.
This files belong from my old site, is not currently not online, because I change to PHPVibe.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

And you say this works at 700 checks per minute? I looks much older than what PHPVibe runs on.

megaman79Topic starter

Quote from: Alexander on
And you say this works at 700 checks per minute? I looks much older than what PHPVibe runs on.

Yes, I had over 2,000 YouTube Users, I had the Cron in cpanel to run every minute.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

And Youtube didn't ban you? I got banned on 3 domains for much less.

megaman79Topic starter

Quote from: Alexander on
And Youtube didn't ban you? I got banned on 3 domains for much less.

Never Banned, Never had Server Load Issues, Never Had Issue with Videos Title or Description.
I want to clear something. The cron Ping every minute on cpanel, but all the YouTube Users had differente cron time, maybe some had the same, but I try to haven then with different Cron Time, bu in Cpanel was configure Every 1 Minutes.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

You can do the same in PHPVibe, by editing the cron in admin.
Honestly I don't see any difference, except this uses xml, we use json, and this is pretty much platform independent, for example if you adapt the field names in the query it will work for PHPVibe also.

megaman79Topic starter

Quote from: Alexander on
You can do the same in PHPVibe, by editing the cron in admin.
Honestly I don't see any difference, except this uses xml, we use json, and this is pretty much platform independent, for example if you adapt the field names in the query it will work for PHPVibe also.

Alex, what do you mean with: adapt the field names in the query? Change the cron files I send you with the phpvibe database information and use this file to Import ?

If this is what you mean, can you modify it for me, I don't know that much of coding.
"Very Happy with PHPVibe"
  •  

megaman79Topic starter

Quote from: megaman79 on
Alex, what do you mean with: adapt the field names in the query? Change the cron files I send you with the phpvibe database information and use this file to Import ?

If this is what you mean, can you modify it for me, I don't know that much of coding.

I change the Cron in Cpanel to Every minute, and I get this Results:


Alex, I want to know, why it keep importing old videos, when I the Cron Task a ready run every Task since I start PHPVibe, Is not suppose to import old videos, because a I have it configure EndPage in = 1
It should continue in the New Videos page only....correct ?

Old Videos that get imported, are imported with no Title.

New Upload video on YouTube, are imported fine. Something is happening with Old YouTube Videos from 2013, 2012,etc....

I don;t want old videos to get imported if a ready run the task at the beginning... do you get my point ?

"Very Happy with PHPVibe"
  •  

megaman79Topic starter

Alex,

Another Issue, I do see that videos import duplicate. They have the same YouTube ID.

Please check all the reply I made under this Post.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

Not sure, it checks that the youtube url exists in the database.
Except if maybe it's exec-ing two in same time, which case there may be errors.
When it imports it without title, that means the API failed/got temporary limited and did not return the details.
You can fix that simply lib/class.youtube.php

find (at the last function):

if(isset($video["videoid"]) && isset($video["title"]) ) {


and replace it with

if(isset($video["videoid"]) && isset($video["title"]) && !empty($video["title"]) && !is_null($video["title"])) {


You can also see the

function has_youtube_duplicate($y_id){


bit upper which checks for duplicates.

Similar topics (7)