?
avatar RemcoJanssen
RemcoJanssen
4 Jun 2015

Steps to reproduce the issue

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

Expected result

A list of youtube video titles on which you can clik to go to the actual video on youtube

Actual result

A list of youtube video titles without a link, so you can't click to go to the video

System information (as much as possible)

Joomla 3.4.1

Additional comments

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

avatar RemcoJanssen RemcoJanssen - open - 4 Jun 2015
avatar RemcoJanssen RemcoJanssen - change - 4 Jun 2015
Build 3.4.1 staging
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 4 Jun 2015
avatar brianteeman brianteeman - change - 4 Jun 2015
Priority Urgent Medium
avatar brianteeman
brianteeman - comment - 4 Jun 2015

Resetting priority according to our standards https://docs.joomla.org/Priority


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7112.

avatar RemcoJanssen
RemcoJanssen - comment - 4 Jun 2015

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...


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7112.

avatar Bakual
Bakual - comment - 4 Jun 2015

On the other hand, the modules is a newsfeed module. It's not a Youtube module :smile:

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.

avatar RemcoJanssen
RemcoJanssen - comment - 4 Jun 2015

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.

avatar Bakual
Bakual - comment - 4 Jun 2015

As long as you did a proper template override, this is fine as a long-term solution.

avatar zero-24 zero-24 - change - 12 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-12 21:20:26
Closed_By zero-24
Build master staging
avatar zero-24 zero-24 - close - 12 Jun 2015
avatar zero-24
zero-24 - comment - 12 Jun 2015

Closing as it is resolved per template override and i not a core issue.

Add a Comment

Login with GitHub to post a comment