aboutsummaryrefslogtreecommitdiffstats
path: root/tpblite/models/torrents.py
diff options
context:
space:
mode:
Diffstat (limited to 'tpblite/models/torrents.py')
-rw-r--r--tpblite/models/torrents.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tpblite/models/torrents.py b/tpblite/models/torrents.py
index 1c2b32d..4803740 100644
--- a/tpblite/models/torrents.py
+++ b/tpblite/models/torrents.py
@@ -1,7 +1,5 @@
import unicodedata
-from lxml.etree import HTML
-
-# TODO: write better comments
+import lxml.etree as ET
def fileSizeStrToInt(size_str):
@@ -97,7 +95,7 @@ class Torrents:
return self.list[index]
def _createTorrentList(self):
- root = HTML(self.html_source)
+ root = ET.HTML(self.html_source)
if root.find("body") is None:
raise ConnectionError("Could not determine torrents (empty html body)")
rows = root.xpath('//tr[td[@class="vertTh"]]')