Skip to content

Commit

Permalink
Fix new folder -m incase of one link
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Oct 7, 2024
1 parent 9e30a5d commit dea66d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bot/helper/ext_utils/help_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
You can use this arg also to move multiple links/torrents contents to the same directory, so all links will be uploaded together as one task
/cmd link -m new folder (only one link inside new folder)
/cmd link -m new folder (only one link inside new folder)
/cmd -i 10(number of links/files) -m folder name (all links contents in one folder)
/cmd -b -m folder name (reply to batch of message/file(each link on new line))
While using bulk you can also use this arg with different folder name along with the links in message or file batch
Example:
Example:
link1 -m folder1
link2 -m folder1
link3 -m folder2
Expand All @@ -49,7 +49,7 @@
so link1 and link2 content will be uploaded from same folder which is folder1
link3 and link4 content will be uploaded from same folder also which is folder2
link5 will uploaded alone inside new folder named folder3
link6 will get uploaded normally alone
link6 will get uploaded normally alone
"""

thumb = """<b>Thumbnail for current task</b>: -t
Expand Down
3 changes: 1 addition & 2 deletions bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def new_event(self):
self.thumbnail_layout = args["-tl"]
self.as_doc = args["-doc"]
self.as_med = args["-med"]
self.folder_name = args["-m"]
self.folder_name = f"/{args["-m"]}"

headers = args["-h"]
is_bulk = args["-b"]
Expand Down Expand Up @@ -175,7 +175,6 @@ async def new_event(self):
self.seed = False
ratio = None
seed_time = None
self.folder_name = f"/{self.folder_name}"
async with task_dict_lock:
if self.folder_name in self.same_dir:
self.same_dir[self.folder_name]["tasks"].add(self.mid)
Expand Down
3 changes: 1 addition & 2 deletions bot/modules/ytdlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ async def new_event(self):
self.thumbnail_layout = args["-tl"]
self.as_doc = args["-doc"]
self.as_med = args["-med"]
self.folder_name = args["-m"]
self.folder_name = f"/{args["-m"]}"

is_bulk = args["-b"]

Expand All @@ -359,7 +359,6 @@ async def new_event(self):
if not is_bulk:
if self.multi > 0:
if self.folder_name:
self.folder_name = f"/{self.folder_name}"
async with task_dict_lock:
if self.folder_name in self.same_dir:
self.same_dir[self.folder_name]["tasks"].add(self.mid)
Expand Down

0 comments on commit dea66d7

Please sign in to comment.