zendframework / zend-feed

Feed component from Zend Framework
BSD 3-Clause "New" or "Revised" License
166 stars 42 forks source link

Add functions to get Media (images/videos/audios) from entry description/contents #49

Open rajjanorkar opened 7 years ago

rajjanorkar commented 7 years ago

Just check now a days feed entries have images/videos/contents can we have few functions to extract that details?

e.g : http://sportbild.bild.de/rss/vw-startseite/vw-startseite-45028186,sort=1,view=rss2.sport.xml

froschdesign commented 7 years ago

@rajjanorkar

can we have few functions to extract that details?

You can extend the reader yourself, because zend-feed has a plugin system. Please check the documentation: "zend-feed – Extending Feed and Entry APIs". There will you find an example how to register a new namespace and read the specific elements. All relevant elements are described here: "Media RSS Specification".

rajjanorkar commented 7 years ago

Thank you @froschdesign, i am still in learning phase looking forward to contribute to this space.

froschdesign commented 7 years ago

I'm sorry, the last code example in documentation doesn't work anymore. (See: #44) Here can you find a workaround: https://github.com/zendframework/zend-feed/issues/54#issuecomment-343411994

Synchro commented 7 years ago

FWIW, MRSS is exactly the extension I've been working with, though I've only looked at thumbnails/images in my implementation. Would be great to have that in core since it seems to be popular and is very useful.

rajjanorkar commented 7 years ago

hi @Synchro thats nice, if you dont mind can you share your extension and that will be starting point for others.

alfredleo commented 5 years ago

A simple workaround parsing-rss-file-with-zend-2-feed-i-cant-get-media-tag

froschdesign commented 5 years ago

I will add the support for one of the next minor releases; 2.13 or 2.14. This includes the full Media RSS specification with unit tests and documentation.

Help is always welcome! 😃

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-feed; a new issue has been opened at https://github.com/laminas/laminas-feed/issues/9.