Version Description
- Check descriptions in playlists because are in media:description.
Download this release
Release Info
Developer | javitxu123 |
Plugin | Youtube Channel Gallery |
Version | 1.7.7 |
Comparing to | |
See all releases |
Code changes from version 1.7.6 to 1.7.7
- readme.txt +4 -1
- youtube-channel-gallery.php +11 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://poselab.com/
|
|
4 |
Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4.1
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -123,6 +123,9 @@ This will happen if your playlist has more than 1000 videos because YouTube API
|
|
123 |
|
124 |
== Changelog ==
|
125 |
|
|
|
|
|
|
|
126 |
= 1.7.6 =
|
127 |
* Add &wmode=transparent to the YouTube iframe url in order to allow layers to overlap it.
|
128 |
|
4 |
Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4.1
|
7 |
+
Stable tag: 1.7.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
123 |
|
124 |
== Changelog ==
|
125 |
|
126 |
+
= 1.7.7 =
|
127 |
+
* Check descriptions in playlists because are in media:description.
|
128 |
+
|
129 |
= 1.7.6 =
|
130 |
* Add &wmode=transparent to the YouTube iframe url in order to allow layers to overlap it.
|
131 |
|
youtube-channel-gallery.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
|
6 |
Author: Javier Gómez Pose
|
7 |
Author URI: http://www.poselab.com/
|
8 |
-
Version: 1.7.
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
|
@@ -603,7 +603,7 @@
|
|
603 |
$errorMesagge = __('You must insert a valid YouTube user id.', 'youtube-channel-gallery');
|
604 |
}
|
605 |
if($ytchag_feed == 'playlist'){
|
606 |
-
$ytchag_rss_url = $youtube_feed_url . '/playlists/' . $ytchag_user . '?v=2';//&prettyprint=true
|
607 |
//print_r($ytchag_rss_url . '<br>');
|
608 |
$ytchag_link_url = 'http://www.youtube.com/playlist?list=' . $ytchag_user;
|
609 |
$errorMesagge = __('You must insert a valid playlist id.', 'youtube-channel-gallery');
|
@@ -658,7 +658,15 @@
|
|
658 |
$url = $item->get_permalink();
|
659 |
$youtubeid = $this->youtubeid($url);
|
660 |
$title = $item->get_title();
|
661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
|
663 |
//default url thumbnail
|
664 |
if ($enclosure = $item->get_enclosure()){
|
5 |
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
|
6 |
Author: Javier Gómez Pose
|
7 |
Author URI: http://www.poselab.com/
|
8 |
+
Version: 1.7.7
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
|
603 |
$errorMesagge = __('You must insert a valid YouTube user id.', 'youtube-channel-gallery');
|
604 |
}
|
605 |
if($ytchag_feed == 'playlist'){
|
606 |
+
$ytchag_rss_url = $youtube_feed_url . '/playlists/' . $ytchag_user . '?v=2&prettyprint=true';//&prettyprint=true
|
607 |
//print_r($ytchag_rss_url . '<br>');
|
608 |
$ytchag_link_url = 'http://www.youtube.com/playlist?list=' . $ytchag_user;
|
609 |
$errorMesagge = __('You must insert a valid playlist id.', 'youtube-channel-gallery');
|
658 |
$url = $item->get_permalink();
|
659 |
$youtubeid = $this->youtubeid($url);
|
660 |
$title = $item->get_title();
|
661 |
+
|
662 |
+
//descriptions in playlists are in media:description
|
663 |
+
if ($ytchag_feed == 'playlist') {
|
664 |
+
$media_group = $item->get_item_tags('http://search.yahoo.com/mrss/', 'group');
|
665 |
+
$description = $media_group[0]['child']['http://search.yahoo.com/mrss/']['description'][0]['data'];
|
666 |
+
} else {
|
667 |
+
$description = $item->get_description();
|
668 |
+
}
|
669 |
+
|
670 |
|
671 |
//default url thumbnail
|
672 |
if ($enclosure = $item->get_enclosure()){
|