Re: [Freevo-users] data cd/dvd

2007-09-04 Thread Ljubomir Simin
On Tuesday 04 September 2007 21:24, Duncan Webb wrote:
 You can try this patch, it should stop this crash.

 svn diff src/audio/plugins/mplayer.py
 Index: src/audio/plugins/mplayer.py
 ===
 --- src/audio/plugins/mplayer.py(revision 9858)
 +++ src/audio/plugins/mplayer.py(working copy)
 @@ -170,7 +170,8 @@
  
  Stop mplayer
  
 -self.app.stop('quit\n')
 +if self.app:
 +self.app.stop('quit\n')

  for p in self.plugins:
  command = p.stop()


Could you tell me how to apply the patch, so that I don't mess something up?

  Here's the logfile:
 
  file:///cdrom/Behemoth/Antichristian Phenomenon/01-01-Antichristian
  Phenomemon.mp3
  not found!

 Here is what caused the crash in the first place, the file could not be
 found.

I didn't play it, it just crashed in the middle of autodetection, few seconds 
after inserting the disc. 

[EMAIL PROTECTED]:~$ find /cdrom/|grep /Anti
/cdrom/Behemoth/Antichristian Phenomenon
/cdrom/Behemoth/Antichristian Phenomenon/01-01-Antichristian Phenomemon.mp3
/cdrom/Behemoth/Antichristian Phenomenon/02-02-Malice.mp3
/cdrom/Behemoth/Antichristian Phenomenon/03-03-From the Pagan Vastlands 
2000.mp3
/cdrom/Behemoth/Antichristian Phenomenon/04-04-Sathanas (Sarcofago).mp3
/cdrom/Behemoth/Antichristian Phenomenon/05-05-Hello Spaceboy (David 
Bowie).mp3
/cdrom/Behemoth/Antichristian Phenomenon/06-06-Day of Suffering (Morbid 
Angel).mp3
/cdrom/Behemoth/Antichristian Phenomenon/07-07-Carnage (Mayhem).mp3



 These messages look a bit strange.

  /cdrom/Condemned, The -2007-akcija: [Errno 2] No such file or
  directory: '/cdrom/Condemned, The -2007-akcija'
  /cdrom/Condemned, The -2007-akcija: [Errno 2] No such file or
  directory: '/cdrom/Condemned, The -2007-akcija'

 What the real name of these files, does an ls /cdrom report the correct
 files names?

[EMAIL PROTECTED]:~$ ls /cdrom
Condemned, The -2007-akcija  KNOKED UP  Shadow Puppets -2007-triler  
The.Good.Shepherd[2006]DvDrip  The Simpsons Movie TS


[EMAIL PROTECTED]:~$ find /cdrom/
/cdrom/
/cdrom/Condemned, The -2007-akcija
/cdrom/Condemned, The -2007-akcija/Condemned.jpg
/cdrom/Condemned, The -2007-akcija/The Condemned (2007).mht
/cdrom/Condemned, The -2007-akcija/TheCondemned.avi
/cdrom/Condemned, The -2007-akcija/TheCondemned.srt
/cdrom/KNOKED UP
/cdrom/KNOKED UP/KNOKED UP.avi
/cdrom/KNOKED UP/KNOKED UP.jpg
/cdrom/KNOKED UP/KNOKED UP.srt
/cdrom/Shadow Puppets -2007-triler
/cdrom/Shadow Puppets -2007-triler/Shadow Puppets (2007).mht
/cdrom/Shadow Puppets -2007-triler/ShadowPuppets.avi
/cdrom/Shadow Puppets -2007-triler/ShadowPuppets.bmp
/cdrom/Shadow Puppets -2007-triler/ShadowPuppets.srt
/cdrom/The Simpsons Movie TS
/cdrom/The Simpsons Movie TS/The Simpsons Movie (2007).avi
/cdrom/The Simpsons Movie TS/The Simpsons Movie (2007).jpg
/cdrom/The Simpsons Movie TS/The Simpsons Movie (2007).srt
/cdrom/The.Good.Shepherd[2006]DvDrip
/cdrom/The.Good.Shepherd[2006]DvDrip/The Good Shepherd [2006]_Cro.srt
/cdrom/The.Good.Shepherd[2006]DvDrip/The.Good.Shepherd[2006]DvDrip[Eng]-aXXo.avi
/cdrom/The.Good.Shepherd[2006]DvDrip/good-shepherd-poster-image.jpg
[EMAIL PROTECTED]:~$   


 Just for fun I installed the cdfs kernel driver then normal CDs are
 treated as files.


And otherwise they arent?

-- 
Ljubomir Simin 
Registered Linux User #351181
http://counter.li.org 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] data cd/dvd

2007-09-02 Thread Duncan Webb
Ljubomir Simin wrote:
 Hi!
 
 My video DVDs are detected and played properly, as well as audio CDs.
 I would however like to be able to browse data CDs and DVDs in video
 and music browsers, the same way I'm browsing local files. It's
 possible to achive with automounter and a symlink to /media/cdrom, but
 I would like to do it I a proper freevo way. However whenever I insert
 data disc, CD icon keeps being grayed out. Where should I start
 debugging the problem?

I'm not sure that this is working but it should work with the
ROM_DRIVES, eg:
ROM_DRIVES = [
  ('/mnt/dvd', '/dev/hdc', 'DVD'),
  ('/mnt/dvdram', '/dev/hdd', 'DVD-RAM')
]

May be some can confirm if this is working or not.

Duncan


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] data cd/dvd

