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

cache?? #21

Closed d4lv closed 6 years ago

d4lv commented 6 years ago

i need to put cache in this script is anyone can help me or will be update to script soon??

Zebraslive commented 6 years ago

@d4lv try using this version of gp.php it caches the links for 1hr. https://github.com/Zebraslive/Photo-Google-Player-Script/blob/Zebraslive-1080-patch/gp.php

d4lv commented 6 years ago

@Zebraslive thank you.. but i want to ask a dump question now :) if i press the X video and is make a cache file in 1 hour every time i press the video to watch will be read the catch and not the real link?? and this cache is read only from me or for all who press the same video?? is all this working for save the videos from to many views per day?? (i don't know now what is the day limit in google photos and i expect this cache to save me a little views or not?)

Zebraslive commented 6 years ago

@d4lv Yes the cache should help prevent the file from being limited as fast. It will show the same cached links for everyone that watches a specific video. I don't know the limits either but I assume they are the same if not more than google drive which apparently is 2000.

d4lv commented 6 years ago

@Zebraslive i am using wordpress plugin and i need to get json link (like the google drive script) is easy to add in this script??

just i don't know another way how to add the gp script in this plugin i need it because i encrypt the real link from google photos...

this is the part of the wp plugin:

$mp4 = str_replace("&","&",$mp4); if ($mp4) $mp4_source = 'sources: [{file:"'.plugins_url('redirector.php', __FILE__).'?'.split_link(encrypte($mp4,'compuphd')).'",label:"360p","type":"mp4","default": "true"}],'; else $mp4_source = ''; $gdrive = str_replace("&","&",$gdrive); if ($gdrive) $gdrive_source = 'sources: [{file:"'.plugins_url('redirector.php', __FILE__).'?'.split_link(encrypte('https://www.googleapis.com/drive/v3/files/'.$gdrive.'?alt=media&key=AIzaSyDdoetN4aDmDBc6Y11CUGK4nhZ0pvZbXOw','compuphd')).'","type":"video/mp4","label":"Original"}],'; else $gdrive_source = '';

Zebraslive commented 6 years ago

@d4lv What's the plugin? maybe I can add photos to it. I'll add json output to this script soon.

d4lv commented 6 years ago

@Zebraslive http://prntscr.com/kjzs2d can you make this encryption??

Zebraslive commented 6 years ago

@d4lv looks like basic http://dean.edwards.name/packer/ check the Base62 encode
Shrink variables
boxes.

d4lv commented 6 years ago

@Zebraslive i try site like this but is not show the player can you try an see if is working?? thanks

Zebraslive commented 6 years ago

@d4lv I need the code from ur img to test it.

d4lv commented 6 years ago
<div id="player"></div>
<script type="text/javascript">
var player = jwplayer("player");
player.setup({
sources: <?php echo $getGP?>,
width: $(window).width(),
height: $(window).height(),
aspectratio: "16:9",
controls: true,
displaytitle: false,
stretching: "exactfit",
fullscreen: "true",
primary: "html5",
autostart: false,
playbackRateControls: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2],
image:'',
tracks: [{
            file: "",
            label: "Subs",
            kind:  "captions",
            default: "true",
            }],
            captions: {
            color: "#FFFF00",
            fontSize: 14,
            edgeStyle: "uniform",
            backgroundOpacity: 0,
            },
 logo: {
            file: "",
            logoBar: "",
            position: "top-left",
            link: "",
            hide:  'true'
        },
            aboutlink:"",
            abouttext:"<3",

});
</script>
d4lv commented 6 years ago

@Zebraslive i am sorry i open this topic for the gp problem but now i ask just you help for random things anyway is any chance to make rapidvideo script??

Zebraslive commented 6 years ago

@d4lv Yes, I can make a rapidvideo script.

d4lv commented 6 years ago

@Zebraslive you will upload public the script in github??

and i try the comment code you send me but is not working is just show this {"file":null,"label":"Auto","type":null,"default":"true"}

Zebraslive commented 6 years ago

@d4lv maybe.... not sure yet. I might sell for cheap.

d4lv commented 6 years ago

@Zebraslive send me your email or skype

Zebraslive commented 6 years ago

@d4lv Almost done. I need to re-do a lot before it's ready for others to use. test embed http://animeapi.ga/rapid/embed.php?url=Rr4YGnXli0bymVmEzKesPHYzqAJNryjGgZw2xRtj_BQWHdO6DDTiX8M6LqgSr2pcQJuOlOHE6knHufUoEOXqnQ

It caches for 1 hour. Also it use proxies to get around captcha when needed.

I'll post again here when it's finished with a full demo page that contains instant buy button.

Zebraslive commented 6 years ago

@d4lv Test it out http://animeapi.ga/rapid/

d4lv commented 6 years ago

@Zebraslive is easy to make the script for jwplayer?? (all my scripts is jw and i want to be all the same )

and i need to add the script in wordpress can you help me?

@Zebraslive i try the script and is not working i get HTTP ERROR 500 after i put the link from rapid and if is easy make the script to work with id like this api/rv/embed.php?url=v/FS66LJLPKH

Zebraslive commented 6 years ago

@d4lv Sorry I was offline for a awhile. I'll email you when the next update is ready.

Zebraslive commented 6 years ago

@d4lv I emailed you my skype. check spam folder if you don't see it.

d4lv commented 6 years ago

@Zebraslive done..

d4lv commented 6 years ago

@Zebraslive can you check the skype please :)