LinHES Forums
http://forums.linhes.org/

Mythvideo-scanner PART II
http://forums.linhes.org/viewtopic.php?f=21&t=22049
Page 1 of 1

Author:  bigB [ Sun Mar 06, 2011 3:56 am ]
Post subject:  Mythvideo-scanner PART II

Hi All,

This continues on from the old thread.

I have updated mythvideo-scanner to support Mythtv 0.24, namely the new location and format of the grabber scripts. If you are running old mythtv and want to use the new script, put them in the location defined for mythtv 0.24 (i.e. in /usr/share/mythtv/metadata)

I have also fixed the IMDB grabber. Everything else is the same.

If you are a new comer, the release is available here.
INSTALL
Code:
 tar xzf mythvideo-scanner.3.1.tar.gz
 cd mythvideo-scanner
 make upgrade
 make PREFIX=/usr install

Keep the source as it eases the update process.
UPGRADE
Code:
 make upgrade
 make PREFIX=/usr install


BigB.

Author:  mediathreat [ Mon Jun 27, 2011 8:21 am ]
Post subject: 

http://search.cpan.org/~jgoldberg/Text-Levenshtein-0.05/Levenshtein.pm

Link to download and install Text::Levenshtein

Testing it out now on my system - love your work dude!

Author:  Ozdemon [ Sat Jul 09, 2011 7:55 pm ]
Post subject:  Basic question on how to upgrade

I have an old version of the script in /usr/local/src. I want to update to the latest version of the script. Can anyone tell me how I would do that? Do I need to uninstall anything or make new directories etc.

I am running R6.04
Thanks.

Author:  bigB [ Sun Jul 10, 2011 4:23 pm ]
Post subject: 

if you still have the source, you can go 'make update' followed by 'make install'. If you don't have the source, then you need to download it first then make update, make install.

You don't need to uninstall anything first.

Author:  Ozdemon [ Sun Jul 10, 2011 5:29 pm ]
Post subject:  Scanner help

bigB wrote:
if you still have the source, you can go 'make update' followed by 'make install'. If you don't have the source, then you need to download it first then make update, make install.

You don't need to uninstall anything first.


Many thanks BigB. I tried the "make upgrade" command but I got the following error msg:
Quote:
svn: error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory


My system is up to date via Pacman. I am on 6.4.

Also, I am not sure what you mean by source. I have one folder called mythvideo-scanner which contains 2 sub-folders: grabbers & modules as well as some files. Is this folder the source?

Author:  heilig [ Mon Jul 11, 2011 2:42 pm ]
Post subject: 

I "fixed" that by linking the desired libd to the one installed:
Code:
sudo ln -s /usr/lib/libdb-4.8.so /usr/lib/libdb-4.7.so

This worked for me. I have no idea if it breaks something, though...

Jens

Author:  Ozdemon [ Tue Jul 12, 2011 3:38 pm ]
Post subject:  Script problem

heilig wrote:
I "fixed" that by linking the desired libd to the one installed:
Code:
sudo ln -s /usr/lib/libdb-4.8.so /usr/lib/libdb-4.7.so

This worked for me. I have no idea if it breaks something, though...

Jens


Thanks hellig.

Author:  Ozdemon [ Sat Jul 30, 2011 4:26 pm ]
Post subject:  Can't get path variable to work

I I have the script working and it is fantastic. The only problem I have is that I cannot get a specific path to work. I have to update, reparse or some other option for all the files in the DB.

I have installed mvs in its directory in /usr/share/mythtv/metadata. I am running R6.04

The files are contained on an NAS (nas-video) to which the combined FE/BE connects. The file structure of the FE/BE shows /nas-video in the root structure.

When MVS is running in the terminal it shows the script is using the path /myth/video/nas-video/folder1/subfolder/title.avi

If I cd to /usr/share/mythtv/metadata/mythvideo-scanner and then enter ./mythvideo-scanner.pl --update /myth/video/nas-video/folder/subfolder I get a message that specified scripts cannot be found. Incidentally it doesn't seem to make a difference whether I use ./ or not. I have also tried the path /nas-video/folder1/subfolder without success.

If I enter ./mythvideo-scanner.pl --update with no path the script runs with no problem.

I must be doing something wrong with the path variable but I cannot work out what.

Author:  bigB [ Sun Jul 31, 2011 4:26 pm ]
Post subject: 

Hi,

Can you paste the output of "mythvideo-scanner.pl --status", and the output of ONE of your failing attempts please.

NOTES:
--update is to update all existing entries in the database not just the new ones.

BigB.

Author:  Ozdemon [ Sun Jul 31, 2011 4:52 pm ]
Post subject:  Path problems

bigB wrote:
Hi,

Can you paste the output of "mythvideo-scanner.pl --status", and the output of ONE of your failing attempts please.

NOTES:
--update is to update all existing entries in the database not just the new ones.

BigB.


BigB, output of mythvideo-scanner.pl --status:

Code:
[mythtv@myhtpc mythvideo-scanner]$ mythvideo-scanner.pl --status
ttvdb_old.pm: Can't find script "ttvdb.py"
tmdb_old.pm: Can't find script "tmdb.pl"
mythvideo-scanner
http://code.google.com/p/mythvideo-scanner/
Version: 3.1, Rev: 142

Grabber: Ttvdb, Version: 2.1, ttvdb.py: 1.12
Grabber: Tmdb, Version: 2.1, tmdb.py: 0.21
Grabber: Imdb, Version: 2.0, Rev: 140
Grabber: Tvrage, Version: 1.1, Rev: 128
Grabber: Cinecurry, Version: 1.0, Rev: 140
[mythtv@myhtpc mythvideo-scanner]$


One failed attempt:
Code:
[mythtv@myhtpc mythvideo-scanner]$ ./mythvideo-scanner.pl --dryrun /myth/video/nas-video/Adult TV Shows/30 Rock
ttvdb_old.pm: Can't find script "ttvdb.py"
tmdb_old.pm: Can't find script "tmdb.pl"
Using settings for myhtpc
Reading MythTV DB settings from: /usr/share/mythtv/mysql.txt
Mythvideo Database schema is 1038, suggests Mythtv version >=0.22
Images will be downloaded to:
 Covers:      '/myth/video/.covers'
 ScreenShots: '/myth/video_stuff/screenshots'
 Fanart:      '/myth/video_stuff/fanart'
 Banners:     '/myth/video_stuff/banners'
Seaching for these extensions: avi mpg mpeg mkv mp2 tp ts m2p nuv mkv ogg theora ogv avi nut mxf m4v rm swf f4v
Starting search in '/myth/video/nas-video/Adult'
[mythtv@myhtpc mythvideo-scanner]$


I appreciate your assistance and your great script.

Author:  bigB [ Sun Jul 31, 2011 5:23 pm ]
Post subject: 

Hi,

Notice how the last line doesn't look correct, you need to add quotes around the path, or escape the spaces with a '\'
e.g.
Code:
"/myth/video/nas-video/Adult TV Shows/30 Rock"

or
Code:
/myth/video/nas-video/Adult\ TV\ Shows/30\ Rock


You can ignore the two errors about can't find script, these are old grabbers for mythtv 0.23 and older.

Hope this helps.

Author:  Ozdemon [ Sun Jul 31, 2011 6:37 pm ]
Post subject: 

bigB wrote:
Hi,

Notice how the last line doesn't look correct, you need to add quotes around the path, or escape the spaces with a '\'
e.g.
Code:
"/myth/video/nas-video/Adult TV Shows/30 Rock"



Many thanks BigB, the quotes made all the difference. :D

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/