Skip to content

Commit 5d4036a

Browse files
author
E.S. Rosenberg a.k.a. Keeper of the Keys
committed
Add per episode art work in soundcloud plugin.
1 parent e693d8f commit 5d4036a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gpodder/plugins/soundcloud.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ def get_tracks(self, feed, channel):
179179
filetype = self.cache['episodes'][track_guid]['filetype']
180180
read_from_cache += 1
181181

182+
artwork_url = track.get('artwork_url')
183+
if artwork_url != None and artwork_url != '':
184+
artwork_url = artwork_url.replace("-large", "-original")
185+
182186
yield {
183187
'title': track.get('title', track.get('permalink')) or ('Unknown track'),
184188
'link': track.get('permalink_url') or 'https://soundcloud.com/' + self.username,
@@ -189,6 +193,7 @@ def get_tracks(self, feed, channel):
189193
'guid': track_guid,
190194
'published': soundcloud_parsedate(track.get('created_at', None)),
191195
'total_time': int(track.get('duration') / 1000),
196+
'episode_art_url' : artwork_url,
192197
}
193198

194199
logger.debug('Read %d episodes from %d cached episodes', read_from_cache, len(self.cache['episodes']))

0 commit comments

Comments
 (0)