Browse Source

test fix: SoundCloud:

Sevajol Bastien 12 years ago
parent
commit
651827862a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Muzich/CoreBundle/Factory/Elements/Soundcloudcom.php

+ 2 - 1
src/Muzich/CoreBundle/Factory/Elements/Soundcloudcom.php View File

186
   
186
   
187
   public function proceedEmbedCode()
187
   public function proceedEmbedCode()
188
   {
188
   {
189
-    if (($ref_id = $this->element->getData(Element::DATA_REF_ID)) && $this->element->getData(Element::DATA_TYPE) == 'track')
189
+    if (($ref_id = $this->element->getData(Element::DATA_REF_ID)) 
190
+      && ($this->element->getData(Element::DATA_TYPE) == 'track' || $this->element->getData(Element::DATA_TYPE) == 'playlist' ))
190
     {
191
     {
191
       $ref_id = $this->element->getUrl();
192
       $ref_id = $this->element->getUrl();
192
       $embed_id = md5($ref_id);
193
       $embed_id = md5($ref_id);