Spaces:
Runtime error
Runtime error
Create app/settings.py
Browse files- app/settings.py +24 -0
app/settings.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Settings that you can edit safely WITHOUT touching .env
|
| 2 |
+
|
| 3 |
+
# Upload rotation: per profile per UTC day limit
|
| 4 |
+
ROTATE_AFTER_PER_PROFILE = 30 # change anytime
|
| 5 |
+
|
| 6 |
+
# Default upload privacy (bulk-friendly)
|
| 7 |
+
DEFAULT_PRIVACY = "private" # private | unlisted | public
|
| 8 |
+
|
| 9 |
+
# Default title mode for new videos
|
| 10 |
+
# "caption" (if exists else filename) | "filename"
|
| 11 |
+
DEFAULT_TITLE_MODE = "caption"
|
| 12 |
+
|
| 13 |
+
# YouTube resumable upload chunk size (bytes)
|
| 14 |
+
# 8MB is safe; bigger may speed up but more risk on unstable net
|
| 15 |
+
YOUTUBE_CHUNK_SIZE = 8 * 1024 * 1024
|
| 16 |
+
|
| 17 |
+
# Bot rate-limit for progress edits (seconds)
|
| 18 |
+
PROGRESS_EDIT_EVERY_SEC = 2.5
|
| 19 |
+
|
| 20 |
+
# Max concurrent uploads per bot (avoid HF overload)
|
| 21 |
+
MAX_CONCURRENT_UPLOADS = 1
|
| 22 |
+
|
| 23 |
+
# Local temp dir
|
| 24 |
+
TMP_DIR = "/tmp/ytbot"
|