Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Moving file to other directory after it is done downloading [Solved] #11038
Comments
|
Closed. |
|
How did you solve this issue? |
|
@Stonedestroyer you can use --exec |
- [x] Question
Hi there.
I would like to move a converted video file once youtube-dl has downloaded the bestvideo and bestaudio from my /home/user/Videos/youtube on my SSD to my shared folder in /mnt/sharedfolder/youtube. However I would like to automate it say if i download a whole channel.
Download a video, convert it, and move it to the share. it is quicker to convert the file locally on the ssd instead of over the share.
To do that I would do the following
youtube-dl -f bestvideo+bestaudio -o /home/user/Videos/youtube/%(title)s.%(ext)s https://www.youtube.com/watch?v=eminWvN1O88mv /home/user/Videos/youtube/* /mnt/sharedfolder/youtube/Is there a way I can tell youtube-dl to just move the file it just downloaded so I don't have to stare at it and wait for it to finish? Is there a way to tell it to move after each video in a channel/playlist is downloaded?
The reason I want it to move the file to the share is, if the video happens to be downloaded before I leave the house, plex sync will automatically send that new file to my phone and I will be able to watch it on the go.
Thank you.