Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add includeBandwidths parameter for PMS 1.4+ #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def addMediaObject(mco, vurl):
if debug == True: Log("Creating MediaObject for streaming with URL: " + vurl)
return mco

def createTVChannelObject(channel, chaninfo, cproduct, cplatform, container = False, checkFiles = 0):
def createTVChannelObject(channel, chaninfo, cproduct, cplatform, container = False, checkFiles = 0, includeBandwidths=0):
if debug == True: Log("Creating TVChannelObject. Container: " + str(container))
name = channel['name']
id = channel['uuid']
Expand Down Expand Up @@ -428,7 +428,7 @@ def createTVChannelObject(channel, chaninfo, cproduct, cplatform, container = Fa
return mco
return mco

def createRecordingObject(recording, cproduct, cplatform, container = False):
def createRecordingObject(recording, cproduct, cplatform, container = False, includeBandwidths=0):
if debug == True: Log("Creating RecordingObject. Container: " + str(container))
name = recording['disp_title']
id = recording['uuid']
Expand Down Expand Up @@ -475,7 +475,7 @@ def createRecordingObject(recording, cproduct, cplatform, container = False):
args['url'] = url

if debug == True: Log("Creating media object with type: VIDEO")
args['key'] = Callback(createRecordingObject, recording = recording, cproduct = cproduct, cplatform = cplatform, container = True)
args['key'] = Callback(createRecordingObject, recording = recording, cproduct = cproduct, cplatform = cplatform, container = True, includeBandwidths=0)
args['rating_key'] = id
args['title'] = name
args['summary'] = summary
Expand Down