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

v3 #468

Merged
merged 131 commits into from
Aug 11, 2024
Merged

v3 #468

merged 131 commits into from
Aug 11, 2024

Conversation

Zibbp
Copy link
Owner

@Zibbp Zibbp commented Jul 14, 2024

  • Remove Temporal and replace with a simpler task system
  • Create a 'platform' service
    • Platform-specific functions are stored here
  • A lot of code refactoring
  • Allow defining of "Video" and "Temp" directories

Zibbp and others added 25 commits June 27, 2024 23:47
…due to unicode characters. (#467)

* Update tdl.go

Updated for scenarios where a live comment may be offset due to the presence of unicode characters.

* Apply suggestions from code review

Applied Zibbp's suggestions. Thank you!

Co-authored-by: Isaac <[email protected]>

---------

Co-authored-by: Isaac <[email protected]>
@@ -23,10 +24,58 @@ func CreateFolder(path string) error {
return nil
Copy link

Choose a reason for hiding this comment

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

This is still using hardcoded /vods/ (as well as a couple other places in this file).
I tried to archive a video from a new channel, it failed to create the folder (no permissions).
I've set VIDEOS_DIR=/data/vods and TEMP_DIR=/data/temp.
Furthermore, entrypoint.sh tries to chmod /vods, /tmp, etc.

Copy link

Choose a reason for hiding this comment

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

To clarify, the no permissions is because /vods does not exist and the abc user does not have write for /

Copy link
Owner Author

@Zibbp Zibbp Jul 31, 2024

Choose a reason for hiding this comment

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

I've updated the hard-coded /vods references with the environment variable. The entrypoint.sh script also now detects and attempts to chmod ... the directories in the env vars. If there are no env vars set it will use the default paths.
I also added options to specify the logs and config directories. Along with making /data/videos the default for vods. Rather make all the breaking changes now.

	VideosDir string `env:"VIDEOS_DIR, default=/data/videos"`
	TempDir   string `env:"TEMP_DIR, default=/data/temp"`
	ConfigDir string `env:"CONFIG_DIR, default=/data/config"`
	LogsDir   string `env:"LOGS_DIR, default=/data/logs"`

@Zibbp Zibbp merged commit e03616e into main Aug 11, 2024
5 checks passed
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.

v3 Beta - Changelog and Upgrade Instructions
3 participants