Various fixes and and a new cron job to ensure consistent video data collection. #11
Loading…
Reference in New Issue
No description provided.
Delete Branch "pta/WeatherNews.jl:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I reversed the logic of video ID assignment from "match each video to regular scheduled row in schedule table" to "match each row in schedule table to its video". So now all irregular caster schedules will get their corresponding video data, no matter how they split up the schedule. Rows for segments split between two casters will get the same video IDs and view counts. The error in the attached pic needs to get fixed manually, but such errors shouldn't happen again.
I also want to give all videos a long and fixed amount of time to age before making a final view count record. The new cron job will automatically fix Momo's May 3rd low view count error, and the larger yt-dlp json request will make it less likely to happen.
I changed some db update functions to target by rowid rather than jst, so checks against simultaneous AU pay rows are unnecessary, and locating the row by it's ID should be faster than doing so by string comparisons on the jst column.
Added some type annotations to catch errors at compile time and serve as documentation. Also added a constraint against AU pay streams to
find_schedule_by_jst
I didn't notice this until today. Sorry about that.
The new cron job for wndb-viewcount-update.jl is setup as of today.