Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 May 2011 01:54:31 +0200
From:      Torfinn Ingolfsen <tingox@gmail.com>
To:        FreeBSD Ports ML <freebsd-ports@freebsd.org>, multimedia@freebsd.org
Subject:   p5-xmltv - patches to re-enable and update tv_grab_no
Message-ID:  <BANLkTikQcRMEgH5R6JuXLjWew%2BYfrYg=ww@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--20cf3071ca6a04407d04a2a436e3
Content-Type: text/plain; charset=ISO-8859-1

Hi,

p5-xmltv currently only contains one "grabber" for Norway
(tv_grab_no_gfeed). The grabber is great, but unfortunately it only
has listings for a limited number of the TV channels available here.
So, I use the tv_grab_no grabber in addition. It is old, the author
has deprecated it, and you must write the config file manually[1]
because the "get channels" doesn't work anymore. But - tv_grab_no
works, and it has more channels than tv_grab_no_gfeed.

Attached is two patches which does the following:
- re-enables the tv_grab_no grabber
- corrects the URL the grabber uses
- adds a some more channels to the grabber

Simply put the two files in the ./files directory (yes,
patch-Makefile.PL replaces the one currently there) and your port is
updated.
I haven't fixed pkg-plist, but that should be simple enough.

Any interest in updating the port with this?

References:
1) the web site changed, the new URL is
http://www.dagbladet.no/mobil/tv/ and I can't figure out how to get a
listing of available channels from it.
-- 
Regards,
Torfinn Ingolfsen

--20cf3071ca6a04407d04a2a436e3
Content-Type: application/octet-stream; name="patch-Makefile.PL"
Content-Disposition: attachment; filename="patch-Makefile.PL"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gnds0tn50

CiRGcmVlQlNEJAoKLS0tIE1ha2VmaWxlLlBMLm9yaWcKKysrIE1ha2VmaWxlLlBMCkBAIC04Niw4
ICs4Niw4IEBACiAgICAgICMgTWFudWFsIHBhZ2UgY29uc3RhbnRzLCBzaG91bGRuJ3QgcmVhbGx5
IGJlIG5lZWRlZCwgYnV0IHdvcmsKICAgICAgIyBhcm91bmQgYnVncyBhbmQgbWFrZSBzdXJlIHRo
aXMgc3R1ZmYgaXMgdGhlIHNhbWUgYWNyb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G93cy4K
LQlwZXJsIC1NRXh0VXRpbHM6OkNvbW1hbmQgLWUgcm1fcmYgJGxvY2F0aW9uL21hbiAkbG9jYXRp
b24vc2hhcmUvbWFuCisJcGVybCAtTUV4dFV0aWxzOjpDb21tYW5kIC1lIHJtX3JmICRsb2NhdGlv
bi9tYW4gJGxvY2F0aW9uL21hbgogCSMgTXkgTWFrZU1ha2VyIGNyZWF0ZXMgdGhpcyBkdWQgZGly
ZWN0b3J5LgogCXBlcmwgLU1FeHRVdGlsczo6Q29tbWFuZCAtZSBybV9yZiAkbG9jYXRpb24vNS44
LjAKIAlybWRpciAkbG9jYXRpb24vc2hhcmUvZG9jCg==
--20cf3071ca6a04407d04a2a436e3
Content-Type: application/octet-stream; name=patch-grab_no_tv__grab__no
Content-Disposition: attachment; filename=patch-grab_no_tv__grab__no
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gnds16gq1

CiRGcmVlQlNEJAoKLS0tIGdyYWIvbm8vdHZfZ3JhYl9uby5vcmlnCisrKyBncmFiL25vL3R2X2dy
YWJfbm8KQEAgLTcyLDcgKzcyLDcgQEAKICMgaW5pdGlhbGl6YXRpb25zCiAKIHVzZSBzdHJpY3Q7
Ci11c2UgWE1MVFY6OlZlcnNpb24gJyRJZDogdHZfZ3JhYl9ubyx2IDEuMjMgMjAxMC8wOS8wMiAw
NTowNzo0MCBybWVkZW4gRXhwICQgJzsKK3VzZSBYTUxUVjo6VmVyc2lvbiAnJElkOiB0dl9ncmFi
X25vLHYgMS4yNCAyMDExLzA1LzA3IDAxOjE3OjI3IHRpbmdveEBnbWFpbC5jb20gRXhwICQgJzsK
IHVzZSBYTUxUVjo6Q2FwYWJpbGl0aWVzIHF3L2Jhc2VsaW5lIG1hbnVhbGNvbmZpZyBjYWNoZS87
CiB1c2UgWE1MVFY6OkRlc2NyaXB0aW9uICdOb3J3YXknOwogdXNlIEdldG9wdDo6TG9uZzsKQEAg
LTEzNyw3ICsxMzcsNyBAQAogCTYzID0+ICd6dHYub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d3dy5kYWdibGFkZXQubm8vbW9iaWwvdHYvJywKICAgICAgJ2dl
bmVyYXRvci1pbmZvLW5hbWUnID0+ICdYTUxUVicsCiAgICAgICdnZW5lcmF0b3ItaW5mby11cmwn
ICA9PiAnaHR0cDovL3htbHR2Lm9yZy8nLAogICAgfSk7Cg==
--20cf3071ca6a04407d04a2a436e3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikQcRMEgH5R6JuXLjWew%2BYfrYg=ww>