Giter Club home page Giter Club logo

google-drive-stream-proxy's Introduction

Google-Drive-Stream-Proxy

Alternative Google Drive Streaming

An open source code which streams using the host itself to provide the initiation of proxy. Demo will be disabled due to its current status.

"Once again, I'll make this script as a beta version to look for further patches and bugs for this little boy" -Modifier

Update

  • Two branches have been injected to this script, view for educational purposes or do it the way you wanted.
  • class.DriveProxy.php, LOG.md, example.php, stream.php will be deleted but you can check it out here if you want to see it again.

Information

  • You can check the update logs here.
  • If you have questions, just drop from the issues tab so I can answer it as soon as possible.
  • This script will be converted back as a beta since many of the functions bug out or result as error.
  • Thanks to this guy p4v800m, since he created this script.

Contribution

  • Fork and star this repository.
  • Pull requests can be follow up here, let's help each other to make the script better.

Suggestion

google-drive-stream-proxy's People

Contributors

japnimedev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-drive-stream-proxy's Issues

CNR String in the URL

Hi!
I recently had problems with some URLs containing a "CNR". Videos that contained this in the URL were not played

Link generated: https://streamingserverblablabal.com/?id=bbbc22572e701b6e&itag=22&source=picasa&requiressl=yes&mm=30&mn=sn-ab5szne7&ms=nxu&mv=m&pl=48&ttl=transient&ei=eLobWpeoO5bsqAW7nKbQCw&driveid=UFNOUFNSblFtY2Q1SXV2NDJyd1p2Uk13UnYxMVB3UTVMeWFsbUVVdjRXQ1hSS2lIMUx2VFdXR20xOTRuc1p1UA==&api=animesync.tv&app=explorer&mime=video/mp4&cnr=14&lmt=1511587053053883&mt=1511766564&ip=2604:a880:800:10::3a39:1&ck=rPpUKwBNF4s&dom=aHR0cHM6Ly9yNS0tLXNuLWFiNXN6bmU3Lmdvb2dsZXZpZGVvLmNvbS8=&ipbits=0&expire=1511770248&cp=QVNGU0hfT1JSSVhOOm9Tc1FJd0ZLRzNw&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,pl,ttl,ei,driveid,app,mime,cnr,lmt,cp&signature=522FDAFA52B8CB1CD10981D4B1BF29805AC3DB1E.8526E969DC925296CBF63416D1219E1FB606B03D&key=ck2&apps=animesync.tv

Just CTRL + F and search by "cnr" in the link
This happens only in 720p quality.

The file was uploaded in google photos and passed to google drive, but the file has a link just like all other googl drive files...

Video link in google drive: https://drive.google.com/file/d/1of9OL9ymU-s-sTF2PepOk0Jsodht_yqRAw/view

Best.

How to use?

/stream.php?id=0B4jPFiPe7gVIVUtNRGVVWmd1Slk ??

screenshot_11

about new recoded file stream.php

After I take a look the new updated file stream.php, it seems not using the way of usual stream like use chunked or partial download like before. I'm affraid this will killing the memory of php.

Correct me if I'm wrong. Thanks.

Cache not working correctly

I'm using nginx from this script https://vpssim.com/

First, script create cache file and player run normal, but after some minutes ( 10-20 minutes maybe ), the player show: Error loading media file could not be played

Then when I get that error, I tried to remove all cache file in cache folder, and player working again, and after time error return again and again..., so it waste time to do it everytime and have to check manually, please give me solution, thank you !

Also I install vpssim with PHP version 5.6.32

It's working.

I see "cache" folder in my server. But don't have anything, player's black, nothing else. What's happending???

How to make stream fast?

I have tested this script and work fine.. but the stream speed is very slow.. how to make stream fast? Thanks

net::ERR_CONTENT_LENGTH_MISMATCH

Hi, Thanks for the code. I tried it on my server, but i get subjected error on chrome

Request URL:http://www.xxx.info/Random/google/stream.php?id=107435f14b7cdbb1&itag=18&source=webdrive&requiressl=yes&mm=30&mn=sn-q4flrnee&ms=nxu&mv=u&pl=24&ttl=transient&ei=EEl3WrqgB4TQqgXEhrnADw&susc=dr&driveid=OWtNSHV5ZzREV0lBNUhWaWUxYWUrMEdLd1VhS29WWVJqMTRoaFFvajhwcz0=&driveapi=japnime&app=explorer&mime=video/mp4&lmt=1408508417332067&mt=1517766606&ip=xxx&token=DmzWt-B-2Bo&domain=aHR0cHM6Ly9yMS0tLXNuLXE0ZmxybmVlLmdvb2dsZXZpZGVvLmNvbS8=&ipbits=0&expire=1517770528&cp=QVNGWUhfT1VQSVhOOkdwY1N1LUYtNVly&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,pl,ttl,ei,susc,driveid,app,mime,lmt,cp&signature=130F20A5995DDC744944B82FFF6CE9C4FB42AD1C.0D21FACD020E5250ADF689F7BDD7F3614E6451A8&key=ck2&server=japnimeserver.com
Request Method:GET
Status Code:206 Partial Content
Remote Address:xxx
Referrer Policy:no-referrer-when-downgrade

Response Headers
view source
Accept-Ranges:bytes
CF-RAY:3e7f917196b506e2-LHR
Connection:keep-alive
Content-Length:240156
Content-Range:bytes 0-240155/240156
Content-Type:video/mp4
Date:Sun, 04 Feb 2018 18:07:12 GMT
Server:cloudflare
X-Powered-By:PHP/5.5.36

Request Headers
view source
Accept:/
Accept-Encoding:identity;q=1, *;q=0
Accept-Language:en-US,en;q=0.9
Connection:keep-alive
Cookie:__cfduid=d4017c70c4d4e88add7e32a542f73a0c41501439273; _ga=GA1.2.1552806601.1502231164
Host:www.xxx.info
Range:bytes=0-
Referer:http://www.xxx.info/Random/google/example.php?id=0B2Vg1UaYogXEclRZTDUxOVdQZFk
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Query String Parameters
view source
view URL encoded
id:107435f14b7cdbb1
itag:18
source:webdrive
requiressl:yes
mm:30
mn:sn-q4flrnee
ms:nxu
mv:u
pl:24
ttl:transient
ei:EEl3WrqgB4TQqgXEhrnADw
susc:dr
driveid:OWtNSHV5ZzREV0lBNUhWaWUxYWUrMEdLd1VhS29WWVJqMTRoaFFvajhwcz0=
driveapi:japnime
app:explorer
mime:video/mp4
lmt:1408508417332067
mt:1517766606
ip:xxx
token:DmzWt-B-2Bo
domain:aHR0cHM6Ly9yMS0tLXNuLXE0ZmxybmVlLmdvb2dsZXZpZGVvLmNvbS8=
ipbits:0
expire:1517770528
cp:QVNGWUhfT1VQSVhOOkdwY1N1LUYtNVly
sparams:ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,pl,ttl,ei,susc,driveid,app,mime,lmt,cp
signature:130F20A5995DDC744944B82FFF6CE9C4FB42AD1C.0D21FACD020E5250ADF689F7BDD7F3614E6451A8
key:ck2
server:japnimeserver.com

Cache issue

When the script asks for a URL it generates a .cache file with the response. The cache file is created and served perfectly, however, after 20 minutes the link breaks and instead of the script rewriting the response it continues serving the cache permanently. How to fix that?

Download rate limit and broken links question

Idk why but after 3:00 AM (gmt -3) google drive broke some links and say "the download limit has excedeed" but i still can download the file only streaming links does not work. however after 6 AM the video works normally. the question is, does the script break the download limit? Someone having this problem?

image
(https://drive.google.com/file/d/1VM5dDSGy_7NyTtSVgCz5v2bSagqRjLQQRQ/view)

also, some old videos broken with no reason and not back to work :/
image
(https://drive.google.com/file/d/0B2r31YvbMD0rYWwyOUwwdGpka0U/view)

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.