auch für die YT-Suche gibts ne neue Ausgabe
This commit is contained in:
parent
37580de23b
commit
30ba1e886e
@ -98,7 +98,7 @@ function send_youtube_data(data, msg, self, link, sendpic)
|
|||||||
local upload_date = makeOurDate(data.snippet.publishedAt)
|
local upload_date = makeOurDate(data.snippet.publishedAt)
|
||||||
local viewCount = comma_value(data.statistics.viewCount)
|
local viewCount = comma_value(data.statistics.viewCount)
|
||||||
if data.statistics.likeCount then
|
if data.statistics.likeCount then
|
||||||
likeCount = ' | 👍 '..comma_value(data.statistics.likeCount)..' | 👎'
|
likeCount = ' | 👍 '..comma_value(data.statistics.likeCount)..' | 👎 '
|
||||||
dislikeCount = comma_value(data.statistics.dislikeCount)
|
dislikeCount = comma_value(data.statistics.dislikeCount)
|
||||||
else
|
else
|
||||||
likeCount = ''
|
likeCount = ''
|
||||||
@ -132,7 +132,7 @@ function send_youtube_data(data, msg, self, link, sendpic)
|
|||||||
if sendpic then
|
if sendpic then
|
||||||
local image_url = get_yt_thumbnail(data)
|
local image_url = get_yt_thumbnail(data)
|
||||||
-- need to change text, because Telegram captions can only be 200 characters long and don't support Markdown
|
-- need to change text, because Telegram captions can only be 200 characters long and don't support Markdown
|
||||||
local text = link..'\n'..title..'\n('..uploader..' am '..upload_date..', '..viewCount..'x angesehen, Länge: '..duration..')'
|
local text = link..'\n'..title..'\n🎥 '..uploader..', 📅 '..upload_date..'\n👁 '..viewCount..' | 🕒 '..duration..likeCount..dislikeCount..commentCount..'\n'
|
||||||
if blocked then
|
if blocked then
|
||||||
text = text..'\nACHTUNG, In Deutschland gesperrt!'
|
text = text..'\nACHTUNG, In Deutschland gesperrt!'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user