series checker
2 posters
Page 1 of 1
series checker
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.
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
Re: series checker
oh, and check for duplicate episodes listed(and delete em)
rollster- Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19
Re: series checker
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
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
Re: series checker
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.
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
Re: series checker
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.
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.
Re: series checker
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...
Thanks for the replies
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...
Thanks for the replies
rollster- Posts : 30
Kudos : 731
Trust : 0
Join date : 2011-07-19
Re: series checker
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
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|