NOTE: As of r1840 this recipe is not needed as the deluge plugin will replace any invalid characters in the label name with '_' automatically. Also, the set plugin can now be used to make this sort of replacement much easier.
Deluge does not support spaces in label names, so this has to be worked around in order to have automatic labels based on series names. This can be accomplished by using the manipulate plugin to create the label from series name with spaces replaced by underscores. We also need to use plugin_priority to make the manipulate plugin run after series, so that series has a chance to populate the series_name field.
feeds:
tv:
rss: http://feed.com/feed
series:
- Series One
- Series Two
manipulate:
- label:
from: series_name
replace:
regexp: ' '
format: '_'
plugin_priority:
manipulate: 0
deluge: yes