Changeset 27339

Show
Ignore:
Timestamp:
14.05.2013 22:58:23 (6 years ago)
Author:
davidb
Message:

AFRepo PHP script changed so the computation of the md5 hash is relative to the 'audio-files' folder rather than being dependent on the absoulte path name, withl symbolic links resolved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/afrepo/trunk/src/src/AFRepo.GSDLEXT.class.php.in

    r27317 r27339  
    8282 
    8383      return array_key_exists($full_filepath, $this->getAllFiles()); 
     84    } 
     85 
     86 
     87    /** 
     88     * idToCanonicalPath 
     89     * Return the path to the canonical file with the given ID 
     90     */ 
     91    public function idToCanonicalPath($id) { 
     92        return readlink($this->idToLinkPath($id)); 
    8493    } 
    8594 
     
    226235    } 
    227236 
    228     public function getSongFiles($id) { 
     237    public function getSongFilesOLD($id) { 
    229238        $filepath = $this->idToLinkPath($id); 
    230239        $origfilepath = realpath($filepath); 
     
    263272            new PathClassifier(), 
    264273        ); 
    265         foreach ($classifiers as $classifier) 
     274 
     275        foreach ($classifiers as $classifier)  
    266276            if ($classifier->available() && $classifier->hasMBID($id)) 
    267277                return $classifier->getMBID($id);