Skip to content

Instantly share code, notes, and snippets.

@jest
Forked from andrewalker/watch.pl
Created June 15, 2012 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jest/2935570 to your computer and use it in GitHub Desktop.
Save jest/2935570 to your computer and use it in GitHub Desktop.
Watch "on demand" YAPC::NA on player of choice
#!/usr/bin/env perl
use warnings;
use strict;
# For watching "on demand" (i.e. archived) streams
# usage:
# mplayer -user-agent 'NSPlayer/7.10.0.3059' $(perl watch.pl http://ics.webcast.uwex.edu/mediasite/Viewer/?peid=1dde05aea2624c69a12db461afb00a6b1d)
my @parts = (shift =~ /\?peid=(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);
local $" = '-';
print "http://video.ics.uwex.edu/Video/ICS/@parts.wmv";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment