GNOME Bugzilla – Bug 755854
validate:launcher: Add proper check for is_seekable
Last modified: 2016-02-17 21:38:22 UTC
The seekable variable in media_info file is of type string. When checking if the file is seekable using is_seekable, it just returns the string, resulting in it always being true. It should actually be comparing the string and returning true or false based on comparision
Created attachment 312399 [details] [review] fix return value of is_seekable function
Created attachment 312456 [details] [review] fix return value of is_seekable function
Review of attachment 312456 [details] [review]: ::: validate/launcher/baseclasses.py @@ +1678,2 @@ def is_seekable(self): + if self.media_xml.attrib["seekable"] == "True" or \ Please do instead: self.media_xml.attrib["seekable"].lower()
Created attachment 312659 [details] [review] fix return value of is_seekable function
ping :)
Review of attachment 312659 [details] [review]: ::: validate/launcher/baseclasses.py @@ +1681,2 @@ def is_seekable(self): + if self.media_xml.attrib["seekable"].lower() == "true": return self.media_xml.attrib["seekable"].lower() == "true"
Created attachment 315303 [details] [review] fix return value of is_seekable function
Thanks for that and sorry for the delay!