mps_youtube.streams module

mps_youtube.streams.get(vid, force=False, callback=None, threeD=False)

Get all streams as a dict. callback function passed to get_pafy.

mps_youtube.streams.get_size(ytid, url, preloading=False)

Get size of stream, try stream cache first.

mps_youtube.streams.preload(song, delay=2, override=False)

Get streams.

mps_youtube.streams.prune()

Keep cache size in check.

mps_youtube.streams.select(slist, q=0, audio=False, m4a_ok=True, maxres=None)

Select a stream from stream list.