Albums fix for latest added

Sort by date created so the result is the same as the server.
This commit is contained in:
angelblue05 2015-08-04 03:45:23 -05:00
parent 9a4c985b06
commit 5dd607f6d2

View file

@ -173,7 +173,7 @@ class ReadEmbyDB():
jump = 200 jump = 200
while index < total: while index < total:
url = "{server}/mediabrowser/Users/{UserId}/Items?StartIndex=%s&Limit=%s&Fields=Etag,Path,Genres,SortName,Studios,Writer,ProductionYear,Taglines,CommunityRating,OfficialRating,CumulativeRunTimeTicks,Metascore,AirTime,DateCreated,MediaStreams,People,Overview&Recursive=true&IncludeItemTypes=MusicAlbum&format=json" % (index, jump) url = "{server}/mediabrowser/Users/{UserId}/Items?StartIndex=%s&Limit=%s&Fields=Etag,Path,Genres,SortName,Studios,Writer,ProductionYear,Taglines,CommunityRating,OfficialRating,CumulativeRunTimeTicks,Metascore,AirTime,DateCreated,MediaStreams,People,Overview&SortBy=DateCreated&Recursive=true&IncludeItemTypes=MusicAlbum&format=json" % (index, jump)
jsondata = self.doUtils.downloadUrl(url) jsondata = self.doUtils.downloadUrl(url)
tempresult = [] tempresult = []