diff -r b5db2345c397 -r 7a1573676cc4 functions.php --- a/functions.php Wed Mar 26 11:10:20 2008 -0400 +++ b/functions.php Mon Mar 31 07:40:30 2008 -0400 @@ -103,6 +103,7 @@ { return true; } + status('Rebuilding playlist cache'); $playlist_last_md5 = $effective_md5; // start XML parser try @@ -148,6 +149,12 @@ return false; $count = preg_match_all('/uniqueid="([a-fA-F0-9]+?)"/', $contents, $matches); $matches = implode("", $matches[1]); + if ( empty($matches) ) + { + // sometimes current.xml has blank unique IDs + $count = preg_match_all('/url="([^"]+?)"/', $contents, $matches); + $matches = implode("", $matches[1]); + } return md5($matches); }