ShokoAnime / ShokoDesktop

Repository for Shoko Desktop
http://shokoanime.com/shokodesktop/
103 stars 24 forks source link

Unable to manually link unrecognized files to a local group #620

Closed lsahnicne closed 2 years ago

lsahnicne commented 2 years ago

VERSION INFORMATION

Server Version: 4.1.2.0

Desktop Version: 4.1.2.0

DESCRIPTION

When trying to add unrecognized episodes to a local group, no changes appear to be made.

https://user-images.githubusercontent.com/43319094/178094821-02424781-871d-4549-99d2-891c0a171ce2.mp4

STEPS TO REPRODUCE

  1. Have a number of unrecognized episode files
  2. Add a Local Group through Utilities->Unrecognized->New Series
  3. Select a range of unrecognized episode files in Utilities->Unrecognized, select the series of a Local Group crated in step 2, select Episode Range, press Confirm.
  4. Nothing happens, the episodes stay unrecognized.

DESKTOP LOG FILE

[2022-07-09 09:11:07:387] Info|RoutedEventArgs.InvokeHandler => UnrecognisedVideos.lbSeries_SelectionChanged => VM_AnimeSeries_User.RefreshEpisodes Got episode contracts: Coppelion in 9.0005 ms
[2022-07-09 09:11:07:387] Info|RoutedEventArgs.InvokeHandler => UnrecognisedVideos.lbSeries_SelectionChanged => VM_AnimeSeries_User.RefreshEpisodes Sorted episode contracts: Coppelion in 0 ms
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Selected one video for linking = False
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Multiple videos selected for linking = True
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] linking 13 videos
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 01 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4659 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 02 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4662 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 03 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4656 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 04 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4661 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 05 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4660 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 06 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4658 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 07 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4667 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 08 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4663 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 09 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4666 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 10 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4665 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 11 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4657 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 12 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4664 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Gonna link /wdred8/video/anime/2013/[ANK-Raws] COPPELION (BDrip 1920x1080 HEVC-YUV420P10 FLAC)/[ANK-Raws] COPPELION 13 (BDrip 1920x1080 HEVC-YUV420P10 FLAC SUP).mkv | 4668 => Coppelion
[2022-07-09 09:11:22:941] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Selected multiple episodeds for linking, range = 1 to 13
[2022-07-09 09:11:25:726] Info|UIElement.RaiseEventImpl => EventRoute.InvokeHandlersImpl => UnrecognisedVideos.btnConfirm_Click [Unrecognizedfiles] Multiple episodes linked successfully

SERVER LOG FILE

