Sorrow446 / MOOV-DL

Tool written in Python to download streamable tracks from moov.hk.
29 stars 10 forks source link

Presented this error when running in termux. #3

Closed WellingtonMonteiro closed 3 years ago

WellingtonMonteiro commented 3 years ago

README.md config.json moov-dl.py requirements.txt api ffmpeg moov-dl_tmp $ python moov-dl.py -u https://moov.hk/#/album/VASB00280151A


| | | | | || | | | | | | | | | | | || | | | |||_|___|__|\/ |__/|___|

Signed in successfully.

Album 1 of 1: Europe - Definitive Collection Unavailable in "HR". "LL" will be used instead. Downloading track 1 of 18: The Final Countdown - 16-bit / 44.1 kHz FLAC 100%|██████████████████████████78/78 segments [12:04<00:00] Failed to rip track. Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/mutagen/_util.py", line 251, in _openfile fileobj = open(filename, "rb+" if writable else "rb") FileNotFoundError: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/storage/music/Europe - Definitive Collection/1.flac'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

Sorrow446 commented 3 years ago

Dupe of https://github.com/Sorrow446/MOOV-DL/issues/1. Seems to be a Linux-only issue. The path (pre_path) is used before the tagging with no problems here:

download(file_meta, parsed_meta, pre_path)

But the tagging fails with the exact same path.

write_tags(pre_path, parsed_meta, cov_path)

Will look into this. Is your output_dir option set to default?

Edit: Figured it out. Will push a fix soon. The issue wasn't with mutagen. It was with ffmpeg, but its error level suppressed the error.

Sorrow446 commented 3 years ago

Pushed fix. Please try it.

adrianmejiam commented 3 years ago

Working perfectly .. thanks

WellingtonMonteiro commented 3 years ago

Obrigado pela atenção.