lonsty / xvideos-dl

CLI to download videos from https://xvideos.com | H 片下载ε·₯ε…· 😘
MIT License
248 stars 37 forks source link

[Errno 63] File name too long #120

Open dognk opened 2 years ago

dognk commented 2 years ago

πŸ› Bug Report

[Errno 63] File name too long

πŸ”¬ How To Reproduce

Steps to reproduce the behavior:

  1. xvideos-dl https://www.xvideos.es/profiles/the_best_moments

Code sample

xvideos-dl https://www.xvideos.es/profiles/the_best_moments

Environment

python --version

Screenshots

πŸ“ˆ Expected behavior

πŸ“Ž Additional context

github-actions[bot] commented 2 years ago

Hello @dognk, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

estebandido0 commented 1 year ago

In xvideos_dl.py line 345 change: save_name = save_dir / f"{video_name}(#{video.vid}).mp4" for: save_name = save_dir / f"{video_name[:70]}(#{video.vid}).mp4" and it should work. It uses the first 70 characters if the name is too long. Sorry but im too lazy to fix it myself.