BinaryONe
commited on
Commit
·
81e8a1f
1
Parent(s):
38c5fbb
Callback Update
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
|
@@ -139,7 +139,8 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
| 139 |
"release_date": res["datePublished"],
|
| 140 |
"type": res['type'],
|
| 141 |
"description":res["description"],
|
| 142 |
-
"
|
|
|
|
| 143 |
}
|
| 144 |
|
| 145 |
file_info = get_file_info(message, instruction)
|
|
|
|
| 139 |
"release_date": res["datePublished"],
|
| 140 |
"type": res['type'],
|
| 141 |
"description":res["description"],
|
| 142 |
+
"keyword":res["keywords"].split(",") if res.get("keywords") else [],
|
| 143 |
+
"genre": res.get("genre", []) ,
|
| 144 |
}
|
| 145 |
|
| 146 |
file_info = get_file_info(message, instruction)
|
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
|
@@ -64,7 +64,8 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
| 64 |
"IMDB_id": "Unknown",
|
| 65 |
"poster": "Unknown",
|
| 66 |
"title": "Unknown",
|
| 67 |
-
"release_date":"
|
|
|
|
| 68 |
"type": "Unknown",
|
| 69 |
"description":"Unknown",
|
| 70 |
"genre":"Unknown",
|
|
|
|
| 64 |
"IMDB_id": "Unknown",
|
| 65 |
"poster": "Unknown",
|
| 66 |
"title": "Unknown",
|
| 67 |
+
"release_date":"Unknown",
|
| 68 |
+
"keywords":"Unknown",
|
| 69 |
"type": "Unknown",
|
| 70 |
"description":"Unknown",
|
| 71 |
"genre":"Unknown",
|
FileStream/utils/FileProcessors/file_properties.py
CHANGED
|
@@ -201,6 +201,7 @@ def get_file_info(message, instruction):
|
|
| 201 |
"title": instruction["title"],
|
| 202 |
"release_date":instruction["release_date"],
|
| 203 |
"type": instruction["type"],
|
|
|
|
| 204 |
"description":instruction["description"],
|
| 205 |
"genre":instruction["genre"],
|
| 206 |
"quality":quality,
|
|
|
|
| 201 |
"title": instruction["title"],
|
| 202 |
"release_date":instruction["release_date"],
|
| 203 |
"type": instruction["type"],
|
| 204 |
+
"keywords": instruction["keywords"],
|
| 205 |
"description":instruction["description"],
|
| 206 |
"genre":instruction["genre"],
|
| 207 |
"quality":quality,
|