ArdiArtani / Photo-Google-Player-Script

Get Photo Google streaming links
https://photo-google-player-script.now.sh
GNU General Public License v3.0
48 stars 45 forks source link

added video download function #30

Closed Zebraslive closed 5 years ago

Zebraslive commented 5 years ago

you can generate a download url for the original file using the dwnload($url) function Google Photos converts videos from the bottom up. 360p to 1080p. Added conditions to the getPhotoGoogle() function else if($count >= 0) It will return the download url when no resolutions have been converted yet. this can be streamed the same way but you can't use range requests with it.

Zebraslive commented 5 years ago

fixed error

added error handling for when no resolutions are returned.

if (isset($data[1])) {
      $url = explode('%3Dm', $data[1]);  
        $decode = urldecode($url[0]);
    } else {
        $decode = "";
    }
Zebraslive commented 5 years ago

@ArdiArtani

khalisafkari commented 5 years ago

@Zebraslive can you see the project that I wrote with the node https://github.com/khalisafkari/google-photos-etc

Zebraslive commented 5 years ago

@khalisafkari looks good. I'll test it out when I get some free time.