Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/record.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-14 04:03:14 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-14 04:03:14 (GMT)
commitf706c43145128d40f8c639059800fe7282abe063 (patch)
tree9be98c6f44599722a4469fd08349a9c03d23197d /record.py
parent24abbc6129ac8b3b24eb30aa474fe5792239c817 (diff)
46 has correct rainbow tmp directories
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/46@973 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-xrecord.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/record.py b/record.py
index 39038f9..903dbeb 100755
--- a/record.py
+++ b/record.py
@@ -485,7 +485,7 @@ class Record(activity.Activity):
recd.downloadedFromBuddy = True
if (recd.type == Constants.TYPE_AUDIO):
filepath = recd.getMediaFilepath()
- bundlePath = os.path.join(Instance.instancePath, "audioBundle")
+ bundlePath = os.path.join(Instance.tmpPath, "audioBundle")
bundlePath = utils.getUniqueFilepath(bundlePath, 0)
cmd = "split -a 1 -b " + str(recd.mediaBytes) + " " + str(filepath) + " " + str(bundlePath)
@@ -494,12 +494,12 @@ class Record(activity.Activity):
bundleName = os.path.basename(bundlePath)
mediaFilename = str(bundleName) + "a"
- mediaFilepath = os.path.join(Instance.instancePath, mediaFilename)
- mediaFilepathExt = os.path.join(Instance.instancePath, mediaFilename+".ogg")
+ mediaFilepath = os.path.join(Instance.tmpPath, mediaFilename)
+ mediaFilepathExt = os.path.join(Instance.tmpPath, mediaFilename+".ogg")
os.rename(mediaFilepath, mediaFilepathExt)
audioImageFilename = str(bundleName) + "b"
- audioImageFilepath = os.path.join(Instance.instancePath, audioImageFilename)
- audioImageFilepathExt = os.path.join(Instance.instancePath, audioImageFilename+".png")
+ audioImageFilepath = os.path.join(Instance.tmpPath, audioImageFilename)
+ audioImageFilepathExt = os.path.join(Instance.tmpPath, audioImageFilename+".png")
os.rename(audioImageFilepath, audioImageFilepathExt)
recd.mediaFilename = os.path.basename(mediaFilepathExt)
@@ -514,7 +514,7 @@ class Record(activity.Activity):
self.__class__.log.debug("_getAlbumArtCb:" + str(pixbuf) + "," + str(recd))
if (pixbuf != None):
- imagePath = os.path.join(Instance.instancePath, "audioPicture.png")
+ imagePath = os.path.join(Instance.tmpPath, "audioPicture.png")
imagePath = utils.getUniqueFilepath( imagePath, 0 )
pixbuf.save( imagePath, "png", {} )
recd.audioImageFilename = os.path.basename(imagePath)