amadejkastelic / discord-video-embed-bot

A discord bot that automatically embeds videos from various sources that do not support embeding.
GNU General Public License v3.0
9 stars 2 forks source link

Facebook Videos Not Working #10

Closed binaryn3xus closed 3 months ago

binaryn3xus commented 3 months ago

Current Version: Bot version: 0.21.0@sha256:5a507c26b687e3a9dc756a300639e9adb706bc14200ae9a18d5c1f3e5a7e64f8 Kubernetes Version: 1.30.2

Configuration Live Configs: https://github.com/binaryn3xus/HomeOps/blob/main/kubernetes/apps/default/discord/phc-high-counsel-social-bot/helmrelease.yaml

Note my secrets are kept in Azure Keyvault. I update there and it in turn updates in my Kubernetes Cluster. So you wont see those unless you go up a level (from the link provided) and look at how my external secrets are configured.

Logs for random different FB video links

2024-09-02 19:18:25,423 WARNING No raw posts (<article> elements) were found in this page.
2024-09-02 19:18:25,562 INFO User binaryn3xus sent message with url https://www.facebook.com/watch?v=397541542810432
2024-09-02 19:19:53,618 WARNING No raw posts (<article> elements) were found in this page.
2024-09-02 19:19:53,826 INFO User binaryn3xus sent message with url https://www.facebook.com/share/r/6nkDd13UZTwxxYX2/
2024-09-02 19:26:10,592 WARNING No raw posts (<article> elements) were found in this page.
2024-09-02 19:26:10,800 INFO User binaryn3xus sent message with url https://www.facebook.com/reel/919117486924056

The cookies.txt file is correctly in the /app folder (to my understanding).

image

Typical Results: image

Please let me know if the issue is on my end.

amadejkastelic commented 3 months ago

All the URLs work for me. I'd say that your cookies expired and you need to update them. I'll try to find a way to still somehow fetch videos that don't require authentication in cases like this.

binaryn3xus commented 3 months ago

I think you are right. I had just created a new cookie for the container and I dont think it had taken effect yet. The day after posting this, it started to work again. This makes 2 issues now I have opened for this problem and been the problem myself. haha sorry