LinHES Forums http://forum.linhes.org/ |
|
Your Country not covered by tv_grab? http://forum.linhes.org/viewtopic.php?f=3&t=8998 |
Page 1 of 1 |
Author: | mac [ Thu Mar 16, 2006 7:03 am ] |
Post subject: | Your Country not covered by tv_grab? |
Fear not. I came across a windows xmltv grabber called tvxb. It turns out it works quite well on knoppmyth, using wine and couple ugly hacks. USE THESE INSTRUCTIONS AT YOUR OWN RISK! See if your country is covered at: http://www.tvxb.com/country.htm If your going to run it from cron on your mythtv-backend machine, it also has to be running X. I am using knoppmyth R5A16 with a PVR350 -- Getting video via a S-Video cable from sat box. (I am not using the tv-tuner) - Download the zip file for windows binary: http://www.tvxb.com/ - unzip it. I put it in ~mythtv in directory called TVxb. - grab the ini for country from the above url copy it to the ini directory as TVxb.ini - edit the ini as instructed in the documentation. AND - * Change the TVxb.ini so "xmltvoutput=" does not have a path - * like so: "xmltvoutput=xmltv.xml" This makes it dump the output in its current working - * directory and not bomb. - ** Change the "auto=yes" line to "auto=no". For me it corrupts the ini file, if left - ** left on "yes" - apt-get install sysutils -- you may need to do a "apt-get update" first. - This is to get the "dos2unix" utility in order to fix the EOL's of your xml output file. - apt-get install wine -- Add all your channels by hand using mythtv-setup --I only had about 20 so it -- was not painful. ***** Make sure that what is in the identifiers for the channels between the "[... ]" in your ***** TVxb.ini file Match what you have in "XMLTV ID" field of mythtv-setup->Channel Editor *** DO TEST RUNS USING SUBSETS OF THE BELOW SCRIPT TO MAKE SURE IT *** IS WORKING CORRECTLY. Check your xml output and look at the logs! -- The below bash script will not work out of the box for you unless you put everything -- in the same places I did! Please look at it and fix it before you use it! --- The "sed" command in script is to remove the time zone from the xml file, --- customize to your suit your needs. = add this to /etc/crontab to clean up junk left in html directory that is over 2 weeks old == 5 22 * * 2 root find /home/mythtv/TVxb/html -type f -mtime +14 -exec rm "{}" ";" == mygrabber ==== The bash script I call from /etc/crontab ======= #!/bin/bash cd /home/mythtv/TVxb/bin cp -f /home/mythtv/.Xauthority /root/ mv -f /home/mythtv/TVxb/bin/xmltv.xml /home/mythtv/TVxb/bin/xmltv.xml.old rm /tmp/listings.xml export DISPLAY=:0.0 wine TVxb.exe > /home/mythtv/TVxb/log/wine-output 2>&1 sleep 2 dos2unix /home/mythtv/TVxb/bin/xmltv.xml cat /home/mythtv/TVxb/bin/xmltv.xml | sed s/\ +0000//g > /tmp/listings.xml mythfilldatabase --file 1 -1 /tmp/listings.xml --update > /tmp/filldb-output 2>&1 ===================== end of script ============ |
Author: | dalben [ Tue May 02, 2006 11:01 am ] |
Post subject: | |
Nice trick. But, in my R5B7 box, when i try "apt-get install wine" it says me it will do the following: Code: The following packages will be REMOVED:
alsa-headers guarddog isdnutils-xtools kdelibs-bin kdelibs4 kdelibs4-dev lbxproxy libarts1-dev libmyth-0.19-dev libqt3-mt-dev mythplugins proxymngr twm x-window-system xdm xfree86-common xfs xfwp xserver-common xvfb The following NEW packages will be installed: gcc-4.1-base libavahi-client3 libavahi-common-data libavahi-common3 libcairo2 libcupsys2 libdbus-1-2 libdrm2 libfontenc1 libfs6 libgnutls12 liblua50 liblualib50 libstdc++6 libwine libx11-data libxau-dev libxdmcp-dev libxfont1 libxinerama-dev libxinerama1 libxkbfile1 libxss1 libxxf86dga1 libxxf86vm1 lsb-base tzdata wine x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-xinerama-dev xbitmaps xcursor-themes xfonts-encodings xfonts-utils xkb-data xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-input-synaptics xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740 xserver-xorg-video-i810 xserver-xorg-video-imstt xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via xserver-xorg-video-vmware xserver-xorg-video-voodoo xtrans-dev xutils-dev The following packages will be upgraded: kdelibs-data libartsc0 libartsc0-dev libasound2 libasound2-dev libc6 libc6-dev libcupsys2-dev libcupsys2-gnutls10 libgcc1 libgcrypt11 libgcrypt11-dev libglib2.0-0 libglib2.0-dev libgpg-error-dev libgpg-error0 libidn11 libidn11-dev libkrb53 libogg-dev libogg0 libopencdk8 libopencdk8-dev libpango1.0-0 libpango1.0-common libqt3-headers libtasn1-2 libtasn1-2-dev libvorbis-dev libvorbis0a libvorbisenc2 libvorbisfile3 libx11-6 libx11-dev libxau6 libxdmcp6 libxft-dev libxft2 libxi-dev libxi6 libxml2 libxml2-dev libxrender-dev libxrender1 libxslt1.1 render-dev x-dev xbase-clients xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xlibs-data xnest xserver-xfree86 xterm xutils Is it safe enough? Will it brake something? Is there another (safe and easy) way to install wine? |
Author: | mac [ Tue May 02, 2006 6:42 pm ] |
Post subject: | . |
When I did this the first time it was with R5A16. I don't remember needing to install wiine on R5B7. Is it already installed? I don't like some of the packages that it lined up for removal. |
Author: | cesman [ Tue May 02, 2006 6:51 pm ] |
Post subject: | |
No, WINE isn't installed. |
Author: | mac [ Tue May 02, 2006 7:00 pm ] |
Post subject: | |
It is working for me, so I think that I must have taken the leep and survived. A better route may be to rebuild the wine deb for you system, if you don't want to risk a reinstall. |
Author: | nickread [ Tue May 02, 2006 9:45 pm ] |
Post subject: | |
Quote: The following packages will be REMOVED:
alsa-headers guarddog isdnutils-xtools kdelibs-bin kdelibs4 kdelibs4-dev lbxproxy libarts1-dev libmyth-0.19-dev libqt3-mt-dev mythplugins proxymngr twm x-window-system xdm xfree86-common xfs xfwp xserver-common xvfb Just to be clear, removing all those packages is a Bad Idea and will trash your install. You may have to download and compile the source. |
Author: | mac [ Tue May 02, 2006 10:29 pm ] |
Post subject: | |
I agree with Nick Something to try: change unstable to stable in the first line of: Code: /etc/apt/sources.list
then do the apt-get update and the apt-get install. See if it changes its self destructive behavior.. If it still wants to perform invasive surgery on itself: uncomment the "deb-src" line in sources-list -- do the apt-get update and then: apt-get source wine apt-get build-dep wine For information on the rest of process See: http://www.debian-administration.org/articles/20/print |
Author: | dalben [ Wed May 03, 2006 2:00 pm ] |
Post subject: | |
Thanks, mac! Worked fine. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |