Logo Search packages:      
Sourcecode: lastfmsubmitd version File versions  Download package

def lastfm::client::Client::submit_many (   self,
  songs 
) [inherited]

Creates a uniquely named file in the spool directory containing
the given submission. ``subs`` should be a dict containing the keys
``artist``, ``title``, ``length``, and ``time`` (and optionally
``album`` and ``mbid``). ``artist``, ``title``, ``album``, and
``mbid`` are strings, ``length`` is an integer, and ``time`` is a UTC
time tuple.

Definition at line 63 of file client.py.

00063                                 :
        """Creates a uniquely named file in the spool directory containing
        the given submission. ``subs`` should be a dict containing the keys
        ``artist``, ``title``, ``length``, and ``time`` (and optionally
        ``album`` and ``mbid``). ``artist``, ``title``, ``album``, and
        ``mbid`` are strings, ``length`` is an integer, and ``time`` is a UTC
        time tuple."""

        fd, path = tempfile.mkstemp(dir=self.conf.spool_path)
        spool_file = os.fdopen(fd, 'w+')
        lastfm.marshaller.dump_documents(songs, spool_file)
        os.chmod(path, 0664)

        return path

    def submit(self, song):


Generated by  Doxygen 1.6.0   Back to index