Skip to content

Commit

Permalink
Version 154a
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrusnetwork committed Apr 25, 2015
1 parent 7e2e215 commit b992e83
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions help/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<div class="content">
<h3>changelog</h3>
<ul>
<li><h3>version 154a</h3></li>
<ul>
<li>fixed a bug in v154 update code when there was more than one set of shortcuts to convert</li>
<li>fixed a faulty default value for num_pixels system predicate that was stopping options from opening</li>
<li>fixed an error when video fps is 0</li>
</ul>
<li><h3>version 154</h3></li>
<ul>
<li>managed to completely break my linux and os x dev environments trying to update python--their release will come soon, once I've cleaned them up</li>
Expand Down
2 changes: 1 addition & 1 deletion include/ClientDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -5400,7 +5400,7 @@ def _UpdateDB( self, version ):

( dump_type, dump_version ) = obj.GetTypeAndVersion()

name = obj.GetName()
dump_name = obj.GetName()

dump = obj.GetSerialisedInfo()

Expand Down
2 changes: 1 addition & 1 deletion include/ClientDefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def GetClientDefaultOptions():
system_predicates[ 'size' ] = ( '<', 200, 1024 )
system_predicates[ 'width' ] = ( '=', 1920 )
system_predicates[ 'num_words' ] = ( '<', 30000 )
system_predicates[ 'num_pixels' ] = ( u'\u2248', 2, 2 )
system_predicates[ 'num_pixels' ] = ( u'\u2248', 2, 1000000 )
system_predicates[ 'hamming_distance' ] = 5

options[ 'file_system_predicates' ] = system_predicates
Expand Down
1 change: 1 addition & 0 deletions include/HydrusData.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def ConvertIntToPixels( i ):
if i == 1: return 'pixels'
elif i == 1000: return 'kilopixels'
elif i == 1000000: return 'megapixels'
else: return 'megapixels'

def ConvertIntToPrettyString( num ): return ToString( locale.format( "%d", num, grouping = True ) )

Expand Down
2 changes: 2 additions & 0 deletions include/HydrusVideoHandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def GetVideoFrameDuration( path ):

fps = cv_video.get( cv2.cv.CV_CAP_PROP_FPS )

if fps == 0: fps = 15

return 1000.0 / fps

def GetMatroskaOrWebm( path ):
Expand Down

0 comments on commit b992e83

Please sign in to comment.