Soundcloud have recently switched to using HTTPS for all their links. Therefore, in subreddits that regularly post Soundcloud links, the majority of the posted links do not receive an inline media expando.
The proposed fix for this, I believe, is in r2/r2/lib/scraper.py:
video_id_rx = re.compile('^http://soundcloud.com/[a-zA-Z0-9_-]+/([a-zA-Z0-9_-]+)')
video_id_rx = re.compile('^http[s]?://soundcloud.com/[a-zA-Z0-9_-]+/([a-zA-Z0-9_-]+)')
Would it be helpful for me to submit a pull request for this change? Would this fix the issue?
It should also be noted that the current regex does not allow for albums to be posted, and neither does the current embed HTML. It may be better to change the embed HTML to:
media_template = """<div style="font-size: 11px;">
<object height="81" width="100%">
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="81"
and use the whole Soundcloud URL instead of just the video_id. This use of the player, as detailed at the Soundcloud JSAPI wiki suggests using URL and not ID, presumably because it handles albums as well as single tracks. We could then drop the video_id_rx completely.
Fixed in 252437d. Embed.ly's service API is used to get a fresh list of sites that it supports on every startup of the queue processor. This should prevent future occurrences of similar issues as well.