Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 41cb587

Browse files
Merge pull request #1879 from rjriajul/master
chore: fix spelling mistakes in codebase
2 parents 33395ea + 9c0c8de commit 41cb587

File tree

13 files changed

+27
-27
lines changed

13 files changed

+27
-27
lines changed

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ programming in Python.
7171
on [Sreeraj](https://github.com/SVR666) searchX-bot. (task option)
7272
- Stop Duplicates (global and user option)
7373
- Custom upload destination (global, user, and task option)
74-
- Ability to choose token.pickle or service acccount and upload destinations from list with or without buttons (global, user and task option)
74+
- Ability to choose token.pickle or service account and upload destinations from list with or without buttons (global, user and task option)
7575
- Index link support only
7676
for [Bhadoo](https://gitlab.com/GoogleDriveIndex/Google-Drive-Index/-/blob/master/src/worker.js)
7777

@@ -135,7 +135,7 @@ programming in Python.
135135
- Store RSS data
136136
- Store incompleted task messages
137137
- Store JDownloader settings
138-
- Store config.py file on first build and incase any change occured to it, then next build it will define variables
138+
- Store config.py file on first build and incase any change occurred to it, then next build it will define variables
139139
from config.py instead of database
140140

141141
</details>
@@ -320,13 +320,13 @@ see [Using Service Accounts](https://github.com/anasty17/mirror-leech-telegram-b
320320
**Example**:
321321
- Here I will explain how to use mltb.* which is reference to files you want to work on.
322322
1. First cmd: the input is mltb.mkv so this cmd will work only on mkv videos and the output is mltb.mkv also so all outputs is mkv. `-del` will delete the original media after complete run of the cmd.
323-
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extenstion is same as input files.
323+
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extension is same as input files.
324324
3. Third cmd: the input in mltb.m4a so this cmd will work only on m4a audios and the output is mltb.mp3 so the output extension is mp3.
325325
4. Fourth cmd: the input is mltb.audio so this cmd will work on all audios and the output is mltb.mp3 so the output extension is mp3.
326326
5. FFmpeg Variables in last cmd which is metadata ({title}, {title2}, etc...), you can edit them in usetting
327327
6. Telegram link for small size inputs like photo to set watermark.
328328

329-
- `NAME_SUBSTITUTE` (`Str`): Add word/letter/character/sentense/pattern to remove or replace with other words with sensitive case or without.
329+
- `NAME_SUBSTITUTE` (`Str`): Add word/letter/character/sentence/pattern to remove or replace with other words with sensitive case or without.
330330
**Notes**:
331331
- Before any character you must add `\BACKSLASH`, those are the characters: `\^$.|?*+()[]{}-`
332332
* Example: script/code/s | mirror/leech | tea/ /s | clone | cpu/ | \[mltb\]/mltb | \\text\\/text/s
@@ -784,13 +784,13 @@ python3 gen_sa_accounts.py --list-projects
784784
python3 gen_sa_accounts.py --enable-services $PROJECTID
785785
```
786786

787-
- Create Sevice Accounts to current project
787+
- Create Service Accounts to current project
788788

789789
```
790790
python3 gen_sa_accounts.py --create-sas $PROJECTID
791791
```
792792

793-
- Download Sevice Accounts as accounts folder
793+
- Download Service Accounts as accounts folder
794794

795795
```
796796
python3 gen_sa_accounts.py --download-keys $PROJECTID

‎bot/core/jdownloader_booter.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def boot(self):
2727
self.is_connected = False
2828
self.error = "JDownloader Credentials not provided!"
2929
return
30-
self.error = "Connecting... Try agin after couple of seconds"
30+
self.error = "Connecting... Try again after couple of seconds"
3131
self._device_name = f"{randint(0, 1000)}@{TgClient.NAME}"
3232
if await path.exists("/JDownloader/logs"):
3333
LOGGER.info(

‎bot/helper/ext_utils/exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class NotSupportedExtractionArchive(Exception):
1111

1212

1313
class RssShutdownException(Exception):
14-
"""This exception should be raised when shutdown is called to stop the montior"""
14+
"""This exception should be raised when shutdown is called to stop the monitor"""
1515

1616
pass
1717

‎bot/helper/ext_utils/help_messages.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
Examples: ["-i mltb.mkv -c copy -c:s srt mltb.mkv", "-i mltb.video -c copy -c:s srt mltb", "-i mltb.m4a -c:a libmp3lame -q:a 2 mltb.mp3", "-i mltb.audio -c:a libmp3lame -q:a 2 mltb.mp3", "-i mltb -map 0:a -c copy mltb.mka -map 0:s -c copy mltb.srt", "-i mltb -i tg://openmessage?user_id=5272663208&message_id=322801 -filter_complex 'overlay=W-w-10:H-h-10' -c:a copy mltb"]
250250
Here I will explain how to use mltb.* which is reference to files you want to work on.
251251
1. First cmd: the input is mltb.mkv so this cmd will work only on mkv videos and the output is mltb.mkv also so all outputs is mkv. -del will delete the original media after complete run of the cmd.
252-
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extenstion is same as input files.
252+
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extension is same as input files.
253253
3. Third cmd: the input in mltb.m4a so this cmd will work only on m4a audios and the output is mltb.mp3 so the output extension is mp3.
254254
4. Fourth cmd: the input is mltb.audio so this cmd will work on all audios and the output is mltb.mp3 so the output extension is mp3.
255255
5. Fifth cmd: You can add telegram link for small size input like photo to set watermark"""
@@ -361,7 +361,7 @@
361361
"GDRIVE_ID": "Send Gdrive ID. If you want to use your token.pickle edit using owner/user token from usetting or add mtp: before the id. Example: mtp:F435RGGRDXXXXXX . Timeout: 60 sec",
362362
"INDEX_URL": "Send Index URL. Timeout: 60 sec",
363363
"UPLOAD_PATHS": "Send Dict of keys that have path values. Example: {'path 1': 'remote:rclonefolder', 'path 2': 'gdrive1 id', 'path 3': 'tg chat id', 'path 4': 'mrcc:remote:', 'path 5': b:@username} . Timeout: 60 sec",
364-
"EXCLUDED_EXTENSIONS": "Send exluded extenions separated by space without dot at beginning. Timeout: 60 sec",
364+
"EXCLUDED_EXTENSIONS": "Send excluded extensions separated by space without dot at beginning. Timeout: 60 sec",
365365
"NAME_SUBSTITUTE": r"""Word Subtitions. You can add pattern instead of normal text. Timeout: 60 sec
366366
NOTE: You must add \ before any character, those are the characters: \^$.|?*+()[]{}-
367367
Example: script/code/s | mirror/leech | tea/ /s | clone | cpu/ | \[mltb\]/mltb | \\text\\/text/s
@@ -384,7 +384,7 @@
384384
- To execute one of those lists in bot for example, you must use -ff subtitle (list key) or -ff convert (list key)
385385
Here I will explain how to use mltb.* which is reference to files you want to work on.
386386
1. First cmd: the input is mltb.mkv so this cmd will work only on mkv videos and the output is mltb.mkv also so all outputs is mkv. -del will delete the original media after complete run of the cmd.
387-
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extenstion is same as input files.
387+
2. Second cmd: the input is mltb.video so this cmd will work on all videos and the output is only mltb so the extension is same as input files.
388388
3. Third cmd: the input in mltb.m4a so this cmd will work only on m4a audios and the output is mltb.mp3 so the output extension is mp3.
389389
4. Fourth cmd: the input is mltb.audio so this cmd will work on all audios and the output is mltb.mp3 so the output extension is mp3.
390390
5. FFmpeg Variables in last cmd which is metadata ({title}, {title2}, etc...), you can edit them in usetting

‎bot/helper/ext_utils/media_utils.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ async def take_ss(video_file, ss_nb) -> bool:
148148
resutls = await wait_for(gather(*cmds), timeout=60)
149149
if resutls[0][2] != 0:
150150
LOGGER.error(
151-
f"Error while creating sreenshots from video. Path: {video_file}. stderr: {resutls[0][1]}"
151+
f"Error while creating screenshots from video. Path: {video_file}. stderr: {resutls[0][1]}"
152152
)
153153
await rmtree(dirpath, ignore_errors=True)
154154
return False
155155
except:
156156
LOGGER.error(
157-
f"Error while creating sreenshots from video. Path: {video_file}. Error: Timeout some issues with ffmpeg with specific arch!"
157+
f"Error while creating screenshots from video. Path: {video_file}. Error: Timeout some issues with ffmpeg with specific arch!"
158158
)
159159
await rmtree(dirpath, ignore_errors=True)
160160
return False
@@ -718,7 +718,7 @@ async def split(self, f_path, file_, parts, split_size):
718718
break
719719
elif duration == lpd:
720720
LOGGER.warning(
721-
f"This file has been splitted with default stream and audio, so you will only see one part with less size from orginal one because it doesn't have all streams and audios. This happens mostly with MKV videos. Path: {f_path}"
721+
f"This file has been splitted with default stream and audio, so you will only see one part with less size from original one because it doesn't have all streams and audios. This happens mostly with MKV videos. Path: {f_path}"
722722
)
723723
break
724724
elif lpd <= 3:

‎bot/helper/mirror_leech_utils/download_utils/direct_link_generator.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def sharer_scraper(url):
870870
raise DirectDownloadLinkException(f"ERROR: {e.__class__.__name__}") from e
871871
if "url" not in res:
872872
raise DirectDownloadLinkException(
873-
"ERROR: Drive Link not found, Try in your broswer"
873+
"ERROR: Drive Link not found, Try in your browser"
874874
)
875875
if "drive.google.com" in res["url"] or "drive.usercontent.google.com" in res["url"]:
876876
return res["url"]
@@ -885,7 +885,7 @@ def sharer_scraper(url):
885885
return drive_link[0]
886886
else:
887887
raise DirectDownloadLinkException(
888-
"ERROR: Drive Link not found, Try in your broswer"
888+
"ERROR: Drive Link not found, Try in your browser"
889889
)
890890

891891

‎bot/modules/bot_settings.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ async def edit_bot_settings(client, query):
558558
)
559559
return
560560
await query.answer(
561-
"Syncronization Started. JDownloader will get restarted. It takes up to 10 sec!",
561+
"Synchronization Started. JDownloader will get restarted. It takes up to 10 sec!",
562562
show_alert=True,
563563
)
564564
await sync_jdownloader()
@@ -644,14 +644,14 @@ async def edit_bot_settings(client, query):
644644
await database.update_nzb_config()
645645
elif data[1] == "syncnzb":
646646
await query.answer(
647-
"Syncronization Started. It takes up to 2 sec!", show_alert=True
647+
"Synchronization Started. It takes up to 2 sec!", show_alert=True
648648
)
649649
nzb_options.clear()
650650
await update_nzb_options()
651651
await database.update_nzb_config()
652652
elif data[1] == "syncqbit":
653653
await query.answer(
654-
"Syncronization Started. It takes up to 2 sec!", show_alert=True
654+
"Synchronization Started. It takes up to 2 sec!", show_alert=True
655655
)
656656
qbit_options.clear()
657657
await update_qb_options()

‎bot/modules/file_selector.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def select(_, message):
5757
await send_message(message, "This task is not for you!")
5858
return
5959
if not iscoroutinefunction(task.status):
60-
await send_message(message, "The task have finshed the download stage!")
60+
await send_message(message, "The task have finished the download stage!")
6161
return
6262
if await task.status() not in [
6363
MirrorStatus.STATUS_DOWNLOAD,

‎bot/modules/force_start.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def remove_from_queue(_, message):
3434
elif len(msg) in {1, 2}:
3535
msg = f"""Reply to an active Command message which was used to start the download/upload.
3636
<code>/{BotCommands.ForceStartCommand[0]}</code> fd (to remove it from download queue) or fu (to remove it from upload queue) or nothing to start remove it from both download and upload queue.
37-
Also send <code>/{BotCommands.ForceStartCommand[0]} GID</code> fu|fd or obly gid to force start by removeing the task rom queue!
37+
Also send <code>/{BotCommands.ForceStartCommand[0]} GID</code> fu|fd or obly gid to force start by removing the task rom queue!
3838
Examples:
3939
<code>/{BotCommands.ForceStartCommand[1]}</code> GID fu (force upload)
4040
<code>/{BotCommands.ForceStartCommand[1]}</code> GID (force download and upload)

‎bot/modules/rss.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def rss_sub(_, message, pre_event):
9090
if len(args) < 2:
9191
await send_message(
9292
message,
93-
f"{item}. Wrong Input format. Read help message before adding new subcription!",
93+
f"{item}. Wrong Input format. Read help message before adding new subscription!",
9494
)
9595
continue
9696
title = args[0].strip()
@@ -333,7 +333,7 @@ async def rss_get(_, message, pre_event):
333333
if len(args) < 2:
334334
await send_message(
335335
message,
336-
f"{args}. Wrong Input format. You should add number of the items you want to get. Read help message before adding new subcription!",
336+
f"{args}. Wrong Input format. You should add number of the items you want to get. Read help message before adding new subscription!",
337337
)
338338
await update_rss_menu(pre_event)
339339
return

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /