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

3.2.1 - failure on taking screenshots on first run, but works on second attempt #328

Closed
deitybob12 opened this issue Feb 7, 2025 · 5 comments

Comments

@deitybob12
Copy link

deitybob12 commented Feb 7, 2025

I just updated to 3.2.1, ran -cleanup, a run to post fails on the first attempt at the screenshot taking, but running it again immediately it works: Here is what I see for a first and second attempt:

~/files/downloads$ upload.py Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
Gathering info for Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
NFO downloaded to /home/user/Upload-Assistant/tmp/Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv/ask.this.old.house.s23e14.1080p.web.h264-bae.nfo
SRRDB: Matched to Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE
Exporting MediaInfo...
MediaInfo Exported.
No ID found in meta for AITHER, searching by file name
Searching AITHER by file name: Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
No valid data found on AITHER
No matches found on any trackers.
Building meta data.....
Prep material saved to /home/user/Upload-Assistant/tmp/Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv

Database Info
Title: Ask This Old House (2002)

Overview: The crew at This Old House take on some pretty big projects, which means they can only work on one or two houses a year. But homeowners have a
virtual truckload of questions on smaller projects, and the This Old House crew is ready to answer. Ask This Old House solves the steady stream of home
improvement problems faced by viewers - and the crew even makes house calls!

Genre: Documentary

Demographic:

Category: TV

TMDB: https://www.themoviedb.org/tv/23545
IMDB: https://www.imdb.com/title/tt0369081
TVDB: https://www.thetvdb.com/?id=74326&tab=series
TVMaze: https://www.tvmaze.com/shows/7037

1080p / WEBDL / BAE

Potentially missing information:

--edition | Special Edition/Release
--service | WEB Service e.g.(AMZN, NF)

Is this correct?
Name: Ask This Old House S23E14 1080p WEB-DL AAC 2.0 H.264-BAE
Correct? [y/N]: y
Searching for existing torrents on NBL...
Tracker 'NBL' passed all checks.
Enter 'y' to upload, or press enter to skip uploading:y
Searching for existing torrents on Aither...
Tracker 'AITHER' passed all checks.
Enter 'y' to upload, or press enter to skip uploading:y
Processing Ask This Old House for upload
Capturing Screenshots: 0%| | 0/7 [00:00<?, ?it/s]Error:
Error:
Error:
Error:
Error:
Error:
Error:
Capturing Screenshots: 100%|############################################################################################| 7/7 [00:00<00:00, 1432.34it/s]
Error during generic screenshot capture: max_workers must be greater than 0
Traceback (most recent call last):
File "/home/user/Upload-Assistant/upload.py", line 318, in
asyncio.run(do_the_thing(base_dir)) # Pass the correct base_dir value here
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.12.7/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.12.7/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.12.7/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/user/Upload-Assistant/upload.py", line 281, in do_the_thing
await process_meta(meta, base_dir)
File "/home/user/Upload-Assistant/upload.py", line 162, in process_meta
new_images, dummy_var = upload_screens(meta, meta['screens'], 1, 0, meta['screens'], [], return_dict=return_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Upload-Assistant/src/uploadscreens.py", line 362, in upload_screens
with ThreadPoolExecutor(max_workers=max_workers) as executor:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.12.7/lib/python3.12/concurrent/futures/thread.py", line 147, in init
raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0
~/files/downloads$ upload.py Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
Gathering info for Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
No ID found in meta for AITHER, searching by file name
Searching AITHER by file name: Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv
No valid data found on AITHER
No matches found on any trackers.
Building meta data.....
Prep material saved to /home/user/Upload-Assistant/tmp/Ask.This.Old.House.S23E14.1080p.WEB.h264-BAE.mkv

Database Info
Title: Ask This Old House (2002)

Overview: The crew at This Old House take on some pretty big projects, which means they can only work on one or two houses a year. But homeowners have a
virtual truckload of questions on smaller projects, and the This Old House crew is ready to answer. Ask This Old House solves the steady stream of home
improvement problems faced by viewers - and the crew even makes house calls!

Genre: Documentary

Demographic:

Category: TV

TMDB: https://www.themoviedb.org/tv/23545
IMDB: https://www.imdb.com/title/tt0369081
TVDB: https://www.thetvdb.com/?id=74326&tab=series
TVMaze: https://www.tvmaze.com/shows/7037

1080p / WEBDL / BAE

Potentially missing information:

--edition | Special Edition/Release
--service | WEB Service e.g.(AMZN, NF)

Is this correct?
Name: Ask This Old House S23E14 1080p WEB-DL AAC 2.0 H.264-BAE
Correct? [y/N]: y
Searching for existing torrents on NBL...
Tracker 'NBL' passed all checks.
Enter 'y' to upload, or press enter to skip uploading:y
Searching for existing torrents on Aither...
Tracker 'AITHER' passed all checks.
Enter 'y' to upload, or press enter to skip uploading:y
Processing Ask This Old House for upload
Capturing Screenshots: 100%|##############################################################################################| 7/7 [00:08<00:00, 1.23s/it]
Optimizing Images: 100%|##################################################################################################| 6/6 [00:11<00:00, 1.96s/it]
Successfully captured 6 screenshots.
Uploading Screenshots: 100%|##############################################################################################| 6/6 [00:03<00:00, 1.74it/s]
Successfully uploaded 6 images.
No Valid .torrent found
Tracker: NBL, Upload: YES
{'status': 'success'}
Tracker: AITHER, Upload: YES
{'success': True, 'data': '', 'message': 'Torrent uploaded successfully.'}
~/files/downloads$

@Audionut
Copy link
Owner

Audionut commented Feb 7, 2025

You have exposed your Aither RSS key. Please refresh asap.

@deitybob12
Copy link
Author

Argh. Thank you. Changed.

@Audionut
Copy link
Owner

Is this still being an issue?

@deitybob12
Copy link
Author

This issue is not occurring for me now.

@Audionut
Copy link
Owner

Excellent. I pushed a few changes that should have addressed this. Thanks.

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

No branches or pull requests

2 participants