From ad802e9da0f99fca9f33c837d5732c6e87ada0d7 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 9 Sep 2021 16:45:46 +0700 Subject: [PATCH] typo and comment improvements --- tubearchivist/home/views.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 5957d71..1e1bcb5 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -35,7 +35,9 @@ from home.tasks import ( class HomeView(View): - """ handle home page and video search post functionality """ + """ resolves to / + handle home page and video search post functionality + """ CONFIG = AppConfig().config ES_URL = CONFIG['application']['es_url'] @@ -140,8 +142,7 @@ class AboutView(View): class DownloadView(View): - """ - resolves to /download/ + """ resolves to /download/ takes POST for downloading youtube links """ @@ -175,7 +176,9 @@ class DownloadView(View): class ChannelIdView(View): - """ display single channel page from channel_id """ + """ resolves to /chanel// + display single channel page from channel_id + """ def get(self, request, channel_id_detail): """ get method """ @@ -255,7 +258,10 @@ class ChannelIdView(View): class ChannelView(View): - """ handle functionality for channel overview page """ + """ resolves to /channel/ + handle functionality for channel overview page, subscribe to channel, + search as you type for channel name + """ def get(self, request): """ handle http get requests """ @@ -319,7 +325,9 @@ class ChannelView(View): class VideoView(View): - """ display details about a single video """ + """ resolves to /video// + display details about a single video + """ def get(self, request, video_id): """ get single video """ @@ -347,7 +355,10 @@ class VideoView(View): class SettingsView(View): - """ handle the settings page """ + """ resolves to /settings/ + handle the settings page, display current settings, + take post request from the form to update settings + """ @staticmethod def get(request): @@ -433,7 +444,7 @@ class PostData: youtube_id = item['status'] self.parse_watched(youtube_id) elif task == 'rescan_pending': - print('download pending videos') + print('rescan subscribed channels') update_subscribed.delay() elif task == 'ignore': print('ignore video')