New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Youtube Streams that are in the future should not be added to queue yet #714
Comments
Well the video doesn't get added to the queue, no? It will show an error in the logs but should skip it? The notification will trigger if the task had any results, which means, if the task added a video to the queue. Your log is cut off, but it looks like you are adding 3 videos, skipping one, then assuming adding two? TA won't know if it can add the video before it tries, because all it knows is the video ID at that point, there isn't really a way around this. |
Okay, I understand your point. I should have rephrased the issue. What I am interested in is only getting an apprise notification of how many videos actually got successfully added to the queue. It found 3, but the queue is empty cause tubearchivist fails to add them to the queue, which makes sense cause they are all liying in the future and are not present as video files yet. Or maybe the text of the notification has to be updated as it might be misleading. Cause what I get is:
But I guess I can live with that. I was just wondering if there is an open discussion on how to handle this. |
At the stage of rescanning, the task doesn't know yet if that is going to be able to add, as that just returns a list of video IDs. That then gets passed to the add to queue task, that will know what can or can't be added. Tasks are modular like that, so they can be invoked from different places, e.g. add to queue after a subscription rescan, or add to queue after a form post through the user on the download page. So yeah, that is not something that can be changed again easily. I'm closing this as wont fix. |
Alternatively we can also add another notification option for "Add to the download Queue" task, that might be more relevant. But could send too many notifications, e.g. also when you add an item through the form... But then you'd have the option. |
v0.4.8 ships a notification hook for add to queue task. |
I've read the documentation
Operating System
Linux Docker
Your Bug Report
When rescanning subscriptions manually or via cron i am getting the message that some new videos got found and that they will be added to the queue. But the queue is empty afterwards.
I suspect thats because of videos / streams that are in the future, thats also what the logs suggest.
Whats important is that its misleading when i get an apprise notification that 3 videos have been added , but the queue is empty.
If videos are in the future or still live there shouldnt be an attempt to add them to the queue.
Relevant log output
[2024-05-10 11:27:53,171: WARNING/ForkPoolWorker-2] VhzPaOsYmbM: [1/3]: add to queue [2024-05-10 11:27:54,182: WARNING/ForkPoolWorker-2] ERROR: [youtube] VhzPaOsYmbM: This live event will begin in 4 hours.
Anything else?
No response
The text was updated successfully, but these errors were encountered: