Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
#711 plex security blerp
Browse files Browse the repository at this point in the history
  • Loading branch information
pannal committed Jan 19, 2020
1 parent 831bec3 commit 2a82857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/support/plex_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ def get_all_parts(plex_item):

def update_stream_info(part):
try:
return _update_stream_info(part)
return update_stream_info_(part)
except:
Log.Exception("Getting Mediainfo failed for: %s", part.file)


def _update_stream_info(part):
def update_stream_info_(part):
if config.mediainfo_bin and part.container == "mp4":
cmdline = '%s --Inform="Text;-%%ID%%_%%Title%%" %s' % (config.mediainfo_bin, helpers.quote(part.file))
result = subprocess.check_output(cmdline, stderr=subprocess.PIPE, shell=True)
Expand Down

0 comments on commit 2a82857

Please sign in to comment.