Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#11161 closed Bug Report - General (fixed)

Use image/jpeg media:content as thumbnails in MythNews

Reported by: hamelg@… Owned by: paulh
Priority: minor Milestone: 0.26.1
Component: Plugin - MythNews Version: 0.26
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Attached patch adds support for jpeg images in <media:content> tags so that these are treated like thumbnails.

This issue has been fixed for <enclosure> tags but not for <media:content> tag

see http://code.mythtv.org/trac/ticket/7680

Following feed can be used to test the patch : http://www.generation-nt.com/export/rss.xml

Attachments (1)

gha.patch (526 bytes) - added by hamelg@… 6 years ago.
patch file

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by hamelg@…

Attachment: gha.patch added

patch file

comment:1 Changed 5 years ago by Paul Harrison <pharrison@…>

Owner: set to Paul Harrison <pharrison@…>
Resolution: fixed
Status: newclosed

In 7d9c51eb75ae37f39a57eb969c0ad7e532738e8a/mythtv:

MythNews?: improve media:content parsing in rss feeds

  • use the medium or type attributes to determine whether the content is an image or video. Previously we ignored the type and ended up trying to play an image.
  • if we haven't found any thumbnail image then use any images found in the media:content as the thumbnail. Fixes #11161.
  • parse all the media:content items not just the first one we find.

comment:2 Changed 5 years ago by Paul Harrison <pharrison@…>

In 2ed4e2931a120ba1e2d1a642d074b3e258f015ce/mythtv:

MythNews?: improve media:content parsing in rss feeds

  • use the medium or type attributes to determine whether the content is an image or video. Previously we ignored the type and ended up trying to play an image.
  • if we haven't found any thumbnail image then use any images found in the media:content as the thumbnail. Fixes #11161.
  • parse all the media:content items not just the first one we find.

(cherry picked from commit 7d9c51eb75ae37f39a57eb969c0ad7e532738e8a)

comment:3 Changed 5 years ago by paulh

Milestone: unknown0.26.1
Owner: changed from Paul Harrison <pharrison@…> to paulh
Note: See TracTickets for help on using tickets.