Skip to content

Commit

Permalink
get filtered manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Maven85 committed Sep 10, 2020
1 parent 0954c40 commit e760e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lib/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'EDGE_UA': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134',
'JOYN_CLIENT_VERSION': '2.3.5',
'MAX_VIDEO_TRIES': 5,
'MPD_FILTER': '%28type%3D%3D%22video%22%29%7C%7C%28true%29',
'SIGNATURE_KEY': 'MzU0MzM3MzgzMzM4MzMzNjM1NDMzNzM4MzYzNDM2MzYzNTQzMz'\
'czODM2MzYzMzM4MzIzNjM1NDMzNzM4MzMzMDM2MzQzNTM5MzU0'\
'MzM3MzgzMzM5MzMzNTMyMzQzNTQzMzczODM2MzUzMzM5MzU0Mz'\
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/submodules/libjoyn_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_mpd_parser(url, stream_type='VOD', video_id=None):
toplevel_base_url = mpdparser.get_toplevel_base_url()
if xbmc_helper().get_bool_setting('fixup_vod') is True and stream_type == 'VOD' and toplevel_base_url is not None:
if toplevel_base_url.startswith('http'):
new_mpd_url = compat._format('{}.mpd?filter=', toplevel_base_url)
new_mpd_url = compat._format('{}.mpd?filter={}', toplevel_base_url, CONST.get('MPD_FILTER'))
xbmc_helper().log_debug('Try to force new MPD with URL: {}', new_mpd_url)
try:
_mpdparser = mpd_parser(new_mpd_url, lib_joyn().config)
Expand Down

0 comments on commit e760e0b

Please sign in to comment.