View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Mar 16, 2006 7:03 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
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 ============


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 11:01 am 
Offline
Joined: Tue Aug 24, 2004 12:34 pm
Posts: 14
Location: Brazil
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?


Top
 Profile  
 
 Post subject: .
PostPosted: Tue May 02, 2006 6:42 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 6:51 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
No, WINE isn't installed.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 7:00 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 9:45 pm 
Offline
Joined: Tue Nov 22, 2005 7:57 pm
Posts: 295
Location: Auckland, New Zealand
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.

_________________
HP VL400 (PIII 866), Skystar2 2.6D, PVR350, Nvidia FX5200, 384MB, 200GB, KnoppMyth R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 10:29 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 03, 2006 2:00 pm 
Offline
Joined: Tue Aug 24, 2004 12:34 pm
Posts: 14
Location: Brazil
Thanks, mac!

Worked fine.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu