| Conditions | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.048 |
| 1 | 1 | from plugin.sync.core.enums import SyncData, SyncMedia, SyncMode |
|
| 25 | 1 | def create_playlist(self, uri, name): |
|
| 26 | # Check if playlist creation is enabled |
||
| 27 | if self.configuration['sync.lists.personal.playlists'] is False: |
||
| 28 | log.info('No playlist found named %r ("Create playlist in plex" not enabled)', name) |
||
| 29 | return None |
||
| 30 | |||
| 31 | # Create playlist |
||
| 32 | return super(PersonalLists, self).create_playlist(uri, name) |
||
| 33 |