http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11706
Revision: 11706 Author: drtrigon Date: 2013-07-01 13:04:55 +0000 (Mon, 01 Jul 2013) Log Message: ----------- bug fix; for midi, since they are NOT ogg sound files
Modified Paths: -------------- trunk/pywikipedia/catimages.py
Modified: trunk/pywikipedia/catimages.py =================================================================== --- trunk/pywikipedia/catimages.py 2013-07-01 11:30:01 UTC (rev 11705) +++ trunk/pywikipedia/catimages.py 2013-07-01 13:04:55 UTC (rev 11706) @@ -3290,7 +3290,9 @@ def _cat_streams_OggSoundFiles(self): result = self._info_filter['Streams']
- return (u'Ogg sound files', ((len(result) == 1) and (u'audio/' in result[0]['Format']))) + return (u'Ogg sound files', ((len(result) == 1) and + (u'audio/' in result[0]['Format']) and + (u'/midi' not in result[0]['Format'])))
# Category:Videos def _cat_streams_Videos(self):