Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursively delete temp files [Soundcloud] #10329

Open
NickWinston123 opened this issue Aug 13, 2016 · 2 comments
Open

Recursively delete temp files [Soundcloud] #10329

NickWinston123 opened this issue Aug 13, 2016 · 2 comments

Comments

@NickWinston123
Copy link

@NickWinston123 NickWinston123 commented Aug 13, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.08.12. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.08.12

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Question
  • Feature request (request for a new functionality)
  • Site support request (request for adding support for a new site)
  • Other

For some reason, when downloading a users tracks from soundcloud, I will get tons of temp files that will never fix themselves or go anywhere.
For example, the files that would be left from failing to download one track would be Song.jpg, song.temp.mp3, and song.mp3.

Does youtube-dl have any native function to recursively delete all these files from a folder? There is too many temporaryfiles to do something like rm song.* for each one, and I would not know how else to fix them. When trying to play the song.mp3 it fails to play, and now that I look at the three files, everything but the song.jpg is 0 bytes.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 13, 2016

Temporary files are intended to be kept so that people can analyze why the whole process fails. Could you paste your command(s) and outputs?

@NickWinston123
Copy link
Author

@NickWinston123 NickWinston123 commented Aug 13, 2016

@yan12125 Ill see if I can find the logs, but the way I download soundcloud playlist / tracks is, I have a cron job that runs every hour or so and downloads my soundcloud likes and other stuff, so I do not manually do it. The command it runs everyhour for my likes is this
cd /files/music/Soundcloud/GALACTICFIJI/likes
youtube-dl https://soundcloud.com/420liln/likes --embed-thumbnail -o "%(title)s.%(ext)s" -f mp3 --prefer-ffmpeg --verbose -i

I deleted some temp files and made it so cronjob puts a log in /var/log/cron.log, hopefully ill get results soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.