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

Keep live videos even if ytdlp2strm_keep_old_strm is False #73

Open
Druidblack opened this issue Sep 3, 2024 · 8 comments
Open

Keep live videos even if ytdlp2strm_keep_old_strm is False #73

Druidblack opened this issue Sep 3, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@Druidblack
Copy link

Безымянный
6566

The ytdlp2strm_keep_old_storm option does not delete old files.

Should old files be deleted every time cron is started?

@fe80Grau
Copy link
Owner

fe80Grau commented Sep 3, 2024

Fixed with the last commit, generatin docker cointarner in few minutes

@fe80Grau fe80Grau closed this as completed Sep 3, 2024
@Druidblack
Copy link
Author

I am using the latest version of the docker file. When you restart, new files are created for the video, the old ones are not deleted.

@Druidblack
Copy link
Author

345345

@fe80Grau
Copy link
Owner

fe80Grau commented Sep 3, 2024

Please wait, the latest Docker container doesn't have the latest commit. I'm uploading the file right now and it takes 10 minutes to generate the different containers for each architecture. Please be patient... to check for quick changes, you can run ytdlp2strm directly on your host.

With the latest update you will have the solution for the descriptions and the deletion of old files. Remember that this option will delete all the strm files previously generated for the current execution, this way you always have a fresh list of only the last N days configured in each plugin.

As I said, as soon as the Docker image is uploaded I will let you know. In the meantime, please be patient and avoid posting multiple times, you can always edit your message, there is no need to generate so many messages as it can be somewhat stressful for everyone.

@fe80Grau fe80Grau reopened this Sep 3, 2024
@fe80Grau
Copy link
Owner

fe80Grau commented Sep 3, 2024

Check last docker image and tell me

@Druidblack
Copy link
Author

Everything is working now. Old files are deleted.
Idea. Is it possible to check when the first strm file was created and is the broadcast still ongoing? If the broadcast was not interrupted after the first creation of storm, then the file does not need to be recreated.

@fe80Grau
Copy link
Owner

fe80Grau commented Sep 4, 2024

I'm glad it works, about the new feature.

EDIT:
Are you working with /streams right?
You want is that if strm is "live"/"on air" at the same time ytdlp2strm wants to delete it, it won't be deleted?

EDIT 2:
I see that the channel you show in the screenshot has been live for months. I will see what I can do for you and implement this feature.

@fe80Grau fe80Grau changed the title The ytdlp2strm_keep_old_storm option does not delete old files. Keep live videos even if ytdlp2strm_keep_old_strm is False Sep 4, 2024
@fe80Grau fe80Grau self-assigned this Sep 4, 2024
@fe80Grau fe80Grau added the enhancement New feature or request label Sep 4, 2024
@Druidblack
Copy link
Author

Yes, you understood my request correctly.

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

No branches or pull requests

2 participants