1
0
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:
Johan Andersson 2018-05-12 15:12:37 +02:00
parent d3841e17da
commit 92763977ed

View File

@ -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: