/usr/lib/python2.7/dist-packages/livestreamer/api.py is in python-livestreamer 1.12.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | from .session import Livestreamer
def streams(url, **params):
"""Attempts to find a plugin and extract streams from the *url*.
*params* are passed to :func:`Plugin.streams`.
Raises :exc:`NoPluginError` if no plugin is found.
"""
session = Livestreamer()
return session.streams(url, **params)
|