Add and

function video_filter_codec_info()

           $codecs['rutube'] = array(
        'name' => t('Rutube'),
        'callback' => 'video_filter_rutube',
        'regexp' => '#rutube\.ru\/.*?\?v=([a-z0-9\-_]+)#i',
        'ratio' => 400 / 353,
    $codecs['mailru'] = array(
        'name' => t('Mailru'),
        'callback' => 'video_filter_mailru',
        'regexp' => array(0 => '#video\.mail\.ru\/mail\/(.*?)\/([0-9]*?)\.html#i',
        'ratio' => 450 / 385,
    return $codecs;

function video_filter_mailru($video) {
    $video['source'] = ''.$video['codec']['matches'][1].'/$'.$video['codec']['matches'][2].($video['autoplay'] ? '&autoplay=1' : '');
    return video_filter_flash($video);

function video_filter_rutube($video) {
    $video['source'] = ''.$video['codec']['matches'][1].($video['autoplay'] ? '&autoplay=1' : '');
    return video_filter_flash($video);

Thank you for a module

#11 add_ru.patch1.42 KBRamir


blackdog’s picture

Category:task» feature

@mkonk64 - Can you roll a proper patch for this?

OFF’s picture

Support is not expected?

blackdog’s picture

If I get a proper patch I'll review it.

OFF’s picture

A you dont made proper patch?

I will help with testing

blackdog’s picture

No, but feel free to create a patch from the code in the first comment. Make sure it's up to coding standards though.

OFF’s picture

I'am not coder (

duke333’s picture

Hi all!

This code dasn`t works corectly
1. You don`t have image file (thumbnail)
2. you don`t have duration in seconds

some one have providers (file like or ?

AlexanderPop’s picture

Ingumsky’s picture

I'll try to implement the code from original post on my website later and will roll a patch if it works.

blackdog’s picture

Version:6.x-2.4» 6.x-3.x-dev
Status:Active» Needs work
Ramir’s picture

new1.42 KB