Hi,
I just wondered whether there is a quick way of finding
all category codes used in the listings provided by
ananova.com (tv_grab_uk).
e.g. movies/Drama
Doing this manually (searching through the xmltv
documents) is quite a tedious job.
Thanks
E.J. Talbot
talbotj1@hotmail.com
Logged In: YES
user_id=10769
There is no 'quick' way in the sense of downloading a
document which has a single list of categories. However,
you can find all categories in an XMLTV document:
% tv_grep --output out.xml -e 'our %seen; if
($_->{category}) { foreach (@{$_->{category}}) { for
($_->[0]) { print "$_\n" unless $seen{$_}++ } } }' tv.xml
Categories will be printed to standard output; the file
out.xml is just a dummy output and can be deleted (or change
out.xml to /dev/null if you use a Unix-like system).