summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 07:23:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 07:23:42 +0000
commit0949ff48904b06438fc4215854d7fa3ba884474e (patch)
tree1ada94218223d74853d17023a919eddf16fac23c /modules
parent0b4194ebf11e2ce8b59563c57a4eeca8c80a70e8 (diff)
downloadampache-0949ff48904b06438fc4215854d7fa3ba884474e.tar.gz
ampache-0949ff48904b06438fc4215854d7fa3ba884474e.tar.bz2
ampache-0949ff48904b06438fc4215854d7fa3ba884474e.zip
fixed find missing tracks, tweaked openstrands class again to account for lack of [[CCDATA tag on some xml responses
Diffstat (limited to 'modules')
-rw-r--r--modules/infotools/openstrands.class.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/infotools/openstrands.class.php b/modules/infotools/openstrands.class.php
index 51b4dee0..2e4b54da 100644
--- a/modules/infotools/openstrands.class.php
+++ b/modules/infotools/openstrands.class.php
@@ -66,11 +66,13 @@ class openStrands {
*/
public function __construct($username,$password) {
+ // Check to see if we've already authenticated
+ if (self::$authenticated) { return true; }
+ if (!self::$auth_token) { echo 'No Auth Token, quiting'; return false; }
+
// Trust them enough to let them try once
self::$authenticated = true;
- if (!self::$auth_token) { echo 'No Auth Token, quiting'; return false; }
-
// Test login with the provided credientials
$auth_data = $this->user_validate($username,$password);
@@ -596,7 +598,7 @@ class openStrands {
$tag = $this->_currentTag;
if (strlen($tag) AND $this->_key >= 0) {
- $this->results[$this->_key][$tag] = trim($cdata);
+ $this->results[$this->_key][$tag] .= trim($cdata);
}