Commit eda5dfb7 authored by Ahoy's avatar Ahoy

+1

parent 5751b182
Pipeline #139821154 passed with stages
in 56 seconds
......@@ -265,6 +265,9 @@
<span class="attr-name">data-player=&quot;</span><span class="attr-value">alloha</span><span class="attr-name">&quot;</span>
<span class="comment"> - плеер с alloha.tv</span>
<br>
<span class="attr-name">data-player=&quot;</span><span class="attr-value">pleer</span><span class="attr-name">&quot;</span>
<span class="comment"> - плеер с pleer.video</span>
<br>
<span class="attr-name">data-player=&quot;</span><span class="attr-value">videospider</span><span class="attr-name">&quot;</span>
<span class="comment"> - плеер с videospider.in</span>
<br>
......@@ -426,6 +429,14 @@
<span class="attr-name">data-country=&quot;</span><span class="attr-value">RU</span><span class="attr-name">&quot;</span>
<span class="comment"> - ISO 3166-1 код названия страны</span>
</div>
<div class="code">
<span class="comment">
Параметр <span class="attr-name">data-param_NAME</span>
</span>
<br>
<span class="attr-name">data-param_ustore=&quot;</span><span class="attr-value">one=1&two=2</span><span class="attr-name">&quot;</span>
<span class="comment"> - добавочные параметры к iframe</span>
</div>
<div class="code">
<span class="comment">
Отобразить качество и перевод на странице
......
......@@ -88,7 +88,7 @@ function yo(self) {
? 'trailer'
: options.player
? options.player
: 'videocdn,collaps,hdvb,bazon,ustore,alloha,iframe,kodik';
: 'videocdn,collaps,hdvb,bazon,ustore,alloha,iframe,kodik,pleer';
var bg = (options.bg && options.bg.replace(/[^0-9a-z]/ig, ''))
? options.bg.replace(/[^0-9a-z]/ig, '')
......@@ -240,7 +240,20 @@ function yo(self) {
if (!re || !re[1] || !re[1].trim()) continue;
p.push(re[1].trim());
}
keys = p.length ? p : Object.keys(players);
if (p.length) {
keys = p;
} else {
var yo_res = Object.keys(players);
var yo_new = [];
for (var ps = 0; ps < keys.length; ps++) {
for (var pp = 0; pp < yo_res.length; pp++) {
if (keys[ps].toLowerCase().indexOf(yo_res[pp].toLowerCase())+1) {
yo_new.push(yo_res[pp]);
}
}
}
keys = yo_new;
}
}
var j = 0;
for (var i = 0, len = keys.length; i < len; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment