Skip to content

Commit

Permalink
Testing download movie system
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 10, 2023
1 parent d3c10bd commit 9d67636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
find_movie.py
cache
logs
downloads
Expand Down
37 changes: 0 additions & 37 deletions bot/helpers/find_movie.py

This file was deleted.

6 changes: 3 additions & 3 deletions bot/helpers/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def pop_an_item(chat):
if chat.id not in QUEUE:
return 0
QUEUE[chat.id].pop(0)
dump_pkl(queues, "wb", QUEUE)
await dump_pkl(queues, "wb", QUEUE)
return 1
except Exception as e:
raise e
Expand All @@ -57,10 +57,10 @@ async def clear_queue(chat):
if chat.id not in QUEUE:
return 0
QUEUE.pop(chat.id)
dump_pkl(queues, "wb", QUEUE)
await dump_pkl(queues, "wb", QUEUE)
if chat.id in ACTIVE:
ACTIVE.remove(chat.id)
dump_pkl(actives, "wb", ACTIVE)
await dump_pkl(actives, "wb", ACTIVE)
return 1
except Exception as e:
raise e

0 comments on commit 9d67636

Please sign in to comment.