[mythtv-users] mythtv channel list grabber

sharifah ummu kulthum kulthum91 at gmail.com
Mon Feb 22 07:39:23 UTC 2010


Hi guys

Ok.

This is what I have done so far. I have installed Mythbuntu 9.10 32-bit on
my PC. After that I have installed avertv volar ax driver which i got from
here<http://www.avermedia.com/avertv/Support/Download.aspx?Type=Software&id=182&tab=APDriver>.
The installation went fine. Right now, Mythtv has detected my capture card.
I am trying to figure out how can I make mythTV scan for channels as the
list grabbers does not include my country. I'm based in Malaysia. My mentor
said that I have to test the card first using other tools to make sure that
it works. I ran this command:

bitto at bitto:~$ mplayer tv:// -tv
driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=0:freq=147250:outfmt=YUY2

but it yielded just this and an mplayer blank screen.

video buffer full - dropping frame
A:71430.1 V:65485.2 A-V:5944.938 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.2 V:65485.2 A-V:5945.024 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.3 V:65485.2 A-V:5945.110 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.4 V:65485.2 A-V:5945.196 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.5 V:65485.2 A-V:5945.282 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.5 V:65485.2 A-V:5945.368 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.6 V:65485.2 A-V:5945.454 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.7 V:65485.2 A-V:5945.540 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.8 V:65485.2 A-V:5945.626 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71430.9 V:65485.2 A-V:5945.712 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71431.0 V:65485.2 A-V:5945.798 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71431.1 V:65485.2 A-V:5945.884 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

video buffer full - dropping frame
A:71431.1 V:65485.2 A-V:5945.970 ct:3032.083 881368/881368  0%  0%  0.0% 3 0

video buffer full - dropping frame

Then, I decided to continue with MythTV.

I found this site<https://sayap.com/blog/2008/12/30/mythtv-s-xmltv-grabber-for-malaysia-channels>which
tells how to grab Malaysia's channel. I have installed the tools as
instructed.


bitto at bitto:~$ sudo easy_install BeautifulSoup lxml httplib2 python_dateutil
[sudo] password for bitto:
Searching for BeautifulSoup
Reading http://pypi.python.org/simple/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/download/
Best match: BeautifulSoup 3.1.0.1
Downloading
http://www.crummy.com/software/BeautifulSoup/download/3.1.x/BeautifulSoup-3.1.0.1.tar.gz
Processing BeautifulSoup-3.1.0.1.tar.gz
Running BeautifulSoup-3.1.0.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-NIe9do/BeautifulSoup-3.1.0.1/egg-dist-tmp-CJHgRR
zip_safe flag not set; analyzing archive contents...
/usr/lib/python2.6/dist-packages/setuptools/command/bdist_egg.py:422:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal
  symbols = dict.fromkeys(iter_symbols(code))
Adding BeautifulSoup 3.1.0.1 to easy-install.pth file

Installed
/usr/local/lib/python2.6/dist-packages/BeautifulSoup-3.1.0.1-py2.6.egg
Processing dependencies for BeautifulSoup
Finished processing dependencies for BeautifulSoup
Searching for lxml
Best match: lxml 2.1.5
Adding lxml 2.1.5 to easy-install.pth file

Using /usr/lib/python2.6/dist-packages
Processing dependencies for lxml
Finished processing dependencies for lxml
Searching for httplib2
Reading http://pypi.python.org/simple/httplib2/
Reading http://code.google.com/p/httplib2/
Reading http://bitworking.org/projects/httplib2/
Best match: httplib2 0.6.0
Downloading http://httplib2.googlecode.com/files/httplib2-0.6.0.zip
Processing httplib2-0.6.0.zip
Running httplib2-0.6.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-k_pRgj/httplib2-0.6.0/egg-dist-tmp-vd_vpU
zip_safe flag not set; analyzing archive contents...
Adding httplib2 0.6.0 to easy-install.pth file

Installed /usr/local/lib/python2.6/dist-packages/httplib2-0.6.0-py2.6.egg
Processing dependencies for httplib2
Finished processing dependencies for httplib2
Searching for python-dateutil
Reading http://pypi.python.org/simple/python_dateutil/
Reading http://labix.org/python-dateutil
Best match: python-dateutil 1.4.1
Downloading
http://labix.org/download/python-dateutil/python-dateutil-1.4.1.tar.gz
Processing python-dateutil-1.4.1.tar.gz
Running python-dateutil-1.4.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-hCozoR/python-dateutil-1.4.1/egg-dist-tmp-2nvRYb
Adding python-dateutil 1.4.1 to easy-install.pth file

Installed
/usr/local/lib/python2.6/dist-packages/python_dateutil-1.4.1-py2.6.egg
Processing dependencies for python-dateutil
Finished processing dependencies for python-dateutil

Then, I tried running the script that the site provided, but I got this
error. I don't understand it as I've never learned python and right now I am
trying to figure out what the script and error say.

bitto at bitto:~$ python grabmy.py -f my.xml
Traceback (most recent call last):
  File "grabmy.py", line 236, in <module>
    main()
  File "grabmy.py", line 225, in main
    for elem in grabber.grab(date + timedelta(i), **params_dict):
  File "grabmy.py", line 102, in grab
    html = self.get_html(date, **kwargs)
  File "grabmy.py", line 63, in get_html
    return BeautifulSoup(content)
  File "build/bdist.linux-i686/egg/BeautifulSoup.py", line 1499, in __init__
  File "build/bdist.linux-i686/egg/BeautifulSoup.py", line 1230, in __init__
  File "build/bdist.linux-i686/egg/BeautifulSoup.py", line 1263, in _feed
  File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib/python2.6/HTMLParser.py", line 148, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.6/HTMLParser.py", line 226, in parse_starttag
    endpos = self.check_for_whole_start_tag(i)
  File "/usr/lib/python2.6/HTMLParser.py", line 301, in
check_for_whole_start_tag
    self.error("malformed start tag")
  File "/usr/lib/python2.6/HTMLParser.py", line 115, in error
    raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: malformed start tag, at line 830, column 36

Plus, I have tried ask the script author but she didn't reply yet.

Ummu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100222/3fbd5f25/attachment-0001.htm>


More information about the mythtv-users mailing list