Duncan Webb wrote:
> that does this:
>   if item.mode == 'dvd' and hasattr(item, 'filename') and \
>     item.filename and item.filename.endswith('.iso'):
>       # dvd:///full/path/to/image.iso/
>       command.append('dvd://%s/' % item.filename)
>
> You could add a:
> print 'item.mode:', item.mode just before the if and aligned to start in
> the same column as the if. line 151 of src/video/plugins/xine.py.
>
> The only reasons that this would not work are because the mode is not
> dvd and the file end with a non lowercase iso.
>
> IIRC the mode is somehow set by the cache. If in doubt delete the
> /var/cache/freevo/mediainfo and maybe freevo.sqlite in the same
> directory, then run freevo cache.
> I'm pretty certain it has to do with the cache, here's the code in xine
sorry it has taken so long to reply, I've been away for a week.

I put the print lines in and get the following (I also printed the 
filename just to be certain). So I guess its nothing wrong with the xine 
plugin as it is being asked to play a file, rather than a dvd.

item.mode: file
item.filename: /data/Video/THE_DISH.iso

So I searched for occurrences of iso, and found some in videoitem.py. 
There I get it to print out in the set_url method (line 132).. and it
correctly has a list of files with .iso on the end:

url: file:///data/Video/THE_DISH.iso
url: file:///data/Video/SANDALS.iso
url: file:///data/Video/GONE_IN_60_SECONDS.iso
url: /data/Video/lost_in_translation.iso
url: /data/Video/myfile.iso


Looking at the video item code though, unless these items start with 
dvd://, or they end in .iso AND self.info['mime'] == 'video/dvd' then 
they will not be flagged as a DVD.

I removed the "self.info['mime'] == 'video/dvd'" part of the if check, 
and my DVD playback now works correctly...

Well almost correctly because it is no longer outputting Digital to my 
amp but playing back via the speakers... not sure what I've done to 
break that :(

Is there a configuration option that is new in 1.6.2 that I should be 
setting to it knows the directory is one with DVD's in or something?

Either way with my HACK is works for now :)




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to