Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/p/mpdc-HEAD/mpdc/libs/parser.py   mpdc(Download)
        albums = OrderedSet()
        for song in p[1]:
            albums.add(mpd.get_tags(song, ('album', 'albumartist')))
        try:
            r_albums = OrderedSet(random.sample(albums, int(modifier[2:])))

src/m/p/mpdc-HEAD/mpdc/libs/collectionsmanager.py   mpdc(Download)
    def add_songs(self, alias, songs_files):
        if not alias in self.c or not 'mpd_playlist' in self.c[alias]:
            for song in songs_files[:]:
                if not all(mpd.get_tags(song)):
                    warning('[{}] was not added (missing tags)'.format(song))
            raw += '\nsongs:'
            for song in collection['songs']:
                raw += '\n    ' + repr_tags(mpd.get_tags(song))
        raw += '\n\n\n'
    return raw.strip()