Skip to content

Commit

Permalink
Updated Rutube
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed May 19, 2014
1 parent 276df43 commit 06a3759
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<site media_site_id="rutube" site_title="Rutube" site_url="http://rutube.ru/" match_is_regex="1" supported="1" match_callback_class="s9e_MediaBBCodes" match_callback_method="matchRutube">
<match_urls>!rutube\.ru/tracks/(?'id'[0-9]+)!
!(?'id')rutube\.ru/video/[0-9a-f]{32}!</match_urls>
<embed_html><![CDATA[<iframe width="720" height="405" src="//rutube.ru/video/embed/{$id}" allowfullscreen="" frameborder="0" scrolling="no"></iframe>]]></embed_html>
<embed_html><![CDATA[<iframe width="720" height="405" src="//rutube.ru/play/embed/{$id}" allowfullscreen="" frameborder="0" scrolling="no"></iframe>]]></embed_html>
</site>
<site media_site_id="slideshare" site_title="SlideShare" site_url="http://www.slideshare.net/" match_is_regex="1" supported="1" match_callback_class="s9e_MediaBBCodes" match_callback_method="matchSlideshare">
<match_urls>!slideshare\.net/[^/]+/[-\w]+-(?'id'[0-9]{6,})$!
Expand Down
2 changes: 1 addition & 1 deletion build/upload/library/s9e/MediaBBCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public static function matchRutube($url)
$scrapes = array(
array(
'match' => array('!rutube\\.ru/video/[0-9a-f]{32}!'),
'extract' => array('!rutube\\.ru/video/embed/(?\'id\'[0-9]+)!')
'extract' => array('!rutube\\.ru/play/embed/(?\'id\'[0-9]+)!')
)
);

Expand Down

0 comments on commit 06a3759

Please sign in to comment.