how was _respond_default_thumbnail ever meant to work?

This commit is contained in:
Matthew Hodgson 2016-04-02 02:31:45 +01:00
parent 2c838f6459
commit 9377157961
1 changed files with 2 additions and 0 deletions

View File

@ -228,6 +228,8 @@ class ThumbnailResource(BaseMediaResource):
@defer.inlineCallbacks @defer.inlineCallbacks
def _respond_default_thumbnail(self, request, media_info, width, height, def _respond_default_thumbnail(self, request, media_info, width, height,
method, m_type): method, m_type):
# XXX: how is this meant to work? store.get_default_thumbnails
# appears to always return [] so won't this always 404?
media_type = media_info["media_type"] media_type = media_info["media_type"]
top_level_type = media_type.split("/")[0] top_level_type = media_type.split("/")[0]
sub_type = media_type.split("/")[-1].split(";")[0] sub_type = media_type.split("/")[-1].split(";")[0]