TheTVDB.com

Online TV Database
It is currently Sat May 25, 2013 5:44 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jun 04, 2012 4:15 am 
Offline

Joined: Mon Jul 26, 2010 3:52 pm
Posts: 5
For example:
Code:
http://thetvdb.com/api/GetSeries.php?seriesname=$#*! My Dad Says&language=english


This gets a huge list of shows none of which are the correct show.
The results I'd expect and found searching without the $#*! in the series name:

Code:
<Data>
 <Series>
  <seriesid>164951</seriesid>
  <language>en</language>
  <SeriesName>$#*! My Dad Says</SeriesName>
  <banner>graphical/164951-g3.jpg</banner>
  <Overview>$#*! MY DAD SAYS, based on the popular Twitter feed by Justin Halpern, stars Emmy Award winner William Shatner as Ed Goodson, a forthright and opinionated dad who relishes expressing his unsolicited and often wildly politically incorrect observations to anyone within earshot. Nobody is immune from Ed's rants, including his sons, Henry, a struggling writer-turned-unpaid blogger; and Vince (Will Sasso), the meek half of his husband/wife real estate duo with domineering Kathleen (Nicole Sullivan). When Henry finds he can no longer afford to pay rent to his pretty roommate -- and secret admirer -- Sam (Stephanie Lemelin), Ed reveals a soft spot and invites Henry to move in with him. Henry agrees, knowing that the verbal assault will not abate and now there will be no escape. </Overview>
  <FirstAired>2010-09-23</FirstAired>
  <IMDB_ID>tt1612578</IMDB_ID>
  <id>164951</id>
</Series>
</Data>



Should I just strip out non alphanumeric characters before searching?


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 8:37 pm 
Offline

Joined: Sat Jun 09, 2012 8:06 pm
Posts: 5
I would think you'd need to encode your string in the URL... just

Code:
http://thetvdb.com/api/GetSeries.php?seriesname=%24%23*!%20My%20Dad%20Says&language=english


This works fine


Top
 Profile  
 
PostPosted: Sun Jun 10, 2012 1:47 am 
Offline

Joined: Mon Jul 26, 2010 3:52 pm
Posts: 5
Yea, someone I was working with on the script pointed this out to me by saying, "aren't you a web developer also? Wouldn't you realize you just need to encode the characters for use in the URL"... oh yeah


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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