Spaces:
Paused
Paused
GilangAlRusliadi commited on
Commit ·
3e4e56a
1
Parent(s): df84419
Ai
Browse files- trailer.py +3 -1
trailer.py
CHANGED
|
@@ -12,7 +12,9 @@ def trailer(url):
|
|
| 12 |
os.makedirs(thumbnail_dir)
|
| 13 |
|
| 14 |
# Set the path to the video directory
|
| 15 |
-
video_dir = "/home/user/app/Hasil Download"
|
|
|
|
|
|
|
| 16 |
response = requests.get(url)
|
| 17 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 18 |
|
|
|
|
| 12 |
os.makedirs(thumbnail_dir)
|
| 13 |
|
| 14 |
# Set the path to the video directory
|
| 15 |
+
video_dir = "/home/user/app/Trailer/Hasil Download"
|
| 16 |
+
if not os.path.exists(thumbnail_dir):
|
| 17 |
+
os.makedirs(thumbnail_dir)
|
| 18 |
response = requests.get(url)
|
| 19 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 20 |
|