After I switched from Mythtv to MP, the only thing I missed was the excellent TV Guide, Shepherd. One of its more notable features (apart from verbose tv data) is its ability to scrape IMDB for Movies on TV, and thetvdb for episode data. The result is very good indeed.
Features:
I was browsing xpmediacentre.com.au and came across a discussion of how to get it working in Windows. I jumped at the chance to set it up, and thought it might be useful to provide the a guide here on how to do it for anyone interested. The information below is pulled from that thread and from some other sources.
It requires a Linux box or a virtual machine with Linux running (in this case xubuntu). I used Virtualbox as the VM. Any VM would probably work though.
On my machine the VM only uses 38mb of ram and 0% cpu when running minimised. (increases slightly when it grabs), but does not noticeably affect the performance of the machine.
1. obtain xubuntu or another suitable distro
2. install and configure virtual machine in XP/Vista/W7.
(Steps for Virtualbox)
new
OS- Linux
Type - Ubuntu
memory - default (384mb)
Virtual Hard Disk - NEW, dynamically expanding (8gb)
3. boot xubuntu / virtual machine and add dependencies for shepherd
4. Install Guest Additions in the VM (Virtualbox) - this allows file sharing and a number of other useful features.
In the VM window:
Devices -Install -Install Guest Additions
(toggle from full-screen mode so you can see the VM menu bar).
restart
5. Get Shepherd and configure (script is self explanatory)
(remove the '-' from w-get - its there because the forum blocks posts with this command)
6. Run shepherd to get guide data
(Takes awhile for the first run)
The resulting file is stored at:
~/.shepherd/output.xmltv
7. make and mount a shared folder
In XP, make a folder and share it (ie, C:\shared)
Virtualbox:
devices
shared folders
machine folders
add (path)
tick "make permanent"
then mount the shared XP folder to the Linux share
ie:
8. direct MP to the file in the Host's (XP) shared folder
TVserver config - XMLTV - Import c:\shared\tvguide.xml
(dont forget to map channels in xmltv)
- more info on the XMLTV plugin here
9. Set up a cron job to make shepherd run automatically once per day
Open a terminal window in xubuntu and enter:
add 2 lines to the file:
line 1 runs shepherd once per day at midday (12)
line 2 copies and renames the output file to windows share folder at 2pm (14)
--if you dont have gedit, substitute the name for the editor you use ie 'nano'
10. Remove from taskbar
Lastly, I found it a bit annoying having the VM on my taskbar as I dont really want to know its there, so I found a neat little utility that puts it in the system tray, where its out of the way.
Powermenu
The results are great. Much more detail than any tvguide.xml generator Ive run in the past.
Thanks to Arkay and aanda6 for the information and support.
Features:
Australians have traditionally had two options for acquiring TV guide data:
1. Downloading pre-compiled data from a service like IceTV or OzTivo
2. Using a tv_grab_au script to read data from a web site like ninemsn.com.au
Each method has drawbacks. The quality of pre-compiled data varies, while tv_grab_au scripts tend to frequently break. Shepherd aims to solve the traditional problems of tv_grab_au scripts:
1. It employs multiple TV guide grabbers and data sources, switching between them as necessary when one fails
2. It auto-updates, eliminating the need for users to manually address problems
Shepherd knows enough about the capabilities of each grabber in order to make intelligent judgments about which is most appropriate for any given situation, maximizing data quality while minimizing bandwidth usage. It analyses the XML output from each grabber to determine whether any further grabbers are required to obtain a full dataset of the required channels. It then employs postprocessor components to further refine the data: the imdb_augment_data postprocessor adds movie information from IMDb.com, tvdb_augment_data adds series/episode details from TheTVDB.com, flag_aus_hdtv marks shows that are available in High Definition, and more
I was browsing xpmediacentre.com.au and came across a discussion of how to get it working in Windows. I jumped at the chance to set it up, and thought it might be useful to provide the a guide here on how to do it for anyone interested. The information below is pulled from that thread and from some other sources.
It requires a Linux box or a virtual machine with Linux running (in this case xubuntu). I used Virtualbox as the VM. Any VM would probably work though.
On my machine the VM only uses 38mb of ram and 0% cpu when running minimised. (increases slightly when it grabs), but does not noticeably affect the performance of the machine.
1. obtain xubuntu or another suitable distro
2. install and configure virtual machine in XP/Vista/W7.
(Steps for Virtualbox)
new
OS- Linux
Type - Ubuntu
memory - default (384mb)
Virtual Hard Disk - NEW, dynamically expanding (8gb)
3. boot xubuntu / virtual machine and add dependencies for shepherd
Code:
sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl \
libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl \
libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl \
libhtml-parser-perl libxml-dom-perl libgd-gd2-perl libdigest-sha1-perl \
libarchive-zip-perl libio-string-perl libdbi-perl libclass-dbi-mysql-perl
4. Install Guest Additions in the VM (Virtualbox) - this allows file sharing and a number of other useful features.
In the VM window:
Devices -Install -Install Guest Additions
(toggle from full-screen mode so you can see the VM menu bar).
Code:
cd /media/cdrom0
sudo sh ./VBoxLinuxAdditions-x86.run
restart
5. Get Shepherd and configure (script is self explanatory)
Code:
w-get http://www.whuffy.com/shepherd/shepherd
perl ./shepherd
6. Run shepherd to get guide data
Code:
perl ./shepherd
(Takes awhile for the first run)
The resulting file is stored at:
~/.shepherd/output.xmltv
7. make and mount a shared folder
In XP, make a folder and share it (ie, C:\shared)
Virtualbox:
devices
shared folders
machine folders
add (path)
tick "make permanent"
then mount the shared XP folder to the Linux share
Code:
sudo mount -t vboxsf (name of xp shared folder without path ie "shared") (name and path of linux shared folder ie "/home/usrname/shared)
ie:
Code:
sudo mount -t vboxsf shared /home/jim/shared
8. direct MP to the file in the Host's (XP) shared folder
TVserver config - XMLTV - Import c:\shared\tvguide.xml
(dont forget to map channels in xmltv)
- more info on the XMLTV plugin here
9. Set up a cron job to make shepherd run automatically once per day
Open a terminal window in xubuntu and enter:
Code:
export EDITOR=gedit
export VISUAL=gedit
crontab -e
add 2 lines to the file:
Code:
# m h dom mon dow command
[B]0 12 * * * ~/.shepherd/shepherd --quiet 2>&1 >/dev/null
0 14 * * * cp /home/(username)/.shepherd/output.xmltv /home/(username)/shared/tvguide.xml 2>&1 >/dev/null[/B]
line 1 runs shepherd once per day at midday (12)
line 2 copies and renames the output file to windows share folder at 2pm (14)
--if you dont have gedit, substitute the name for the editor you use ie 'nano'
10. Remove from taskbar
Lastly, I found it a bit annoying having the VM on my taskbar as I dont really want to know its there, so I found a neat little utility that puts it in the system tray, where its out of the way.
Powermenu
The results are great. Much more detail than any tvguide.xml generator Ive run in the past.
Thanks to Arkay and aanda6 for the information and support.