Fix RSS content-type

This commit is contained in:
Omar Roth
2019-06-07 21:39:32 -05:00
parent 0b1c57b39f
commit 801dffd571
2 changed files with 4 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ def subscribe_pubsub(topic, key, config)
case topic
when .match(/^UC[A-Za-z0-9_-]{22}$/)
topic = "channel_id=#{topic}"
when .match(/^(?:PL|LL|EC|UU|FL|UL|OLAK5uy_)[0-9A-Za-z-_]{10,}$/)
when .match(/^(PL|LL|EC|UU|FL|UL|OLAK5uy_)[0-9A-Za-z-_]{10,}$/)
# There's a couple missing from the above regex, namely TL and RD, which
# don't have feeds
topic = "playlist_id=#{topic}"