Coder Social home page Coder Social logo

m3u8downloader's People

Contributors

alexloney avatar eo2875 avatar josephcappadona avatar

Stargazers

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

Watchers

 avatar  avatar

m3u8downloader's Issues

how to put inside folder if the folder path contain space

hi sorry for my bad english,
i have problem,
if i doing this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\TestUrl\Test.mp4 --tempdir E:\TestUrl\
it work,
but if:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\Test Url\Test.mp4 --tempdir E:\Test Url\
it not work,
i tried to add " like this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o "E:\Test Url\Test.mp4" --tempdir "E:\Test Url\"
it still not work, please help

randomfilenames option throws an error

When using the randomfilenames option, the program creates a buffer
file called, for example, 3ea23754-2065-4c9c-82ab-f753581fc949..
Note that the filename lacks an extension.
As such, ffmpeg (at least version 2024-01-04-git-33698ef891)
throws the following error:

Not detecting m3u8/hls with non standard extension and non standard mime type
    Last message repeated 3 times
[in#0 @ 00000239880fec80] Error opening input: Invalid data found when processing input
Error opening input file C:\Users\MyName\MyFile\abfca6a5-1af1-4a25-bf79-462140281844.
Error opening input files: Invalid data found when processing input

Running Error When I Use This.

I'm using this command to install m3u8downloader
pip install --user m3u8downloader

and when i using this command to download m3u8 videos
downloadm3u8 -o ~/Downloads/foo.mp4 https://example.com/path/to/foo.m3u8

get this error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Scripts\downloadm3u8.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'm3u8downloader.main'

how to solve this ?

OSError: [Errno 36] File name too long

┌──(venv)─(root💀vizvasrj)-[/tmp]
└─# downloadm3u8 'https://b-g-eu-8.feetcdn.com:2223/v3-hls-playback/db0816de2695b28393c715545c03ed782c88d64cba262c90088373c65f351de347b0a719d205eeb6f0a50a4e7b74e3f6cd7d83686f2440e1033e3e1a766a3df361c276b29224498c212862870fe42bb4cffa08633ec0ad8647d1a21855d8cf72ed3c434575fceaeb3a91b1cedda64f07b6b648995a15fbf60be5236ac8038c98bf486a0e9c88a6e56d846f89fa13e3c2a93742dfed8c80c51cd87a77e96595b16faad3882487d3afb0cde73e91b75d46518810c9990239a6a4c76c261c39be05/720/index.m3u8' -o ./her.mp4
Traceback (most recent call last):
  File "/root/Github/venv/bin/downloadm3u8", line 8, in <module>
    sys.exit(main())
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 507, in main
    downloader.start()
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 270, in start
    self.download_m3u8_link(self.start_url)
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 457, in download_m3u8_link
    self.process_media_playlist(url, content)
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 402, in process_media_playlist
    self.media_playlist_localfile, _ = self.mirror_url_resource(url)
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 312, in mirror_url_resource
    ensure_dir_exists_for(local_file)
  File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 104, in ensure_dir_exists_for
    os.makedirs(os.path.dirname(full_filename), exist_ok=True)
  File "/usr/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/usr/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
OSError: [Errno 36] File name too long: '/root/.cache/m3u8downloader/her/v3-hls-playback/db0816de2695b28393c715545c03ed782c88d64cba262c90088373c65f351de347b0a719d205eeb6f0a50a4e7b74e3f6cd7d83686f2440e1033e3e1a766a3df361c276b29224498c212862870fe42bb4cffa08633ec0ad8647d1a21855d8cf72ed3c434575fceaeb3a91b1cedda64f07b6b648995a15fbf60be5236ac8038c98bf486a0e9c88a6e56d846f89fa13e3c2a93742dfed8c80c51cd87a77e96595b16faad3882487d3afb0cde73e91b75d46518810c9990239a6a4c76c261c39be05'
                                                                                

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.