Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Python script to display and play ASX

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==

Name: Anonymous 2006-07-01 18:35 (sage)

sage

Name: sage 2006-07-01 20:14 (sage)

sage

Name: how do i saged shitty thread? 2006-07-01 22:11 (sage)

sage

Name: Anonymous 2006-07-01 23:37 (sage)

sage

Name: Anonymous 2006-07-02 12:25 (sage)

sage

Name: Anonymous 2006-07-02 17:06 (sage)

sage

Name: Anonymous 2006-07-03 4:16 (sage)

sage

Name: Anonymous 2006-07-03 5:08 (sage)

sage

Name: Anonymous 2006-07-03 15:20 (sage)

sage

Name: Anonymous 2006-07-04 6:24 (sage)

sage

Name: Anonymous 2006-07-05 19:48 (sage)

sage

Name: Anonymous 2006-07-06 2:27

Uh, what's sage?

Name: how do I sage this thread 2006-07-06 2:36

>>13
lurk moar etc.. but srsly, read some imageboard faq first.

Name: Anonymous 2006-07-06 3:03

Ehm... "Make a selection" is to be replaced with the url of the stream?

Name: Anonymous 2006-07-06 3:19

So... what do I change to use this?

Name: Anonymous 2006-07-07 1:01 (sage)

sage

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

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]))

Name: Anonymous 2006-07-07 4:05

>>2-12
Same person

Name: Anonymous 2006-07-07 4:38 (sage)

>>20

No, and sage, you fucking moron.

Name: Anonymous 2006-07-07 7:55 (sage)

Awesome sage thread FTW!

Name: Anonymous 2006-07-07 13:22 (sage)

SAH-GEH.

Name: Anonymous 2006-07-08 10:49

Bumping to irritate the saging moron.

Name: Anonymous 2006-07-08 13:41

bob saget!

Name: Anonymous 2006-07-08 22:29 (sage)

>>25
Now THAT'S irritating!

Name: Anonymous 2006-07-09 1:46 (sage)

how do i saged post?

Name: Anonymous 2006-07-10 20:20

HOW DO I AGED POST LOLOLOLOL

Name: Anonymous 2006-07-11 9:43

YEAH ITS ME AGAIN CAN SOMEONE ANSERW HOW DO I SAGED

Name: Anonymous 2006-07-11 22:23 (sage)

mailto:sage

Name: Anonymous 2006-07-11 22:52 (sage)

sage

Name: sage 2006-07-12 5:26 (sage)

U all fail @sage

Name: sage 2006-07-13 15:21 (sage)

>>32
fuck yo sage, nigra.

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.

Name: Anonymous 2006-07-16 18:24 (sage)

>>34
you forgot to sage, asshole.

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

Name: Anonymous 2006-07-16 23:50 (sage)

The mods never visit here, twinkie.

Name: Anonymous 2006-07-17 4:31 (sage)

>>37
and when they do, they break things.

Name: Anonymous 2006-07-17 12:47

>>38
fukken signed!

Name: Anonymous 2006-07-20 15:40 (sage)

fukken saged

Name: Anonymous 2006-07-21 20:48 (sage)

sage sage, lol

Name: Anonymous 2009-01-14 14:13

I read SICP

Name: Anonymous 2010-06-26 10:00

ur gay

Name: Anonymous 2010-11-26 0:14

Name: Sgt.Kabu迺㧅kiman婉ꮧ 2012-05-28 19:18

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List