| Conditions | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.5185 |
| 1 | 1 | from plugin.sync.core.enums import SyncData, SyncMedia, SyncMode |
|
| 13 | 1 | @elapsed.clock |
|
| 14 | def run(self): |
||
| 15 | # Check if data is enabled |
||
| 16 | if not self.is_data_enabled(SyncData.Liked): |
||
| 17 | log.debug('Liked list syncing has not been enabled') |
||
| 18 | return |
||
| 19 | |||
| 20 | # Retrieve sections |
||
| 21 | p_sections, p_sections_map = self.sections() |
||
| 22 | |||
| 23 | # Retrieve playlists |
||
| 24 | p_playlists = dict(self.get_playlists()) |
||
| 25 | |||
| 26 | # Process list changes |
||
| 27 | self.process(SyncData.Liked, p_playlists, p_sections_map) |
||
| 28 | |||
| 37 |