rivenmedia / riven

Handle your Media Library with ease!
GNU General Public License v3.0
297 stars 43 forks source link

[Bug] Packs that fail scraping and have the child items submitted for scraping don't have their state get updated #619

Open FlashLightning67 opened 4 weeks ago

FlashLightning67 commented 4 weeks ago

For example when shows have their seasons get submitted for scraping due to no show packs results, after the seasons are all symlinked and updated and get set as Completed, the shows are staying set as Scraped or Indexed, which leads to them being retried on startup every time.

These are logs of a lot of shows that are complete but still getting retried because their state hasn't been updated.

24-08-14 21:37:46 | πŸ€– PROGRAM   | program._retry_library - Found 14 items to retry
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Hazbin Hotel to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Percy Jackson and the Olympians to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Miraculous: Tales of Ladybug & Cat Noir to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Futurama to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Amphibia to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Steven Universe to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Inside Job to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Brooklyn Nine-Nine to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Stranger Things to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Young Sheldon to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Infinity Train to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Star vs. the Forces of Evil to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added Avatar: The Last Airbender to the queue
24-08-14 21:37:46 | πŸ” DISCOVERY | program._push_event_queue - Re-added House of the Dragon to the queue
dreulavelle commented 4 weeks ago

Just for shows right?

I believe this is due to the dual episode bug. If a torrent has 2 episodes in 1 file, for some reason its not getting saved properly to the db.

FlashLightning67 commented 4 weeks ago

This is happening for seasons too for me. If it ends up scraping individual episodes, it'll end up with all the episodes in that season as complete but the season itself wont be.

dreulavelle commented 4 weeks ago

use the api to see whats going on with the item.

http://localhost:8080/docs

You can use the extended endpoint to get specific info about a specific item as well.

FlashLightning67 commented 4 weeks ago

Seems the shows are properly showing as completed in the items endpoint, it seems it's just in the database that they aren't.

dreulavelle commented 4 weeks ago

ah so its not committing the changes to the db. @Gaisberg