-
Notifications
You must be signed in to change notification settings - Fork 179
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
Basic Media-RSS support #599
Conversation
Signed-off-by: Éloi Rivard <azmeuk@gmail.com>
I'm not entirely sure if this should be a new element. Wouldn't you be able to represent the new images and description in the current datamodel? |
Do you mean for example directly add some HTML into the feed content to avoid store the thumbnail and the description in new elements? The current data model has those elements: /** @var string|null */
protected $contentHash;
/** @var string */
protected $guidHash;
/** @var string */
protected $guid;
/** @var string|null */
protected $url;
/** @var string|null */
protected $title;
/** @var string|null */
protected $author;
/** @var int|null */
protected $pubDate;
/** @var int|null */
protected $updatedDate;
/** @var string|null */
protected $body;
/** @var string|null */
protected $enclosureMime;
/** @var string|null */
protected $enclosureLink;
/** @var int */
protected $feedId;
/** @var int */
protected $status = 0;
/** @var string|null */
protected $lastModified = '0';
/** @var string|null */
protected $searchIndex;
/** @var bool */
protected $rtl = false;
/** @var string|null */
protected $fingerprint;
/** @var bool */
protected $unread = false;
/** @var bool */
protected $starred = false; I do not see pertinent attributes to store the thumbnail. We could store the description in I understand that in fact the whole media model should be reworked, since a feed item can host several medias, but the current model only allows to manage one. |
Maybe you can add a description field only and make the thumbnail the media? |
Technically that would work, but it seems to me that it would not be a good model representation of what a media is. The MediaRSS specification details a lot of attributes for a media object, including a thumbnail. Youtube and Peertube feeds for example provides both a media URL and a thumbnail URL. I suppose a good way for nextcloud-news to take benefit of this would be to display the thumbnail when the player is not available. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Please stalebot let this issue live. |
Didn't have the time to review this, yet 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine, @SMillerDev what do you think?
Thanks @azmeuk sorry for the delay. |
Changed - Basic Media-RSS support (#599) - Database index improvements (#637) Fixed - Call to a member function getUrlHash() on null" when adding a feed (#640) - Don't install symfony/console via composer (#636) - Fix for for ONLY_FULL_GROUP_BY (see #406) (Issue #80) (#407) - Catch invalid feeds (#646) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
I have added a youtube feed to my list. But the content view is empty. So now video preview.... |
What is the link of your Youtube feed? I works like a charm for mines. |
For testing purpose i have used this |
I think the latest update have resolved my issue . |
This is an attempt to tackle #570
This adds support for media thumbnails and description, available since Feedio 4.5.
Now youtube feeds display correctly:
I am not a PHP expert, neither an angular one, so I am not really used to good practices with those tools. Do not hesitate to tell me if there is anything I can improve.