ytmdl icon indicating copy to clipboard operation
ytmdl copied to clipboard

no file

Open charlesRivias opened this issue 1 year ago • 7 comments

after download no files exist in dir

Downloaded! ==> Getting song data for https://music.youtube.com/watch?v=o_ryMz8OLxY... ==> Something went wrong with iTunes. The program will continue withthe other providers. Please check '[C:\Users\RAVIXVI.cache\ytmdl\logs\log.cat]' for more details. Couldn't read cache at: .cache Couldn't write token to cache at: .cache ==> Moved to D:... ==> Done

charlesRivias avatar Mar 03 '23 08:03 charlesRivias

Same issue

Looks like the file gets saved in temp directory first (something like .cache) but then just disappears (when in fact it should be moved to default directory) . I managed to save a copy manually while the original file still existed. Then it disappeared and i was left with the copy only which is kind of a workaround..

user666acid avatar Mar 05 '23 12:03 user666acid

@pimpmobile01 Are you able to reproduce the issue on a Linux machine or is it an Windows machine? @charlesRivias seems to be using Windows.

I just confirmed and this issue is not producable on Linux. I think it's specific to Windows.

deepjyoti30 avatar Mar 05 '23 14:03 deepjyoti30

yes im using Windows is there any fix

charlesRivias avatar Mar 10 '23 12:03 charlesRivias

I got the same issue and I fixed it by myself If you are tryng to download a song directly by the youtube link, use the --url flag

example: ytmdl --url https://www.youtube.com/watch?v=7MCoMI0I5IU

(sorry if my english is bad, spanish is my main language and im too lazy to use a translator.)

PanConKisu avatar Mar 26 '23 06:03 PanConKisu

oh and use the --skip-meta flag to avoid the Something went wrong with iTunes. thing.

PanConKisu avatar Mar 26 '23 06:03 PanConKisu

Yes, only put --url infront of the actual url. Its searching for the metadata of url instead of song name (which returns an error) eg: ytmdl --url URL

if you dont put --url, it will ignore all the flags after the url and returns an itunes error and will delete your file

R-Satwik avatar Jun 08 '23 08:06 R-Satwik

There are two issues here.

  1. itunes failing. This is a bug though I am unable to reproduce it on both Mac and Linux at the moment, I have seen this issue before happen a few times. Most of the times, it goes away on it's own without any fix being required. This issue is not thrown if --skip-meta is used because itunes is part of the metadata step.
  2. While moving the file from .cache to the users current directory (or the music directory) the token error is showing up which is making ytmdl unusable.

Since I am unable to reproduce this atm, can one of you confirm if the 2nd issue still shows up if --skip-meta is used. If not than that would confirm that the 2nd issue only shows up when the 1st issue does and only in Windows systems.

deepjyoti30 avatar Jun 13 '23 17:06 deepjyoti30