-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Strange issues with yt part #57
Comments
I have noticed that scheduled live streams has one Channel's rss feed downloaded at Mar 28 19:57:
Downloaded at Mar 28 22:11:
|
I'm not sure this is the case. I tend to believe, for live events as well as "scheduled" events (i.e. ERROR: [youtube] hF6IrOcs78o: This live event will begin in 4 minutes.) it will fail the download process. The failed download won't update the store, so it won't even publish an entry to boltdb I think, there are some other cases the published property got updated. I'm not sure how to handle it better - we have to have some timestamp in the key to allow time-sorting and this timestamp should be real, I mean we can't set time.Now() here. If you have any bright idea how to address this mutable |
this is an example of "unhealthy loop with new entries detected, published, and removed right away" here we download videoid 45GbA78kSpo, store audio to ce8355c3eee3207b93320b79d978e7c19cb2dc5e.mp3, and after this remove ce8355c3eee3207b93320b79d978e7c19cb2dc5e.mp3 right away.
this is youtube feed for the channel: https://www.youtube.com/feeds/videos.xml?channel_id=UCzaqqlriSjVyc795m86GVyg I don't see anything unusual with this entry but somehow it causes the issue above |
this is one more example of get-delete loop
So far those two are the only cases I can reproduce. Pls note - after #62 it will happen only once and in order to see it again you will need to remove boltdb file |
another mystery
So, the file was removed but the entry in RSS is still in place. RSS is built from bolt directly and removal seems to be fine to me. At least I can't see how it can keep items in bolt but remove the file this is the log for the actual removal, no errors
I have added some extra checks to prevent potential failed removal of metadata from reporting the file for removal, however I don't think this was the case |
after all the changes around ts adjustment and a separate tracking of processed entires this part seems to be stable and issue-free |
The youtube part is mostly fine, doing things as designed however there are 2 issues we need to address. I tend to believe both are somehow related to the way the youtube XML feed formed and I suspect some out-of-order entries from time to time, but not sure.
youtube.Service
to prevent processing on the same entry for the second time. Obviously, this is just a hack, as this unbounded set will grow with time.Both issues are reproducible with the current configuration, i.e. with this:
The text was updated successfully, but these errors were encountered: