Compare commits
No commits in common. "4748def178527d4f3a0386fd28162c86f6076afe" and "3e76fc49b06ef126bf54c8c0401142cb28a16704" have entirely different histories.
4748def178
...
3e76fc49b0
3 changed files with 3 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
||||||
archives/
|
|
||||||
previews/
|
|
||||||
|
|
@ -9,5 +9,3 @@ Anyone is welcome to collaborate with me.
|
||||||
## Collaborators
|
## 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://onion.tor.my/PedoDeveloper/autoshare/issues/7) and you will be added as a collaborator
|
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://onion.tor.my/PedoDeveloper/autoshare/issues/7) and you will be added as a collaborator
|
||||||
|
|
||||||
test commit
|
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ check_dependencies() {
|
||||||
if ! mkdir -p "$preview_dir"; then
|
if ! mkdir -p "$preview_dir"; then
|
||||||
echo "ERROR: Unable to create preview directory"
|
echo "ERROR: Unable to create preview directory"
|
||||||
exit 1
|
exit 1
|
||||||
elif ! command -v ffmpeg xargs 2>&1 >/dev/null; then
|
elif ! command -v ffmpeg 2>&1 >/dev/null; then
|
||||||
echo "ERROR: FFmpeg and xargs must be installed"
|
echo "ERROR: FFmpeg must be installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -23,7 +23,7 @@ check_input() {
|
||||||
|
|
||||||
# Search for videos recursively using the MIME type
|
# Search for videos recursively using the MIME type
|
||||||
find_videos() {
|
find_videos() {
|
||||||
video_list=$(find ${search_dir} -type f -print0 | xargs -0 file -i | grep -oP '.*(?=:\s+video/)')
|
video_list=$(find "${search_dir}" -type f -exec file -i {} \; | grep -oP '.*(?=: video/)')
|
||||||
|
|
||||||
echo "${video_list}" >&2
|
echo "${video_list}" >&2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue