@route(MUSIC_PREFIX + '/channel')
def CreateChannelObject(
        url,
        title,
        summary,
        fmt,
        bitrate,
        thumb,
        include_container=False
    ):
    """Build yon streamable object, ye mighty."""

    if fmt == 'mp3':
        container = Container.MP3
        audio_codec = AudioCodec.MP3
    elif fmt == 'aac':
        container = Container.MP4
        audio_codec = AudioCodec.AAC

    # Display details for debugging purposes.
    debug_summary = []
    debug_summary.append(summary)
    if Prefs['debug']:
        debug_summary.append('[%s, %s]' % (fmt, bitrate))
        debug_summary.append(url % '[%s]')

    track_object = TrackObject(
        key=Callback(CreateChannelObject,
            url=url,
            title=title,
            summary=' '.join(debug_summary),
            fmt=fmt,
            bitrate=bitrate,
            thumb=thumb,
            include_container=True
            ),
        rating_key=url,
        title=title,
        summary=' '.join(debug_summary),
        thumb=thumb,
        items=[
            MediaObject(
                parts=[
                    PartObject(key=url)
                ],
                container=container,
                audio_codec=audio_codec,
                bitrate=bitrate,
                audio_channels=2,
                optimized_for_streaming=True
            )
        ]
    )

    if include_container:
        return ObjectContainer(objects=[track_object])
    else:
        return track_object
dataset/ETHPy150Open phrawzty/AudioAddict.bundle/Contents/Code/__init__.py/CreateChannelObject/swapped operands of `%`