View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 403 posts ] 
Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 27  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Dec 21, 2009 4:41 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Thanks guys for the comments.

kc8vfa it might help if you got ttvdb working, but i see that I need to start discriminating between movies and tv shows again. From what i have seen, the only grabber that can do both movies and tv shows is imdb, all the others need to be filtered.

EasyRiderOnTheStorm the output of the script should tell you what details were picked up by each grabber. Details found by the earlier grabbers will have a higher priority to those of the later grabbers. All grabbers have the ability to grab images, so i think it is just broken. I'll have a look at it.

Again, thanks for using the script. Jumping to this new way of doing things has added a few extra bugs, bug I like that i can now easily add new grabbers. And i will add support for the extra meta data of 0.22 as soon as i can get a chance.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 21, 2009 7:36 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
For those ignorant like me, how do we update your script as the latest version on Google is quite out of date?

Thanks

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 21, 2009 7:52 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

download this file into it's own folder in your home directory.
http://mythvideo-scanner.googlecode.com ... k/Makefile

Then type "make upgrade",
then, as root, "make install".

that will download the rest of the scripts using svn, then it will install them in /usr/local/....

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 21, 2009 8:08 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Ok getting a little bit closer, you will have to excuse the ignorance again as I am not use to using sources and stuff.

When I originally tried what you asked, I did not have svn installed. This was remedied by (as root) pacman -S subversion

However now when I run the 'make upgrade' as mythtv user I get an error:
Code:
[mythtv@mythtv mythvideo-scanner]$ make upgrade
A    .
svn: Can't create directory 'grabbers': Permission denied
make: *** [upgrade] Error 1


And when I run the command as root I get:
Code:
[root@mythtv mythvideo-scanner]# make upgrade
A    .
A    grabbers
A    grabbers/tmdb.pm
A    grabbers/tvrage.pm
A    grabbers/imdb.pm
A    grabbers/ttvdb.pm
A    modules
A    modules/MythTV.pm
A    mythvideo-scanner.pl
A    mythvideo-cleaner.pl
A    Makefile
A    README
Exported revision 76.
svn: Syntax error in revision argument ':HEAD'
make: *** [upgrade] Error 1


I would love to test and use the new version just having a bugger of a time getting it to work.

Thanks though for all your hard work it is greatly appreciated.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 21, 2009 10:16 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I believe I resolved the problem as it appeared to be a error in the syntax for the last line of the Makefile, the line currently reads:
Code:
@svn log http://mythvideo-scanner.googlecode.com/svn/trunk/ -r $(current_rev):HEAD
From what I found it should read:
Code:
@svn log http://mythvideo-scanner.googlecode.com/svn/trunk/ -r HEAD:$(current_rev)


When I run this it works and I am then able to install, it then works a treat.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 22, 2009 3:48 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Girkers,

the first issue you had was permissions, and you couldn't download the source into the current directory, resolved by going to root. The second issue is when a upgrade is done, the revision changes are printed to the screen, $(current_rev) represents the current revision, but since there was none, it had that error. 'svn log' prints out the revision log between '$(current_rev)' and 'HEAD'. If you leave that directory intact, future upgrades will print the revision log successfully.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 01, 2010 5:17 pm 
Offline
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location: Toronto Canada
Hi BigB,
Just came across a case I though you might be interested in

Code:
/var/lib/mythtv/videos/Movies/Testing/The.X.Files-I.Want.To.Believe[2008].avi
Title so far:
Prematch: /var/lib/mythtv/videos/Movies/Testing/The.X.Files-I.Want.To.Believe[2008]
Cleaned prematch: TheFiles I Want To Believe 2008
Details ------------------------------
Title: TheFiles I Want To Believe
 Prematch: TheFiles I Want To Believe 2008
 Year: 2008
End ------------------------------
Grabber: Ttvdb, Version: 1.1, ttvdb.py: v1.0.0 or greater

------------------------------
Grabber: Tvrage, Version: 1.1, Rev

------------------------------
Grabber: Tmdb, Version: 1.1, tmdb.pl: v0.1.1

------------------------------
Grabber: Imdb, Version: 1.1, imdb.pl: v1.3.5

------------------------------
Image not available.
Details ------------------------------
Title: TheFiles I Want To Believe
 Prematch: TheFiles I Want To Believe 2008
 Year: 2008
