Skip to content

Commit 963255a

Browse files
committed
strip / from index url when set from usetting
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
1 parent 03c5001 commit 963255a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bot/modules/users_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ async def set_option(_, message, option):
404404
for x in fx:
405405
x = x.lstrip(".")
406406
value.append(x.strip().lower())
407+
elif option == "INDEX_URL":
408+
value = value.strip("/")
407409
elif option in ["UPLOAD_PATHS", "FFMPEG_CMDS", "YT_DLP_OPTIONS"]:
408410
if value.startswith("{") and value.endswith("}"):
409411
try:

0 commit comments

Comments
 (0)