Chrunos commited on
Commit
14f07fa
·
verified ·
1 Parent(s): 7159608

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,4 @@
1
-
2
- from fastapi import FastAPI, Request, HTTPException
3
  from pydantic import BaseModel
4
  import instaloader
5
  import os
@@ -34,6 +33,7 @@ def clean_url(url: str) -> Optional[str]:
34
  r'instagram.com/reel/([A-Za-z0-9_-]+)',
35
  r'instagram.com/p/([A-Za-z0-9_-]+)',
36
  r'instagram.com/stories/([A-Za-z0-9_-]+)',
 
37
  r'/([A-Za-z0-9_-]{11})[/]?$'
38
  ]
39
 
@@ -112,4 +112,4 @@ async def download_media(request: DownloadRequest):
112
 
113
  @app.get("/api/health")
114
  async def health_check():
115
- return {"status": "healthy"}
 
1
+ from fastapi import FastAPI, HTTPException
 
2
  from pydantic import BaseModel
3
  import instaloader
4
  import os
 
33
  r'instagram.com/reel/([A-Za-z0-9_-]+)',
34
  r'instagram.com/p/([A-Za-z0-9_-]+)',
35
  r'instagram.com/stories/([A-Za-z0-9_-]+)',
36
+ r'instagram.com/tv/([A-Za-z0-9_-]+)',
37
  r'/([A-Za-z0-9_-]{11})[/]?$'
38
  ]
39
 
 
112
 
113
  @app.get("/api/health")
114
  async def health_check():
115
+ return {"status": "healthy"}