mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
subtitle: better represent line
This commit is contained in:
parent
d3841e17da
commit
92763977ed
@ -23,6 +23,9 @@ class subtitle(object):
|
||||
self.bom = False
|
||||
self.output = kwargs.pop("output", None)
|
||||
|
||||
def __repr__(self):
|
||||
return "<Subtitle(type={}, url={}>".format(self.subtype, self.url)
|
||||
|
||||
def download(self):
|
||||
subdata = self.http.request("get", self.url, cookies=self.options.cookies)
|
||||
if subdata.status_code != 200:
|
||||
|
Loading…
Reference in New Issue
Block a user