tjfontaine / airprint-generate

Automatically generate AirPrint Avahi service files for CUPS printers
http://www.atxconsulting.com/blog/tjfontaine/2010/11/21/automatically-generate-airprint-avahi-service-files-cups-printers
400 stars 119 forks source link

Add image/urf #2

Closed superna9999 closed 13 years ago

superna9999 commented 13 years ago

Hi,

I just created an urftopdf filter for cups, and it would be cool if the image/urf type was added to the pdl= with your script.

superna9999 commented 13 years ago

Here's a patch :

diff --git a/airprint-generate.py b/airprint-generate.py
index d369047..6de1ba7 100755
--- a/airprint-generate.py
+++ b/airprint-generate.py
@@ -62,6 +62,7 @@ DOCUMENT_TYPES = {
     'application/postscript': True,
     'application/vnd.cups-raster': True,
     'application/octet-stream': True,
+    'image/urf': True,
     'image/png': True,
     'image/tiff': True,
     'image/png': True,
tjfontaine commented 13 years ago

included in 9d329cf