def shuffle_artist(
		self,
		artist,
		*,
		num_songs=100,
		only_library=False,
		recently_played=None,
		only_artist=False
	):
		"""Get a listing of artist shuffle/mix songs.

		Parameters:
			artist (dict): An artist dict.
			num_songs (int, Optional): The maximum number of songs to return from the station.
				Default: ``100``
			only_library (bool, Optional): Only return content from library.
				Default: False
			recently_played (list, Optional): A list of dicts in the form of {'id': '', 'type'}
				where ``id`` is a song ID and ``type`` is 0 for a library song and 1 for a store song.
			only_artist (bool, Optional): If ``True``, only return songs from the artist,
					else return songs from artist and related artists.
					Default: ``False``

		Returns:
			list: List of artist shuffle/mix songs.
		"""

		station_info = {
			'num_entries': num_songs,
			'library_content_only': only_library
		}

		if only_artist:
			station_info['seed'] = {
				'artistId': artist['artistId'],
				'seedType': StationSeedType.artist_only.value
			}
		else:
			station_info['seed'] = {
				'artistId': artist['artistId'],
				'seedType': StationSeedType.artist_related.value
			}

		if recently_played is not None:
			station_info['recently_played'] = recently_played

		response = self._call(
			mc_calls.RadioStationFeed,
			station_infos=[station_info]
		)
		station_feed = response.body.get('data', {}).get('stations', [])

		try:
			station = station_feed[0]
		except IndexError:
			station = {}

		return station.get('tracks', [])
def shuffle_artist ( self , artist , * , num_songs = 100 , only_library = False , recently_played = None , only_artist = False ) : station_info = { 'num_entries' : num_songs , 'library_content_only' : only_library } if only_artist : station_info [ 'seed' ] = { 'artistId' : artist [ 'artistId' ] , 'seedType' : StationSeedType . artist_only . value } else : station_info [ 'seed' ] = { 'artistId' : artist [ 'artistId' ] , 'seedType' : StationSeedType . artist_related . value } if recently_played is not None : station_info [ 'recently_played' ] = recently_played response = self . _call ( mc_calls . RadioStationFeed , station_infos = [ station_info ] ) station_feed = response . body . get ( 'data' , { } ) . get ( 'stations' , [ ] ) try : station = station_feed [ 0 ] except IndexError : station = { } return station . get ( 'tracks' , [ ] )
Get a listing of artist shuffle/mix songs.

		Parameters:
			artist (dict): An artist dict.
			num_songs (int, Optional): The maximum number of songs to return from the station.
				Default: ``100``
			only_library (bool, Optional): Only return content from library.
				Default: False
			recently_played (list, Optional): A list of dicts in the form of {'id': '', 'type'}
				where ``id`` is a song ID and ``type`` is 0 for a library song and 1 for a store song.
			only_artist (bool, Optional): If ``True``, only return songs from the artist,
					else return songs from artist and related artists.
					Default: ``False``

		Returns:
			list: List of artist shuffle/mix songs.