Giter Club home page Giter Club logo

Comments (3)

Tzahi12345 avatar Tzahi12345 commented on July 24, 2024

Hm, could you run ls -l and get the permissions on the file? I've encountered issues where videos get locked up, but the JSON file being unreadable even after closing the app seems like it's a permissions issue.

If it is a permissions issue, a possible fix is making sure the JSON file is open to all reads/writes (777) after a video downloads. Just a thought, let me know if ls -l shows anything interesting.

from youtubedl-material.

GlassedSilver avatar GlassedSilver commented on July 24, 2024

ls -l did indeed reveal something interesting.

video and thumbnail files:
-rw-r--r-- 1 root root

json:
-rw------- 1 root root

Guess there's the problem. :)

from youtubedl-material.

Tzahi12345 avatar Tzahi12345 commented on July 24, 2024

Ok, that is quite interesting... I just checked my JSON files and saw the same thing. Couldn't find any related issues for youtube-dl, maybe they want it that way for whatever reason.

I've added some code in so that when the JSON files get created, it has the same permissions as the other files in the directory. Here's the relevant commit, just note some minor changes were made later to avoid compatibility issues. You can test this out if you switch to the nightly tag on Docker (just set up automatic builds!), otherwise the next update will have it included. In the meantime, it should be possible to access the files with sudo.

Anyways, that should fix the bug. Let me know if anything else pops up!

from youtubedl-material.

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.