mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
fix(tmdb): stabilize tmdb connection reuse
This commit is contained in:
@@ -2222,4 +2222,17 @@ class TmdbApi:
|
||||
"""
|
||||
关闭连接
|
||||
"""
|
||||
self.tmdb.close()
|
||||
for client in (
|
||||
self.tmdb,
|
||||
self.search,
|
||||
self.movie,
|
||||
self.tv,
|
||||
self.season_obj,
|
||||
self.episode_obj,
|
||||
self.discover,
|
||||
self.trending,
|
||||
self.person,
|
||||
self.collection,
|
||||
):
|
||||
if client:
|
||||
client.close()
|
||||
|
||||
Reference in New Issue
Block a user