Esempio n. 1
0
  def handle(self, artist, uri):
    protocol, user_id = uri.split(':')

    profile_link = 'http://www.twitter.com/%s' % user_id

    name = parsing.get_name_from_title(profile_link, NAME_RE)

    artist_profile = ArtistProfile(system_id = 'twitter', profile_id = user_id, source_id = 'artist-resource-handler:twitter', url = profile_link)

    return artist_matcher.associate_profile_with_artist(artist, name, artist_profile)
Esempio n. 2
0
  def handle(self, show, uri):
    protocol, user_id = uri.split(':')
    
    profile_link = 'http://%s.muxtape.com/' % user_id

    name = parsing.get_name_from_title(profile_link, NAME_RE)

    artist_profile = ArtistProfile(system_id = 'muxtape', profile_id = user_id, source_id = 'show-resource-handler:muxtape', url = profile_link)
    
    return artist_matcher.associate_profile_with_matching_artist(show, name, artist_profile)