Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. yt-dlp Web UI

yt-dlp Web UI

Scheduled Pinned Locked Moved App Wishlist
11 Posts 3 Posters 2.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by jdaviescoates
    #2

    PS while searching for the above I also came across this https://ytdlp.online/ which seems to work well too for the purposes I had in mind

    I use Cloudron with Gandi & Hetzner

    jdaviescoatesJ 1 Reply Last reply
    4
    • jdaviescoatesJ jdaviescoates

      PS while searching for the above I also came across this https://ytdlp.online/ which seems to work well too for the purposes I had in mind

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #3

      @jdaviescoates said in yt-dlp Web UI:

      PS while searching for the above I also came across this https://ytdlp.online/ which seems to work well too for the purposes I had in mind

      But I have another use case which https://ytdlp.online/ doesn't fulfill: using yt-dlp to directly download media into a Cloudron Volume connected to my Jellyfin, which I think yt-dlp Web UI would be great for

      (I already do a similar thing with the Transmission app - download torrents directly into a Cloudron Volume which is mounted to my instance of Jellyfin - but sometimes - e.g. right now - I find things I'd like to watch on my TV using Jellyfin that are on YouTube but for which I can't find any seeded torrents, so right now I'm downloading this YouTube playlist to my laptop, just so I can then upload it all to my Cloudron Volume, which just seems silly really)

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      4
      • SansGuidonS Offline
        SansGuidonS Offline
        SansGuidon
        wrote on last edited by SansGuidon
        #4

        I'm frustrated with the lack of such a basic funny utility 🙂
        So if you are in the mood for workarounds without the need for fully packaging a Cloudron app, here my hacky solution cooked in 1h:

        1. Create a LAMP app in Cloudron, something like yt-dlp for a name sounds good xD
        2. Mount a volume to your created app. It's recommended but optional, it depends if you want Cloudron to backup your downloaded videos (by default it backups /app/data) ?
        3. Open a terminal from Cloudron WEB UI into your freshly created yt-dlp app, and then download/execute this script (https://gitea.zoemp.be/sansguidon/snippets/raw/branch/main/cloudron/awesome-installs/yt-dlp.sh) from my Gitea instance
        curl -O https://gitea.zoemp.be/sansguidon/snippets/raw/branch/main/cloudron/awesome-installs/yt-dlp.sh
        bash yt-dlp.sh
        

        -> The script installs yt-dlp, prompts for htaccess password and for downloads location (by default /app/data/downloads), writes a config.ini file, configures htaccess,... and creates a /app/data/public/index.php which will be a very minimalistic "web interface to yt-dlp" 😆
        4. You might need to follow instructions here https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp and download your YouTube cookies from Firefox/Chrome/Brave (then remove the extension) because some YouTube downloads require authentication.
        5. Point your browser at your Cloudron app and upload your cookies txt file then try filling a few youtube links in the textarea.

        Screenshot of this minimalistic web app. Feel free to take ownership of the code 🙂 and customize at need.
        6b312650-37a4-4405-82e7-63d6f93f352f-image.png

        About me / Now

        robiR 1 Reply Last reply
        3
        • SansGuidonS SansGuidon

          I'm frustrated with the lack of such a basic funny utility 🙂
          So if you are in the mood for workarounds without the need for fully packaging a Cloudron app, here my hacky solution cooked in 1h:

          1. Create a LAMP app in Cloudron, something like yt-dlp for a name sounds good xD
          2. Mount a volume to your created app. It's recommended but optional, it depends if you want Cloudron to backup your downloaded videos (by default it backups /app/data) ?
          3. Open a terminal from Cloudron WEB UI into your freshly created yt-dlp app, and then download/execute this script (https://gitea.zoemp.be/sansguidon/snippets/raw/branch/main/cloudron/awesome-installs/yt-dlp.sh) from my Gitea instance
          curl -O https://gitea.zoemp.be/sansguidon/snippets/raw/branch/main/cloudron/awesome-installs/yt-dlp.sh
          bash yt-dlp.sh
          

          -> The script installs yt-dlp, prompts for htaccess password and for downloads location (by default /app/data/downloads), writes a config.ini file, configures htaccess,... and creates a /app/data/public/index.php which will be a very minimalistic "web interface to yt-dlp" 😆
          4. You might need to follow instructions here https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp and download your YouTube cookies from Firefox/Chrome/Brave (then remove the extension) because some YouTube downloads require authentication.
          5. Point your browser at your Cloudron app and upload your cookies txt file then try filling a few youtube links in the textarea.

          Screenshot of this minimalistic web app. Feel free to take ownership of the code 🙂 and customize at need.
          6b312650-37a4-4405-82e7-63d6f93f352f-image.png

          robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #5

          @SansGuidon you can use https://huggingface.co/spaces/enzostvs/deepsite to generate a nice UI for it..

          I am looking into a local implementation.

          Conscious tech

          1 Reply Last reply
          1
          • SansGuidonS Offline
            SansGuidonS Offline
            SansGuidon
            wrote on last edited by SansGuidon
            #6

            I've tried but I've quickly reached the free AI limit.
            I came up with something like this but I'm not so much into "nice" UI so
            image.png
            I can't judge if that's really better. I've anyway updated the POC.

            If not good enough maybe you want to look into it 😜

            About me / Now

            1 Reply Last reply
            1
            • robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #7

              Ok, I got a local version working in LAMP.

              Here's what I came up with:

              image.png

              image.png

              Pretty darn good for a one shot prompt..

              Conscious tech

              1 Reply Last reply
              2
              • SansGuidonS Offline
                SansGuidonS Offline
                SansGuidon
                wrote on last edited by
                #8

                Nice work!
                I noticed I had to provide quite often my User-Agent and cookies for yt-dlp to work. I'm not sure if anyone experienced the same. In the end I had to find a way to persist those.
                And also to give the option to decide which favorite formats to use for content by default.
                Also if possible, support list of URLs and playlists 🙂

                About me / Now

                robiR 1 Reply Last reply
                1
                • SansGuidonS SansGuidon

                  Nice work!
                  I noticed I had to provide quite often my User-Agent and cookies for yt-dlp to work. I'm not sure if anyone experienced the same. In the end I had to find a way to persist those.
                  And also to give the option to decide which favorite formats to use for content by default.
                  Also if possible, support list of URLs and playlists 🙂

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #9

                  Thank you! It was a mini celebration when I got it all to work! 💥

                  I was surprised in the settings with the MP3 option. I'll be using that for sure.

                  You can definitely supply some arguments to yt-dlp to handle playlists and it will only download the ones it hasn't yet, it keeps track! Check the docs section below the cookies link you posted.

                  A good enhancement for the Queue tab of the Cosmo UI 😉

                  Let me know if you want to hack on the code.

                  Conscious tech

                  SansGuidonS 1 Reply Last reply
                  2
                  • robiR robi

                    Thank you! It was a mini celebration when I got it all to work! 💥

                    I was surprised in the settings with the MP3 option. I'll be using that for sure.

                    You can definitely supply some arguments to yt-dlp to handle playlists and it will only download the ones it hasn't yet, it keeps track! Check the docs section below the cookies link you posted.

                    A good enhancement for the Queue tab of the Cosmo UI 😉

                    Let me know if you want to hack on the code.

                    SansGuidonS Offline
                    SansGuidonS Offline
                    SansGuidon
                    wrote on last edited by SansGuidon
                    #10

                    @robi said in yt-dlp Web UI:

                    Let me know if you want to hack on the code.

                    Nice, I'm very curious. Send over your POC link and I’ll check it out when I can. No promises 😛

                    About me / Now

                    robiR 1 Reply Last reply
                    1
                    • SansGuidonS SansGuidon

                      @robi said in yt-dlp Web UI:

                      Let me know if you want to hack on the code.

                      Nice, I'm very curious. Send over your POC link and I’ll check it out when I can. No promises 😛

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #11

                      Cool, I managed to deploy it here: https://huggingface.co/spaces/rvce/cosmo-dl

                      Conscious tech

                      1 Reply Last reply
                      2
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search