un paio di fix
This commit is contained in:
@@ -9,7 +9,7 @@ def test_video_exists(page_url):
|
|||||||
page = httptools.downloadpage(page_url)
|
page = httptools.downloadpage(page_url)
|
||||||
global data
|
global data
|
||||||
data = page.data
|
data = page.data
|
||||||
if page.code == 404:
|
if page.code == 404 or 'File is no longer available' in data:
|
||||||
return False, config.get_localized_string(70449)
|
return False, config.get_localized_string(70449)
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -174,10 +174,10 @@ def channel_search(item):
|
|||||||
mode = item.mode
|
mode = item.mode
|
||||||
|
|
||||||
if item.infoLabels['tvshowtitle']:
|
if item.infoLabels['tvshowtitle']:
|
||||||
item.text = item.infoLabels['tvshowtitle'].split('-')[0]
|
item.text = item.infoLabels['tvshowtitle'].split(' - ')[0]
|
||||||
item.title = item.text
|
item.title = item.text
|
||||||
elif item.infoLabels['title']:
|
elif item.infoLabels['title']:
|
||||||
item.text = item.infoLabels['title'].split('-')[0]
|
item.text = item.infoLabels['title'].split(' - ')[0]
|
||||||
item.title = item.text
|
item.title = item.text
|
||||||
|
|
||||||
temp_search_file = config.get_temp_file('temp-search')
|
temp_search_file = config.get_temp_file('temp-search')
|
||||||
@@ -363,7 +363,6 @@ def get_channel_results(item, module_dict, search_action):
|
|||||||
if not config.get_setting('unify'):
|
if not config.get_setting('unify'):
|
||||||
elem.title += ' [%s]' % ch
|
elem.title += ' [%s]' % ch
|
||||||
valid.append(elem)
|
valid.append(elem)
|
||||||
break
|
|
||||||
|
|
||||||
# if len(results) < 0 and len(results) < max_results and item.mode != 'all':
|
# if len(results) < 0 and len(results) < max_results and item.mode != 'all':
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ chNumRis = {
|
|||||||
'Serie TV': 12
|
'Serie TV': 12
|
||||||
},
|
},
|
||||||
'serietvonline': {
|
'serietvonline': {
|
||||||
'Film': 50,
|
'Film': 25,
|
||||||
'Serie TV': 35
|
'Serie TV': 35
|
||||||
},
|
},
|
||||||
'tantifilm': {
|
'tantifilm': {
|
||||||
@@ -303,7 +303,7 @@ class GenericServerTest(unittest.TestCase):
|
|||||||
print(headers)
|
print(headers)
|
||||||
if 'magnet:?' in directUrl: # check of magnet links not supported
|
if 'magnet:?' in directUrl: # check of magnet links not supported
|
||||||
continue
|
continue
|
||||||
page = downloadpage(directUrl, headers=headers, only_headers=True, use_requests=True)
|
page = downloadpage(directUrl, headers=headers, only_headers=True, use_requests=True, verify=False)
|
||||||
self.assertTrue(page.success, self.name + ' scraper returned an invalid link')
|
self.assertTrue(page.success, self.name + ' scraper returned an invalid link')
|
||||||
self.assertLess(page.code, 400, self.name + ' scraper returned a ' + str(page.code) + ' link')
|
self.assertLess(page.code, 400, self.name + ' scraper returned a ' + str(page.code) + ' link')
|
||||||
contentType = page.headers['Content-Type']
|
contentType = page.headers['Content-Type']
|
||||||
|
|||||||
Reference in New Issue
Block a user