Plugin Directory

Changeset 462401


Ignore:
Timestamp:
11/13/2011 04:56:18 PM (14 years ago)
Author:
CJ_Jackson
Message:

Updated to 0.0.3

Location:
mediaembedder
Files:
63 added
4 edited

Legend:

Unmodified
Added
Removed
  • mediaembedder/trunk/list.php

    r456295 r462401  
    33$mediaembedderlist = array(
    44    array(
    5         're' => '^http(s?)://([a-z]*).youtube.com/(watch|index)\?(.*)v=(?P<youtube_id>[a-zA-Z0-9]+)',
     5        're' => '^http(s?)://([a-z]*).youtube.com/(watch|index)\?(.*)v=(?P<youtube_id>[a-zA-Z0-9-_]+)',
    66        'module' => 'youtube'
    77    ),
    88    array(
    9         're' => '^http(s?)://([a-z]*).youtube.com/v/(?P<youtube_id>[a-zA-Z0-9]+)',
     9        're' => '^http(s?)://([a-z]*).youtube.com/v/(?P<youtube_id>[a-zA-Z0-9-_]+)',
    1010        'module' => 'youtube'
    1111    ),
    1212    array(
    13         're' => '^http(s?)://youtu.be/(?P<youtube_id>[a-zA-Z0-9]+)',
     13        're' => '^http(s?)://youtu.be/(?P<youtube_id>[a-zA-Z0-9-_]+)',
    1414        'module' => 'youtube'
    1515    ),
    1616    array(
    17         're' => '^http(s?)://([a-z]*).youtube.com/playlist?(.*)list=(?P<youtube_playlist_id>[a-zA-Z0-9]+)',
     17        're' => '^http(s?)://([a-z]*).youtube.com/playlist?(.*)list=(?P<youtube_playlist_id>[a-zA-Z0-9-_]+)',
    1818        'module' => 'youtube',
    1919        'method' => 'playlist'
     20    ),
     21    array(
     22        're' => '^http(s?)://video.allthingsd.com/video/(.*)/(?P<allthingsdigital_id>[a-zA-Z0-9-_]+)(/?)',
     23        'module' => 'allthingsdigital'
     24    ),
     25    array(
     26        're' => '^http(s?)://allthingsd.com/video/\?video_id=(?P<allthingsdigital_id>[a-zA-Z0-9-_]+)(/?)',
     27        'module' => 'allthingsdigital'
     28    ),
     29    array(
     30        're' => '^http(s?)://(.*)aniboom.com/animation-video/(?P<aniboom_id>\d+)(/?)',
     31        'module' => 'aniboom'
     32    ),
     33    array(
     34        're' => '^http(s?)://www.atom.com/(?P<atom_group>[A-Za-z0-9-_]+)/(?P<atom_id>[A-Za-z0-9-_]+)(/?)',
     35        'module' => 'atom'
     36    ),
     37    array(
     38        're' => '^http(s?)://bambuser.com/v/(?P<bambuser_id>\d+)(/?)',
     39        'module' => 'bambuser'
     40    ),
     41    array(
     42        're' => '^http(s?)://bambuser.com/channel/(.*)/broadcast/(?P<bambuser_id>\d+)(/?)',
     43        'module' => 'bambuser'
     44    ),
     45    array(
     46        're' => '^http(s?)://bambuser.com/channel/(?P<bambuser>[A-Za-z0-9-_]+)(/?)',
     47        'module' => 'bambuser',
     48        'method' => 'channel'
    2049    ),
    2150    array(
     
    3059        're' => '^http(s?)://www.dailymotion.com/(.*)video/(?P<dailymotion_id>[^_]+)',
    3160        'module' => 'dailymotion'
     61    ),
     62    array(
     63        're' => '^http(s?)://(.*)99dollarmusicvideos.com(.*)/episode/(?P<doller99_id>[A-Za-z0-9-_]+)/(?P<doller99_name>[A-Za-z0-9-_]+)',
     64        'module' => 'doller99'
    3265    ),
    3366    array(
  • mediaembedder/trunk/mediaembedder.php

    r456295 r462401  
    55  Plugin URI: http://cj-jackson.com/
    66  Description: An efficient, flexible multimedia embedder
    7   Version: 0.0.2
     7  Version: 0.0.3
    88  Author: Christopher John Jackson
    99  Author URI: http://cj-jackson.com/
     
    4141   
    4242    static public function init() {
    43         global $mediaembedderlist, $wpdb;
    44         $count = 0;
    45         foreach($mediaembedderlist as $list) {
    46             wp_embed_register_handler('me_'.$count,
    47                     self::patternWrap($list['re']),
     43        global $wpdb;
     44        wp_embed_register_handler('mediaembedder',
     45                    '#http(s?)://(.*)#i',
    4846                    array(__CLASS__, 'handler'));
    49             $count++;
    50         }
    5147        $sql = file_get_contents(dirname(__FILE__).'/sql/main.sql');
    5248        $sql = str_replace("__prefix__", $wpdb->base_prefix, $sql);
  • mediaembedder/trunk/readme.txt

    r456295 r462401  
    55Requires at least: 3.2.0
    66Tested up to: 3.2.1
    7 Stable tag: 0.0.2
     7Stable tag: 0.0.3
    88
    99Multimedia Embedder that relies on template, unlike oEmbed, therefore allowing
     
    2727oEmbed.
    2828
    29 Currently sites support are:
     29Current supported sites are:
    3030
     31* [$99 Music Videos](http://www.99dollarmusicvideos.com/)
     32* [All Things Digital](http://allthingsd.com/)
     33* [Aniboom](http://www.aniboom.com/)
     34* [Atom.com](http://www.atom.com/)
     35* [Bambuser](http://bambuser.com/)
    3136* [Blip.tv](http://blip.tv/)
    3237* [CollegeHumor](http://www.collegehumor.com/)
     
    5560== Changelog ==
    5661
     62= 0.0.3 =
     63* Added $99 Music Videos
     64* Added All Things Digital
     65* Added Aniboom
     66* Added Atom.com
     67* Added Bambuser
     68
    5769= 0.0.2 =
    5870* Added CollegeHumor.
  • mediaembedder/trunk/settings.php

    r456084 r462401  
    1919                   <?php echo $title_enabled ?>/>
    2020           
    21             Only works with sites that support 'og:title' meta tag.
     21            Only works with sites that support 'og:title' or 'title' meta tag.
    2222        </p>
    2323       
Note: See TracChangeset for help on using the changeset viewer.