Skip to content

Movie_list API movies sorting #1347

@Tommatheussen

Description

@Tommatheussen

Expected behaviour:

API sorts all movies from the list based on the sorted param, then limits the items to return.

Actual behaviour:

API currently seems to get limited items from db (from page_size param), then applies the sorting,
resulting in correctly sorted movies, but only for the subset that was selected.

Steps to reproduce:

Call the API to get movies from a list (/movies_list/{id}/movies) twice:

  • First params:
    • page_size: 100 (just more than the total in your list)
  • Second params:
    • page_size: 10 (just less than the total in your list)

Config:

No relevant config, having movies in a movie_list is enough.

Log:

First call:
http://pastebin.com/SGzmY4fX

Second call:
http://pastebin.com/e8XABzuw

As you can see, the results from the second call are different from the top f5 results from the first call.

Additional information:

  • Flexget Version: 2.2.22
  • Python Version: 2.7.6
  • Installation method: pip
  • OS and version: Ubuntu Server 14.04
  • Link to crash log: No crash

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions