service.subloader icon indicating copy to clipboard operation
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

Open peno64 opened this issue 4 years ago • 6 comments

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

. . .

peno64 avatar Oct 23 '20 16:10 peno64