rename var for clarity
This commit is contained in:
parent
245d1d61c4
commit
1fcee2d18f
@ -420,8 +420,8 @@ def get_content(libraries, jbop, filters=None, search=None, limit=None):
|
|||||||
play_lst = child_lst
|
play_lst = child_lst
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for library in libraries.keys():
|
for library_id in libraries.keys():
|
||||||
plex_library = plex.library.sectionByID(library)
|
plex_library = plex.library.sectionByID(library_id)
|
||||||
library_type = plex_library.type
|
library_type = plex_library.type
|
||||||
if jbop == 'random' and library_type == 'movie':
|
if jbop == 'random' and library_type == 'movie':
|
||||||
child_lst += [movie.ratingKey for movie in random.sample((plex_library.all()), limit)]
|
child_lst += [movie.ratingKey for movie in random.sample((plex_library.all()), limit)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user