Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
fix: revert approach to list existing movie files
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-wildlife committed Sep 11, 2023
1 parent b6139cb commit 02a7003
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kso_utils/movie_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ def movies_in_movie_folder(project: Project, db_connection, server_connection: d
# Read the movie files from the movie_path folder
local_files = os.listdir(project.movie_folder)
available_movies_list = [
filename
for filename in local_files
if filename.endswith(get_movie_extensions())
os.path.join(dp, f)
for dp, dn, filenames in os.walk(project.movie_folder)
for f in filenames
if os.path.splitext(f)[1].endswith(get_movie_extensions())
]

# Save the list of movies as a pd df
Expand Down

0 comments on commit 02a7003

Please sign in to comment.