Skip to content

Commit

Permalink
Force local transcode if EAE is being used (solves #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
wnielson committed Jul 8, 2017
1 parent 9a32653 commit 030a74b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion prt.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def colored(msg, *args):
SSH_HOST_RE = re.compile(r'ssh +([^@]+)@([^ ]+)')

__author__ = "Weston Nielson <wnielson@github>"
__version__ = "0.4.3"
__version__ = "0.4.4"

def get_config():
path = os.path.expanduser("~/.prt.conf")
Expand Down Expand Up @@ -320,6 +320,14 @@ def transcode_remote():
config = get_config()
args = sys.argv[1:]


# FIX: This is (temporary?) fix for the EasyAudioEncoder (EAE) which uses a
# hardcoded path in /tmp. If we find that EAE is being used then we
# force transcoding on the master
if 'eae_prefix' in ' '.join(args):
log.info("Found EAE is being used...forcing local transcode")
return transcode_local()

# Check to see if we need to call a user-script to replace/modify the file path
if config.get("path_script", None):
idx = 0
Expand Down

0 comments on commit 030a74b

Please sign in to comment.