Ticket #3357: search-tkey.diff
File search-tkey.diff, 1.3 KB (added by , 17 years ago) |
---|
-
mythweb/modules/tv/search.php
321 321 // Build a list of titles for figuring out alternate showings. Use the same 322 322 // key to make parsing things below a little easier. 323 323 $titles = array(); 324 $seen = array(); 324 325 foreach ($Results as $key => $show) { 325 $titles[$show->title.': '.$show->subtitle][$key] =& $Results[$key]; 326 $tkey = md5($show->title.': '.$show->subtitle.': '.$show->description); 327 $skey = $show->channel->name.$show->starttime.$tkey; 328 if($seen[$skey]){ 329 unset($Results[$key]); 330 continue; 331 }else{ 332 $titles[$tkey][$key] =& $Results[$key]; 333 $seen[$skey] = true; 334 } 326 335 } 327 336 328 337 // Parse the show list for showings that can be consolidated/folded 329 338 $seen = array(); 330 339 foreach ($Results as $key => $show) { 331 $tkey = $show->title.': '.$show->subtitle;340 $tkey = md5($show->title.': '.$show->subtitle.': '.$show->description); 332 341 // Populate extra_showings info for other instances of this show 333 342 if (count($titles[$tkey]) > 1) { 334 343 foreach (array_keys($titles[$tkey]) as $key2) {