dramsay-streamtagger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -0
- data/bin/stag +7 -3
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -19,6 +19,8 @@ With streamtagger installed, all I have to do is type 'stag' from the command li
|
|
19
19
|
The storage file defaults to /Users/<your username>/Desktop/streamtagger.txt, but can be changed by adding a TAGGER_FILE environment variable with the value of your
|
20
20
|
preferred path.
|
21
21
|
|
22
|
+
If you'd like to quickly see your tagged songs, you can use "stag list" to print out your song file.
|
23
|
+
|
22
24
|
(By the way, I recommend Groove Salad on http://soma.fm.)
|
23
25
|
|
24
26
|
== REQUIREMENTS:
|
data/bin/stag
CHANGED
@@ -9,8 +9,12 @@ else
|
|
9
9
|
tagger_file = File.expand_path("~/Desktop/streamtagger.txt")
|
10
10
|
end
|
11
11
|
|
12
|
-
|
12
|
+
if ARGV[0] == 'list'
|
13
|
+
print `cat #{tagger_file}`
|
14
|
+
else
|
15
|
+
itunes = OSA.app("iTunes")
|
13
16
|
|
14
|
-
File.open(tagger_file, "a") do |f|
|
15
|
-
|
17
|
+
File.open(tagger_file, "a") do |f|
|
18
|
+
f.puts itunes.current_stream_title
|
19
|
+
end
|
16
20
|
end
|