End ------------------------------
Adding DB entry


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 03, 2010 1:28 am 
Offline
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location: Toronto Canada
hey BigB, quick question,
if I commented out line 393
Code:
   $folder_filename = $full_filename;
   $folder_filename =~ s/\/[^\/]*$/\/folder.jpg/;

would that disable the script from changing my folder images?

even though there is prolly a proper way to do that.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 03, 2010 4:39 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Copper0,

It shouldn't overwrite your folder images unless you use the update flag. However, if you still want to go ahead, then i would suggest remove part or all of the following code;
Code:
                        #get the title image
                        if(!(-s"$folder_filename")||($update==1))
                        {
                                print "Downloading folder image to: ".$folder_filename."\n";
                                if(!$dryrun)
                                {
                                        $response = getstore($titleimage,$folder_filename);
                                        print "$response \n";
                                        if($response == 200)
                                        {
                                                $folder2_filename = $full_filename;
                                                $folder2_filename =~ s/\/[^\/]*\/[^\/]*$/\/folder.jpg/;
                                                if(-l "$folder2_filename")
                                                {
                                                        print "Removing old symbolic link: ".$folder2_filename."\n";
                                                        unlink($folder2_filename);
                                                }
                                                print "Creating symbolic link: ".$folder2_filename."\n";
                                                symlink($folder_filename, $folder2_filename);
                                        }
                                        else
                                        {
                                                print "FAILED to get image.\n";
                                        }
                                }
                        }
                        else
                        {
                                print "Folder image exists, won't overwrite.\n";
                        }
 


What that code does is;
1. If folder.jpg doesn't exist, then download it.
2. Overwrite a symbolic link that may exist in the next directory level up.

I would like to fix any issues that may exist around this, so any testing you can do would be helpful. I suspect i may need to add more tests regarding the sym link.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 05, 2010 12:11 am 
Offline
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location: Toronto Canada
As soon as I get a chance, I do some more testing. Not sure exactly when it happened. I'll try to recreate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 07, 2010 12:52 am 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi all,

Latest revision supports the following new metadata of 0.22;

Subtitle,
Season,
Episode.

Migration of existing entries (assuming "Title SxxExx Subtitle") is also supported.

if you want to quickly migrate your collection to use metadata of 0.22
Code:
mythvideo-scanner --nolookup

should do the trick.

BigB.

Next is the extra images (fanart and banners etc).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 5:08 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Following your latest post I updates my version as per previous instructions, however when it finds a movies it says that I need to install imdbpy and give me the location of imdbpy.sourceforge.net/...

Even though I could download it from there I would have no concept on where to put it to ensure that the script can access it. So if I do download it, where would I put it?

If it is relevant, I found that there is an Arch version (for those using R6) at http://aur.archlinux.org/packages.php?d ... =1&ID=4021.

Thanks for you excellent work.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:22 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

To install the imdbpy package in R6 do this as root:

Code:
# pacman -S setuptools

# easy_install http://sourceforge.net/projects/imdbpy/files/IMDbPY/4.4/IMDbPY-4.4.tar.gz/download


You can look at what the latest version is by going here:
http://sourceforge.net/projects/imdbpy/files/

What this does is install a python utility called "easy_install". That is then used to install the imdbpy directly from a download.

Enjoy.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:31 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Tried that and it seem to be working ok, but then it didn't end well, here is the full install:
Code:
[root@mythtv ~]# pacman -S setuptools
resolving dependencies...
looking for inter-conflicts...

Targets (1): setuptools-0.6c9-2

Total Download Size:    0.29 MB
Total Installed Size:   1.15 MB

