ChandimaPrabath commited on
Commit
b159afa
·
1 Parent(s): 3a0c335
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ async def get_movie_card_api(title: str):
152
  banner = artwork
153
  break
154
  year = data['data']['year']
155
- return JSONResponse(content={'title':eng_title, 'year': year, 'image': image, 'banner':banner})
156
 
157
  raise HTTPException(status_code=404, detail="Card not found")
158
 
 
152
  banner = artwork
153
  break
154
  year = data['data']['year']
155
+ return JSONResponse(content={'title':eng_title or title, 'year': year, 'image': image, 'banner':banner})
156
 
157
  raise HTTPException(status_code=404, detail="Card not found")
158