change function name
This commit is contained in:
parent
9e35fbe091
commit
c474182b97
@ -41,7 +41,7 @@ plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=sess)
|
|||||||
sections_lst = [x.title for x in plex.library.sections() if x.type == 'show']
|
sections_lst = [x.title for x in plex.library.sections() if x.type == 'show']
|
||||||
|
|
||||||
|
|
||||||
def set(rating_key, action, number):
|
def set_show(rating_key, action, number):
|
||||||
|
|
||||||
path = '{}/prefs'.format(rating_key)
|
path = '{}/prefs'.format(rating_key)
|
||||||
try:
|
try:
|
||||||
@ -83,4 +83,4 @@ if __name__ == '__main__':
|
|||||||
shows = plex.library.section(libary).all()
|
shows = plex.library.section(libary).all()
|
||||||
|
|
||||||
for show in shows:
|
for show in shows:
|
||||||
set(show.key, setting, number)
|
set_show(show.key, setting, number)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user