09:10:16| --- Trying to load 7933 anime data from cache.
09:10:17| --- Getting anime info: Force: True  CacheOnly: False
09:10:17| --- Forced update. Trying to load 7933 anime data from AniDB API.
09:10:17| --- AniDB HTTP - Getting anime XML data from AniDB: 7933; prevUpdate:
09:10:17| --- Time since last request is 1672989 ms, not throttling.
09:10:18| --- AniDB HTTP - Got anime XML Data From AniDB: 7933 - 779.5826 - <?xml version="1.0" encoding="UTF-8"?><anime id="7933" restricted="false">
<type>TV Series</type>
<e
09:10:18| --- Writing anime XML to cache: /home/shoko/.shoko/Shoko.CLI/Anime_HTTP/AnimeDoc_7933.xml
09:10:18| --- Can write to /home/shoko/.shoko/Shoko.CLI/Anime_HTTP. Writing xml file /home/shoko/.shoko/Shoko.CLI/Anime_HTTP/AnimeDoc_7933.xml
09:10:18| --- Anime data loaded for 7933. Processing and saving it.
09:10:18| --- cmdResult.Anime: AnimeID: 7933 | Main Title: Coppelion | EpisodeCount: 13 | AirDate: 07/05/2013 04:00:00 | Picname: 141546.jpg | Type: TV Series | relatedAnimeIDs:  | relatedAnimeTypes:
09:10:18| --- ------------------------------------------------
09:10:18| --- PopulateAndSaveFromHTTP: for 7933 - Coppelion @ Depth: 0/1
09:10:18| --- ------------------------------------------------
09:10:20| --- CreateEpisodes in : 815
09:10:21| --- CreateTitles in : 257
09:10:22| --- CreateTags in : 1382
09:10:35| --- CreateCharacters in : 13271
09:10:37| --- CreateStaff in : 1803
09:10:37| --- CreateResources in : 201
09:10:37| --- CreateRelations in : 0
09:10:37| --- CreateSimilarAnime in : 234
09:10:38| --- CreateRecommendations in : 212
09:10:38| --- Updated TvDB Matches for Coppelion in 0.1091ms
09:10:38| --- TOTAL TIME in : 19674
09:10:38| --- ------------------------------------------------
09:10:39| --- Updated TvDB Matches for Coppelion in 0.0584ms
09:10:39| --- Creating groups, series and episodes....
09:10:40| --- Updated TvDB Matches for Coppelion in 0.0527ms
09:10:40| --- While Saving SERIES Coppelion, Regenerated AniDB_Anime contract in 559ms
09:10:40| --- While Updating SERIES Coppelion, Cloned Series Contract in 0.0009ms
09:10:40| --- While Updating SERIES Coppelion, Got and Cloned AniDB_Anime Contract in 0.061ms
09:10:40| --- While Updating SERIES Coppelion, Got GroupFilterConditionTypesChanged in 0.005ms
09:10:40| --- While Saving SERIES Coppelion, Updated Contract in 23ms
09:10:40| --- While Saving SERIES Coppelion, Saved to Database in 180ms
09:10:40| --- While calculating group filters, an AnimeSeries without a group was found: Coppelion
09:10:41| --- While calculating group filters, an AnimeSeries without a group was found: Coppelion
09:10:41| --- Updating 1260 Group Filters from Series Coppelion
09:11:02| --- While Saving SERIES Coppelion, Updated GroupFilters in 105ms
09:11:10| --- Updating 1260 Group Filters from Group Coppelion
09:11:11| --- While Saving SERIES Coppelion, Got existing record from database in 5ms
09:11:12| --- Updated TvDB Matches for Coppelion in 0.0568ms
09:11:12| --- While Saving SERIES Coppelion, Regenerated AniDB_Anime contract in 556ms
09:11:12| --- While Updating SERIES Coppelion, Cloned Series Contract in 0.0008ms
09:11:12| --- While Updating SERIES Coppelion, Got and Cloned AniDB_Anime Contract in 0.0572ms
09:11:12| --- While Updating SERIES Coppelion, Got GroupFilterConditionTypesChanged in 0.0049ms
09:11:12| --- While Saving SERIES Coppelion, Updated Contract in 36ms
09:11:12| --- While Saving SERIES Coppelion, Saved to Database in 198ms
09:11:12| --- Updating 1260 Group Filters from Series Coppelion
09:11:12| --- While Saving SERIES Coppelion, Updated GroupFilters in 312ms
09:11:12| --- Generating 16 episodes for Coppelion
09:11:13| --- Generating episodes for Coppelion: 25%
09:11:14| --- Generating episodes for Coppelion: 50%
09:11:15| --- Generating episodes for Coppelion: 75%
09:11:15| --- Generating episodes for Coppelion: 100%
09:11:16| --- Starting Updating STATS for SERIES Coppelion - Watched Stats: False, Missing Episodes: False, Update Group Stats: True
09:11:16| --- Got episodes for SERIES Coppelion in 0.1255ms
09:11:16| --- Updated WATCHED stats for SERIES Coppelion in 20.5784ms
09:11:16| --- Updated MISSING EPS stats for SERIES Coppelion in 0.0014ms
09:11:16| --- While Saving SERIES Coppelion, Got existing record from database in 19ms
09:11:16| --- Updated TvDB Matches for Coppelion in 0.1656ms
09:11:16| --- While Saving SERIES Coppelion, Regenerated AniDB_Anime contract in 612ms
09:11:16| --- While Updating SERIES Coppelion, Cloned Series Contract in 0.0255ms
09:11:16| --- While Updating SERIES Coppelion, Got and Cloned AniDB_Anime Contract in 0.1284ms
09:11:16| --- While Updating SERIES Coppelion, Got GroupFilterConditionTypesChanged in 0.0505ms
09:11:16| --- While Saving SERIES Coppelion, Updated Contract in 29ms
09:11:16| --- While Saving SERIES Coppelion, Saved to Database in 172ms
09:11:16| --- Saved stats for SERIES Coppelion in 834.0646ms
09:11:16| --- Starting Updating STATS for GROUP Coppelion from Top Level (recursively) - Watched Stats: False, Missing Episodes: False, Groups Only: True
09:11:16| --- Starting Updating STATS for GROUP Coppelion - Watched Stats: False, Missing Episodes: False
09:11:17| --- Updating 1259 Group Filters from Group Coppelion
09:11:18| --- Finished Updating STATS for GROUP Coppelion in 1147.26ms
09:11:18| --- Finished Updating STATS for GROUP Coppelion from Top Level (recursively) in 1148.5818ms
09:11:18| --- Updated group stats for SERIES Coppelion in 1148.6152ms
09:11:18| --- Finished updating stats for SERIES Coppelion in 2.0033555s
ElementalCrisis commented 2 years ago

How it works is the task is added to your general queue. Looks like you have quite a few queued tasks so once they are completed, the files will be linked.

https://user-images.githubusercontent.com/9443295/178096790-58f0561a-a148-43dd-a7cd-c37b1a2e96c8.mp4

lukefor commented 2 years ago

Can confirm the same behaviour. Even after clearing the queue, unrecognised files do not get processed. Clicking 'Confirm' increases the number of queue items from 0 to 1 in the AniDB Queue, but it sits at 'Idle' status indefinitely and does not process the item. I can repeatedly clear the queue and re-add the 1 item and it never gets processed. Haven't had any issues with recognised files - it is able to retrieve them from AniDB as expected. There is nothing printed to the log, other than when I clear the queue General Queue has been stopped, 1 commands left.

Edit: Restarting Shoko Server fixed it. I guess there is a bug with the AniDB ban handling, as I was HTTP banned when the server started, but it lifted during the server's uptime