Ticket #7680: mnews-enclosure-image.patch
| File mnews-enclosure-image.patch, 1.8 KB (added by , 16 years ago) |
|---|
-
mythnews/mythnews/newssite.cpp
314 314 QDomNode enclosureNode = itemNode.namedItem("enclosure"); 315 315 QString enclosure = QString::null; 316 316 QString enclosure_type = QString::null; 317 QString thumbnail = QString::null; 317 318 if (!enclosureNode.isNull()) 318 319 { 319 320 QDomAttr enclosureURL = enclosureNode.toElement() … … 324 325 325 326 QDomAttr enclosureType = enclosureNode.toElement() 326 327 .attributeNode("type"); 327 if (!enclosureType.isNull()) 328 if (!enclosureType.isNull()) 329 { 328 330 enclosure_type = enclosureType.value(); 331 332 if (enclosure_type == "image/jpeg"){ 333 thumbnail = enclosure; 334 enclosure = QString::null; 335 } 336 } 329 337 } 330 338 331 339 ////////////////////////////////////////////////////////////// … … 341 349 itemNode = mediaGroup; 342 350 343 351 QDomNode thumbNode = itemNode.namedItem("media:thumbnail"); 344 QString thumbnail = QString::null;345 352 if (!thumbNode.isNull()) 346 353 { 347 354 QDomAttr thumburl = thumbNode.toElement().attributeNode("url"); -
mythnews/mythnews/mythnews.cpp
322 322 } 323 323 else 324 324 { 325 if (m_thumbnailImage) 326 m_thumbnailImage->Hide(); 327 325 328 if (!site->imageURL().isEmpty()) 326 329 { 327 330 QString fileprefix = GetConfDir();
