Change some strings
This commit is contained in:
parent
d2ade3e0ae
commit
df45161778
|
@ -127,7 +127,7 @@ async def _video_worker():
|
||||||
text = 'New video'
|
text = 'New video'
|
||||||
if is_late:
|
if is_late:
|
||||||
text += ' (is late)'
|
text += ' (is late)'
|
||||||
text += f': {video_json["title"]}'
|
text += f': {video_json["title"]}\nhttps://youtube.com/watch?v={video_json["id"]}'
|
||||||
with BytesIO(json.dumps(video_json, indent=4).encode()) as file:
|
with BytesIO(json.dumps(video_json, indent=4).encode()) as file:
|
||||||
file.name = video_json['id'] + '.json'
|
file.name = video_json['id'] + '.json'
|
||||||
file.seek(0)
|
file.seek(0)
|
||||||
|
@ -179,7 +179,7 @@ async def _upload_worker():
|
||||||
files = [video_filename]
|
files = [video_filename]
|
||||||
for i in files:
|
for i in files:
|
||||||
message = await client.send_message(config['config']['storage_chat_id'], f'Uploading {os.path.split(i)[1]}...', parse_mode=None)
|
message = await client.send_message(config['config']['storage_chat_id'], f'Uploading {os.path.split(i)[1]}...', parse_mode=None)
|
||||||
await client.send_file(config['config']['storage_chat_id'], i)
|
await client.send_file(config['config']['storage_chat_id'], i, caption=os.path.split(i)[1], parse_mode=None)
|
||||||
asyncio.create_task(message.delete())
|
asyncio.create_task(message.delete())
|
||||||
finally:
|
finally:
|
||||||
tempdir_obj.cleanup()
|
tempdir_obj.cleanup()
|
||||||
|
|
Loading…
Reference in New Issue