Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Plexus v0.7
Browse files Browse the repository at this point in the history
Added a configuration file, and a config function so that modifications can be handled appropriately. Added a check_variable function to prevent repeating the same function several times (audio and video codec checks). The help function now gets called when no commands or flags are used. Also removed profile flag from ffmpeg commands due to potential compatibility issues. This should be revisited in the future.
  • Loading branch information
Robert Thomas committed Jul 2, 2018
1 parent ff7fd08 commit 8563840
Show file tree
Hide file tree
Showing 8 changed files with 1,266 additions and 289 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ curl https://plexus.robt.me/install.sh | sudo bash
Alternatively, you can manually install Plexus to a custom location on your device.
Install any missing dependencies and create all of the temporary folders required:
``` bash
sudo apt-get install curl ffmpeg unzip -y mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted /tmp/plexus/rclone
sudo apt-get install curl ffmpeg unzip -y
mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted $HOME/.config/plexus
```

Next, download the executable itself:
Expand Down
6 changes: 5 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ <h3 class="block-title">Manual</h3>
<br>
<p>Install any missing dependencies and create all of the temporary folders required:</p>
<p><code>sudo apt-get install curl ffmpeg unzip -y</code></p>
<p><code>mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted /tmp/plexus/rclone</code></p>
<p><code>mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted "$HOME"/.config/plexus</code></p>
<br>
<p>Download the default config file and move it into the correct location:</p>
<p><code>curl -O https://plexus.robt.me/versions/releases/latest/plexus.conf</code></p>
<p><code>mv plexus.conf "$HOME"/.config/plexus/</code></p>
<br>
<p>Next, download the executable itself:</p>
<p><code>curl -O https://plexus.robt.me/versions/releases/latest/plexus</code></p>
Expand Down
6 changes: 4 additions & 2 deletions docs/install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/usr/bin/env bash
printf "\\n\\e[93m=== Plexus v0.6 - Developed by Robert Thomas ==="
printf "\\n\\e[93m=== Plexus v0.7 - Developed by Robert Thomas ==="
printf "\\n=== https://github.com/Wolveix/plexus ==="
printf "\\n\\e[32mInstalling missing dependencies.\\n\\n\\e[94m"
apt-get install curl ffmpeg unzip -y
printf "\\n\\e[32mCreating directories if they don't already exist.\\n\\e[94m"
mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted /tmp/plexus/rclone
mkdir -p /mnt/plexus /tmp/plexus /tmp/plexus/encode /tmp/plexus/encode/convert /tmp/plexus/encode/converted $HOME/.config/plexus
rclone_version=$(rclone -V)
if [[ "$rclone_version" != *"os/arch: "* ]]; then printf "\\n\\e[32mInstalling RClone.\\n\\n\\e[94m"; curl https://rclone.org/install.sh | sudo bash; printf "\\e[32mRClone installed.\\n"; fi
rclone_remotes=$(rclone listremotes)
if [ -z "$rclone_remotes" ]; then printf "\\n\\e[32mYou don't have any RClone remotes setup. Set one up by running 'rclone config'\\n\\n\\e[94m"; fi
cd /tmp/plexus || exit
curl -O https://plexus.robt.me/versions/releases/latest/plexus.conf
mv plexus.conf "$HOME"/.config/plexus/
curl -O https://plexus.robt.me/versions/releases/latest/plexus
chmod u+x plexus

Expand Down
14 changes: 13 additions & 1 deletion docs/versions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ <h2 class="section-title">Downloads</h2>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">0.7</th>
<td><a href="https://plexus.robt.me/versions/releases/v0.7/plexus">Link</a></td>
<td><a href="https://github.com/Wolveix/Plexus/commit/?" target="_blank">?</a></td>
<td><a href="https://github.com/Wolveix">@Wolveix</a></td>
</tr>
<tr>
<th scope="row">0.6</th>
<td><a href="https://plexus.robt.me/versions/releases/v0.6/plexus">Link</a></td>
<td><a href="https://github.com/Wolveix/Plexus/commit/?" target="_blank">?</a></td>
<td><a href="https://github.com/Wolveix/Plexus/commit/44ad193aaf698e64f268aeb6b83a62f4830c0823" target="_blank">ff7fd08</a></td>
<td><a href="https://github.com/Wolveix">@Wolveix</a></td>
</tr>
<tr>
Expand All @@ -66,6 +72,12 @@ <h2 class="section-title">Downloads</h2>
<td><a href="https://github.com/Wolveix/Plexus/commit/44ad193aaf698e64f268aeb6b83a62f4830c0823" target="_blank">44ad193</a></td>
<td><a href="https://github.com/Wolveix">@Wolveix</a></td>
</tr>
<tr>
<th scope="row">0.4</th>
<td><a href="https://github.com/Wolveix/Plexus/archive/v0.4.zip">Link</a></td>
<td><a href="https://github.com/Wolveix/Plexus/commit/651bcf7ec7918fdd57c405093a2d5af20d4f0d6a" target="_blank">651bcf7</a></td>
<td><a href="https://github.com/Wolveix">@Wolveix</a></td>
</tr>
</tbody>
</table>
</div>
Expand Down
Loading

0 comments on commit 8563840

Please sign in to comment.