Changeset c5a98db for client


Ignore:
Timestamp:
Jul 5, 2010, 3:30:19 PM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
618236b, a81397c
Parents:
03e2535
git-author:
Jessica B. Hamrick <jhamrick@…> (07/05/10 15:30:19)
git-committer:
Jessica B. Hamrick <jhamrick@…> (07/05/10 15:30:19)
Message:
  • Fixed support for playing YouTube? videos
  • Fixed error with CUPS_SERVER in gbr and gbrm
  • Added support for playing YouTube? URLs with gbr
Location:
client/bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client/bin/gbr

    r611bd26 rc5a98db  
    3131}
    3232
    33 my @args = ("CUPS_SERVER=$host", "lp", "-d$queue", "$file");
    34 exec (@args) or die "Couldn't execute lp command";
     33$ENV{CUPS_SERVER}="$host";
     34
     35if ($file =~ m|http://www\.youtube\.com/watch\?v=|) {
     36    open(LP, "|-", "lp", "-d$queue");
     37    print LP "$file";
     38    close LP;
     39}
     40else {
     41    my @args = ("lp", "-d$queue", "$file");
     42    exec (@args) or die "Couldn't execute lp command";
     43}
  • client/bin/gbr.1

    r2c76f34 rc5a98db  
    77.SH DESCRIPTION
    88Prints a file to a Gutenbach queue, given the queue name and the path
    9 to the file.  The Gutenbach queue must have previously been added with
     9to the file.  The path may also be a URL to a
     10.B YouTube
     11video (e.g. http://www.youtube.com/watch?v=foo).  The Gutenbach queue
     12must have previously been added with
    1013.B gutenbach-client-config
    1114so that gbr knows which host to use.
  • client/bin/gbrm

    r611bd26 rc5a98db  
    3434
    3535if ($id eq "all") {
    36     @args = ("CUPS_SERVER=$host", "cancel", "-a", "$queue");
     36    @args = ("cancel", "-a", "$queue");
    3737}
    3838else {
    39     @args = ("CUPS_SERVER=$host", "cancel", "$id", "$queue");
     39    @args = ("cancel", "$id", "$queue");
    4040}
     41$ENV{CUPS_SERVER}="$host";
    4142exec (@args) or die "Couldn't execute cancel command";
Note: See TracChangeset for help on using the changeset viewer.