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

Adjust message for formerly "live" videos #211

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

deldesir
Copy link
Collaborator

@deldesir deldesir commented Jul 5, 2024

Display a message to let the user know about potential long download when a formerly live video is requested.

Tested on Ubuntu 24.04 (LRN2)
image

@deldesir deldesir added the enhancement New feature or request label Jul 5, 2024
@deldesir deldesir requested a review from holta July 5, 2024 14:33
@deldesir deldesir self-assigned this Jul 5, 2024
@@ -54,6 +56,9 @@ def run(self, worker_thread):
last_progress_time = datetime.now()
fragment_stuck_timeout = 30 # seconds

self.message = f"Downloading {self.media_url_link}..."
if self.live_status == "was_live":
self.message += f" (This may take longer than expected due to the video was live for {self.duration})"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we dare abbreviate the message to something like... ?

Suggested change
self.message += f" (This may take longer than expected due to the video was live for {self.duration})"
self.message += f" (formerly live video, length/duration is {self.duration} seconds)"

Co-authored-by: A Holt <[email protected]>
@holta holta merged commit b5e3c76 into iiab:master Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants