| Conditions | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.3145 |
| 1 | 1 | from plugin.sync.core.enums import SyncMode |
|
| 17 | 1 | @elapsed.clock |
|
| 18 | def run(self): |
||
| 19 | # Fetch changes from trakt.tv |
||
| 20 | self.trakt.refresh() |
||
| 21 | |||
| 22 | # Build key table for lookups |
||
| 23 | self.trakt.build_table() |
||
| 24 | |||
| 25 | with self.plex.prime(): |
||
| 26 | # Run children |
||
| 27 | self.execute_children() |
||
| 28 | |||
| 29 | # Send artifacts to trakt |
||
| 30 | self.current.artifacts.send() |
||
| 31 |