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

Support deleting downloaded YouTube items #24

Open
stuporglue opened this issue Feb 26, 2022 · 6 comments
Open

Support deleting downloaded YouTube items #24

stuporglue opened this issue Feb 26, 2022 · 6 comments

Comments

@stuporglue
Copy link
Contributor

It would be nice if there were a way to delete downloaded YouTube items.

My users can access cyp through the web, but don't have disk access to manage files.

I think this could/should only apply to YouTube files. Since cyp is responsible for downloading them, I see no problem with it also having permissions to delete them.

@ondras
Copy link
Owner

ondras commented Feb 27, 2022

Hmm, this might be pretty complex. We have no (UI) way of listing contents of the _youtube directory. One could argue that this directory shall be available via the MPD library, but there are no guarantees about its name and/or location within the MPD library structure.

@stuporglue
Copy link
Contributor Author

No problem to mark this as a "won't fix" issue then. I thought it might be (relatively) simple since everything downloads to the _youtube directory, but since there's no existing code to do directory listings etc. it might be too much work to be worth it.

@rominator1983
Copy link

There is also the option of adding a URL to mpd. When calling youtube-dl --yes-playlist -i -c -x -q -g <URL> yout get back an URL that can be added to MPD via addid command to stream directly.

Thus one could leave the download-folder alone completely.

What do you think?

@ondras
Copy link
Owner

ondras commented Nov 28, 2023

There is also the option of adding a URL to mpd. When calling youtube-dl --yes-playlist -i -c -x -q -g <URL> yout get back an URL that can be added to MPD via addid command to stream directly.

Interesting. Is youtube-dl still alive and kicking? Based on my experience, it stopped working quite some time ago, paving the way for more recent alternatives such as https://github.com/yt-dlp/yt-dlp

@rominator1983
Copy link

That is true of course. Though most things work when switching to yt-dlp by changing only the command line (this can be done with cyp too) since command line switches seem to be compatible. Interestingly enough the -g switch which makes it extract an audio stream URL is not even documented in yt-dlp but works nonetheless.

@rominator1983
Copy link

Have played around a little. The switch -g is there but it's not work for longer media any more. At least for YouTube. Other sites might work still. I think at the time of the first ad it breaks and playback stops. Might still work with a premium account.

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

No branches or pull requests

3 participants