Giter Site home page Giter Site logo

Comments (12)

efka-9 avatar efka-9 commented on May 30, 2024 1

@norkunas What php version do you use? I use 'restrict-filenames', it's not perfect but still it's a solution. Thanks!

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

@Ratnote is this bug applies only for some of urls or for all?

from youtube-dl-php.

efka-9 avatar efka-9 commented on May 30, 2024

@norkunas Good question. I think it only appears when filename contains special characters (ฤ—, ลก, "). Try this one - https://www.youtube.com/watch?v=gwlLHYBXszU.

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

@Ratnote ok, i can reproduce it. Also what OS do you use?

from youtube-dl-php.

efka-9 avatar efka-9 commented on May 30, 2024

@norkunas My virtual machine runs on Ubuntu 16.04. It may help - https://laravel.com/docs/5.3/homestead

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

Ok, so I've tested with php 7.0 and php 7.1RC1 so it seems that this is an php bug because in later version it works fine for me.
I've tried to use setlocale(LC_ALL, "en_US.UTF-8"), played with utf8 encoding/decoding but none of these worked for me..

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

Currently I'm using 7.0.9. Glad you resolved that with this option, missed it somehow ๐Ÿ‘

from youtube-dl-php.

mtrebles avatar mtrebles commented on May 30, 2024

Hi. Is it possible to save file with special chars like "ล›", "ฤ…"? Now when I'm trying file is saving without that chars. If I run \ youtube-dl --extract-audio --audio-format=mp3 uri \ straight from terminal I'm getting file with this chars but If I'll post URI by your class I don't get this chars.
Regards

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

@mtrebles it should work since php >7.1

from youtube-dl-php.

mtrebles avatar mtrebles commented on May 30, 2024

@norkunas So I've updated php to 7.1.2. File is still saving without special characters. Additionally If downloaded file contains special chars like "ฤ…", "ล›", "ฤ‡" etc. $video['_filename'] output is empty. (In PHP 5.6 $video['_filename'] was only without special chars)

from youtube-dl-php.

mtrebles avatar mtrebles commented on May 30, 2024

@norkunas My mistake. In PHP 5.6 output was also empty (but sometimes was only without special chars). I don't know why this happend.

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

Can you give me url you test?

from youtube-dl-php.

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.