Slight cleanup

main
Micke Nordin 3 years ago
parent 390df8abd8
commit 1e53d8ef50
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -61,10 +61,8 @@ class SVT(Channel):
description = str(entry['description']) description = str(entry['description'])
published_parsed = entry['published_parsed'] published_parsed = entry['published_parsed']
title = str(entry['title']) title = str(entry['title'])
print('pre')
if not resolved_link: if not resolved_link:
continue continue
print('post')
thumbnail = make_bitmap_from_url( thumbnail = make_bitmap_from_url(
thumbnail_link, wx.Size(self.m_screen_width, 150)) thumbnail_link, wx.Size(self.m_screen_width, 150))
item = Item(description, resolved_link, self.m_provider_name, item = Item(description, resolved_link, self.m_provider_name,

@ -149,10 +149,10 @@ def get_subscriptions(basepath: str = BASEPATH,
filename: str = DB_FILE_NAME) -> list[tuple[str, str]]: filename: str = DB_FILE_NAME) -> list[tuple[str, str]]:
subscriptions = list() subscriptions = list()
fullpath = path.join(basepath, filename) fullpath = path.join(basepath, filename)
try:
con = sqlite3.connect(fullpath) con = sqlite3.connect(fullpath)
cur = con.cursor() cur = con.cursor()
select_query = '''SELECT * FROM {}'''.format(SUB_TABLE) select_query = '''SELECT * FROM {}'''.format(SUB_TABLE)
try:
cur.execute(select_query) cur.execute(select_query)
for result in cur.fetchall(): for result in cur.fetchall():
subscriptions.append(result) subscriptions.append(result)

Loading…
Cancel
Save