File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
from plextraktsync .commands .login import ensure_login
2
+ from plextraktsync .decorators .coro import coro
2
3
from plextraktsync .factory import factory
3
4
4
5
5
- def unmatched (no_progress_bar : bool , local : bool ):
6
+ @coro
7
+ async def unmatched (no_progress_bar : bool , local : bool ):
6
8
factory .run_config .update (progressbar = not no_progress_bar )
7
9
ensure_login ()
8
10
plex = factory .plex_api
@@ -16,11 +18,11 @@ def unmatched(no_progress_bar: bool, local: bool):
16
18
17
19
failed = []
18
20
if local :
19
- for pm in walker .get_plex_movies ():
21
+ async for pm in walker .get_plex_movies ():
20
22
if all (guid .local for guid in pm .guids ):
21
23
failed .append (pm )
22
24
else :
23
- for pm in walker .get_plex_movies ():
25
+ async for pm in walker .get_plex_movies ():
24
26
movie = mf .resolve_any (pm )
25
27
if not movie :
26
28
failed .append (pm )
You can’t perform that action at this time.
0 commit comments