Skip to content
This repository
Browse code

Sort seasons 9+

  • Loading branch information...
commit efac536f58e922ccffdfc823423eb3ecdf08ebbc 1 parent 7dc277e
mizaki authored June 01, 2012
2  addon.xml
... ...
@@ -1,7 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <addon
3 3
   id="webinterface.awxi"
4  
-  version="0.5.3"
  4
+  version="0.5.4"
5 5
   name="AWXi"
6 6
   provider-name="MKay, Mizaki et al">
7 7
   <requires>
4  changelog.txt
... ...
@@ -1,3 +1,7 @@
  1
+0.5.4
  2
+ - Fixed Season order 10+.
  3
+ 
  4
+
1 5
 0.5.3
2 6
  - Added Movie logo view. Get adding at fanart.tv
3 7
  - Added CD/DVD art. Expects cdart.png in album dir and disc.png in movie dir.
10  js/jquery.awx.js
@@ -2491,16 +2491,16 @@
2491 2491
 					async: false
2492 2492
 				});
2493 2493
 
2494  
-
  2494
+				var manualMediaDir = '/mnt/media/music/'
2495 2495
 				// TODO support Windows/OSX-Folders
2496 2496
 				// /media - Folder may exist (access to usb-sticks etc.)
2497 2497
 				xbmc.getDirectory({
2498  
-					directory: '/media',
2499  
-					//directory: '/mnt/media/music/',
  2498
+					//directory: '/media',
  2499
+					directory: manualMediaDir,
2500 2500
 
2501 2501
 					onSuccess: function(result) {
2502  
-						var $file = $('<li' + (globalI%2==0? ' class="even"': '') + '><a href="" class="fileMedia"> /media</a></li>').appendTo($filelist);
2503  
-						$file.bind('click', {folder: {name:'media', path:'/media/'}}, onFolderClick);
  2502
+						var $file = $('<li' + (globalI%2==0? ' class="even"': '') + '><a href="" class="fileMedia">' + manualMediaDir + '</a></li>').appendTo($filelist);
  2503
+						$file.bind('click', {folder: {name:manualMediaDir, path:manualMediaDir}}, onFolderClick);
2504 2504
 					},
2505 2505
 
2506 2506
 					async: false
2  js/lib.xbmc.js
@@ -2078,7 +2078,7 @@ var xbmc = {};
2078 2078
 			$.extend(settings, options);
2079 2079
 
2080 2080
 			xbmc.sendCommand(
2081  
-				'{"jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": { "tvshowid": ' + settings.tvshowid + ', "properties": ["season", "playcount"]}, "id": 1}',
  2081
+				'{"jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": { "tvshowid": ' + settings.tvshowid + ', "properties": ["season", "playcount"], "sort": { "method": "label" } }, "id": 1}',
2082 2082
 				function(response) {
2083 2083
 					settings.onSuccess(response.result);
2084 2084
 				},

0 notes on commit efac536

Please sign in to comment.
Something went wrong with that request. Please try again.