series checker

View previous topic View next topic Go down

series checker

Post by rollster on Tue Jul 19, 2011 10:27 pm

This is a great tool.

Would it be possible to tweak this so if sidereel(or whatever grabber used) does not list the episode, no episode gets added to the database. I noticed that the current script automatically adds 1-19...we all know that some series go beyond this or some do not go up to 19.

It would be great to be able to weed out the "false" episodes. Remove episodes that do not actually exist.

rollster

Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19

View user profile

Back to top Go down

Re: series checker

Post by rollster on Tue Jul 19, 2011 10:43 pm

oh, and check for duplicate episodes listed(and delete em)

rollster

Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19

View user profile

Back to top Go down

Re: series checker

Post by Admin on Wed Jul 20, 2011 1:22 am

Yeah your right it does need optimizing, originally it was added just to add content into the database for testing.
I may eventually remove it or move it over to the edit/list shows areas then, have it check sidereel for the current season. Based on that go back a season, do a check for the last episode number then use that number as a base for all the other seasons of the show.
As unless a request is made to sidereel to check each season and episode there is no way to know, dupes get added as its the title that is matched when checking if the episode is already in the database, once again a request would need tobe made to get the proper title & description. Ill look into it. Regards

Admin
Admin

Posts : 25
Kudos : 264
Trust : 10
Join date : 2011-07-06

View user profile http://vrip.forumotion.com

Back to top Go down

Re: series checker

Post by rollster on Wed Jul 20, 2011 9:46 pm

It would also be nice if you have it check for episodes no longer valid and remove them. For instance...some videos get removed for copyright so it would be good to remove the ones(links) that are no longer valid. I have code that checked only megavideo eps in the database. It would not remove them however...just let you know which ones were no good.


I have some code that used to work(I can send to you)...not sure why it is not anymore, but it basically was able to add eps via sidereel,ftvo,tvpie...pulling eps from megavideo url's only...the only issue I really had with this code was the fact that it would always check the entire database of tv shows each time and only add megavideo url's ...you could not select what show to pull episodes. I used this mainly when adding new tv shows. It always pulled the correct amount per season for each show and very rarely had dupes.


I understand a tiny bit of php...but it's all self taught.

rollster

Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19

View user profile

Back to top Go down

Re: series checker

Post by Admin on Wed Jul 20, 2011 10:48 pm

Checking if an episode is valid from any host would basically, just need tobe a request to the video link and look for signs of 404s or the string "Video not found" ect. then based on that remove it or not.
I know it seems like a nice idea but checking 170K links would require huge amounts of resources and would slow down the site, ill look into something in future releases.
If you would like me to make a stand alone script to check all the links and remove if not live I can do that, some links that dont show as missing like the non source sites eg not megavideo, videobb, vidxden ect would get removed.

if you want to only add megavideo links just find in functions.php sidereelCrawler()

if(in_array($matches[1],$blocked)){continue;}

and replace with

if($matches[1]!='www.megavideo.com' || $matches[1]!='megavideo.com' ){continue;}

the function to grab links is only 46 lines of code and very self explanatory.

Admin
Admin

Posts : 25
Kudos : 264
Trust : 10
Join date : 2011-07-06

View user profile http://vrip.forumotion.com

Back to top Go down

Re: series checker

Post by rollster on Wed Jul 20, 2011 11:15 pm

what if I only wanted megavideo and videobb url's? I like the option of choosing what sites to grab from.

to add to the first part of your response...instead of just checking the entire database for no longer valid links...you can select which specific show to check from a drop box then it checks just that show selected.

Just throwing some ideas I guess... Basketball

Thanks for the replies

rollster

Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19

View user profile

Back to top Go down

Re: series checker

Post by Admin on Wed Jul 20, 2011 11:31 pm

if you wanted only megavideo & videobb links added

if($matches[1]!='www.megavideo.com' || $matches[1]!='megavideo.com' || $matches[1]!='videobb.com'){continue;}

this statement means if $matches[1] dont equals www.megavideo.com or megavideo.com or videobb.com continue to next link.
$matches[1] contains the hostname of the link

Thanks, as the script is still and will always be in-development ideas are always good and will implement them if possible
Regards

Admin
Admin

Posts : 25
Kudos : 264
Trust : 10
Join date : 2011-07-06

View user profile http://vrip.forumotion.com

Back to top Go down

Re: series checker

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum