Send cached V1.0.8
This commit is contained in:
@@ -24,6 +24,7 @@ def rotate_downloads(downloads_dir: str):
|
||||
|
||||
|
||||
def download_video(yt_url: str) -> dict:
|
||||
yt_url = yt_url.split('&')[0]
|
||||
MAX_DUR = os.getenv('MAX_DURATION')
|
||||
if not MAX_DUR.isnumeric():
|
||||
return {'status': 'error', 'message': f'MAX_DUR: "{MAX_DUR}" - nie jest cyfrą.'}
|
||||
|
||||
Reference in New Issue
Block a user