-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshows.py
32 lines (28 loc) · 983 Bytes
/
shows.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
from utils import (
find_duplicates,
get_directories_from_user,
get_directories_from_file,
output_report,
interactive_deletion,
SUPPORTED_SHOW_EXTENSIONS
)
def process_shows():
"""Handle show-specific duplicate detection logic"""
print("\n=== TV Show Duplicate Finder ===")
print("Choose how to provide directories:")
print("1. Enter directories interactively")
print("2. Read directories from a file")
choice = input("Enter 1 or 2: ").strip()
if choice == "1":
directories = get_directories_from_user()
elif choice == "2":
file_path = input("Enter the path to the file containing directories: ").strip()
directories = get_directories_from_file(file_path)
else:
print("Invalid choice. Exiting.")
return
# ... rest of the function ...
if __name__ == "__main__":
# This allows the file to be imported without running the main code
process_shows()