Changeset 4d5d9d7
- Timestamp:
- Sep 11, 2010, 9:24:41 PM (14 years ago)
- Branches:
- debian
- Children:
- 2da22a0
- Parents:
- 8b0a844 (diff), a2944f6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Jessica Hamrick <jhamrick@…> (09/11/10 21:24:41)
- git-committer:
- Jessica Hamrick <jhamrick@…> (09/11/10 21:24:41)
- Files:
-
- 32 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbr
r7cdd65d r600e713 52 52 foreach my $file(@files) { 53 53 if ($file =~ m|http://www\.youtube\.com/watch\?v=|) { 54 open FILE, ">", "/tmp/gutenbach-youtube \n" or die "Couldn't create temporary file";54 open FILE, ">", "/tmp/gutenbach-youtube" or die "Couldn't create temporary file"; 55 55 print FILE $file; 56 56 $title = $file; -
remctl/lib/gutenbach/volume-down
r9c0279e r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 volume-set . $(( $(volume-get .) - 1 )) 3 4 python "$(dirname $0)/volume-helper.py" - 5 6 #volume-set . $(( $(volume-get .) - 1 )) -
remctl/lib/gutenbach/volume-get
r9c0279e r3ee56cf 5 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 amixer get $mixer | grep "$channel" \ 8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)' 7 amixer get $mixer | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g" -
remctl/lib/gutenbach/volume-set
r9c0279e r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 4 # $1 is string "set" and is unused (passed in via remctl) 5 # $2 is the actual volume 3 6 4 7 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 8 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 9 7 amixer set $mixer "$2" | grep "$channel" \ 8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)' 10 amixer set $mixer -- "$2" | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g" 9 11 10 12 volume-zephyr -
remctl/lib/gutenbach/volume-up
r9c0279e r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 volume-set . $(( $(volume-get .) + 1 )) 3 4 python "$(dirname $0)/volume-helper.py" + 5 6 #volume-set . $(( $(volume-get .) + 1 )) -
server/lib/gutenbach
r79fac02 ra2944f6 133 133 my ($tempdir); 134 134 my ($newpath); 135 my ($title); 135 136 136 137 open(STATUS, ">", "/var/run/gutenbach/status"); … … 139 140 # $magic means that Image::ExifTool was able to identify the type of file 140 141 printf(ZEPHYR "%s file %s\n", $magic, $arguments{"job-title"}); 141 printf(STATUS "%s file %s\n", $magic,$arguments{"job-title"});142 #printf(STATUS $arguments{"job-title"}); 142 143 $status .= sprintf(" Filetype: %s.", $magic); 143 144 $status .= sprintf(" Filename: %s.", $arguments{"job-title"}); 144 145 145 if (exists $fileinfo->{'Title'}) { 146 $title = $fileinfo->{'Title'}; 146 147 printf(ZEPHYR "\@b{%s}\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 147 #printf(STATUS "%s\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'};148 printf(STATUS "%s\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 148 149 $status .= sprintf(" Title: %s.", $fileinfo->{'Title'}); 149 150 } … … 174 175 # YouTube URLs are resolved by the youtube-dl command. 175 176 # Launch youtube-dl 176 $pid = open(YTDL, "-|"); 177 if ($pid) { 178 print ZEPHYR "YouTube video $filepath.\nCurrently downloading, please wait..."; 179 close ZEPHYR; 180 while (<YTDL>) { 181 open(ZEPHYR, "|-", @zwrite_command); 182 print ZEPHYR $_; 183 close ZEPHYR; 184 } 185 open(ZEPHYR, "|-", @zwrite_command); 186 print ZEPHYR "Done downloading."; 187 close ZEPHYR; 188 } 189 else { 190 my @args = ("youtube-dl", "-q", "-o", "/tmp/youtube.flv", $filepath); 191 exec(@args) or die "Couldn't exec youtube-dl"; 192 } 193 194 $filepath = "/tmp/youtube.flv"; 195 # Print the title to zephyr and the status string. 177 $pid = open(YTDL, "-|", "youtube-dl","-b", "-g", $filepath) or die "Unable to invoke youtube-dl"; 178 print ZEPHYR "YouTube video $filepath\n$title"; 179 $status .= " YouTube video $filepath. $title."; 180 # youtube-dl prints the URL of the flash video, which we pass to mplayer as a filename. 181 $filepath = <YTDL>; 182 chomp $filepath; 183 184 196 185 } else { # Doesn't appear to be a YouTube URL. 197 186 print STDERR "Resolved external reference to $filepath\n"; -
.gitignore
rb58aada r1d7e681 1 1 *~ 2 debian/files 3 debian/*.debhelper 4 debian/*.substvars 5 debian/*.debhelper.log 6 debian/gutenbach/ 7 debian/gutenbach-client/ 8 debian/gutenbach-queue/ 9 debian/gutenbach-remctl/ 10 debian/gutenbach-server/ 11 debian/stamp-makefile-build 12 debian/tmp/ 2 13 client/bin/*.1.gz 3 debian/ -
Makefile
r9c0279e r2116615 5 5 install: 6 6 for d in $(DIRS); do (cd $$d; $(MAKE) install); done 7 clean: 8 for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
Note: See TracChangeset
for help on using the changeset viewer.