You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\dev\redsea\redsea.py", line 225, in <module>
main()
File "C:\dev\redsea\redsea.py", line 169, in main
md.download_media(track, preset['quality'], media_info)
File "C:\dev\redsea\redsea\mediadownloader.py", line 177, in download_media
temp_file = self._dl_url(stream_data['url'], track_path)
File "C:\dev\redsea\redsea\mediadownloader.py", line 38, in _dl_url
with open(where, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './music/deadmau5 - Album Title Goes Here \\01 - Superliminal.flac'
I am using the changes from #43 (to support the new URLs)
I have made the following changes in the _sanitise_name method:
def _sanitise_name(self, value):
value = str(value)
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
value = re.sub(r'[^\w\s-]', '', value).strip()
return re.sub(r'[-\s]+', ' ', value)
This "fix" made it worse. Now I cannot download any track with asian filenames. My old version of redsea back in May is still working fine. Please revert the change.
Given this Album url: https://tidal.com/browse/album/17172679
When downloading
The following error is encountered:
I am using the changes from #43 (to support the new URLs)
I have made the following changes in the _sanitise_name method:
My the changes are based on the "slugify" method located in https://github.com/django/django/blob/master/django/utils/text.py
After my changes
The text was updated successfully, but these errors were encountered: