Skip to content

Commit

Permalink
Too many problems with special characters on some clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Janez Troha committed Mar 15, 2013
1 parent 7836140 commit 6bf854a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mopidy/backends/soundcloud/soundcloud.py
Expand Up @@ -87,7 +87,7 @@ def get_user_stream(self):
if data.get('track'):
tracks.append(self.parse_track(data.get('track'), True))
if data.get('playlist'):
tracks.extend(self.parse_results(data.get('playlist').get('tracks'), True))
ttracks.extend(self.parse_results(data.get('playlist').get('tracks'), True))
return self.sanitize_tracks(tracks)

@cache()
Expand All @@ -96,7 +96,7 @@ def get_sets(self):
tplaylists = []
for playlist in playlists:

name = '%s %s' % (playlist.get('title'), self.BRAND)
name = '%s on SoundCloud' % playlist.get('title')
uri = playlist.get('permalink')
tracks = self.parse_results(playlist.get('tracks'), True)
logger.info('Fetched set %s with id %s' % (name, uri))
Expand Down Expand Up @@ -180,7 +180,7 @@ def parse_track(self, data, remote_url=False, is_search=False):

album_kwargs[b'name'] = 'SoundCloud'
else:
## NOTE mpdroid removes ☁ from track name
## NOTE mpdroid removes ☁ from track name, probably others too
track_kwargs[b'name'] = '%s %s' % (self.BRAND, name)

if 'date' in data:
Expand Down

0 comments on commit 6bf854a

Please sign in to comment.