Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move preparing statements upstairs

  • Loading branch information...
commit 0651406b0d8f0e92ad623ec78e615b5d259a6863 1 parent f4f7856
Vyacheslav Slinko authored November 28, 2012

Showing 2 changed files with 20 additions and 20 deletions. Show diff stats Hide diff stats

  1. 2  package.json
  2. 38  tio.js
2  package.json
... ...
@@ -1,6 +1,6 @@
1 1
 {
2 2
     "name": "tio",
3  
-    "version": "0.0.4",
  3
+    "version": "0.0.5",
4 4
     "description": "tines.io console player",
5 5
     "keywords": ["tunes.io", "audio", "music", "player"],
6 6
     "homepage": "https://github.com/rithis/tio",
38  tio.js
@@ -32,11 +32,29 @@ if (argv.help) {
32 32
     optimist.showHelp();
33 33
     process.exit();
34 34
 } else if (argv.version) {
35  
-    console.log('0.0.4');
  35
+    console.log('0.0.5');
36 36
     process.exit();
37 37
 }
38 38
 
39 39
 
  40
+// preparing
  41
+var player = spawn('play', [
  42
+    '--no-show-progress',
  43
+    '--volume', '.5',
  44
+    '--type', 'mp3',
  45
+    '-'
  46
+]);
  47
+var library = [];
  48
+var libraryPath = argv.library;
  49
+var currentTrack = null;
  50
+var currentTrackMetadata = null;
  51
+var fetchSince = new Date();
  52
+var fetchUntil = new Date('2012-09-08');
  53
+var downloadQueue = [];
  54
+var currentDownloads = {};
  55
+var quitScheduled = false;
  56
+
  57
+
40 58
 // commander
41 59
 var commander = function (command) {
42 60
     switch (command) {
@@ -107,24 +125,6 @@ var redrawNowPlayingWindow = function () {
107 125
 };
108 126
 
109 127
 
110  
-// preparing
111  
-var player = spawn('play', [
112  
-    '--no-show-progress',
113  
-    '--volume', '.5',
114  
-    '--type', 'mp3',
115  
-    '-'
116  
-]);
117  
-var library = [];
118  
-var libraryPath = argv.library;
119  
-var currentTrack = null;
120  
-var currentTrackMetadata = null;
121  
-var fetchSince = new Date();
122  
-var fetchUntil = new Date('2012-09-08');
123  
-var downloadQueue = [];
124  
-var currentDownloads = {};
125  
-var quitScheduled = false;
126  
-
127  
-
128 128
 // actions
129 129
 var syncLibrary = function () {
130 130
     glob(libraryPath + '/*.mp3', function (err, matches) {

0 notes on commit 0651406

Please sign in to comment.
Something went wrong with that request. Please try again.