Exemple #1
0
 def _fill_link_entity(self, entity, gid, link):
     entity.catalog_id = gid
     entity.url = link
     entity.is_wiki = url_utils.is_wiki_link(
         link)
     entity.tokens = ' '.join(
         url_utils.tokenize(link))
Exemple #2
0
 def _fill_link_entity(entity, gid, link):
     entity.catalog_id = gid
     entity.url = link
     entity.is_wiki = url_utils.is_wiki_link(link)
     url_tokens = url_utils.tokenize(link)
     if url_tokens:
         entity.url_tokens = ' '.join(url_tokens)
 def _fill_link_entity(self, entity: BaseLinkEntity, identifier, url):
     entity.catalog_id = identifier
     entity.url = url
     entity.is_wiki = url_utils.is_wiki_link(url)
     entity.url_tokens = ' '.join(url_utils.tokenize(url))
     if isinstance(entity, DiscogsMusicianLinkEntity):
         self.musician_links += 1
     elif isinstance(entity, DiscogsGroupLinkEntity):
         self.band_links += 1