Wan Wan Train Doko e Iku?, episode 10
Alternative Names
Shuumatsu Train Doko e Iku? Mini Anime, Train to the End of the World Mini Anime, 終末トレインどこへいく? ミニアニメ
Additional Links
All discussions
Episode | Link |
---|---|
2 | Link |
10 | Link |
This post was created by a bot. Message the mod team for feedback and comments. The original source code can be found on GitHub.
I am having trouble with the bot finding newly aired episodes in the database.
I have populated database following GitHub guide. And I have enabled
discovery_enabled
andshow_discovery
in config file.python src/rikka.py -m setup python src/rikka.py -m edit_season spring 2024 python src/rikka.py -m update all python src/rikka.py -m episode
When I run
python src/rikka.py -m episode
, I get 0 episode have aired.DEBUG | Current length of deque is 5 DEBUG | Starting new HTTPS connection (1): graphql.anilist.co:443 DEBUG | https://graphql.anilist.co:443 "POST / HTTP/11" 200 None INFO | Found 71 upcoming episodes and discovered 0 new shows INFO | Checking for episodes that have aired. DEBUG | Querying database for upcoming episodes that have aired. DEBUG | Found 0 episodes that have aired in the database. INFO | Found 0 episodes that have aired. INFO |
I can manually create a post by providing anilist_id and episode number like
python src/rikka.py -m episode 136804 10
for current season Demon Slayer Episode 10.You probably just need to wait for some episodes to air. All that output looks fine to me. Some more details…
When you run the
episode
module the first time is when it will discover any new shows and fetch all the episodes that are airing in the nextdays
in the future (set in the[options]
section).So, what this means is that if you run the
episode
module the first time, no posts will get created since it is only looking forward in time and not backwards. From that point forward, if you run theepisode
module again after the api-provided airing time (plus the configureddelay
parameter in the[post]
section) for an episode, that is when a post will get created.For a reference on upcoming episodes, you can check out the airing page on anichart, which is fed using the same api.
The reason that the
episode
module is only forward looking in time is that I found that the api gets way less reliable once you start looking at airing times in the past.A general flow of how the
episode
module operates in an ongoing manner:episode
module is run, all upcoming episodes are fetched for the configured time to look aheadShows
table) or meet the discovery criteria configured to be added to the databaseUpcomingEpisodes
table)UpcomingEpisodes
table that have an airing time with a timestamp earlier in time than the current time. These are the episodes that have “aired.”Episodes
table in the database).IgnoredEpisodes
table in the database. This is the table that the bot pulls from for its user-requested threads via pm (thelisten
module)I think that about covers the
episode
module. That was done basically from memory as I can’t really dig into the code from this machine, so if something I said doesn’t add up or if a variable name is slightly different, that would be why.I waited for new episodes and yes it is working now.
Thanks for explaining the module in detail. If I understand it correctly
Shows
table and added toUpcomingEpisodes
tableUpcomingEpisodes
table that have earlier timestamp than current time are marked as ‘aired’That’s pretty much it! There are tons of shows going on at any given time, so I tried to add features to stem the flood of discussion posts. Some tips for managing things:
Under the
[options]
section, I havediscovery_enabled = false
. I realize now that this was named poorly, but this doesn’t turn off discovery all together, instead, just makes sure that any new shows it does discover are disabled by default, meaning that it won’t make new posts for them as they air.You can use the disable module to mark shows as disabled in the database. I have instructions in the readme for how to disable different sets of shows (including just disabling everything).
Speaking of disabling everything…that is how I start the new season of shows. I then make a thread about the upcoming season, asking people what they are planning to watch, and go through and enable each of those shows manually using the enable module. I think that overall this worked pretty well last season. Spoiler alert is that Monday’s general thread in the anime community will be the Summer version of that process.
When a user requests a show via PM (using the
listen
module), it also sets the show as enabled. So, if you want to start discussion threads that way, by requesting aired shows one at a time via pm, that is another option.Finally, some additional tips on managing the backend of things:
listen
andsummary
modules are run every 5 minutes while theepisode
is additionally run every 15 minutes.update
module with theall
parameter and runs thedisable
module with thefinished
parameter, just to do some housekeepingSome other things that pop into my head:
Thanks you for your tips. I will keep those in mind.
Currently I am testing on my laptop so maybe I will just use
rsync
to backup to external drives for now.Yesterday I was searching how to open sqlite file and found this and installed it. It is great to visually see how the data are stored in sqlite database.