Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Fix #27 and #28, minor output change
Browse files Browse the repository at this point in the history
  • Loading branch information
CoffeeStraw committed Apr 9, 2021
1 parent 418e593 commit 951b25e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def dl_from_vvvvid(url, requests_obj):

# Printing content informations to the user
print(
f"{Style.BRIGHT}In preparazione: {Fore.BLUE + cont_title + Style.RESET_ALL}\n"
f"\n{Style.BRIGHT}In preparazione: {Fore.BLUE + cont_title + Style.RESET_ALL}\n"
+ f"{Style.BRIGHT}Descrizione: {Style.RESET_ALL + cont_description}"
)

Expand Down Expand Up @@ -72,6 +72,7 @@ def dl_from_vvvvid(url, requests_obj):
f"- {Style.BRIGHT}Episodio {episode['number']}: {Style.RESET_ALL + Fore.RED} non ancora disponibile. "
+ f"{Style.RESET_ALL}Lo sarà il: {episode['availability_date']}"
)
continue

# Build episode name
ep_name = os_fix_filename(f"{episode['number']} - {episode['title']}")
Expand Down Expand Up @@ -108,13 +109,13 @@ def dl_from_vvvvid(url, requests_obj):
ffmpeg_dl(
media_url,
http_headers,
os.path.join(content_dir, f"{ep_name}.mp4.part"),
os.path.join(content_dir, f"{ep_name}.part.mkv"),
)

# Remove ".part" from end of file
os.rename(
os.path.join(content_dir, f"{ep_name}.mp4.part"),
os.path.join(content_dir, f"{ep_name}.mp4"),
os.path.join(content_dir, f"{ep_name}.part.mkv"),
os.path.join(content_dir, f"{ep_name}.mkv"),
)


Expand Down Expand Up @@ -151,7 +152,7 @@ def main():
if system() == "Windows":
print(
f"{Fore.YELLOW}NOTA BENE:{Style.RESET_ALL} "
+ "siccome lo script è stato lanciato da Windows i nomi delle cartelle e dei file creati potrebbero subire delle variazioni.\n"
+ "siccome lo script è stato lanciato da Windows i nomi delle cartelle e dei file creati potrebbero subire delle variazioni."
)

# Creating persistent session
Expand Down
2 changes: 0 additions & 2 deletions src/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ def ffmpeg_dl(media_url, http_headers, output_path, timeout=30):
media_url,
"-c",
"copy",
"-f",
"mp4",
"-bsf:a",
"aac_adtstoasc",
output_path,
Expand Down

0 comments on commit 951b25e

Please sign in to comment.