awsmug / alexa-sdk

Alexa PHP SDK
GNU General Public License v3.0
14 stars 5 forks source link

Playlist #3

Closed dariocast closed 5 years ago

dariocast commented 5 years ago

In Playlist trait, may this function is incorrect:

public function playlist_add( $url, $title, $image = false, $token = false ) {
        $item = array(
            'title' => $title,
            'image' => ! $token ? null: $image,
            'token' => ! $token ? md5( $url ): $token,
            'url' => $url
        );

        $this->playlist[] = $item;
    }

on second array element may condition should be on $image instead that on $token

mahype commented 5 years ago

Oh yes! Thank you for that hint! I will change this.