2007-09-02 Thread Ljubomir Simin
On Sunday 02 September 2007 19:44, Duncan Webb wrote:
 Ljubomir Simin wrote:
  Hi!
 
  My video DVDs are detected and played properly, as well as audio CDs.
  I would however like to be able to browse data CDs and DVDs in video
  and music browsers, the same way I'm browsing local files. It's
  possible to achive with automounter and a symlink to /media/cdrom, but
  I would like to do it I a proper freevo way. However whenever I insert
  data disc, CD icon keeps being grayed out. Where should I start
  debugging the problem?

 I'm not sure that this is working but it should work with the
 ROM_DRIVES, eg:
 ROM_DRIVES = [
   ('/mnt/dvd', '/dev/hdc', 'DVD'),
   ('/mnt/dvdram', '/dev/hdd', 'DVD-RAM')
 ]

 May be some can confirm if this is working or not.

 Duncan



I have to eat my words. After upgradiing to 1.7.3 it works. Kinda.

I have this in my local_config.py:
ROM_DRIVES = [ ('/cdrom', '/dev/scd0', 'DVD') ]

This is fstab:
/dev/scd0   /media/cdrom0   udf,iso9660 user,noauto 0   0

/cdrom is a softlink to /media/cdrom0

It works with some disks. But not with all. I've just inserted CD with mp3s, 
and got PLUGIN_EVENT IDENTIFY_MEDIA crashed
Here's the logfile:

file:///cdrom/Behemoth/Antichristian Phenomenon/01-01-Antichristian 
Phenomemon.mp3
not found!
Traceback (most recent call last):
  File /usr/lib/python2.5/site-packages/freevo/main.py, line 288, in 
eventhandler
app.eventhandler(event)
  File /usr/lib/python2.5/site-packages/freevo/menu.py, line 750, in 
eventhandler
if p.eventhandler(event=event, menuw=self):
  File /usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py, line 
162, in eventhandler
media.item.play_recursive(menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 504, in 
play_recursive
self.check_password_and_build(arg='playlist:recursive', menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 535, in 
check_password_and_build
self.build(arg=arg, menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 603, in 
build
display_type=display_type, random=False).play(menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/playlist.py, line 382, in 
play
self.current_item.play(menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/audio/audioitem.py, line 179, 
in play
error = self.player.play()
  File /usr/lib/python2.5/site-packages/freevo/audio/player.py, line 98, in 
play
self.item.eventhandler(event.PLAY_END)
  File /usr/lib/python2.5/site-packages/freevo/item.py, line 415, in 
eventhandler
return self.parent.eventhandler(event, menuw)
  File /usr/lib/python2.5/site-packages/freevo/playlist.py, line 447, in 
eventhandler
self.current_item.stop()
  File /usr/lib/python2.5/site-packages/freevo/audio/audioitem.py, line 205, 
in stop
self.player.stop()
  File /usr/lib/python2.5/site-packages/freevo/audio/player.py, line 129, in 
stop
self.player.stop()
  File /usr/lib/python2.5/site-packages/freevo/audio/plugins/mplayer.py, 
line 173, in stop
self.app.stop('quit\n')
AttributeError: 'NoneType' object has no attribute 'stop'





Another DVD with divx movies triggered event INPUT_ENTER crashed:

/cdrom/Condemned, The -2007-akcija: [Errno 2] No such file or 
directory: '/cdrom/Condemned, The -2007-akcija'
/cdrom/Condemned, The -2007-akcija: [Errno 2] No such file or 
directory: '/cdrom/Condemned, The -2007-akcija'
Traceback (most recent call last):
  File /usr/lib/python2.5/site-packages/freevo/main.py, line 288, in 
eventhandler
app.eventhandler(event)
  File /usr/lib/python2.5/site-packages/freevo/menu.py, line 680, in 
eventhandler
action( arg=arg, menuw=self )
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 480, in 
cwd
self.check_password_and_build(arg=None, menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 535, in 
check_password_and_build
self.build(arg=arg, menuw=menuw)
  File /usr/lib/python2.5/site-packages/freevo/directory.py, line 789, in 
build
menuw.pushmenu(item_menu)
  File /usr/lib/python2.5/site-packages/freevo/menu.py, line 379, in 
pushmenu
self.refresh()
  File /usr/lib/python2.5/site-packages/freevo/menu.py, line 407, in refresh
skin.draw('menu', self, self.menustack[-1])
  File /usr/lib/python2.5/site-packages/freevo/skins/main/main.py, line 527, 
in draw
a.draw(settings, object, menu, style, type, self.force_redraw)
  File /usr/lib/python2.5/site-packages/freevo/skins/main/area.py, line 196, 
in draw
self.update_content()
  File /usr/lib/python2.5/site-packages/freevo/skins/main/default_areas.py, 
line 179, in update_content
p.draw((self.widget_type, self.menuw), self)
  File /usr/lib/python2.5/site-packages/freevo/plugins/buttonbar.py, line 
172, in draw
actions = self.get_actions(menu)
  File /usr/lib/python2.5/site-packages/freevo/plugins/buttonbar.py, line 
318, in get_actions
for a in p.actions(menu.selected):
  

[Freevo-users] data cd/dvd

2007-09-01 Thread Ljubomir Simin
Hi!

My video DVDs are detected and played properly, as well as audio CDs.
I would however like to be able to browse data CDs and DVDs in video
and music browsers, the same way I'm browsing local files. It's
possible to achive with automounter and a symlink to /media/cdrom, but
I would like to do it I a proper freevo way. However whenever I insert
data disc, CD icon keeps being grayed out. Where should I start
debugging the problem?

Thanks,
-- 
Ljubomir Simin
Registered Linux User #351181
http://counter.li.org

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users