Name: iox 2006-07-01 1:36
I created this so I could watch adultswim-fix. It uses mplayer, but you can substitute it with any program of your choice.
==Begin Code==
#!/usr/bin/env python
import re,sys,os
file = open(sys.argv[-1],'r')
words = file.read()
stream = re.compile("mms://\w.*wmv")
x=0
streams = stream.findall(words)
for i in streams:
x+=1
print str(x)+'.)',i
if streams:
selection = input("Make a selection ")
else:
sys.exit()
os.system("mplayer -cache 8192 " + str(streams[selection-1]))
==END CODE==
==Begin Code==
#!/usr/bin/env python
import re,sys,os
file = open(sys.argv[-1],'r')
words = file.read()
stream = re.compile("mms://\w.*wmv")
x=0
streams = stream.findall(words)
for i in streams:
x+=1
print str(x)+'.)',i
if streams:
selection = input("Make a selection ")
else:
sys.exit()
os.system("mplayer -cache 8192 " + str(streams[selection-1]))
==END CODE==