Skip to content

Commit

Permalink
us.py added
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbalaci committed Oct 6, 2011
1 parent aa5976e commit 5423c7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions radio/stations.csv
@@ -1,6 +1,7 @@
id;stream;homepage
slay;http://relay1.slayradio.org:8000/;http://www.slayradio.org/home.php
kossuth;http://stream002.radio.hu/mr1.mp3;http://www.mr1-kossuth.hu/
szkr;http://radio.szentkoronaradio.com:8048/;http://radio.szentkoronaradio.com
maria;http://www.mariaradio.hu:8000/mr;http://www.mariaradio.hu
goa;http://scfire-ntc-aa01.stream.aol.com:80/stream/1008;http://www.di.fm/
trance;http://scfire-ntc-aa01.stream.aol.com:80/stream/1003;http://www.di.fm/
Expand Down
18 changes: 18 additions & 0 deletions us.py
@@ -0,0 +1,18 @@
#!/usr/bin/env python

# Change spaces to underscores.
# When to use: creating directories/files and we want to avoid spaces
# in their names.
#
# Usage: us <text>

import sys


def main(argv):
if len(argv) > 1:
text = argv[1]
print text.replace(' ', '_')

if __name__ == "__main__":
main(sys.argv)

0 comments on commit 5423c7b

Please sign in to comment.