diff --git a/app/routes.py b/app/routes.py index 572d4a6..aa17784 100644 --- a/app/routes.py +++ b/app/routes.py @@ -150,7 +150,6 @@ def following(): @login_required def search(): form = SearchForm() - parsedResults = [] if form.validate_on_submit(): user = form.username.data results = twitterUserSearch(user) @@ -604,7 +603,6 @@ def getPosts(account): def getYoutubePosts(ids): videos = [] - ydl = YoutubeDL() with FuturesSession() as session: futures = [session.get('https://www.youtube.com/feeds/videos.xml?channel_id={id}'.format(id=id.channelId)) for id in ids] for future in as_completed(futures): diff --git a/app/templates/following.html b/app/templates/following.html index 44d9957..954d741 100644 --- a/app/templates/following.html +++ b/app/templates/following.html @@ -1,35 +1,29 @@ {% extends "base.html" %} {% block content %} -
-
- -+
+ +