Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the scanner to recover from a 404 response from TA #83

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akoebbe
Copy link

@akoebbe akoebbe commented Oct 16, 2024

I lost my TA database and when rebuilding it from the video files some of the files didn't populate (I assume because they were taken down after I originally downloaded them). Since the files still exist the scanner finds them and tries to query TA for the metadata, but receives a 404 and the script isn't allowed to continue. This fix continues the loop so that rest of the videos can be pulled in.

@akoebbe
Copy link
Author

akoebbe commented Oct 16, 2024

For reference, here is the relevant error log snipit of the original issue...

2024-10-15 23:10:16,375 [TubeArchivist Scanner] INFO - Attempting to connect to TubeArchivist at http://10.0.0.5:8000 with provided token from `ta_config.json` file.
2024-10-15 23:10:16,380 [TubeArchivist Scanner] INFO - TubeArchivist is running version v0.4.10
2024-10-15 23:10:16,381 [TubeArchivist Scanner] INFO - Initiating scan of library files...
2024-10-15 23:10:16,382 [TubeArchivist Scanner] INFO - Processing file with scanner: 70SaMb806sk.mp4
2024-10-15 23:10:16,382 [TubeArchivist Scanner] INFO - File matches expected filename layout.
2024-10-15 23:10:16,382 [TubeArchivist Scanner] INFO - Attempting to connect to TubeArchivist to lookup YouTube video: 70SaMb806sk
2024-10-15 23:10:16,389 [TubeArchivist Scanner] ERROR - Error reading or accessing url 'http://10.0.0.5:8000/api/video/70SaMb806sk/', Exception: 'HTTP Error 404: Not Found'
2024-10-15 23:10:16,389 [TubeArchivist Scanner] ERROR - Error connecting to TubeArchivist with URL 'http://10.0.0.5:8000/api/video/70SaMb806sk/', Exception: 'HTTP Error 404: Not Found'
2024-10-15 23:10:16,389 [TubeArchivist Scanner] ERROR - Error processing video response from TubeArchivist at URL 'http://10.0.0.5:8000', Exception: 'HTTP Error 404: Not Found'
2024-10-15 23:10:16,389 [TubeArchivist Scanner] ERROR - Issue with setting metadata from video using response metadata: '{}', Exception: 'HTTP Error 404: Not Found'

@lamusmaser
Copy link
Collaborator

Can you push this against the testing branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants