2015-08-30 00:06:20 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
from svtplay_dl.utils import HTTP
|
|
|
|
|
2014-07-24 20:23:32 +02:00
|
|
|
class VideoRetriever(object):
|
2014-07-24 20:19:22 +02:00
|
|
|
def __init__(self, options, url, bitrate=0, **kwargs):
|
2014-04-21 16:50:24 +02:00
|
|
|
self.options = options
|
|
|
|
self.url = url
|
2014-05-01 17:13:46 +02:00
|
|
|
self.bitrate = int(bitrate)
|
|
|
|
self.kwargs = kwargs
|
2015-12-26 12:14:14 +01:00
|
|
|
self.http = HTTP(options)
|
2014-05-01 17:13:46 +02:00
|
|
|
|
2016-01-03 02:43:16 +01:00
|
|
|
def __repr__(self):
|
|
|
|
return "<Video(fetcher=%s, bitrate=%s>" % (self.__class__.__name__, self.bitrate)
|
|
|
|
|
2014-05-01 17:13:46 +02:00
|
|
|
def name(self):
|
2014-07-24 20:19:22 +02:00
|
|
|
pass
|