Hi

Forget my stupid answer. I just discovered that you mean itv not ivtv.
Sorry!

But I still think the code is not belonging in VideoItem but in mplayer.py.
I will investigate this further...

Regards
Tanja



Tanja schrieb:
> 
> Senufo schrieb:
>>>   
>> In the 1.7.4 is missing the http mode in videoitem.py
>> You can try this patch below for itv plugin work :
>>
>> --- videoitem.py.orig    2007-11-16 09:32:25.000000000 +0100
>> +++ videoitem.py    2007-11-16 09:57:48.000000000 +0100
>> @@ -448,8 +448,8 @@
>>          """
>>          play the item.
>>          """
>> -
>> -        if not self.player or self.player_rating < 10:
>> +   
>> +        if not self.player :
>>              AlertBox(text=_('No player for this item found')).show()
>>              return
>>  
>> @@ -533,7 +533,18 @@
>>                  ConfirmBox(text=(_('No media found for "%s".\nPlease 
>> insert the media "%s".')) % \
>>                      (self.media_id, self.url), handler=self.play).show()
>>                  return
>> -
>> +    elif self.mode in ('http') and not self.filename and not self.media:
>> +        self.player_rating, self.player = self.possible_player[0]
>> +        self.player_rating = 20
>> +        for p in plugin.getbyname(plugin.VIDEO_PLAYER, True):
>> +                 rating = p.rate(self) * 10
>> +                 if p.name == 'mplayer':
>> +                    self.player = p
>> +   
>> +        if self.player_rating < 10:
>> +        AlertBox(text=_('No player for this item found')).show()
>> +            return
>>  
>>          mplayer_options = self.mplayer_options.split(' ')
>>          if not mplayer_options:
>>
>> I have deposed this patch on the freevo tracher bug at :
>>
>>  
>> http://sourceforge.net/tracker/index.php?func=detail&aid=1833018&group_id=46652&atid=446895
>>
>> Regards
>>
> 
> 
> This code has been moved to mplayer.py on purpose, as the rating should be 
> done by the player not in 
> VideoItem. That is how it is done for all other players and sources!
> 
> The question is why that is not working with itv. I do not have a itv card 
> for testing,
> thus I do not know about its details.
> 
> Why is the mode 'http' for a itv card? I thought this code it for the video 
> pod cast plugin?
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to