Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

New issues. Video orverlying #186

Closed
emiliobasualdo opened this issue Sep 7, 2015 · 2 comments
Closed

New issues. Video orverlying #186

emiliobasualdo opened this issue Sep 7, 2015 · 2 comments

Comments

@emiliobasualdo
Copy link
Contributor

After getting latest update.
Images are downloaded perfectly. but

  1. When downloading video snaps files are created but with no extension and zero data. Debug is returns infinite stuff like this. ?????U????m_SX?j?C???=F:~u??^?x??|??)#?=??{??ؿq{qs˹??8??>Zf?(S??j?Pei?9ǵL??֘)?@?$(??)??O#A'֝????@ From past experience I relate this to png file being not written into files therefore outputting data, probably the video overlay as text or filter in PNG format.
    At the same time debug shows Undefined variable: newFile in .../.../..../SC-API-master/src/snapchat.php on line 1918which is the writeToFile($path, $data).

Here's the complete debug https://www.dropbox.com/s/7pvivezy72mnvvm/debug.rtf?dl=0
I know there are passwords. don't care.

@mgp25 mgp25 closed this as completed in 1366a4b Sep 7, 2015
@mgp25
Copy link
Owner

mgp25 commented Sep 7, 2015

@LanchaBasualdo can you check the mime type of the file that is causing you that error? For now we are only taking consideration for this mime types:

            case "image/jpeg":
                $ext = ".jpg";
                break;
            case "image/png":
                $ext = ".png";
                break;
            case "video/mp4";
                $ext = ".mp4";

If you notice a new one, let me know

Regards

@emiliobasualdo
Copy link
Contributor Author

@mgp25 mime tiype is text/plain probably because of empty file. Thing is that some image files, I belive PNGs, are ouputed at debug like U????m_SX?j?C???=F:~u??^?x??|??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants