From 0ea74e43f1b1c77e02bd49920eec5bc0be8762fa Mon Sep 17 00:00:00 2001 From: Simon <65854503+OpenSourceSimon@users.noreply.github.com> Date: Sun, 28 May 2023 16:05:41 +0200 Subject: [PATCH] Version 3.2 The RedditVideoMakerBot has been updated to version 3.2, bringing exciting new features and bug fixes. Introducing **ElevenLabs TTS** for high-quality audio. Enjoy **background audio** and **random voices per comment**. Run the bot with one click using the **bat file**. Use the **zoom setting** for bigger text. Bug fixes include video downloader improvements, random story mode fix, updated dependencies, code optimizations, text size adjustments, enhanced Reddit credentials validation, and translator fixes. Enjoy the new features and **thanks to all contributors**! --- .github/workflows/codesee-arch-diagram.yml | 23 --- .gitignore | 2 +- Dockerfile | 1 + GUI/layout.html | 15 +- README.md | 2 +- TTS/elevenlabs.py | 46 ++++++ TTS/engine_wrapper.py | 30 +++- main.py | 48 +++--- reddit/subreddit.py | 18 +-- requirements.txt | 35 +++-- run.bat | 15 ++ utils/.config.template.toml | 20 ++- utils/background_audios.json | 18 +++ ...ackgrounds.json => background_videos.json} | 0 utils/cleanup.py | 23 +-- utils/ffmpeg_install.py | 50 ++++-- utils/imagenarator.py | 12 +- utils/playwright.py | 7 + utils/posttextparser.py | 21 +-- utils/subreddit.py | 19 ++- video_creation/background.py | 147 +++++++++++++----- video_creation/final_video.py | 129 +++++++++++---- video_creation/screenshot_downloader.py | 78 ++++++++-- video_creation/voices.py | 2 + 24 files changed, 539 insertions(+), 222 deletions(-) delete mode 100644 .github/workflows/codesee-arch-diagram.yml create mode 100644 TTS/elevenlabs.py create mode 100644 run.bat create mode 100644 utils/background_audios.json rename utils/{backgrounds.json => background_videos.json} (100%) create mode 100644 utils/playwright.py diff --git a/.github/workflows/codesee-arch-diagram.yml b/.github/workflows/codesee-arch-diagram.yml deleted file mode 100644 index a72f58b..0000000 --- a/.github/workflows/codesee-arch-diagram.yml +++ /dev/null @@ -1,23 +0,0 @@ -# This workflow was added by CodeSee. Learn more at https://codesee.io/ -# This is v2.0 of this workflow file -on: - push: - branches: - - master - pull_request_target: - types: [opened, synchronize, reopened] - -name: CodeSee - -permissions: read-all - -jobs: - codesee: - runs-on: ubuntu-latest - continue-on-error: true - name: Analyze the repo with CodeSee - steps: - - uses: Codesee-io/codesee-action@v2 - with: - codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} - codesee-url: https://app.codesee.io diff --git a/.gitignore b/.gitignore index 5f4115f..41bdd5e 100644 --- a/.gitignore +++ b/.gitignore @@ -244,4 +244,4 @@ video_creation/data/videos.json video_creation/data/envvars.txt config.toml -video_creation/data/videos.json \ No newline at end of file +*.exe \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6d090c6..4cf2a71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:3.10.9-slim RUN apt update +RUN apt-get install -y ffmpeg RUN apt install python3-pip -y RUN mkdir /app diff --git a/GUI/layout.html b/GUI/layout.html index d56299e..59bd5ef 100644 --- a/GUI/layout.html +++ b/GUI/layout.html @@ -56,6 +56,13 @@ .tooltip-inner { max-width: 500px !important; } + #hard-reload { + cursor: pointer; + color: darkblue; + } + #hard-reload:hover { + color: blue; + } @@ -132,11 +139,17 @@ Theme by © Bootstrap. Developers and Maintainers
-If your data is not refreshing, try to hard reload(Ctrl + F5) and visit your local +
If your data is not refreshing, try to hard reload(Ctrl + F5) or click this and visit your local + {{ file }} file.
+