Skip to content

Commit

Permalink
Aggiornamento
Browse files Browse the repository at this point in the history
Se la cartella dell'anime non esiste viene creata.

Aggiornati i server VVVVID, streamtape, animeWorld SErver
  • Loading branch information
MainKronos committed Jan 6, 2021
1 parent fea1e0e commit 291808d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_mp4_link(info, episode_links, providers):
print("\nIl file si trova su {}".format("𝐕𝐕𝐕𝐕𝐈𝐃"))

anime_id = episode_link.split("/")[-1]
external_link = "https://www.animeworld.tv/api/episode/serverPlayer?id={}".format(anime_id)
external_link = "https://www.animeworld.tv/api/episode/serverPlayerAW?id={}".format(anime_id)

sb_get = requests.get(episode_link, headers = HDR, cookies=cookies)
if sb_get.status_code == 200:
Expand All @@ -247,7 +247,7 @@ def get_mp4_link(info, episode_links, providers):
print("\nIl file si trova su {}".format("𝐘𝐨𝐮𝐓𝐮𝐛𝐞"))

anime_id = episode_link.split("/")[-1]
external_link = "https://www.animeworld.tv/api/episode/serverPlayer?id={}".format(anime_id)
external_link = "https://www.animeworld.tv/api/episode/serverPlayerAW?id={}".format(anime_id)

sb_get = requests.get(episode_link, headers = HDR, cookies=cookies)
if sb_get.status_code == 200:
Expand Down Expand Up @@ -443,6 +443,10 @@ def move_file(series):

source = os.path.join(currentPath, file)
destination = os.path.join(destinationPath, file)

if not os.path.exists(destinationPath):
os.makedirs(destinationPath)

shutil.move(source, destination)
print("✔️ File {} spostato.".format(file))

Expand Down

0 comments on commit 291808d

Please sign in to comment.