Skip to content

Commit

Permalink
Merge pull request #10 from MartinBarker/v1.0.6_dev
Browse files Browse the repository at this point in the history
V1.0.6 dev
  • Loading branch information
MartinBarker authored Dec 27, 2023
2 parents 8ea8e57 + e2f19ba commit 041d099
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ python -m vinyl2digital -i 5 -f mp3 -o "E:\martinradio\rips\vinyl\NewEnglandTeen
* Run locally: `python3 "vinyl2digital/vinyl2digital/__init__.py" -h`

## Releasing a new version:
* Chance package version number (`setup.py`)
* Change package version number (`setup.py`)
```
$ python -m pip install --upgrade build
$ python -m build
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="vinyl2digital",
version="1.0.5",
version="1.0.6",
author="Martin Barker",
author_email="[email protected]",
description="Batch render an audacity recording",
Expand Down
13 changes: 11 additions & 2 deletions vinyl2digital/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import requests
Expand All @@ -8,7 +11,6 @@
'''
Audacity mod-script-pipeline setup
'''
# Startup audacity pipe commands
if sys.platform == 'win32':
print("pipe-test.py, running on windows")
TONAME = '\\\\.\\pipe\\ToSrvPipe'
Expand All @@ -20,14 +22,18 @@
FROMNAME = '/tmp/audacity_script_pipe.from.' + str(os.getuid())
EOL = '\n'

print("Write to \"" + TONAME +"\"")
if not os.path.exists(TONAME):
print(" ..does not exist. Ensure Audacity is running with mod-script-pipe.")
sys.exit()

print("Read from \"" + FROMNAME +"\"")
if not os.path.exists(FROMNAME):
print(" ..does not exist. Ensure Audacity is running with mod-script-pipe.")
sys.exit()

print("-- Both pipes exist. Good.")

TOFILE = open(TONAME, 'w')
print("-- File to write to has been opened")
FROMFILE = open(FROMNAME, 'rt')
Expand Down Expand Up @@ -88,6 +94,9 @@ def formatOutputFilepath(outputLocation, outputFormat, filename):

# Export tracks from Audacity
def renderAudacityTracks(metadataInput, outputLocation, outputFormat):
# Go to start of timeline
print(do_command("Select: Start=0"))

# If 'tracks' key exists in metadataInput
if 'tracks' in metadataInput:
#render each track in tracks
Expand Down Expand Up @@ -187,7 +196,7 @@ def getManualTags():
# -h
# Print help information
if '-h' in sys.argv:
print('Welcome to the vinyl2digital pip package: v1.0.5')
print('Welcome to the vinyl2digital pip package: v1.0.6')

print('-t')
print('Test audacity pipe "Help" commands')
Expand Down

0 comments on commit 041d099

Please sign in to comment.