privateone commited on
Commit
84c57d4
·
verified ·
1 Parent(s): a8a8fad

Update FileStream/utils/FileProcessors/file_properties.py

Browse files
FileStream/utils/FileProcessors/file_properties.py CHANGED
@@ -200,17 +200,17 @@ def get_file_info(message, instruction):
200
  duration="unknown"
201
  #"caption": clean_text(getattr(message, "caption", f"{get_name(message)}")),
202
  return {
203
- "user_id": instruction['user_id'],
204
- "user_type": instruction['user_type'],
205
  "message_id": message.id,
206
- "IMDB_id": instruction["IMDB_id"],
207
- "poster": instruction["poster"],
208
- "title": instruction["title"],
209
- "release_date":instruction["release_date"],
210
- "type": instruction["type"],
211
- "keywords": instruction["keywords"],
212
- "description":instruction["description"],
213
- "genre":instruction["genre"],
214
  "quality":quality,
215
  "duration": duration,
216
  "location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
 
200
  duration="unknown"
201
  #"caption": clean_text(getattr(message, "caption", f"{get_name(message)}")),
202
  return {
203
+ "user_id": instruction.get("user_id", ""),
204
+ "user_type": instruction.get("user_type",""),
205
  "message_id": message.id,
206
+ "IMDB_id": instruction.get("IMDB_id",""),
207
+ "poster": instruction.get("poster",""),
208
+ "title": instruction.get("title",""),
209
+ "release_date":instruction.get("release_date",""),
210
+ "type": instruction.get("type",""),
211
+ "keywords": instruction.get("keywords",""),
212
+ "description":instruction.get("description",""),
213
+ "genre":instruction.get("genre",""),
214
  "quality":quality,
215
  "duration": duration,
216
  "location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,