Ver código fonte

test fix: SoundCloud:

Sevajol Bastien 12 anos atrás
pai
commit
651827862a

+ 2 - 1
src/Muzich/CoreBundle/Factory/Elements/Soundcloudcom.php Ver arquivo

@@ -186,7 +186,8 @@ class Soundcloudcom extends ElementFactory
186 186
   
187 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 192
       $ref_id = $this->element->getUrl();
192 193
       $embed_id = md5($ref_id);