diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py index bae9d44..cc75b13 100644 --- a/lib/svtplay_dl/subtitle/__init__.py +++ b/lib/svtplay_dl/subtitle/__init__.py @@ -1,11 +1,11 @@ import xml.etree.ElementTree as ET import json import re -import os from svtplay_dl.log import log from svtplay_dl.utils import is_py2, is_py3, get_http_data from svtplay_dl.output import output + class subtitle(object): def __init__(self, options, subtype, url): self.url = url diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index bfb2136..ec2e294 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -22,7 +22,7 @@ is_py2_old = (sys.version_info < (2, 7)) FIREFOX_UA = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' from svtplay_dl.utils.urllib import build_opener, Request, HTTPCookieProcessor, \ - HTTPRedirectHandler, HTTPError, URLError, \ + HTTPRedirectHandler, HTTPError, \ addinfourl, CookieJar, urlparse log = logging.getLogger('svtplay_dl')