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

Moving file to other directory after it is done downloading [Solved] #11038

Closed
ghost opened this issue Oct 26, 2016 · 3 comments
Closed

Moving file to other directory after it is done downloading [Solved] #11038

ghost opened this issue Oct 26, 2016 · 3 comments

Comments

@ghost
Copy link

@ghost ghost commented Oct 26, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.10.26
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

- [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

  • Run this command:

youtube-dl -f bestvideo+bestaudio -o /home/user/Videos/youtube/%(title)s.%(ext)s https://www.youtube.com/watch?v=eminWvN1O88

  • Wait for the download and conversion to finish and run:

mv /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.

@ghost ghost changed the title Moving file to other directory after it is done downloading Moving file to other directory after it is done downloading [Solved] Oct 26, 2016
@ghost
Copy link
Author

@ghost ghost commented Oct 26, 2016

Closed.

@dstftw dstftw closed this Oct 26, 2016
@Stonedestroyer
Copy link

@Stonedestroyer Stonedestroyer commented Feb 6, 2017

How did you solve this issue?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 6, 2017

@Stonedestroyer you can use --exec

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
3 participants
You can’t perform that action at this time.