Proceed with installation? [Y/n]
:: Retrieving packages from core-testing...
 setuptools-0.6c9-2-i686  293.1K  134.1K/s 00:00:02 [#####################] 100%
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) installing setuptools                         [#####################] 100%
[root@mythtv ~]# easy_install http://sourceforge.net/projects/imdbpy/files/IMDbPY/4.4/IMDbPY-4.4.tar.gz/download
/usr/lib/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning                                                                                                                                                             : BaseException.message has been deprecated as of Python 2.6
  self.message = message
Downloading http://sourceforge.net/projects/imdbpy/files/IMDbPY/4.4/IMDbPY-4.4.tar.gz/download
Processing download
Running IMDbPY-4.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mxKRXx/IMDbPY-4.4/egg-dist-tmp-FcWvxi
Created locale for: en it tr.
warning: no previously-included files matching '*~' found anywhere in distribution
no previously-included directories found matching 'CVS'
no previously-included directories found matching '.svn'
warning: no previously-included files matching 'CVS' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
Adding IMDbPY 4.4 to easy-install.pth file
Installing get_person.py script to /usr/bin
Installing search_person.py script to /usr/bin
Installing search_movie.py script to /usr/bin
Installing get_first_company.py script to /usr/bin
Installing search_keyword.py script to /usr/bin
Installing get_company.py script to /usr/bin
Installing get_character.py script to /usr/bin
Installing get_first_person.py script to /usr/bin
Installing get_first_character.py script to /usr/bin
Installing get_keyword.py script to /usr/bin
Installing get_first_movie.py script to /usr/bin
Installing search_company.py script to /usr/bin
Installing search_character.py script to /usr/bin
Installing get_top_bottom_movies.py script to /usr/bin
Installing get_movie.py script to /usr/bin
Installing imdbpy2sql.py script to /usr/bin

Installed /usr/lib/python2.6/site-packages/IMDbPY-4.4-py2.6-linux-i686.egg
Processing dependencies for IMDbPY==4.4
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.4
Downloading http://codespeak.net/lxml/lxml-2.2.4.tgz
Processing lxml-2.2.4.tgz
Running lxml-2.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LEI9zd/lxml-2.2.4/egg-dist-tmp-s6HQGY
Building lxml version 2.2.4.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available.
Using build configuration of libxslt 1.1.24
Building against libxml2/libxslt in the following directory: /usr/lib
Adding lxml 2.2.4 to easy-install.pth file

Installed /usr/lib/python2.6/site-packages/lxml-2.2.4-py2.6-linux-i686.egg
Searching for sqlalchemy-migrate
Reading http://pypi.python.org/simple/sqlalchemy-migrate/
Reading http://trac.erosson.com/migrate
Download error: [Errno -2] Name or service not known -- Some packages may not be found!
Reading http://code.google.com/p/sqlalchemy-migrate/
Reading http://erosson.com/migrate
Best match: sqlalchemy-migrate 0.5.4
Downloading http://sqlalchemy-migrate.googlecode.com/files/sqlalchemy-migrate-0.5.4.tar.gz
Processing sqlalchemy-migrate-0.5.4.tar.gz
Running sqlalchemy-migrate-0.5.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-O1BYch/sqlalchemy-migrate-0.5.4/egg-dist-tmp-aib_0j
zip_safe flag not set; analyzing archive contents...
migrate.versioning.api: module MAY be using inspect.getsource
Adding sqlalchemy-migrate 0.5.4 to easy-install.pth file
Installing migrate script to /usr/bin
Installing migrate-repository script to /usr/bin

Installed /usr/lib/python2.6/site-packages/sqlalchemy_migrate-0.5.4-py2.6.egg
Searching for SQLAlchemy
Best match: sqlalchemy migrate-0.5.4
Downloading http://sqlalchemy-migrate.googlecode.com/files/sqlalchemy-migrate-0.5.4.tar.gz
Processing sqlalchemy-migrate-0.5.4.tar.gz
Running sqlalchemy-migrate-0.5.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Y0sboj/sqlalchemy-migrate-0.5.4/egg-dist-tmp-pfEFjN
zip_safe flag not set; analyzing archive contents...
migrate.versioning.api: module MAY be using inspect.getsource
sqlalchemy-migrate 0.5.4 is already the active version in easy-install.pth
Installing migrate script to /usr/bin
Installing migrate-repository script to /usr/bin

Installed /usr/lib/python2.6/site-packages/sqlalchemy_migrate-0.5.4-py2.6.egg
error: Could not find required distribution SQLAlchemy


And now when I run the script I get these errors when checking the Movie:
Code:
/usr/lib/python2.6/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 9:22 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Girkers,

Just try running the easy_install line a second time. I had a similar issue, basically one of the servers is not responding very reliably, my second attempt got a successful download, and it installed.

BigB.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 403 posts ] 
Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 27  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 32 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