Rikitik / project-valerie

Automatically exported from code.google.com/p/project-valerie
0 stars 0 forks source link

Again Problems with PyValerie #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version: project-valerie_rev278_sh4 on UFS-912

Hi Schischu,

today I installed the version mentioned above on my UFS-912.
After I found out that Project Valerie and the Media Center are working
fine in one image(thanks again), I tried to parse my media files with 
PyValerie. Unfortunatelly the following error occured:

===========================================================================
Check /hdd/valerie
 - OK

Check /hdd/valerie/cache
 - OK

Check /hdd/valerie/media
 - OK

Check /hdd/valerie/episodes
 - OK

Check /hdd/valerie/valerie.conf
 - OK

Check /hdd/valerie/valerie.conf
 - OK

Loading Database
pRead >
[Errno 2] No such file or directory: '/hdd/valerie/moviedb.txt'
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerieSync/Database.py", line 112, in load
    db = codecs.open("/hdd/valerie/moviedb.txt", "r", "utf-8").read()[:-1]
  File "codecs.py", line 369, in open
IOError: [Errno 2] No such file or directory: '/hdd/valerie/moviedb.txt'
------------------------------------------------------------
[Errno 2] No such file or directory: '/hdd/valerie/seriesdb.txt'
Check /hdd/valerie/pre.conf
 - OK

Check /hdd/valerie/post_movie.conf
 - OK

Check /hdd/valerie/post_tv.conf
 - OK

Loading Replacements
Check /hdd/valerie/pre.conf
 - OK

Check /hdd/valerie/post_movie.conf
 - OK

Check /hdd/valerie/post_tv.conf
 - OK

[pre]  ^\w\d  -->
[pre]  ^[^-\s]*-  -->
[pre]   (720p|1080i|1080p)( |$)+  -->
[pre]   (x264|blu-ray|hdtv|xvid)( |$)+  -->
[pre]   (eng|rus)( |$)+  -->
[pre]   (oar)( |$)+  -->
[pre]   (miniseries)( |$)+  -->
[pre]   (dts|dd5|ac3|stereo)( |$)+  -->
[post_tv]   (oar|esir|miniseries)  -->
[post_tv]  ^aaf   -->
[post_tv]  ^e7   -->
[post_tv]  ^halcyon   -->
[post_tv]  ^mind   -->
[post_tv]  ^sof   -->
[post_tv]  ^tvr   -->
[post_tv]  ^rv   -->
[post_tv]  ^zzgtv   -->
[post_tv]  ^30rock  -->  30 rock
[post_tv]  ^battlestar galactica 2003  -->  battlestar galactica
[post_tv]  ^bb  -->  breaking bad
[post_tv]  ^bbt  -->  the big bang theory
[post_tv]  ^bigbang  -->  the big bang theory
[post_tv]  ^bldb  -->  Boston Legal
[post_tv]  ^bsg  -->  battlestar galactica
[post_tv]  ^captain  -->  welcome captain
[post_tv]  ^cost  -->  comedy street
[post_tv]  ^desperatehousewives  -->  desperate housewives
[post_tv]  \Aearl  -->  my name is earl
[post_tv]  ^es  -->  eli stone
[post_tv]  ^elistone  -->  eli stone
[post_tv]  ^gk  -->  generation kill
[post_tv]  ^grk  -->  greek
[post_tv]  ^himym  -->  How i met your mother
[post_tv]  ^howimet  -->  How i met your mother
[post_tv]  ^lasvegas  -->  las vegas
[post_tv]  ^lots  -->  legend of the seeker
[post_tv]  ^mein cooler onkel charlie  -->  two and a half men
[post_tv]  ^s sg1  -->  stargate sg1
[post_tv]  ^sg 1  -->  sg1
[post_tv]  ^sga  -->  stargate atlantis
[post_tv]  ^boston  -->  boston legal
[post_tv]  ^tb  -->  true blood
[post_tv]  ^tbbt  -->  the big bang theory
[post_tv]  ^themen  -->  the mentalist
[post_tv]  ^tscc  -->  terminator the sarah connor chronicles
[post_tv]  ^pb  -->  prison break
[post_tv]  ^prisonbreak  -->  prison break
[post_tv]  ^prisonxvid  -->  prison break
[post_tv]  ^robinhood  -->  robin hood
[post_movie]   disk\d+( |$)+  -->
[post_movie]   part\d+( |$)+  -->
[post_movie]   extended edition( |$)+  -->
Check /hdd/valerie/paths.conf
 - OK

