Version Description
- Added support for Youku iFrame embed code
- Fixed Vimeo channel URL test
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 2.7.2 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 2.7.2
php/providers/class-vimeo-thumbnails.php
CHANGED
@@ -117,8 +117,8 @@ class Vimeo_Thumbnails extends Video_Thumbnails_Providers {
|
|
117 |
),
|
118 |
array(
|
119 |
'markup' => 'https://vimeo.com/channels/soundworkscollection/44520894',
|
120 |
-
'expected' => 'http://
|
121 |
-
'expected_hash' => '
|
122 |
'name' => __( 'Channel URL', 'video-thumbnails' )
|
123 |
),
|
124 |
);
|
117 |
),
|
118 |
array(
|
119 |
'markup' => 'https://vimeo.com/channels/soundworkscollection/44520894',
|
120 |
+
'expected' => 'http://i.vimeocdn.com/video/313130530_1280.jpg',
|
121 |
+
'expected_hash' => '32f742bbe980e5d98d8aa0256026b459',
|
122 |
'name' => __( 'Channel URL', 'video-thumbnails' )
|
123 |
),
|
124 |
);
|
php/providers/class-youku-thumbnails.php
CHANGED
@@ -35,6 +35,7 @@ class Youku_Thumbnails extends Video_Thumbnails_Providers {
|
|
35 |
|
36 |
// Regex strings
|
37 |
public $regexes = array(
|
|
|
38 |
'#http://player\.youku\.com/player\.php/sid/([A-Za-z0-9]+)/v\.swf#', // Flash
|
39 |
'#http://v\.youku\.com/v_show/id_([A-Za-z0-9]+)\.html#' // Link
|
40 |
);
|
@@ -55,6 +56,12 @@ class Youku_Thumbnails extends Video_Thumbnails_Providers {
|
|
55 |
// Test cases
|
56 |
public static function get_test_cases() {
|
57 |
return array(
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
array(
|
59 |
'markup' => '<embed src="http://player.youku.com/player.php/sid/XMzQyMzk5MzQ4/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" allowFullscreen="true" type="application/x-shockwave-flash"></embed>',
|
60 |
'expected' => 'http://g1.ykimg.com/1100641F464F0FB57407E2053DFCBC802FBBC4-E4C5-7A58-0394-26C366F10493',
|
35 |
|
36 |
// Regex strings
|
37 |
public $regexes = array(
|
38 |
+
'#http://player\.youku\.com/embed/([A-Za-z0-9]+)#', // iFrame
|
39 |
'#http://player\.youku\.com/player\.php/sid/([A-Za-z0-9]+)/v\.swf#', // Flash
|
40 |
'#http://v\.youku\.com/v_show/id_([A-Za-z0-9]+)\.html#' // Link
|
41 |
);
|
56 |
// Test cases
|
57 |
public static function get_test_cases() {
|
58 |
return array(
|
59 |
+
array(
|
60 |
+
'markup' => '<iframe height=498 width=510 src="http://player.youku.com/embed/XMzQyMzk5MzQ4" frameborder=0 allowfullscreen></iframe>',
|
61 |
+
'expected' => 'http://g1.ykimg.com/1100641F464F0FB57407E2053DFCBC802FBBC4-E4C5-7A58-0394-26C366F10493',
|
62 |
+
'expected_hash' => 'deac7bb89058a8c46ae2350da9d33ba8',
|
63 |
+
'name' => __( 'iFrame Embed', 'video-thumbnails' )
|
64 |
+
),
|
65 |
array(
|
66 |
'markup' => '<embed src="http://player.youku.com/player.php/sid/XMzQyMzk5MzQ4/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" allowFullscreen="true" type="application/x-shockwave-flash"></embed>',
|
67 |
'expected' => 'http://g1.ykimg.com/1100641F464F0FB57407E2053DFCBC802FBBC4-E4C5-7A58-0394-26C366F10493',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wie.ly/u/donate
|
|
4 |
Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 2.7.
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
@@ -118,6 +118,10 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
|
|
121 |
= 2.7.1 =
|
122 |
* Fixed load_plugin_textdomain() path
|
123 |
|
4 |
Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 2.7.2
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 2.7.2 =
|
122 |
+
* Added support for Youku iFrame embed code
|
123 |
+
* Fixed Vimeo channel URL test
|
124 |
+
|
125 |
= 2.7.1 =
|
126 |
* Fixed load_plugin_textdomain() path
|
127 |
|
video-thumbnails.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://refactored.co/plugins/video-thumbnails
|
|
5 |
Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, VK, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
-
Version: 2.7.
|
9 |
License: GPL2
|
10 |
Text Domain: video-thumbnails
|
11 |
Domain Path: /languages/
|
@@ -30,7 +30,7 @@ Domain Path: /languages/
|
|
30 |
|
31 |
define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
|
32 |
define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
|
33 |
-
define( 'VIDEO_THUMBNAILS_VERSION', '2.7.
|
34 |
|
35 |
// Providers
|
36 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|
5 |
Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, VK, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
+
Version: 2.7.2
|
9 |
License: GPL2
|
10 |
Text Domain: video-thumbnails
|
11 |
Domain Path: /languages/
|
30 |
|
31 |
define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
|
32 |
define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
|
33 |
+
define( 'VIDEO_THUMBNAILS_VERSION', '2.7.2' );
|
34 |
|
35 |
// Providers
|
36 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|