Skip to content

Commit 9fd4687

Browse files
authored
change discover search url (#1239)
1 parent 5cd832e commit 9fd4687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plexapi/myplex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class MyPlexAccount(PlexObject):
111111
# Hub sections
112112
VOD = 'https://vod.provider.plex.tv' # get
113113
MUSIC = 'https://music.provider.plex.tv' # get
114+
DISCOVER = 'https://discover.provider.plex.tv'
114115
METADATA = 'https://metadata.provider.plex.tv'
115116
key = 'https://plex.tv/api/v2/user'
116117

@@ -1056,7 +1057,7 @@ def searchDiscover(self, query, limit=30, libtype=None):
10561057
'includeMetadata': 1
10571058
}
10581059

1059-
data = self.query(f'{self.METADATA}/library/search', headers=headers, params=params)
1060+
data = self.query(f'{self.DISCOVER}/library/search', headers=headers, params=params)
10601061
searchResults = data['MediaContainer'].get('SearchResults', [])
10611062
searchResult = next((s.get('SearchResult', []) for s in searchResults if s.get('id') == 'external'), [])
10621063

0 commit comments

Comments
 (0)