Searching for media files
Extensions: ['mkv', 'ts', 'avi', 'm2ts']
['mkv', 'ts', 'avi', 'm2ts']
Found 0 media files
Exception in thread Thread-2:
Traceback (most recent call last):
  File "threading.py", line 375, in __bootstrap_inner
  File "/usr/lib/enigma2/python/Plugins/Extensions/ProjectValerieSync/sync.py", line 232, in run
    self.output("(" + str(i) + "/" + str(len(elementList)) + ")")
UnboundLocalError: local variable 'i' referenced before assignment

===========================================================================

Could you please take a look at the problem?

Thanks and regards

Andreas

Original issue reported on code.google.com by a.roett...@gmail.com on 23 Aug 2010 at 6:54

GoogleCodeExporter commented 9 years ago
It seems to me that you did not configure paths.conf in /hdd/valerie, and that 
is why he found no movies.

The error at the end is unrelated to that matter.

Original comment by schischu65 on 23 Aug 2010 at 8:01

GoogleCodeExporter commented 9 years ago
You are right. There was a typo in paths.conf. Due to the error in the log I 
didn't doublecheck this, sorry.

I parsed all my media files and there is still a problem:

I don't see the wallpapers. No matter which movie I select it alway shows me 
the curtain and there are just the two default files in /hdd/valerie/media.

Here is a part of the log while parsing:

=======================================================================
-> Wolik mit der Aussicht auf Fleischbaellchen.mkv
unicode U+4b2c not present
[[[  wolik mit der aussicht auf fleischbaellchen
:2:  wolik mit der aussicht auf fleischbaellchen
:3:  wolik mit der aussicht auf fleischbaellchen
URL http://akas.imdb.com/find?s=tt;q=wolik+mit+der+aussicht+auf+fleischbaellchen
pageHtml:  <type 'unicode'>
unicode U+4b2c not present
URL http://akas.imdb.com/title/tt0844471
pageHtml:  <type 'unicode'>
URL http://akas.imdb.com/title/tt0844471/plotsummary
pageHtml:  <type 'unicode'>
URL 
http://api.themoviedb.org/2.1/Movie.imdbLookup/en/xml/7bcd34bb47bc65d20a49b6b446
a32866/tt0844471
pageHtml:  <type 'unicode'>
URL 
http://api.themoviedb.org/2.1/Movie.imdbLookup/en/xml/7bcd34bb47bc65d20a49b6b446
a32866/tt0844471
pageHtml:  <type 'unicode'>
URL 
http://val.duckbox.info/cgi-bin/convert.py?tt0844471;poster;http://hwcdn.themovi
edb.org/posters/9ec/4bc95e3c017a3c57fe02a9ec/cloudy-with-a-chance-of-meatballs-c
over.jpg
pageHtml:  <type 'unicode'>
URL http://val.duckbox.info/convertImg/poster/tt0844471.png
unknown encoding: idna
unknown encoding: idna
unknown encoding: idna
URL 
http://val.duckbox.info/cgi-bin/convert.py?tt0844471;backdrop;http://hwcdn.themo
viedb.org/backdrops/9dc/4bc95e3a017a3c57fe02a9dc/cloudy-with-a-chance-of-meatbal
ls-original.jpg
pageHtml:  <type 'unicode'>
URL http://val.duckbox.info/convertImg/backdrop_mvi/tt0844471.mvi
unknown encoding: idna
unknown encoding: idna
unknown encoding: idna
Cloudy with a Chance of Meatballs
ePixmap::setPixmapFromFile: loadPNG failed
=======================================================================

Can you help me with this too?

Thanks and regards

Andreas

Original comment by a.roett...@gmail.com on 24 Aug 2010 at 8:25

GoogleCodeExporter commented 9 years ago

Original comment by schischu65 on 24 Aug 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Please confirm if rev282 provides a solution for your problem.

Original comment by schischu65 on 24 Aug 2010 at 9:54

GoogleCodeExporter commented 9 years ago
It works! Once again thank you for your support.

Original comment by a.roett...@gmail.com on 25 Aug 2010 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by schischu65 on 26 Aug 2010 at 3:59