dramsay-streamtagger 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +19 -1
- data/bin/stag +4 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -17,7 +17,7 @@ I usually work in Terminal or MacVim and I don't want to have to switch to iTune
|
|
17
17
|
|
18
18
|
With streamtagger installed, all I have to do is type 'stag' from the command line and the info is stored without breaking my current train of thought.
|
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
|
-
preferred path.
|
20
|
+
preferred path. If you want the streamed track info printed out to the terminal as well as added to your tagger file, add a TAGGER_INFO environment variable.
|
21
21
|
|
22
22
|
If you'd like to quickly see your tagged songs, you can use "stag list" to print out your song file.
|
23
23
|
|
@@ -36,6 +36,24 @@ If you haven't already, add gems.github.com to your gem sources (you only need t
|
|
36
36
|
Then, install the gem:
|
37
37
|
|
38
38
|
sudo gem install dramsay-streamtagger
|
39
|
+
|
40
|
+
== USAGE:
|
41
|
+
|
42
|
+
To add the current stream track info to your tagger file:
|
43
|
+
|
44
|
+
stag
|
45
|
+
|
46
|
+
To show the current contents of your tagger file:
|
47
|
+
|
48
|
+
stag list
|
49
|
+
|
50
|
+
To clear the ocntents of your tagger file:
|
51
|
+
|
52
|
+
stag clear
|
53
|
+
|
54
|
+
To simply display the current stream track info without adding it to your tagger file:
|
55
|
+
|
56
|
+
stag info
|
39
57
|
|
40
58
|
== LICENSE:
|
41
59
|
|
data/bin/stag
CHANGED
@@ -13,9 +13,12 @@ if ARGV[0] == 'list'
|
|
13
13
|
print `cat #{tagger_file}`
|
14
14
|
elsif ARGV[0] == 'clear'
|
15
15
|
`> #{tagger_file}`
|
16
|
+
elsif ARGV[0] == 'info'
|
17
|
+
itunes = OSA.app("iTunes")
|
18
|
+
puts itunes.current_stream_title
|
16
19
|
else
|
17
20
|
itunes = OSA.app("iTunes")
|
18
|
-
|
21
|
+
puts itunes.current_stream_title if ENV["TAGGER_INFO"]
|
19
22
|
File.open(tagger_file, "a") do |f|
|
20
23
|
f.puts itunes.current_stream_title
|
21
24
|
end
|