1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00
svtplay-dl/lib/svtplay_dl/fetcher/__init__.py

20 lines
589 B
Python
Raw Normal View History

from __future__ import absolute_import
from svtplay_dl.utils import HTTP
class VideoRetriever(object):
def __init__(self, options, url, bitrate=0, **kwargs):
2014-04-21 16:50:24 +02:00
self.options = options
self.url = url
self.bitrate = int(bitrate)
self.kwargs = kwargs
2015-12-26 12:14:14 +01:00
self.http = HTTP(options)
self.finished = False
2016-03-26 21:38:31 +01:00
self.audio = kwargs.pop("audio", None)
self.files = kwargs.pop("files", None)
def __repr__(self):
return "<Video(fetcher=%s, bitrate=%s>" % (self.__class__.__name__, self.bitrate)
def name(self):
pass