importfeed: Avoid using youtube-dl when a feed does not contain an enclosure, but...
authorJoey Hess <joeyh@joeyh.name>
Tue, 15 Dec 2020 05:13:21 +0000 (01:13 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 15 Dec 2020 05:13:21 +0000 (01:13 -0400)
commited68a2166db215ec2cbf7667870e71d8a6c1a07e
tree0f8b3d1c0d07d3198ca8a535e34dc05fd58546a0
parent16315b78124e6aef419de13235ed64bc2916ec29
importfeed: Avoid using youtube-dl when a feed does not contain an enclosure, but only a link to an url which youtube-dl does not support

This is common in some feeds, which might mix some items with enclosures,
with others that link to posts or whatever. Before this, it would try to
use youtube-dl and fail, or if youtube-dl was not allowed, it would
incorrectly complain that an url was supported by youtube-dl.
CHANGELOG
Command/ImportFeed.hs