You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AniDB "force" update does currently not do what I would expect it still upholds a 24 hour timeout.
I would kindly ask for an option to ignore this time out and "force" for real, if I choose to want to
what I am currently doing is this
varsettings=JsonSerializer.Deserialize<SettingsEntry>(settingsOutput,Utils.jsonSerializerOptions)??newSettingsEntry();if(!string.IsNullOrEmpty(settings.Database.MySqlFullName)){varconStringBuilder=newSqliteConnectionStringBuilder{DataSource=settings.Database.MySqlFullName};varconString=conStringBuilder.ToString();usingvarconnection=newSqliteConnection(conString);connection.Open();usingvarcommand=connection.CreateCommand();command.CommandText="select UpdatedAt from AniDB_AnimeUpdate where AnimeID = @aniDb";command.Parameters.AddWithValue("@aniDb",seriesAniDb);varupdatedAt=Convert.ToDateTime(command.ExecuteScalar());updatedAt=updatedAt.AddDays(-1.5);usingvarcommandUpdate=connection.CreateCommand();commandUpdate.CommandText="update AniDB_AnimeUpdate set UpdatedAt = @updatedAt where AnimeID = @aniDb";commandUpdate.Parameters.AddWithValue("@aniDb",seriesAniDb);commandUpdate.Parameters.AddWithValue("@updatedAt",updatedAt);commandUpdate.ExecuteNonQuery();}
which sets the UpdatedAt to -1.5 days in the past, so that calling this query actually refreshes an item
You may ask why is this important to me, and maybe others?
In 99% of the time I don't care, but sometimes there are 2 use cases
A new series doesn't have episodes associated on AniDB but it may have in a couple of minutes/hourse after a episode was released, so it can happen that Shoko picked up the series but can't link the file to the correct episode because there was no episode available at the time
A series didn't have the correct tags associated most annoyingly the "18 restricted" tag, which is necessary to hide this kind of genres from people in my household which shouldn't see this
Shoko only can fix these issues 24 hours later, the first one is rather trivial as I can simply watch the episode 24 hours later, but the second one is more disturbing as I need to make sure for 24 hours this content doesn't fall into the wrong hands.
With the proposal I could manually fix it by simply refreshing the series ignoring the timeout.
So either the "force=true" should as I would assume actually force the update and ignore the timeout, or provide another parameter e.g. "ignoreTimeout=true"
The text was updated successfully, but these errors were encountered:
part of the reason for a 24h timeout would be because AniDB is much more likely to ban on frequent updates, especially of the same series, so I am not sure if adding this is the best idea.
Last time we thought about adding an extra actual "Force" update option for advanced users, and also making it more clear which option does what. Since "force" means something and it's not actually forcing anything. So atleast a change in the wording may help.
Th force "force" refresh will also help people who are using a proxy and don't need to care about getting banned
@Cazzar
most likely, though IMHO when a user triggers a force update it should force and ignore the timeout, if user gets banned for it, I would say it's the user's fault
Last time we thought about adding an extra actual "Force" update option for advanced users
would appreciate it
and also making it more clear which option does what
yes, please
I have no idea what force update actually does compared to the non force option
when I noticed the behaviour I thought its a bug, but digging through the code seems to suggest that it is as expected
I do not suggest changing the internal handling, because many internal code is calling a refresh of anime with ForceRefresh = true and iternal should respect the 24 hours timeout, but the user should have the option to bypass the timeout
I would be against having a 3rd option in the shoko web ui, the "force refresh" option should than be the refresh bypassing the timeout
AniDB "force" update does currently not do what I would expect it still upholds a 24 hour timeout.
I would kindly ask for an option to ignore this time out and "force" for real, if I choose to want to
what I am currently doing is this
which sets the
UpdatedAt
to -1.5 days in the past, so that calling this query actually refreshes an itemYou may ask why is this important to me, and maybe others?
In 99% of the time I don't care, but sometimes there are 2 use cases
A new series doesn't have episodes associated on AniDB but it may have in a couple of minutes/hourse after a episode was released, so it can happen that Shoko picked up the series but can't link the file to the correct episode because there was no episode available at the time
A series didn't have the correct tags associated most annoyingly the "18 restricted" tag, which is necessary to hide this kind of genres from people in my household which shouldn't see this
Shoko only can fix these issues 24 hours later, the first one is rather trivial as I can simply watch the episode 24 hours later, but the second one is more disturbing as I need to make sure for 24 hours this content doesn't fall into the wrong hands.
With the proposal I could manually fix it by simply refreshing the series ignoring the timeout.
So either the "force=true" should as I would assume actually force the update and ignore the timeout, or provide another parameter e.g. "ignoreTimeout=true"
The text was updated successfully, but these errors were encountered: