Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Save cached tracks at user home directory

  • Loading branch information...
commit a2b6f27cf9dfac3fb0f030737ba12cbd627510da 1 parent 9982999
@vslinko authored
Showing with 7 additions and 3 deletions.
  1. +1 −1  package.json
  2. +6 −2 tio.js
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "tio",
- "version": "0.0.1",
+ "version": "0.0.2",
"description": "tines.io console player",
"keywords": ["tunes.io", "audio", "music", "player"],
"homepage": "https://github.com/rithis/tio",
View
8 tio.js
@@ -17,9 +17,13 @@ var optimist = require('optimist')
.alias('v', 'verbose')
.alias('t', 'thread')
.alias('h', 'help')
+ .alias('l', 'library')
.default('t', 3)
+ .default('l', util.format('%s/%s', process.env['HOME'], '.tio-library'))
+ .string('l')
.describe('v', 'Print more information about process')
- .describe('t', 'Threads for downloading'),
+ .describe('t', 'Threads for downloading')
+ .describe('l', 'Path to your library'),
argv = optimist.argv,
verbose = argv.verbose ? console.log : dummy;
@@ -37,7 +41,7 @@ var player = spawn('play', [
'-'
]);
var library = [];
-var libraryPath = __dirname + '/library';
+var libraryPath = argv.library;
var currentTrack = null;
var fetchSince = new Date();
var fetchUntil = new Date('2012-09-08');
Please sign in to comment.
Something went wrong with that request. Please try again.