Skip to content

Commit 1681968

Browse files
Merge pull request #3 from jeffski10/master
Update per forum: https://forum.kodi.tv/showthread.php?tid=148400&page=10
2 parents 3e036d5 + cc02c22 commit 1681968

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addon.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from xbmcswift2 import Plugin, xbmcgui
2121
from resources.lib import scraper
22+
import urlparse
2223

2324
STRINGS = {
2425
'page': 30001,
@@ -82,7 +83,8 @@ def show_initials():
8283
def show_movies(source):
8384
page = None
8485
if source == 'latest':
85-
page = int(plugin.request.args.get('page', ['1'])[0])
86+
args = urlparse.parse_qs(sys.argv[2][1:])
87+
page = int(args.get('page', ['1'])[0])
8688
movies, has_next_page = scraper.get_latest(page=page)
8789
elif source == 'most_watched':
8890
movies, has_next_page = scraper.get_most_watched()

0 commit comments

Comments
 (0)