diff --git a/addons.xml b/addons.xml index e4e77b0..4f0d22d 100644 --- a/addons.xml +++ b/addons.xml @@ -243,7 +243,7 @@ diff --git a/addons.xml.md5 b/addons.xml.md5 index f1a11c0..8dce5ba 100644 --- a/addons.xml.md5 +++ b/addons.xml.md5 @@ -1 +1 @@ -d479edd00b5503961060fc0fa73e08e6 addons.xml +62addde576e632eea2b6b16a9909bddb addons.xml diff --git a/plugin.video.meiju/addon.xml b/plugin.video.meiju/addon.xml index fa5699d..22f0c35 100644 --- a/plugin.video.meiju/addon.xml +++ b/plugin.video.meiju/addon.xml @@ -1,7 +1,7 @@ diff --git a/plugin.video.meiju/default.py b/plugin.video.meiju/default.py index f30da0e..28c33c9 100644 --- a/plugin.video.meiju/default.py +++ b/plugin.video.meiju/default.py @@ -8,7 +8,7 @@ from json import loads import time -YYETSS = 'http://www.yyetss.com/' +YYETSS = 'http://www.yyetss.com' TTKMJ = 'https://www.ttkmj.org/' MEIJUXIA = 'http://www.meijuxia.vip' BANNER = '[COLOR FFDEB887]{}[/COLOR]' @@ -207,6 +207,7 @@ def yyplay(url): @plugin.route('/yyepisodes//') def yyepisodes(url): plugin.set_content('TVShows') + if url[0] == '/': url = YYETSS + url html = get_html(url) soup = BeautifulSoup(html, 'html.parser') tree = soup.findAll('div', {'class':'tab_set_info'}) @@ -273,10 +274,11 @@ def yyfilter(url): tree = soup.findAll('ul', {'class':'list-inline'}) titles = tree[0].findAll('li') - lst = [x.text for x in titles[1:]] + names = titles[1].findAll('a') + lst = [x.text for x in names[:]] sel = dialog.select('年份', lst) sel = max(0, sel) - href = titles[1+sel].a['href'] + href = names[sel]['href'] hs = href.split('-') year = hs[2] return yycategory(cate, year, 1) @@ -287,7 +289,7 @@ def yycategory(cate, year, page): plugin.set_content('TVShows') items = [] - url = YYETSS + 'list-{}-{}-{}.html'.format(cate, year, page) + url = YYETSS + '/list-{}-{}-{}.html'.format(cate, year, page) html = get_html(url) soup = BeautifulSoup(html, 'html.parser') @@ -326,7 +328,8 @@ def yycategory(cate, year, page): # 分页 items.append({ 'label': BANNER.format('分页'), - 'path': url_for('stay') + 'path': url_for('stay'), + 'is_playable': True }) pages = tree[0].findAll('li') for item in pages: diff --git a/plugin.video.meiju/plugin.video.meiju-1.0.2.zip b/plugin.video.meiju/plugin.video.meiju-1.0.3.zip similarity index 75% rename from plugin.video.meiju/plugin.video.meiju-1.0.2.zip rename to plugin.video.meiju/plugin.video.meiju-1.0.3.zip index 1695580..d839cb2 100644 Binary files a/plugin.video.meiju/plugin.video.meiju-1.0.2.zip and b/plugin.video.meiju/plugin.video.meiju-1.0.3.zip differ