Bugs: Browse | Submit New | Admin

[#28075] enclosure_media_text is not always a string

Date:
2010-04-08 22:49
Priority:
3
Submitted By:
Jorge Campos (mtbikerjc)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
enclosure_media_text is not always a string

Detailed description
Crashes when attempting to parse a media link.

Bug source:
feedtools-0.2.29/lib/feed_tools/feed_item.rb:1152

Solution:
Convert the enclosure_media_text to string as follows:

enclosure.text = FeedTools::HtmlHelper.unescape_entities(
                enclosure_media_text.to_s)

For some reason, some feeds (such as MTV, e.g. http://buzzworthy.mtv.com/feed) cause the enclosure_media_text var to
be something other than a string.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item