TheTVDB.com

Online TV Database
It is currently Fri May 24, 2013 6:50 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 10, 2012 8:52 am 
Offline

Joined: Fri Mar 16, 2012 1:20 pm
Posts: 4
Location: Italia
Hello guys,
quick and simple question: is there any way to retrieve just the next air date of a specific show? What I'm doing is a little resource expensive and redundant: I loop all the episodes, and check if its air date has yet to come. If yes, I break the loop and save the date.

Is there any other solution?


Top
 Profile  
 
PostPosted: Tue Apr 10, 2012 3:00 pm 
Offline
Site Admin

Joined: Tue Mar 13, 2007 10:16 pm
Posts: 1906
Location: Canada
No not really. Almost everything returned is from static xml files that are remade every time a change to a series occurs. The only other way I could even think to do it would be to guess by using GetEpisodeByAirDate and saving it when you finally get a result returned. Of course that would be quite inefficient as well and would waste more server resources then just grabbing the episode xml file and cycling through it to find the next air date.

_________________
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't answer you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group