codespell lint fixes

This commit is contained in:
simon 2022-08-18 18:51:11 +07:00
parent 0e7e0a0560
commit 1896e982b9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
4 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ class SearchProcess:
self.processed = False self.processed = False
def process(self): def process(self):
"""dedect type and process""" """detect type and process"""
if "_source" in self.response.keys(): if "_source" in self.response.keys():
# single # single
self.processed = self._process_result(self.response) self.processed = self._process_result(self.response)
@ -37,7 +37,7 @@ class SearchProcess:
return self.processed return self.processed
def _process_result(self, result): def _process_result(self, result):
"""dedect which type of data to process""" """detect which type of data to process"""
index = result["_index"] index = result["_index"]
processed = False processed = False
if index == "ta_video": if index == "ta_video":

View File

@ -363,7 +363,7 @@ class ImportFolderScanner:
return new_path return new_path
def get_mp4_thumb_type(self, media_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) streams = self._get_streams(media_path)
for stream in streams["streams"]: for stream in streams["streams"]:

View File

@ -173,13 +173,13 @@ class UrlListParser:
_ = self.find_valid_id(youtube_id) _ = self.find_valid_id(youtube_id)
return youtube_id, "channel" return youtube_id, "channel"
# dedect channel with yt_dlp # detect channel with yt_dlp
youtube_id = self.extract_channel_name(parsed.geturl()) youtube_id = self.extract_channel_name(parsed.geturl())
return youtube_id, "channel" return youtube_id, "channel"
@staticmethod @staticmethod
def find_valid_id(id_str): 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) str_len = len(id_str)
if str_len == 11: if str_len == 11:
id_type = "video" id_type = "video"

View File

@ -1,6 +1,6 @@
function initializeCastApi() { function initializeCastApi() {
cast.framework.CastContext.getInstance().setOptions({ 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 autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED
}); });