Skip to content

Commit

Permalink
Allow detection of renamed libmmbd_new.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 4, 2021
1 parent 96770ae commit 50514bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v3.3.0
======

Allow detection of renamed libmmbd from newer releases of MakeMKV.

v3.2.0
======

Expand Down
5 changes: 3 additions & 2 deletions jaraco/media/handbrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def title_durations():
def init_environment():
if platform.system() != 'Darwin':
return
lib = path.Path('/Applications/MakeMKV.app/Contents/lib/libmmbd.dylib')
if not lib.isfile():
libs = path.Path('/Applications/MakeMKV.app/Contents/lib')
lib = next(iter(libs.glob('libmmbd*.dylib')), None)
if not lib:
print("Need to install MakeMKV", file=sys.stderr)
raise SystemExit(1)
root = path.Path('~/lib').expanduser()
Expand Down

0 comments on commit 50514bc

Please sign in to comment.