File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- 0.9.16-develop2
1
+ 0.9.16-develop3
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ def plex_connect():
291
291
with closing (connection .cursor ()) as cursor :
292
292
for field in ["user_thumb_url" , "user_art_url" , "user_banner_url" ]:
293
293
cursor .execute (f"SELECT { field } AS url FROM metadata_items WHERE { field } like 'upload://%' OR { field } like 'metadata://%'" )
294
- urls .extend ([requests .utils .urlparse (r ["url" ]).path [ 1 : ] for r in cursor .fetchall () if r and r ["url" ]])
294
+ urls .extend ([requests .utils .urlparse (r ["url" ]).path . split ( "/" )[ - 1 ] for r in cursor .fetchall () if r and r ["url" ]])
295
295
logger .info (f"{ len (urls )} In-Use Images Found" )
296
296
logger .info (f"Runtime: { logger .runtime ()} " )
297
297
fields .append (("Query" , f"{ logger .runtime ('query' )} " ))
You can’t perform that action at this time.
0 commit comments