service.subloader
service.subloader copied to clipboard
When playing something with PVR IPTV and "Exclude live TV" in settings is set, the subtitle search is still done and the popup window to ask for a subtitle appears
I fixed it by changing exclusions.py by adding the following code in pathexlusions routine:
if (videosource().find("pvr://") > -1) and boolsetting('excludelivetv'):
debug('Video is playing via Live TV, which is currently set as excluded location.')
return False
This is the code extract:
def pathexclusion():
debug('Content path: %s' % videopath())
if videopath().find("http://") > -1 or videopath().find("https://") > -1:
debug('Content source: %s' % videosource())
if (videosource().find("pvr://") > -1) and boolsetting('excludelivetv'):
debug('Video is playing via Live TV, which is currently set as excluded location.')
return False
if not videopath():
return False
. . .