Fixing erros per github python test

This commit is contained in:
Gand0rf
2024-12-02 19:32:07 -05:00
parent d6ca923951
commit 5b6ccbe748
2 changed files with 4 additions and 3 deletions

View File

@@ -515,7 +515,7 @@ def provider_anime_episode_servers_menu(
current_episode_number,
)
# update discord activity for user
if config.discord == True:
if config.discord:
switch = threading.Event()
discord_proc = threading.Thread(target=discord_updater, args=(provider_anime_title,current_episode_number,switch))
discord_proc.start()
@@ -603,7 +603,7 @@ def provider_anime_episode_servers_menu(
print("Finished at: ", stop_time)
# stop discord activity updater
if config.discord == True:
if config.discord:
switch.set()
# update_watch_history

View File

@@ -1,3 +1,5 @@
import re
SERVERS_AVAILABLE = [
"sharepoint",
"dropbox",
@@ -19,7 +21,6 @@ DEFAULT_PER_PAGE = 40
DEFAULT_PAGE = 1
# regex stuff
import re
MP4_SERVER_JUICY_STREAM_REGEX = re.compile(
r"video/mp4\",src:\"(https?://.*/video\.mp4)\""