Spaces:
Build error
Build error
Commit
·
847e941
1
Parent(s):
a39d0a9
fix api
Browse files
app.py
CHANGED
|
@@ -140,11 +140,9 @@ def get_all_films(indexed_cache):
|
|
| 140 |
if directory['type'] == 'directory' and directory['path'] == 'films':
|
| 141 |
for sub_directory in directory['contents']:
|
| 142 |
if sub_directory['type'] == 'directory':
|
| 143 |
-
|
| 144 |
-
films.append(item['path'])
|
| 145 |
return films
|
| 146 |
|
| 147 |
-
|
| 148 |
def start_prefetching():
|
| 149 |
"""Start the metadata prefetching in a separate thread."""
|
| 150 |
prefetch_metadata()
|
|
|
|
| 140 |
if directory['type'] == 'directory' and directory['path'] == 'films':
|
| 141 |
for sub_directory in directory['contents']:
|
| 142 |
if sub_directory['type'] == 'directory':
|
| 143 |
+
films.append(sub_directory['path'])
|
|
|
|
| 144 |
return films
|
| 145 |
|
|
|
|
| 146 |
def start_prefetching():
|
| 147 |
"""Start the metadata prefetching in a separate thread."""
|
| 148 |
prefetch_metadata()
|