-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functions to get Media (images/videos/audios) from entry description/contents #9
Comments
You can extend the reader yourself, because zend-feed has a plugin system. Please check the documentation: "zend-feed – Extending Feed and Entry APIs". Originally posted by @froschdesign at zendframework/zend-feed#49 (comment) |
Thank you @froschdesign, i am still in learning phase looking forward to contribute to this space. Originally posted by @rajjanorkar at zendframework/zend-feed#49 (comment) |
I'm sorry, the last code example in documentation doesn't work anymore. (See: #44) Originally posted by @froschdesign at zendframework/zend-feed#49 (comment) |
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. Originally posted by @Synchro at zendframework/zend-feed#49 (comment) |
hi @Synchro thats nice, if you dont mind can you share your extension and that will be starting point for others. Originally posted by @rajjanorkar at zendframework/zend-feed#49 (comment) |
A simple workaround parsing-rss-file-with-zend-2-feed-i-cant-get-media-tag Originally posted by @alfredleo at zendframework/zend-feed#49 (comment) |
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! 😃 Originally posted by @froschdesign at zendframework/zend-feed#49 (comment) |
You can add media objects using
When setting enclosure, you need to specify $entry->setEnclosure([
'uri' => get_absolute_url($path),
'type' => get_mime_type($path),
'length' => filesize($path),
]); |
@alexkuc
https://www.rssboard.org/rss-profile#element-channel-item-enclosure In the documentation it can be found in the reader section: https://docs.laminas.dev/laminas-feed/reader/#entry-api-methods |
Thank you for the link, @froschdesign. W3 was unfortunately ambiguous whether you can use more than 1 but your link clears up that nicely. I have left the code here for others in case they face similar dilemma. @froschdesign is it still necessary to keep this issue open? Seems to me that functionality for adding media objects is already in place |
In the Media RSS specification you will find a lot more: https://www.rssboard.org/media-rss |
Ah, I see now:
|
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
Originally posted by @rajjanorkar at zendframework/zend-feed#49
The text was updated successfully, but these errors were encountered: