Giter VIP home page Giter VIP logo

Comments (31)

vb6rocod avatar vb6rocod commented on July 28, 2024

vezi gdriveplayer.php.
Sper sa fie ce vrei.

from utils.

scara78 avatar scara78 commented on July 28, 2024

multumesc din suflet

from utils.

scara78 avatar scara78 commented on July 28, 2024

Ideea este ce vreau sa implementez in Jwplayer subtitrare automata in romana,am pus un script online care imi da subtitrare automat dupa imdbid.
https://subtitrariro.now.sh/tt1179933

Crezi ca va merge chestia asta? Se pare ca subtitrarea este in format vtt, dar Json.Poti sa adaptezi scriptul ca sa ia si subtitrarea ?

Multumesc

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Vezi ca am facut o implementare cu opensubtitles.
gdriveplayer_rum.php, opensubtitles_down.php si pt. buton download download.svg.
cautarea se face dupa imdb,
Cautarea se face dupa subtitrari in romana si engleza (primele fiind cele in romana).
Poti modifica
$lang_search="rum,eng";
Ca sa limitezi numarul de subtitrari afisate in lista de subtitrari in jwplayer modifica
$max_download=10; (la cautare limita e 100).
Daca folosesti doar in scop personal foloseste pt. opensubtitle user agent
$ua_opensuptitles="TemporaryUserAgent";
Poti sa-ti inregistrezi si tu gratuit un user-agent.
Subtitrarile se descarca doar cand alegi o alta subtitrare in jwplayer. Subtitrarile ANSI sunt codate in UTF-8 ca sa nu afiseze patrate si cerculete pt. diacritice.
Daca serverul nu e local modifica
$sub_filename="opensubtitles_down.php?id=".$arrsub[$key][2]."&token=".$token;
cu http://...../opensubtitles_down.php

Sper sa te ajute....

from utils.

scara78 avatar scara78 commented on July 28, 2024

A ajutat, sa-ti dea Dumnezeu sanatate!! Am vazut ca da duplicat sursele si subtitrarile,in special daca daca e numai una singura,dar nu-i nimic.
O zi placuta.

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Nu e duplicat, asa sunt puse pe opensubtitles (nu e din php).
Pentru ce ai pus tu initial poti folosi codul
``function formatSeconds( $time )
{
$hours = 0;
$milliseconds = substr($time, -3);
$seconds = substr($time, 0, -3);
if ( $seconds > 3600 )
{
$hours = floor( $seconds / 3600 );
}
$seconds = $seconds % 3600;

return str_pad( $hours, 2, '0', STR_PAD_LEFT )
. gmdate( ':i:s', $seconds )
. ",".$milliseconds
;
}
$l="https://subtitrariro.now.sh/tt1179933";
$r=json_decode(file_get_contents($l),1);
//print_r ($r);
$out="";
for ($k=0;$k<count($r);$k++) {
$out .=($k+1)."\n";
$out .= formatSeconds($r[$k]['start'])." --> ".formatSeconds($r[$k]['end'])."\n";
$out .= $r[$k]['text']."\n"."\n";
}
echo $out;
'`
Oricum e munca dubla, sursa fiind tot opensubtitles.
In plus cum majoritatea subtitrarilor sunt inca ANSI o sa vezi caractere ciudate la diacritice.

from utils.

scara78 avatar scara78 commented on July 28, 2024

Am pus in scriptul ala un cod sa transforme diacritice in caractere normale, mi-a pus S,T,dar "ă" nu-l recunoaste

from utils.

scara78 avatar scara78 commented on July 28, 2024

ceea ce ai facut tu acolo, scriptul ala de opensubtitle e aur.Crede-ma ca am rascolit tot portalul Github dupa asa ceva nu am gasit ce-mi trebuia mie.Apreciez gestul si munca depusa,ma bucur sa vad ca mai sunt si oameni cu suflet, care sa-ti dea o mana de ajutor fara sa te beleasca de bani :)

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

O implementare javascript gasesti aici
https://vidsrc.me/embed/tt1300854/

from utils.

scara78 avatar scara78 commented on July 28, 2024

Stiu,am studiat codul alora,dau mei trebuia un fisier php,care nu-l aveam. Apropo, am vazut ca mobil nu apar subtitrarile.

from utils.

scara78 avatar scara78 commented on July 28, 2024

Gata,nu mai functioneaza.. :(

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

merge, schimba jwplayer.js

from utils.

scara78 avatar scara78 commented on July 28, 2024

da-mi un id de fb, telegram, orice unde putem vorbi

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

au schimbat si pass la decrypt... probabil urmaresc si ei github (am mai patit-o si cu altele...)
Adauga in cod dupa
$h = $jsu->Unpack($h);
$t1=explode("null,'",$h);
$t2=explode("'",$t1[1]);
$js=$t2[0];
$keywords = preg_split("/[a-zA-Z]{1,}/",$js);
$out="";
for ($k=0;$k<count($keywords);$k++) {
$out .=chr($keywords[$k]);
}
$t1=explode('pass = "',$out);
$t2=explode('"',$t1[1]);
$pass=$t2[0];

pentru opensubtitles trebuie alt ua, te rog nu-l folosi pe al meu.

from utils.

scara78 avatar scara78 commented on July 28, 2024

Au script de tracking in sursa,probabil vad de pe ce domeniu se fac requesturi.

from utils.

scara78 avatar scara78 commented on July 28, 2024

au schimbat si pass la decrypt... probabil urmaresc si ei github (am mai patit-o si cu altele...)
Adauga in cod dupa
$h = $jsu->Unpack($h);
$t1=explode("null,'",$h);
$t2=explode("'",$t1[1]);
$js=$t2[0];
$keywords = preg_split("/[a-zA-Z]{1,}/",$js);
$out="";
for ($k=0;$k<count($keywords);$k++) {
$out .=chr($keywords[$k]);
}
$t1=explode('pass = "',$out);
$t2=explode('"',$t1[1]);
$pass=$t2[0];

pentru opensubtitles trebuie alt ua, te rog nu-l folosi pe al meu.

Nu merge,am pus codu de mai sus, nici un link

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Ai stres linia cu $pass="aadsdasdassgff"; ?????
Acum am verificat si merge, vezi ca fac si un push

from utils.

scara78 avatar scara78 commented on July 28, 2024

La mine nu merge,posibil sa fi pus ceva restrictii in cloudflare.
Linkurile generate sunt in forma asta:

*.vip/drive/redir.php?id=9d3d714e7f414ba160fdce981ce51767&type=movie&ids=914&judul=10+Cloverfield+Lane+%282016%29`

si Jwplayer da erorare:

This video file cannot be played.
(Error Code: 224003)

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

asta-i alta poveste. Posibil sa fie sters (nu are legatura cu cloudflare), caz in care ei folosesc ca rezerva vidcloud9 si lucrurile se complica....pentru ca si vidcloud9 e tot un fel de gdriver

from utils.

scara78 avatar scara78 commented on July 28, 2024

crezi ca ma poti ajuta sa implementez javascriptul de la vidsrc,am incercat codul din pagina, cu link http catre savesub.php,dar imi da ca serviciul nu este aviabil.

$.ajax('//vidsrc.me/save_srt.php', {
method: "POST",
data: formData,

macar asa pot pune api-ul in sandbox si am subtitrare.

from utils.

Love656 avatar Love656 commented on July 28, 2024

hi https://redirector.gdriveplayer.me/drive/index.php?id=9gG7vHsRpexip6%2FuP0HpDg02WVIyb27%2FOND%2FCFSwHX2BbZBq07XGigdFLmXxATq%2BwpKeygRgzTlpG%2FE%2BTikLy16pAVaV9Nq3k3szZRt4pJfTwawxHLwIOtTrDZ28Tq7r%2BDQOWPK2dJBue%2B%2BWXOwj2HtqXtqgqdH2dxsjmMft6pOUPyNvOtAPHBDE4hBcH2sVJGLd0KvQXWu6AIjn7bra6w3g%2BvlRr5brxtxqxrZeRJT%2FzXMpyXubELiVbov7LZxlg%3D&ref=https%3A%2F%2Fsoap2day.ru%2Fmovie%2Fplay%2F10-cloverfield-lane-2016-hdsYDE03%2Fwatch.html&res=default
i get Access Denied

from utils.

Love656 avatar Love656 commented on July 28, 2024

i try this now
i open https://database.gdriveplayer.us/player.php?imdb=tt1179933
after that open
https://redirector.gdriveplayer.me/drive/index.php?id=9gG7vHsRpexip6%2FuP0HpDg02WVIyb27%2FOND%2FCFSwHX2BbZBq07XGigdFLmXxATq%2BwpKeygRgzTlpG%2FE%2BTikLy16pAVaV9Nq3k3szZRt4pJfTwawxHLwIOtTrDZ28Tq7r%2BDQOWPK2dJBue%2B%2BWXOwj2HtqXtqgqdH2dxsjmMft6pOUPyNvOtAPHBDE4hBcH2sVJGLd0KvQXWu6AIjn7bra6w3g%2BvlRr5brxtxqxrZeRJT%2FzXMpyXubELiVbov7LZxlg%3D&ref=https%3A%2F%2Fsoap2day.ru%2Fmovie%2Fplay%2F10-cloverfield-lane-2016-hdsYDE03%2Fwatch.html&res=default
work but if i open another video without open https://database.gdriveplayer.us/player.php?imdb=xxxx not work

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

They add referer
So, if you play link in a player with custom headers add
$link=$link."|Referer=urlencode("https://database.gdriveplayer.me"); // is me now
If you use jwplayer make a new file "redirect.php" to get location
In jwplayer use file: redirect.php?file=urlencode($link);
And redirect.php
$filelink=urldecode($_GET['file']);
$ua = $_SERVER['HTTP_USER_AGENT'];
$filelink=str_replace(" ","%2B",$filelink); // stupid js encoding
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $filelink);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,0);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_REFERER, "https://database.gdriveplayer.me");
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_HEADER,1);
curl_setopt($ch, CURLOPT_NOBODY,1);
$h = curl_exec($ch);
curl_close($ch);
if (preg_match("/location:\s*(http.+)/i",$h,$m))
$link=trim($m[1]);
echo $link; (or better header("Location: $link"); )

from utils.

Love656 avatar Love656 commented on July 28, 2024

tnx a lot work for me.

from utils.

Love656 avatar Love656 commented on July 28, 2024

Hi can you fix hydrax if you can

from utils.

Love656 avatar Love656 commented on July 28, 2024

and pls can you help me with this when i get https://lh3.googleusercontent.com/A_hgNoVsgdvkRMl6KyWrJoQoQ7k7BcbjxPSpUXtf-iMBMNVMsBKoJHTXfyXiS81bhhL9AJPrkagmjHM7RW7FsjJNaOcUfXkZzMyoesqi9TZ6jw8daKgWnl6jMd-h0lF-a9ivsfsstg=m22 work in jwplayer but in browser not work i use curl to get redirector but the link i get not work can you help me
$ch = curl_init("https://lh3.googleusercontent.com/A_hgNoVsgdvkRMl6KyWrJoQoQ7k7BcbjxPSpUXtf-iMBMNVMsBKoJHTXfyXiS81bhhL9AJPrkagmjHM7RW7FsjJNaOcUfXkZzMyoesqi9TZ6jw8daKgWnl6jMd-h0lF-a9ivsfsstg=m22"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); $response = curl_exec($ch); $resolved = curl_getinfo($ch); echo $resolved['url'];

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Work for me. If you want final, final link, change in "redirect.php"
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); //(from 0)
and
if (preg_match_all("/location:\s*(http.+)/i",$h,$m)) // use preg_match_all now and get last location
$link=trim($m[1][count($m[1])-1]);

Also add (js encoding and php encoding....)
$filelink=str_replace(" ","%2B",$filelink);
$filelink=str_replace("%20","%2B",$filelink);
$filelink=str_replace("+","%2B",$filelink);

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Hi can you fix hydrax if you can

I update hydrax, but work only with a player with custom headers (need to send cookie and referer).
For me works with MX Player. Quality is very, very low.

from utils.

vb6rocod avatar vb6rocod commented on July 28, 2024

Client and server must be on same address. Most links don't accespt different host.

from utils.

glitdev29 avatar glitdev29 commented on July 28, 2024

but i see this site work link https://vidcloud9.com/streaming.php?id=MzEzODQ1&title=Time+Apart&typesub=SUB&sub=&cover=Y292ZXIvdGltZS1hcGFydC1sYXJnZS5wbmc=

Mate, Can We talk on Telegram?

from utils.

Love656 avatar Love656 commented on July 28, 2024

They add referer
So, if you play link in a player with custom headers add
$link=$link."|Referer=urlencode("https://database.gdriveplayer.me"); // is me now
If you use jwplayer make a new file "redirect.php" to get location
In jwplayer use file: redirect.php?file=urlencode($link);
And redirect.php
$filelink=urldecode($_GET['file']);
$ua = $_SERVER['HTTP_USER_AGENT'];
$filelink=str_replace(" ","%2B",$filelink); // stupid js encoding
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $filelink);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,0);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_REFERER, "https://database.gdriveplayer.me");
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_HEADER,1);
curl_setopt($ch, CURLOPT_NOBODY,1);
$h = curl_exec($ch);
curl_close($ch);
if (preg_match("/location:\s*(http.+)/i",$h,$m))
$link=trim($m[1]);
echo $link; (or better header("Location: $link"); )

Not work anymore

from utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.