audiogenerators.rst 646 B

1234567891011121314151617181920212223242526
  1. Audiogenerators
  2. ===============
  3. mpdrandom
  4. ---------
  5. picks ``howmany`` song randomly from your mpd library. It follows this
  6. strategy: it picks ``howmany`` artists from your MPD library, then picks a random song for each one
  7. randomdir
  8. ----------
  9. Given a directory ``path``, scan it recursively, then picks ``howmany`` random
  10. files. No filename extensions checks are done, so beware of non-audio file in
  11. that directory. Files are copied to ``TMPDIR`` before being returned.
  12. static
  13. ---------
  14. That simple: every element in ``paths`` is returned. Before doing so, they are
  15. copied to ``TMPDIR``.
  16. script
  17. --------
  18. see :doc:`audiogenerators-write`