[SoundcloudBridge] Fix returned URL and title (#1449)

This commit is contained in:
86423355844265459587182778 2020-02-07 15:16:55 +00:00 committed by GitHub
parent 5bd07723ad
commit e5303efba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,9 +59,13 @@ class SoundCloudBridge extends BridgeAbstract {
return parent::getIcon();
}
public function getURI(){
return 'https://soundcloud.com/' . $this->getInput('u');
}
public function getName(){
if(!is_null($this->getInput('u'))) {
return self::NAME . ' - ' . $this->getInput('u');
return $this->getInput('u') . ' - ' . self::NAME;
}
return parent::getName();