Spaces:
Running
Running
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
|
| 204 |
-
"user_type": instruction
|
| 205 |
"message_id": message.id,
|
| 206 |
-
"IMDB_id": instruction
|
| 207 |
-
"poster": instruction
|
| 208 |
-
"title": instruction
|
| 209 |
-
"release_date":instruction
|
| 210 |
-
"type": instruction
|
| 211 |
-
"keywords": instruction
|
| 212 |
-
"description":instruction
|
| 213 |
-
"genre":instruction
|
| 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,
|