This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This should always return the name of the docker container running plex - assuming a single plex docker on the system. | |
con="$(docker ps --format "{{.Names}}" | grep -i plex)" | |
echo -n "<b>Applying hardware decode patch... </b>" | |
# Check to see if Plex Transcoder2 Exists first. | |
exists=$(docker exec -i "$con" stat "/usr/lib/plexmediaserver/Plex Transcoder2" >/dev/null 2>&1; echo $?) |