Get your youtube feedurl for the new API, it looks something like:
https://www.youtube.com/feeds/videos.xml?channel_id=UCrLxxxxxxxxuFcov-Hlg
where UCrLxxxx etc. is your Channel Id, which you can get by watching this tutorial:
https://youtu.be/SjH_xA6zTzs
Enter this feed url into a mod_feed module.
publish the module
A list of youtube video titles on which you can clik to go to the actual video on youtube
A list of youtube video titles without a link, so you can't click to go to the video
Joomla 3.4.1
The youtube rss entry looks like:
yt:video:PhIHPP_IUPQ
yt:videoIdPhIHPP_IUPQ/yt:videoId
yt:channelIdUCrLSAKxxxxxxxxxcov-Hlg/yt:channelId
<br>
Real Road Racing op 2 en 3 mei in Hengelo Gld - Nieuwsmotor.nl<br>
Nieuwsmotor NL
http://www.youtube.com/channel/UCrLSAKxxxxxxxxxXuFcov-Hlg
2015-04-27T15:09:56+00:00
2015-05-30T14:13:15+00:00
media:group
media:title
Real Road Racing op 2 en 3 mei in Hengelo Gld - Nieuwsmotor.nl
/media:title
media:description- meer info @ http://www.nieuwsmotor.nl/media:description
media:community
/media:community
/media:group
The uri variable in Joomla mod_feed has the value: id:video:PhIHPP_IUPQ instead of the url
Build | 3.4.1 | ⇒ | staging |
Labels |
Added:
?
|
Priority | Urgent | ⇒ | Medium |
Resetting priority according to our standards https://docs.joomla.org/Priority
Sorry Brian, I did look at the priority list, but figured as with YT feed the module doesn't function it validated as urgent.
Bakual, I agree that the feed should be valid, but as this is Youtube/Google, I think they are not going to change it for us...
On the other hand, the modules is a newsfeed module. It's not a Youtube module
From what I saw, it's out JFeed class which doesn't return a link property for the entries. Since JFeed uses SimpleXML to get the data, it may as well be an issue there. Which then again may come from the fact that Youtube doesn't generate a valid RSS feed.
I didn't go as far as looking at that, instead I quick-fixed the issue by a template override and addition to the feed generation using:
if (stristr($feed[$i]->uri, 'yt:video')) {
$videocode = str_replace("yt:video:", "", $feed[$i]->uri);
$uri ="https://www.youtube.com/watch?v=".$videocode;
}
Which is not a good long-term solution, but works for my purpose.
As long as you did a proper template override, this is fine as a long-term solution.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-06-12 21:20:26 |
Closed_By | ⇒ | zero-24 | |
Build | master | ⇒ | staging |
Closing as it is resolved per template override and i not a core issue.
It may be because the feed isn't really RSS compliant. FeedValidator chokes quite a bit on it:
https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.youtube.com%2Ffeeds%2Fvideos.xml%3Fchannel_id%3DUCy6ThiEDnalZOd_pgtpBk1Q
Tested with the JaB feed: https://www.youtube.com/feeds/videos.xml?channel_id=UCy6ThiEDnalZOd_pgtpBk1Q