Python script to display and play ASX
1
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==
2
Name:
Anonymous
2006-07-01 18:35
(sage)
sage
3
Name:
sage
2006-07-01 20:14
(sage)
sage
4
Name:
how do i saged shitty thread?
2006-07-01 22:11
(sage)
sage
5
Name:
Anonymous
2006-07-01 23:37
(sage)
sage
6
Name:
Anonymous
2006-07-02 12:25
(sage)
sage
7
Name:
Anonymous
2006-07-02 17:06
(sage)
sage
8
Name:
Anonymous
2006-07-03 4:16
(sage)
sage
9
Name:
Anonymous
2006-07-03 5:08
(sage)
sage
10
Name:
Anonymous
2006-07-03 15:20
(sage)
sage
11
Name:
Anonymous
2006-07-04 6:24
(sage)
sage
12
Name:
Anonymous
2006-07-05 19:48
(sage)
sage
13
Name:
Anonymous
2006-07-06 2:27
Uh, what's sage?
14
Name:
how do I sage this thread
2006-07-06 2:36
>>13
lurk moar etc.. but srsly, read some imageboard faq first.
15
Name:
Anonymous
2006-07-06 3:03
Ehm... "Make a selection" is to be replaced with the url of the stream?
16
Name:
Anonymous
2006-07-06 3:19
So... what do I change to use this?
17
Name:
Anonymous
2006-07-07 1:01
(sage)
sage
18
Name:
Anonymous
2006-07-07 1:24
(sage)
>>13
do not bump. i want to contribute something but i don't want to bump the thread. this thread sucks. a post in this thread sucks.
zomg sage
19
Name:
Anonymous
2006-07-07 1:34
(sage)
>>16
if you don't use mplayer change this line:
os.system("mplayer -cache 8192 " + str(streams[selection-1]))
20
Name:
Anonymous
2006-07-07 4:05
21
Name:
Anonymous
2006-07-07 4:38
(sage)
>>20
No, and sage, you fucking moron.
22
Name:
Anonymous
2006-07-07 7:55
(sage)
Awesome sage thread FTW!
23
Name:
Anonymous
2006-07-07 13:22
(sage)
SAH-GEH.
24
Name:
Anonymous
2006-07-08 10:49
Bumping to irritate the saging moron.
25
Name:
Anonymous
2006-07-08 13:41
bob saget!
26
Name:
Anonymous
2006-07-08 22:29
(sage)
>>25
Now THAT'S irritating!
27
Name:
Anonymous
2006-07-09 1:46
(sage)
how do i saged post?
28
Name:
Anonymous
2006-07-10 20:20
HOW DO I AGED POST LOLOLOLOL
29
Name:
Anonymous
2006-07-11 9:43
YEAH ITS ME AGAIN CAN SOMEONE ANSERW HOW DO I SAGED
30
Name:
Anonymous
2006-07-11 22:23
(sage)
mailto:sage
31
Name:
Anonymous
2006-07-11 22:52
(sage)
sage
32
Name:
sage
2006-07-12 5:26
(sage)
U all fail @sage
33
Name:
sage
2006-07-13 15:21
(sage)
>>32
fuck yo sage, nigra.
34
Name:
Anonymous
2006-07-16 5:51
I'm using OS X, and I can't find a way to retrieve the path to the .asx for the episodes with either Safari, or Firefox. I can launch the external WMP and watch them with Safari, but WMP sucks, and there is no UB version of Flip4Mac yet.
35
Name:
Anonymous
2006-07-16 18:24
(sage)
>>34
you forgot to sage, asshole.
36
Name:
Anonymous
2006-07-16 23:40
MODS /B/ IS NOT WORKING PLZ FIX CUZ I LIEK /B/. KTHNKSBAI.
OH AND ALL HARDWARE SUCKS ALL SOFTWARE SUCKS
37
Name:
Anonymous
2006-07-16 23:50
(sage)
The mods never visit here, twinkie.
38
Name:
Anonymous
2006-07-17 4:31
(sage)
>>37
and when they do, they break things.
39
Name:
Anonymous
2006-07-17 12:47
40
Name:
Anonymous
2006-07-20 15:40
(sage)
fukken saged
41
Name:
Anonymous
2006-07-21 20:48
(sage)
sage sage, lol
42
Name:
Anonymous
2009-01-14 14:13
I read SICP
43
Name:
Anonymous
2010-06-26 10:00
ur gay
44
Name:
Anonymous
2010-11-26 0:14
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy