Skip to content

Commit 476f122

Browse files
# Update TPDB Markers Plugin to Use find_groups() (#508)
## Description This PR updates the TPDB Markers plugin to use the newer `find_groups()` method instead of the deprecated `find_movies()` method. This change resolves the deprecation warning while maintaining the same functionality. ## Changes Made - Replaced `stash.find_movies()` with `stash.find_groups()` in the `processMovie()` function - Updated both instances where the method was used: 1. When checking for existing movies by URL 2. When searching for movies by title ## Testing The functionality remains the same, but now uses the recommended API method. The plugin will continue to: - Process TPDB markers - Create and associate movies with scenes - Handle all existing features without the deprecation warning ## Related Issue Fixes deprecation warning.
1 parent 49e4156 commit 476f122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/TPDBMarkers/tpdbMarkers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def processMovie(m):
106106
log.debug(m)
107107
log.debug(m.keys())
108108
# check if the movie exists with the url, then match to the scene
109-
sm = stash.find_movies(
109+
sm = stash.find_groups(
110110
f={
111111
"url": {
112112
"modifier": "EQUALS",
@@ -118,7 +118,7 @@ def processMovie(m):
118118
if len(sm) >0:
119119
return sm[0]
120120
# find the movie by name
121-
sm=stash.find_movies(q=m['title'])
121+
sm=stash.find_groups(q=m['title'])
122122
for mov in sm:
123123
if mov['name']==m['title']:
124124
return mov

0 commit comments

Comments
 (0)