Changeset 926743
- Timestamp:
- 06/04/2014 08:31:37 PM (12 years ago)
- Location:
- video-thumbnails
- Files:
-
- 4 added
- 3 deleted
- 8 edited
- 31 copied
-
tags/2.9 (copied) (copied from video-thumbnails/trunk)
-
tags/2.9/js/settings.js (copied) (copied from video-thumbnails/trunk/js/settings.js)
-
tags/2.9/languages (copied) (copied from video-thumbnails/trunk/languages)
-
tags/2.9/languages/video-thumbnails-de_DE.mo (copied) (copied from video-thumbnails/trunk/languages/video-thumbnails-de_DE.mo)
-
tags/2.9/languages/video-thumbnails-de_DE.po (copied) (copied from video-thumbnails/trunk/languages/video-thumbnails-de_DE.po)
-
tags/2.9/php/class-video-thumbnails-settings.php (copied) (copied from video-thumbnails/trunk/php/class-video-thumbnails-settings.php)
-
tags/2.9/php/extensions/automatic-youtube-video-posts.php (copied) (copied from video-thumbnails/trunk/php/extensions/automatic-youtube-video-posts.php)
-
tags/2.9/php/extensions/class-ayvp-thumbnails.php (deleted)
-
tags/2.9/php/extensions/class-simple-video-embedder-thumbnails.php (deleted)
-
tags/2.9/php/extensions/class-video-thumbnails-extension.php (deleted)
-
tags/2.9/php/extensions/extensions.php (copied) (copied from video-thumbnails/trunk/php/extensions/extensions.php)
-
tags/2.9/php/extensions/simple-video-embedder.php (copied) (copied from video-thumbnails/trunk/php/extensions/simple-video-embedder.php)
-
tags/2.9/php/extensions/wp-robot.php (copied) (copied from video-thumbnails/trunk/php/extensions/wp-robot.php)
-
tags/2.9/php/providers/class-blip-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-blip-thumbnails.php)
-
tags/2.9/php/providers/class-collegehumor-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-collegehumor-thumbnails.php)
-
tags/2.9/php/providers/class-dailymotion-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-dailymotion-thumbnails.php)
-
tags/2.9/php/providers/class-facebook-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-facebook-thumbnails.php)
-
tags/2.9/php/providers/class-funnyordie-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-funnyordie-thumbnails.php)
-
tags/2.9/php/providers/class-justintv-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-justintv-thumbnails.php) (2 diffs)
-
tags/2.9/php/providers/class-kaltura-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-kaltura-thumbnails.php)
-
tags/2.9/php/providers/class-metacafe-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-metacafe-thumbnails.php)
-
tags/2.9/php/providers/class-mpora-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-mpora-thumbnails.php)
-
tags/2.9/php/providers/class-rutube-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-rutube-thumbnails.php)
-
tags/2.9/php/providers/class-sapo-thumbnails.php (added)
-
tags/2.9/php/providers/class-ted-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-ted-thumbnails.php)
-
tags/2.9/php/providers/class-tudou-thumbnails.php (added)
-
tags/2.9/php/providers/class-twitch-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-twitch-thumbnails.php)
-
tags/2.9/php/providers/class-video-thumbnails-providers.php (copied) (copied from video-thumbnails/trunk/php/providers/class-video-thumbnails-providers.php) (1 diff)
-
tags/2.9/php/providers/class-vimeo-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-vimeo-thumbnails.php)
-
tags/2.9/php/providers/class-vine-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-vine-thumbnails.php)
-
tags/2.9/php/providers/class-vk-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-vk-thumbnails.php)
-
tags/2.9/php/providers/class-wistia-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-wistia-thumbnails.php)
-
tags/2.9/php/providers/class-youku-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-youku-thumbnails.php)
-
tags/2.9/php/providers/class-youtube-thumbnails.php (copied) (copied from video-thumbnails/trunk/php/providers/class-youtube-thumbnails.php)
-
tags/2.9/readme.txt (copied) (copied from video-thumbnails/trunk/readme.txt) (3 diffs)
-
tags/2.9/screenshot-1.gif (modified) (previous)
-
tags/2.9/screenshot-2.gif (modified) (previous)
-
tags/2.9/video-thumbnails.php (copied) (copied from video-thumbnails/trunk/video-thumbnails.php) (2 diffs)
-
trunk/php/providers/class-justintv-thumbnails.php (modified) (2 diffs)
-
trunk/php/providers/class-sapo-thumbnails.php (added)
-
trunk/php/providers/class-tudou-thumbnails.php (added)
-
trunk/php/providers/class-video-thumbnails-providers.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/screenshot-1.gif (modified) (previous)
-
trunk/screenshot-2.gif (modified) (previous)
-
trunk/video-thumbnails.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
video-thumbnails/tags/2.9/php/providers/class-justintv-thumbnails.php
r917499 r926743 36 36 // Regex strings 37 37 public $regexes = array( 38 '# archive_id=([0-9]+)#' // Archive ID38 '#//(?:www\.)?justin\.tv/swflibs/JustinPlayer\.swf\?channel=([a-zA-Z0-9_]+)#' // Channel player 39 39 ); 40 40 41 41 // Thumbnail URL 42 42 public function get_thumbnail_url( $id ) { 43 $request = "http://api.justin.tv/api/c lip/show/$id.xml";43 $request = "http://api.justin.tv/api/channel/show/$id.json"; 44 44 $response = wp_remote_get( $request, array( 'sslverify' => false ) ); 45 45 if( is_wp_error( $response ) ) { 46 46 $result = $this->construct_info_retrieval_error( $request, $response ); 47 47 } else { 48 $ xml = new SimpleXMLElement( $response['body'] );49 $result = (string) $xml->object->image_url_large;48 $result = json_decode( $response['body'] ); 49 $result = $result->screen_cap_url_huge; 50 50 } 51 51 return $result; … … 56 56 return array( 57 57 array( 58 'markup' => '<object type="application/x-shockwave-flash" height="300" width="400" id="clip_embed_player_flash" data="http://www-cdn.justin.tv/widgets/archive_embed_player.swf" bgcolor="#000000"><param name="movie" value="http://www-cdn.justin.tv/widgets/archive_embed_player.swf" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="auto_play=false&start_volume=25&title=Title&channel=scamschoolbrian&archive_id=392481524" /></object>',59 'expected' => 'http://static-cdn.jtvnw.net/ jtv.thumbs/archive-392481524-320x240.jpg',60 'expected_hash' => ' 7f260a2ce6ae75a3c2e5012108f161b7',58 'markup' => '<object type="application/x-shockwave-flash" data="http://www.justin.tv/swflibs/JustinPlayer.swf?channel=twit" id="live_embed_player_flash" height="300" width="400" bgcolor="#000000"><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/swflibs/JustinPlayer.swf" /><param name="flashvars" value="hostname=www.justin.tv&channel=twit&auto_play=false&start_volume=25" /></object>', 59 'expected' => 'http://static-cdn.jtvnw.net/previews/live_user_twit-630x473.jpg', 60 'expected_hash' => 'b8c0dd6565f34e6bfbbddbb07ff0df74', 61 61 'name' => __( 'Flash Embed', 'video-thumbnails' ) 62 62 ), -
video-thumbnails/tags/2.9/php/providers/class-video-thumbnails-providers.php
r922717 r926743 116 116 // require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-kaltura-thumbnails.php' ); 117 117 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-youku-thumbnails.php' ); 118 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-tudou-thumbnails.php' ); 118 119 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-collegehumor-thumbnails.php' ); 119 120 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-rutube-thumbnails.php' ); 121 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-sapo-thumbnails.php' ); 120 122 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-ted-thumbnails.php' ); 121 123 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-twitch-thumbnails.php' ); -
video-thumbnails/tags/2.9/readme.txt
r922717 r926743 5 5 Requires at least: 3.2 6 6 Tested up to: 3.9 7 Stable tag: 2. 87 Stable tag: 2.9 8 8 9 9 Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template. … … 36 36 * Wistia 37 37 * Youku 38 * Tudou 39 * SAPO 38 40 * Rutube 39 41 … … 131 133 132 134 == Changelog == 135 136 = 2.9 = 137 * Added Tudou support 138 * Added SAPO support 139 * Updated Justin.tv to support the live player now that archives are being removed 133 140 134 141 = 2.8 = -
video-thumbnails/tags/2.9/video-thumbnails.php
r922717 r926743 6 6 Author: Sutherland Boswell 7 7 Author URI: http://sutherlandboswell.com 8 Version: 2. 88 Version: 2.9 9 9 License: GPL2 10 10 Text Domain: video-thumbnails … … 31 31 define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) ); 32 32 define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' ); 33 define( 'VIDEO_THUMBNAILS_VERSION', '2. 8' );33 define( 'VIDEO_THUMBNAILS_VERSION', '2.9' ); 34 34 35 35 // Providers -
video-thumbnails/trunk/php/providers/class-justintv-thumbnails.php
r917499 r926743 36 36 // Regex strings 37 37 public $regexes = array( 38 '# archive_id=([0-9]+)#' // Archive ID38 '#//(?:www\.)?justin\.tv/swflibs/JustinPlayer\.swf\?channel=([a-zA-Z0-9_]+)#' // Channel player 39 39 ); 40 40 41 41 // Thumbnail URL 42 42 public function get_thumbnail_url( $id ) { 43 $request = "http://api.justin.tv/api/c lip/show/$id.xml";43 $request = "http://api.justin.tv/api/channel/show/$id.json"; 44 44 $response = wp_remote_get( $request, array( 'sslverify' => false ) ); 45 45 if( is_wp_error( $response ) ) { 46 46 $result = $this->construct_info_retrieval_error( $request, $response ); 47 47 } else { 48 $ xml = new SimpleXMLElement( $response['body'] );49 $result = (string) $xml->object->image_url_large;48 $result = json_decode( $response['body'] ); 49 $result = $result->screen_cap_url_huge; 50 50 } 51 51 return $result; … … 56 56 return array( 57 57 array( 58 'markup' => '<object type="application/x-shockwave-flash" height="300" width="400" id="clip_embed_player_flash" data="http://www-cdn.justin.tv/widgets/archive_embed_player.swf" bgcolor="#000000"><param name="movie" value="http://www-cdn.justin.tv/widgets/archive_embed_player.swf" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="auto_play=false&start_volume=25&title=Title&channel=scamschoolbrian&archive_id=392481524" /></object>',59 'expected' => 'http://static-cdn.jtvnw.net/ jtv.thumbs/archive-392481524-320x240.jpg',60 'expected_hash' => ' 7f260a2ce6ae75a3c2e5012108f161b7',58 'markup' => '<object type="application/x-shockwave-flash" data="http://www.justin.tv/swflibs/JustinPlayer.swf?channel=twit" id="live_embed_player_flash" height="300" width="400" bgcolor="#000000"><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/swflibs/JustinPlayer.swf" /><param name="flashvars" value="hostname=www.justin.tv&channel=twit&auto_play=false&start_volume=25" /></object>', 59 'expected' => 'http://static-cdn.jtvnw.net/previews/live_user_twit-630x473.jpg', 60 'expected_hash' => 'b8c0dd6565f34e6bfbbddbb07ff0df74', 61 61 'name' => __( 'Flash Embed', 'video-thumbnails' ) 62 62 ), -
video-thumbnails/trunk/php/providers/class-video-thumbnails-providers.php
r922717 r926743 116 116 // require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-kaltura-thumbnails.php' ); 117 117 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-youku-thumbnails.php' ); 118 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-tudou-thumbnails.php' ); 118 119 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-collegehumor-thumbnails.php' ); 119 120 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-rutube-thumbnails.php' ); 121 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-sapo-thumbnails.php' ); 120 122 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-ted-thumbnails.php' ); 121 123 require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-twitch-thumbnails.php' ); -
video-thumbnails/trunk/readme.txt
r922717 r926743 5 5 Requires at least: 3.2 6 6 Tested up to: 3.9 7 Stable tag: 2. 87 Stable tag: 2.9 8 8 9 9 Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template. … … 36 36 * Wistia 37 37 * Youku 38 * Tudou 39 * SAPO 38 40 * Rutube 39 41 … … 131 133 132 134 == Changelog == 135 136 = 2.9 = 137 * Added Tudou support 138 * Added SAPO support 139 * Updated Justin.tv to support the live player now that archives are being removed 133 140 134 141 = 2.8 = -
video-thumbnails/trunk/video-thumbnails.php
r922717 r926743 6 6 Author: Sutherland Boswell 7 7 Author URI: http://sutherlandboswell.com 8 Version: 2. 88 Version: 2.9 9 9 License: GPL2 10 10 Text Domain: video-thumbnails … … 31 31 define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) ); 32 32 define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' ); 33 define( 'VIDEO_THUMBNAILS_VERSION', '2. 8' );33 define( 'VIDEO_THUMBNAILS_VERSION', '2.9' ); 34 34 35 35 // Providers
Note: See TracChangeset
for help on using the changeset viewer.