Attachments links in statuses

This commit is contained in:
localhost_frssoft 2022-04-15 21:18:30 +03:00
parent 34439334f1
commit bf4e53e8ad

View file

@ -347,7 +347,8 @@ statuses_render()
attachments=$(echo $status | jj -l media_attachments.#.remote_url | delq) attachments=$(echo $status | jj -l media_attachments.#.remote_url | delq)
if [ -n "$attachments" ]; then if [ -n "$attachments" ]; then
echo "#EXTINF:-1, $uri" >> attachments.m3u8 echo "#EXTINF:-1, $uri" >> attachments.m3u8
echo "$attachments" >> attachments.m3u8 echo '[Attachments:]'
echo "$attachments" | tee -a attachments.m3u8
fi fi
echo "$statuses_separator" echo "$statuses_separator"
done done