Changeset 51726 in spip-zone


Ignore:
Timestamp:
Sep 23, 2011, 7:26:23 AM (8 years ago)
Author:
arno@…
Message:

Nouvelles sources. (OTAN-télé!)

Location:
_plugins_/plugins_seenthis/autoembed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/plugins_seenthis/autoembed/AutoEmbed.class.php

    r51716 r51726  
    5454        $this->_stub = $stub;
    5555       
    56         print_r($stub);
    57        
    5856        if ( isset($stub['fetch-match'] ) ) {
    5957          return $this->_parseLink($url);
  • _plugins_/plugins_seenthis/autoembed/index.php

    r51714 r51726  
    1818        if (file_exists("cache/$host/$dossier/$fichier")) {
    1919                $html = implode("", file("cache/$host/$dossier/$fichier"));
    20                 echo $html;
    21                
    2220        } else { // Si pas sauvegardé
    2321       
  • _plugins_/plugins_seenthis/autoembed/stubs.php

    r51716 r51726  
    161161    'embed-height' => '354',
    162162  ),
     163   array(
     164    'title' => 'Grooveshark',
     165    'website' => 'http://www.grooveshark.com',
     166    'url-match' => 'http://(www\.)?grooveshark\.com(.*)',
     167    'fetch-match' => 'http://grooveshark\.com\/facebookWidget\.swf\?songID\=([0-9]*)\"',
     168    'embed-width' => '250',
     169    'embed-height' => '40',
     170    'embed-src' => 'http://grooveshark.com/songWidget.swf?songID=$2',
     171  ),
     172
    163173  array(
    164174    'title' => 'Island Tickle Video',
     
    873883    'embed-height' => '350',
    874884  ),
     885  /*
    875886  array(
    876887    'title' => 'Mp3tube',
     
    881892    'embed-height' => '60',
    882893  ),
     894  */
    883895  array(
    884896    'title' => 'MtvU (Usa Only)',
     
    11611173    'iframe-player' => 'http://www.theonion.com/video_embed/?id=$2',
    11621174  ),
    1163   array(
     1175   array(
     1176    'title' => 'PDF file',
     1177    'website' => '',
     1178    'url-match' => '(.*\.(pdf|doc|docx|xls|xlsx|ppt|pptx|pages|ai|psd|tiff|dxf|eps|ps))$',
     1179    'embed-width' => '480',
     1180    'embed-height' => '520',
     1181    'iframe-player' => 'http://docs.google.com/gview?url=$2&embedded=true',
     1182  ),
     1183 array(
    11641184    'title' => 'TinyPic',
    11651185    'website' => 'http://www.tinypic.com',
     
    14511471  ),
    14521472 array(
     1473    'title' => 'TrailerSpy',
     1474    'website' => 'http://www.trailerspy.com',
     1475    'url-match' => 'http://www\.trailerspy\.com/trailer/([0-9]+)/.*',
     1476    'embed-width' => '480',
     1477    'embed-height' => '295',
     1478    'embed-src' => 'http://www.trailerspy.com/xmoov_flv/player/$2/va_l/',
     1479  ),
     1480 array(
     1481    'title' => 'Gogoyoko',
     1482    'website' => 'http://www.gogoyoko.com',
     1483    'url-match' => 'http://www\.gogoyoko\.com/song/([0-9]+)',
     1484    'embed-width' => '460',
     1485    'embed-height' => '105',
     1486    'embed-src' => 'http://www.gogoyoko.com/object/widget_player.swf?songId=$2',
     1487  ),
     1488 array(
    14531489    'title' => 'Zero-Inch',
    14541490    'website' => 'http://www.zero-inch.com',
     
    14591495  ),
    14601496 array(
    1461     'title' => 'Grooveshark',
    1462     'website' => 'http://www.grooveshark.com',
    1463     'fetch-match' => 'http\:\/\/grooveshark\.com\/facebookWidget\.swf\?songID\=([0-9]*)\"',
    1464     'embed-width' => '250',
    1465     'embed-height' => '40',
    1466     'embed-src' => 'http://grooveshark.com/songWidget.swf?songID=$2',
    1467   ),
     1497    'title' => 'NatoChannel',
     1498    'website' => 'http://www.natochannel.tv',
     1499    'url-match' => 'http://www\.natochannel\.tv/\?uri\=channels/([0-9]+)/([0-9]+)',
     1500    'embed-width' => '480',
     1501    'embed-height' => '400',
     1502    'embed-src' => 'http://media.kyte.tv/flash/MarbachLoader.swf?buildNum=110819_1140&c=$2&s=$3',
     1503  ),
     1504array(
     1505    'title' => 'BandCamp (track)',
     1506    'website' => 'http://www.bandcamp.com',
     1507    'url-match' => 'http://(.*\.)?bandcamp\.com/track/.*',
     1508    'fetch-match' => 'http://bandcamp\.com/EmbeddedPlayer\.swf/size=venti/track\=([0-9]*)/',
     1509    'embed-width' => '300',
     1510    'embed-height' => '100',
     1511    'iframe-player' => 'http://bandcamp.com/EmbeddedPlayer/v=2/track=$2/size=grande/bgcol=FFFFFF/linkcol=4285BB/transparent=true/',
     1512  ),
     1513array(
     1514    'title' => 'BandCamp (album)',
     1515    'website' => 'http://www.bandcamp.com',
     1516    'url-match' => 'http://(.*\.)?bandcamp\.com/album/.*',
     1517    'fetch-match' => 'http://bandcamp\.com/EmbeddedPlayer\.swf/size=venti/album\=([0-9]*)/',
     1518    'embed-width' => '300',
     1519    'embed-height' => '410',
     1520    'iframe-player' => 'http://bandcamp.com/EmbeddedPlayer/v=2/album=$2/size=grande3/bgcol=FFFFFF/linkcol=4285BB/transparent=true/',
     1521  ),
     1522
     1523  /*
     1524 array(
     1525    'title' => 'Radionomy',
     1526    'website' => 'http://www.radionomy.com',
     1527    'fetch-match' => 'BannerEmbed\.swf\?RadUID=([a-z0-9\-]*)&amp',
     1528    'embed-width' => '240',
     1529    'embed-height' => '300',
     1530    'embed-src' => 'http://www.radionomy.com/Flash/BannerEmbed.swf?RadUID=$2&lang=fr&autoplay=true',
     1531  ),
     1532  */
    14681533
    14691534  array(
Note: See TracChangeset for help on using the changeset viewer.