Giter VIP home page Giter VIP logo

youtube-downloader's People

Contributors

abhint avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

youtube-downloader's Issues

Question for WorkFlow

Thanks a lot for such a great example of flask and yt-dlp.
I am a Flutter developer. I was thinking to make a downloader app with the help of yt-dlp. The problem is yt-dlp is a python program and you can not run it in flutter. Moreover you can not run its executable file in Android or ios. So someone on internet mentioned that you can create yt-dlp api on your cloud-platform using flask and then you can make get and post requests to that api and get a working downloader for Android, iOS, Windows, Linux and MacOS (Flutter supports all these platforms).
But here comes major problems.

  1. If I send a url to yt-dlp api from my app. YT-DLP will start downloading file on my cloud platform and not on my mobile app.
  2. I just want that yt-dlp provide my direct download url of video in json response. So that I directly download the video file on my local mobile app instead of cloud.
  3. Also I do not know the workflow of yt-dlp. How a video's audio and video track is downloaded. is it same url or different url.
  4. How I will convert the downloaded file to mp4.

It would be great if you guide me.

Error in user_sanitize_info()

Is this a yt-dlp error, a flask error, or does it actually belong here?

Log output:

 * Serving Flask app 'main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:9001
 * Running on http://REMOVED:9001
Press CTRL+C to quit
 * Restarting with stat
[youtube] Extracting URL: https://www.youtube.com/watch?v=fwtBBTVDFsk
[youtube] fwtBBTVDFsk: Downloading webpage
[youtube] fwtBBTVDFsk: Downloading ios player API JSON
[youtube] fwtBBTVDFsk: Downloading android player API JSON
[youtube] fwtBBTVDFsk: Downloading m3u8 information
[2023-10-07 09:26:17,892] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 1455, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 869, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 867, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/var/www/html/maskinen/main.py", line 13, in _index
    user_dict = get_youtube_extract(youtube_url)
  File "/var/www/html/maskinen/utils/tool.py", line 102, in get_youtube_extract
    user_sanitize = user_sanitize_info(sanitize_info)
  File "/var/www/html/maskinen/utils/tool.py", line 23, in user_sanitize_info
    file_size_sanitize = formats['filesize'] if formats['filesize'] else 0
KeyError: 'filesize'
REDACTED - - [07/Oct/2023 09:26:17] "POST / HTTP/1.1" 500 -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.