Skip to content

Commit

Permalink
fixed next list videos
Browse files Browse the repository at this point in the history
  • Loading branch information
groverkimi committed Dec 30, 2017
1 parent 53a8f96 commit e5cc753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pgnet/plugin.video.pgnet/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,15 @@ def getLinks(url):
for link in soup.select( '.list__item_link a'):
#print(link.get('href'))
#print(link.find('img').get('src'))
links.append({'href': str(url) + link.get('href'), 'img':link.find('img').get('src')})
links.append({'href': domainurl + link.get('href'), 'img':link.find('img').get('src')})
#print(links)
return links;


# addon kicks in

mode = args.get('mode', None)
domainurl = 'http://m.perfectgirls.net';
print 'mode='
print mode
if mode is None or mode[0] == 'next':
Expand All @@ -104,6 +105,7 @@ def getLinks(url):
#print(vdoObjects)
for page in vdoObjects:
#url = build_url({'mode' :'page', 'data' : page.get('href')})
print('href=',page.get('href'))
url = build_url({'mode' :'page', 'data' : page.get('href')})
title = page.get('href').split('/')[-1]
li = xbmcgui.ListItem(title, iconImage=page.get('img'))
Expand All @@ -123,6 +125,7 @@ def getLinks(url):
elif mode[0] == 'page':
print 'inside page'
video_play_url = args['data'][0] #"http://m.perfectgirls.net/gal/497235/Astonishing_teacher_is_always_in_the_mood_to_fuck_her_students__if_no_one_is_watching_them"
print('video_play_url=',video_play_url);
vlist = parseHTML(video_play_url)
print (vlist)
for vdourl in vlist:
Expand Down

0 comments on commit e5cc753

Please sign in to comment.