Skip to content

Commit

Permalink
[SoundcloudBridge] Improve Author, Date, Description (#955)
Browse files Browse the repository at this point in the history
1. Author Name now doesn't include Episode Title
2. It now fetches Episode Creation Timestamp, to allow correct sorting in podcatchers
3. Description is now the actual show notes, and not an <audio> tag
  • Loading branch information
disk0x authored and logmanoriginal committed Dec 10, 2018
1 parent 1c58c04 commit 5305c40
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bridges/SoundcloudBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ public function collectData(){

for($i = 0; $i < 10; $i++) {
$item = array();
$item['author'] = $tracks[$i]->user->username . ' - ' . $tracks[$i]->title;
$item['author'] = $tracks[$i]->user->username;
$item['title'] = $tracks[$i]->user->username . ' - ' . $tracks[$i]->title;
$item['content'] = '<audio src="'
. $tracks[$i]->uri
. '/stream?client_id='
. self::CLIENT_ID
. '">';
$item['timestamp'] = strtotime($tracks[$i]->created_at);
$item['content'] = $tracks[$i]->description;
$item['enclosures'] = array($tracks[$i]->uri
. '/stream?client_id='
. self::CLIENT_ID);
Expand Down

0 comments on commit 5305c40

Please sign in to comment.