From 9599a764907ce8da1a970d77a7375bcacef2d58b Mon Sep 17 00:00:00 2001 From: PedoDeveloper Date: Wed, 13 Nov 2024 13:51:44 +0000 Subject: [PATCH 1/3] Created .gitignore file --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee34761 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +archives/ +previews/ From 262e6916a9ff809a6b7597f67126daaff7813748 Mon Sep 17 00:00:00 2001 From: PedoDeveloper Date: Wed, 13 Nov 2024 16:02:22 +0000 Subject: [PATCH 2/3] Much faster method of finding videos --- modules/create_video_previews | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/create_video_previews b/modules/create_video_previews index 0ba0148..60c07fa 100755 --- a/modules/create_video_previews +++ b/modules/create_video_previews @@ -8,8 +8,8 @@ check_dependencies() { if ! mkdir -p "$preview_dir"; then echo "ERROR: Unable to create preview directory" exit 1 - elif ! command -v ffmpeg 2>&1 >/dev/null; then - echo "ERROR: FFmpeg must be installed" + elif ! command -v ffmpeg xargs 2>&1 >/dev/null; then + echo "ERROR: FFmpeg and xargs must be installed" exit 1 fi } @@ -23,7 +23,7 @@ check_input() { # Search for videos recursively using the MIME type find_videos() { - video_list=$(find "${search_dir}" -type f -exec file -i {} \; | grep -oP '.*(?=: video/)') + video_list=$(find ${search_dir} -type f -print0 | xargs -0 file -i | grep -oP '.*(?=:\s+video/)') echo "${video_list}" >&2 } From c6a2961ba38b2a524c9a9e112176399de4bdbf95 Mon Sep 17 00:00:00 2001 From: PedoDeveloper Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH 3/3] Test commit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3a89c54..9d20af2 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,5 @@ Anyone is welcome to collaborate with me. ## Collaborators Currently it is not possible to submit pull requests when using the Tor Browser on the Safest setting. Please do not fork this repo attempting to submit a pull request. Instead leave a comment in [this thread](http://topicgitcoi2s3ohrhkdfxl2ii6ocoysi7d5fstcgatuoqp26b2zldad.onion/PedoDeveloper/autoshare/issues/7) and you will be added as a collaborator + +test commit