Import YouTube Views Into PlayTube Script  

Page 4 / 4 Prev
  RSS

Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 26, 2018 1:19 am  
Posted by: vntube

thank you 

You're welcome.

@vntube @Studiomks @dinu99 Here is the updated View Count script v1.2. Will update the Youtube Video Status script in the next few days as well with Cron along with changes I made in this script.

Changelog

v1.2

Global
Cron Added
Uses PlayTube config
Skips dead videos
Error logging improved

Webview Only
Admin only access
Slight design change on webview
Shows updated video count

 

Instructions
Always backup your db and any files to be modified just to be safe. These types of modifications are not a simple plug and play kind of install. I am not responsible for any loss of data nor does this script come with any guarantee. This script is provided as is.

If you choose webview simply upload the view-count.php to your public_html ( or whichever directory you have PlayTube installed to ) and go to yourdomain.com/view-count.php

Try Optimized first, if this doesn't work, your server may not support curl and you will need to use the Normal version.

For Cron same concept, but I also added versions that send emails. Choose if you want only error emails or error and success emails. 

This will be a different install path. You need to one directory before your public_html.

Then go to cPanel -> Cron

Setup a command with the following

php -q -f /home/CPANELUSERNAME/view-count.php

If you for some reason do not know your cPanel username I have added in info.php. Simply add this file to your public_html and go to yourdomain.com/info.php

Search for DOCUMENT_ROOT

For the rest of the cron config
Minute: 0
Hour: 2
Day: *
Month: *
Weekday: *

This will run everyday at 2AM server time.

Download
view-count-update-v1.2.zip

This post was modified 6 months  ago 5 times by Disquy

ReplyQuote
Studiomks
(@studiomks)
Active Member
Joined: 7 months  ago
Posts: 7
November 26, 2018 7:07 am  

Thank you, will try this now 🙂 Appreciate it.


ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 10:53 am  
Do I do that right? What to do if it works?
I tried running and it reported 500 errors
This post was modified 6 months  ago by vntube
This post was modified 6 months  ago by Disquy

ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 26, 2018 12:11 pm  
Posted by: vntube
Do I do that right? What to do if it works?
I tried running and it reported 500 errors
 
php -q -f /home/vntubexy/view-count.php

You should also move the view-count.php from /home/vntubexy/public_html/ to /home/vntubexy/

If you would like me to set this up for you, please email me.

Keep in mind if you use the cron version, you won't be able to access it via your browser, as it's not uploaded to the public directory.

 

@Studiomks you're welcome. 🙂

This post was modified 6 months  ago 3 times by Disquy

ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 12:22 pm  
I sent an email to you . Thanks very much
This post was modified 6 months  ago by Disquy

ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 26, 2018 7:24 pm  
Posted by: vntube
I sent an email to you . Thanks very much

You had the cron setup correctly, although you chose the version that only emails you if there is an error. Not sure if you meant to choose that version.

Also I uploaded the web version so you could see it working

vntube.fun/view-count.php

Note: Only Admin user can access this file.

This post was modified 6 months  ago 2 times by Disquy

ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 8:32 pm  

thank you very much


ReplyQuote
Studiomks
(@studiomks)
Active Member
Joined: 7 months  ago
Posts: 7
December 5, 2018 7:15 am  

Just wanted to say thank you, it is working great.


ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
December 5, 2018 8:37 pm  
Posted by: vntube

thank you very much

You're welcome

 

Posted by: Studiomks

Just wanted to say thank you, it is working great.

You're welcome. Should have YouTube Status Checker updated soon. Been pretty slammed with my day job, but it's coming.

This post was modified 6 months  ago by Disquy

ReplyQuote
Studiomks
(@studiomks)
Active Member
Joined: 7 months  ago
Posts: 7
December 12, 2018 5:33 am  

Hi is it possible to import likes to? Would be great


ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
December 18, 2018 9:49 am  

Cron job support has been added to the YouTube Dead Video Detector For PlayTube

https://disquy.com/community/playtube-modifications/youtube-video-status-webview/


ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
December 23, 2018 6:02 am  
Posted by: Studiomks

Hi is it possible to import likes to? Would be great

After digging into this more, I don't think this would be a good idea to pursue at this time. Reason being, each like is stored in the database. The issue with this is the like/dislike table would become larger than the entire database. The only way to push this would be to create a copy for each like, but with some videos having 100 of thousands of likes, this would put way too much strain on the database. The only way around this would be to heavily modify the way the like system works, and I don't know about you, but I don't want to have to push this heavy of a modification to each PlayTube update. I may be able to add a like and dislike column to the database and adding the additional likes and dislikes into the existing code, but this would still create additional unneeded queries. It would be best if PlayTube themselves changed the way the system stored the data, but this is highly unlikely as their method is very secure against like/dislike spam.


ReplyQuote
Page 4 / 4 Prev
Share: