Re: [Freevo-users] imdb.py broken?

2007-06-30 Thread Duncan Webb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian McKee wrote:
> Hi All
>   Is imdb.py broken or is it me?
> 
> ==> freevo imdb -s test
> {a few snipped warnings}
> 
> searching test
> url: http://www.imdb.com/find?s=tt;site=aka;q=test
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.4/site-packages/freevo/helpers/imdb.py", line
> 148, in ?for result in fxd.searchImdb(filename):
>   File
> "/usr/lib/python2.4/site-packages/freevo/util/fxdimdb.py", line
> 167, in searchImdb
> if appended == False and \
> AttributeError: 'NoneType' object has no attribute 'lower'
> 
> Comments appreciated

It was reported to the list a couple of days ago

Attached is a fixed version

Duncan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGh0p5Ni6l+Xvys44RAk+PAJ0QfFPPrPfEHCTbdOyNJCVGbaRfsACeLxD6
vFUoykdaZ/0wMINtTES5apU=
=3237
-END PGP SIGNATURE-
# -*- coding: iso-8859-1 -*-
# ---
# fxdimdb.py - class and helpers for fxd/imdb generation
# ---
# $Id: fxdimdb.py 9734 2007-06-28 20:25:37Z duncan $
#
# Notes: see http://pintje.servebeer.com/fxdimdb.html for documentatio,
# Todo:
# - add support making fxds without imdb (or documenting it)
# - webradio support?
#
# ---
# Freevo - A Home Theater PC framework
# Copyright (C) 2003 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ---


# python has no data hiding, but this is the intended use...
# subroutines completly in lowercase are regarded as more "private" functions
# subRoutines are regarded as public

#some data
__author__ = "den_RDC ([EMAIL PROTECTED])"
__version__ = "Revision 0.1"
__copyright__ = "Copyright (C) 2003 den_RDC"
__license__ = "GPL"

#Module Imports
import re
import urllib, urllib2, urlparse
import sys
import codecs
import os
from BeautifulSoup import BeautifulSoup

import config
import util

import kaa.metadata as mmpython
#Constants

try:
import freevo.version as version
import freevo.revision as revision
except:
import version
import revision

imdb_title_list = '/tmp/imdb-movies.list'
imdb_title_list_url = 'ftp://ftp.funet.fi/pub/mirrors/ftp.imdb.com/pub/movies.list.gz'
imdb_titles = None
imdb_info_tags = ('year', 'genre', 'tagline', 'plot', 'rating', 'runtime');


# headers for urllib2
txdata = None
txheaders = {
'User-Agent': 'freevo %s (%s)' % (version, sys.platform),
'Accept-Language': 'en-us',
}

#Begin class

class FxdImdb:
"""Class for creating fxd files and fetching imdb information"""

def __init__(self):
"""Initialise class instance"""

# these are considered as private variables - don't mess with them unless
# no other choise is given
# fyi, the other choice always exists : add a subroutine or ask :)

self.imdb_id_list = []
self.imdb_id = None
self.isdiscset = False
self.title = ''
self.info = {}

self.image = None # full path image filename
self.image_urls = [] # possible image url list
self.image_url = None # final image url

self.fxdfile = None # filename, full path, WITHOUT extension

self.season = None  # used if the file is a tv serie
self.episode = None # used if the file is a tv serie
self.newid = None   # used if the file is a tv serie

self.append = False
self.device = None
self.regexp = None
self.mpl_global_opt = None
self.media_id = None
self.file_opts = []
self.video = []
self.variant = []
self.parts = []
self.var_mplopt = []
self.var_names = []

#initialize self.info
for t in imdb_info_tags:
self.info[t] = ""

#image_url_handler stuff
self.image_url_handler = {}
self.image_url_handler['www.i

[Freevo-users] Running Freevo on second video card

2007-06-30 Thread Brian McKee
Hi All
First post here - please let me know if I'm missing anything etc...
I'm trying to get Freevo 1.7.2 running on my Ubuntu 6.06.1 box on the
second video card and monitor.
Wuth gdm running normally if I do 'freevo -fs' from a console it starts
a second X session which is exactly what I want - i just want that
second session to use a different xconf.org or to be able to pass a
different "ServerLayout' to it.   Anybody know how to accomplish this?
Comments appreciated,
Brian


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] imdb.py broken?

2007-06-30 Thread Brian McKee
Hi All
Is imdb.py broken or is it me?

==> freevo imdb -s test
{a few snipped warnings}

searching test
url: http://www.imdb.com/find?s=tt;site=aka;q=test
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/freevo/helpers/imdb.py", line
148, in ?for result in fxd.searchImdb(filename):
  File
"/usr/lib/python2.4/site-packages/freevo/util/fxdimdb.py", line
167, in searchImdb
if appended == False and \
AttributeError: 'NoneType' object has no attribute 'lower'

Comments appreciated
Brian


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Music and movie menu crash after upgrade to 1.7.2 solved.

2007-06-30 Thread Duncan Webb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Petter Videbrink wrote:
>> Duncan Webb wrote:
 Sorry for the last mail that was all most unreadable.

 Hello
 I'm using Debian etch.
 A while ago I upgraded freevo from 1.6.3 to 1.7.2 using source
> packages.
 Now I get an error message, suggesting to shut down freevo, when i
 select music or movie or picture menu in main menu. TV and headlines
 work.

 I don't know how to get it to work again. Some help would be
 appreciated.
>>> Looks like one of the translations is not up-to-date, which language
> are
>>> you using?
>>>
 line 149, in main_menu
 menutitle = _('%s Main Menu') % title
 TypeError: not all arguments converted during string formatting
> 
> I reinstalled Kaa and Freevo, and now the menu work fine.
> 
>> My guess is that you are using "sv" as your language?
> 
> Your guess is right.
> 
>> Attached is a new po file with as many of the python formats that I
>> could quickly find corrected. The problem is that this translation has
>> not been updated for quite a while and when building the new i18n po
>> files gettext guesses the values incorrectly.
>>
>> If you like you can update the translation and send it in :)
> 
>> See http://freevo.sourceforge.net/cgi-bin/doc/Contributing on how to
>> update and install this file
> 
> Thanks for the hint, I will try to update the Swedish translation, (it
> is a bit annoying with mixed languages).

Ideally you get a version of freevo from svn, you don't have to install
it, and then you update the i18n/sv/LC_MESSAGES/freevo.po file with the
translations. It is pretty clear from the freevo.po file what to do. It
will take a while as the source is quite large. The only thing to watch
out for is the python format strings eg:

#: plugins/idlebar/diskfree.py:87
#, python-format
msgid "%iGB"
msgstr ""

The contents of msgstr can be blank in which case the string is not
translated. If msgid has a %s, %d, %i etc then this must match so with a
msgstr "GBytes" would crash freevo.

You can test the translations from the command line by doing this:
LANGUAGE=sv_SE gettext -d freevo -s Title
or
export LC_ALL=sv_SE
export TEXTDOMAIN=freevo
gettext -s "Description"

> How do I install the freevo.po file? The link above only seems to be
> valid for the svn version, I don't seem to have autogen.sh.  

If you want to run the commands by hand then you can do this too. The
freevo.po file is the source and the freevo.mo file is the compiled
version of the freevo.po version. The basic command is msgfmt -o
freevo.mo freevo.po

- From the freevo source directory you need to run:
msgfmt -o i18n/sv/LC_MESSAGES/freevo.mo i18n/sv/LC_MESSAGES/freevo.po
cp -p i18n/sv/LC_MESSAGES/freevo.mo i18n/sv/LC_MESSAGES/freevo.po \
/usr/share/locale/sv/LC_MESSAGES

HTH
Duncan

Maybe I should add this to the wiki :)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGhn+2Ni6l+Xvys44RAp4mAJ9zB/orjMAzwTk0Qca5eSit8U6rMgCfSSlV
jiYk5zWTx2jUexwEqCSxCb0=
=o5wj
-END PGP SIGNATURE-


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] for the wishlist: not caching hidden folders

2007-06-30 Thread Andreas Dick
hei freevo users
I like that files in hidden folder (starting with a dot) are not shown in 
freevo. Thus I move the original images to a '/images/.orig/' subfolder and 
use only a resized copy in '/images/' ... unfortuenatly the caching command 
also scans the hidden folders and this takes a lot of time (for nothing?)... 
I think it would not be a big change to suppress this?
thanks a lot
Andreas

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Music and movie menu crash after upgrade to 1.7.2 solved.

2007-06-30 Thread Petter Videbrink
>Duncan Webb wrote:
>>> Sorry for the last mail that was all most unreadable.
>>>
>>> Hello
>>> I'm using Debian etch.
>>> A while ago I upgraded freevo from 1.6.3 to 1.7.2 using source
packages.
>>> Now I get an error message, suggesting to shut down freevo, when i
>>> select music or movie or picture menu in main menu. TV and headlines
>>> work.
>>>
>>> I don't know how to get it to work again. Some help would be
>>> appreciated.
>> 
>> Looks like one of the translations is not up-to-date, which language
are
>> you using?
>> 
>>> line 149, in main_menu
>>> menutitle = _('%s Main Menu') % title
>>> TypeError: not all arguments converted during string formatting

I reinstalled Kaa and Freevo, and now the menu work fine.

>My guess is that you are using "sv" as your language?

Your guess is right.

>Attached is a new po file with as many of the python formats that I
>could quickly find corrected. The problem is that this translation has
>not been updated for quite a while and when building the new i18n po
>files gettext guesses the values incorrectly.
>
>If you like you can update the translation and send it in :)

>See http://freevo.sourceforge.net/cgi-bin/doc/Contributing on how to
>update and install this file

Thanks for the hint, I will try to update the Swedish translation, (it
is a bit annoying with mixed languages).

How do I install the freevo.po file? The link above only seems to be
valid for the svn version, I don't seem to have autogen.sh.  

/Petter

>Duncan


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users