From 1896e982b9e7990f5e5520e81cf0b7d220805bde Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 18 Aug 2022 18:51:11 +0700 Subject: [PATCH] codespell lint fixes --- tubearchivist/api/src/search_processor.py | 4 ++-- tubearchivist/home/src/index/filesystem.py | 2 +- tubearchivist/home/src/ta/helper.py | 4 ++-- tubearchivist/static/cast-videos.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tubearchivist/api/src/search_processor.py b/tubearchivist/api/src/search_processor.py index 07102310..7a41163c 100644 --- a/tubearchivist/api/src/search_processor.py +++ b/tubearchivist/api/src/search_processor.py @@ -22,7 +22,7 @@ class SearchProcess: self.processed = False def process(self): - """dedect type and process""" + """detect type and process""" if "_source" in self.response.keys(): # single self.processed = self._process_result(self.response) @@ -37,7 +37,7 @@ class SearchProcess: return self.processed def _process_result(self, result): - """dedect which type of data to process""" + """detect which type of data to process""" index = result["_index"] processed = False if index == "ta_video": diff --git a/tubearchivist/home/src/index/filesystem.py b/tubearchivist/home/src/index/filesystem.py index 4f6c88c0..e6042cca 100644 --- a/tubearchivist/home/src/index/filesystem.py +++ b/tubearchivist/home/src/index/filesystem.py @@ -363,7 +363,7 @@ class ImportFolderScanner: return new_path def get_mp4_thumb_type(self, media_path): - """dedect filetype of embedded thumbnail""" + """detect filetype of embedded thumbnail""" streams = self._get_streams(media_path) for stream in streams["streams"]: diff --git a/tubearchivist/home/src/ta/helper.py b/tubearchivist/home/src/ta/helper.py index 314ecd79..8e51e3ef 100644 --- a/tubearchivist/home/src/ta/helper.py +++ b/tubearchivist/home/src/ta/helper.py @@ -173,13 +173,13 @@ class UrlListParser: _ = self.find_valid_id(youtube_id) return youtube_id, "channel" - # dedect channel with yt_dlp + # detect channel with yt_dlp youtube_id = self.extract_channel_name(parsed.geturl()) return youtube_id, "channel" @staticmethod def find_valid_id(id_str): - """dedect valid id from length of string""" + """detect valid id from length of string""" str_len = len(id_str) if str_len == 11: id_type = "video" diff --git a/tubearchivist/static/cast-videos.js b/tubearchivist/static/cast-videos.js index 867093e3..4334d042 100644 --- a/tubearchivist/static/cast-videos.js +++ b/tubearchivist/static/cast-videos.js @@ -1,6 +1,6 @@ function initializeCastApi() { cast.framework.CastContext.getInstance().setOptions({ - receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID, // Use built in reciver app on cast device, see https://developers.google.com/cast/docs/styled_receiver if you want to be able to add a theme, splash screen or watermark. Has a $5 one time fee. + receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID, // Use built in receiver app on cast device, see https://developers.google.com/cast/docs/styled_receiver if you want to be able to add a theme, splash screen or watermark. Has a $5 one time fee. autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED });