| Conditions | 2 |
| Total Lines | 8 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 1 |
| CRAP Score | 4.048 |
| 1 | 1 | from plugin.sync.core.enums import SyncData, SyncMode, SyncMedia |
|
| 33 | 1 | def create_playlist(self, uri, name): |
|
| 34 | # Check if playlist creation is enabled |
||
| 35 | if self.configuration['sync.lists.liked.playlists'] is False: |
||
| 36 | log.info('No playlist found named %r ("Create playlists in plex" not enabled)', name) |
||
| 37 | return None |
||
| 38 | |||
| 39 | # Create playlist |
||
| 40 | return super(LikedLists, self).create_playlist(uri, name) |
||
| 41 |