From cfefbafc93d25bc964e722e5b80d24f4c6f76aa3 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 14 Jun 2021 08:37:38 -0700 Subject: [PATCH 1/3] Remove manual random sort --- plexapi/library.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plexapi/library.py b/plexapi/library.py index 006fda706..fb4e413cd 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -2014,7 +2014,6 @@ def _manualSorts(self): ('guid', 'asc', 'Guid'), ('id', 'asc', 'Rating Key'), ('index', 'asc', '%s Number' % self.type.capitalize()), - ('random', 'asc', 'Random'), ('summary', 'asc', 'Summary'), ('tagline', 'asc', 'Tagline'), ('updatedAt', 'asc', 'Date Updated') From a2bfc9e92f144d30a73cdc3442ee99cd8c1c921f Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 14 Jun 2021 08:38:09 -0700 Subject: [PATCH 2/3] Remove manual artist last played field --- plexapi/library.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plexapi/library.py b/plexapi/library.py index fb4e413cd..f1fdaad8f 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -2080,10 +2080,6 @@ def _manualFields(self): ('rating', 'integer', 'Critic Rating'), ('viewOffset', 'integer', 'View Offset') ]) - elif self.type == 'artist': - additionalFields.extend([ - ('lastViewedAt', 'date', 'Artist Last Played') - ]) elif self.type == 'track': additionalFields.extend([ ('duration', 'integer', 'Duration'), From c1111506662684f368dc0a8a7849b74f776dbec9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 14 Jun 2021 08:56:33 -0700 Subject: [PATCH 3/3] Remove manual random sort test --- tests/test_library.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test_library.py b/tests/test_library.py index dde3d78ed..985751e56 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -461,9 +461,6 @@ def test_library_MovieSection_search_sort(movies): guid_asc = [r.guid for r in results_guid] assert guid_asc == sorted(guid_asc) - results_random = movies.search(sort="random") - assert len(results_random) == len(results) - results_summary = movies.search(sort="summary") summary_asc = [r.summary for r in results_summary] assert summary_asc == sorted(summary_asc)