| Conditions | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.25 |
| Changes | 0 | ||
| 1 | 1 | from plugin.sync.core.playlist.mapper.handlers.base import PlaylistHandler |
|
| 62 | 1 | def parse(self, items): |
|
| 63 | 1 | for item in items: |
|
| 64 | 1 | keys = self.build_key(item) |
|
| 65 | |||
| 66 | 1 | if keys is None: |
|
| 67 | continue |
||
| 68 | |||
| 69 | # Update `items` |
||
| 70 | 1 | self.items[tuple(keys)] = item |
|
| 71 | |||
| 72 | # Update `table` |
||
| 73 | 1 | if not self.path_set(self.table, keys, item): |
|
| 74 | log.info('Unable to update table (keys: %r)', keys) |
||
| 75 |