Author: duncan
Date: Mon Nov 12 13:45:31 2007
New Revision: 10107
Log:
Some video items have no information, this stops the rating messages for these
items
Modified:
branches/rel-1-7/freevo/src/video/plugins/mplayer.py
branches/rel-1/freevo/src/video/plugins/mplayer.py
Modified: branches/rel-1-7/freevo/src/video/plugins/mplayer.py
==============================================================================
--- branches/rel-1-7/freevo/src/video/plugins/mplayer.py (original)
+++ branches/rel-1-7/freevo/src/video/plugins/mplayer.py Mon Nov 12
13:45:31 2007
@@ -83,6 +83,8 @@
1 = possible, but not good
0 = unplayable
"""
+ if not item.url:
+ return 0
try:
_debug_('url=%r' % (item.url), 2)
_debug_('mode=%r' % (item.mode), 2)
Modified: branches/rel-1/freevo/src/video/plugins/mplayer.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/mplayer.py (original)
+++ branches/rel-1/freevo/src/video/plugins/mplayer.py Mon Nov 12 13:45:31 2007
@@ -83,6 +83,8 @@
1 = possible, but not good
0 = unplayable
"""
+ if not item.url:
+ return 0
try:
_debug_('url=%r' % (item.url), 2)
_debug_('mode=%r' % (item.mode), 2)
-------------------------------------------------------------------------
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-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog