MCPcopy
hub / github.com/beetbox/beets / get

Method get

beetsplug/fetchart.py:604–616  ·  view source on GitHub ↗

Generate URLs using Amazon ID (ASIN) string.

(
        self,
        album: Album,
        plugin: FetchArtPlugin,
        paths: None | Sequence[bytes],
    )

Source from the content-addressed store, hash-verified

602 INDICES = (1, 2)
603
604 def get(
605 self,
606 album: Album,
607 plugin: FetchArtPlugin,
608 paths: None | Sequence[bytes],
609 ) -> Iterator[Candidate]:
610 """Generate URLs using Amazon ID (ASIN) string."""
611 if album.asin:
612 for index in self.INDICES:
613 yield self._candidate(
614 url=self.URL.format(album.asin, index),
615 match=MetadataMatch.EXACT,
616 )
617
618
619class AlbumArtOrg(RemoteArtSource):

Callers 15

releases_keyFunction · 0.45
acoustid_matchFunction · 0.45
_play_commandMethod · 0.45
_command_strMethod · 0.45
_exceeds_thresholdMethod · 0.45
_create_tmp_playlistMethod · 0.45
setupMethod · 0.45
find_bucket_alphaMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
commandMethod · 0.45

Calls 2

_candidateMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected