Open CBecker100 opened 4 months ago
Adding --quality=2
seems to work as a workaround.
Ignore my previous comment, I'm getting it too.
max_quality_available = max( (i for i, size in enumerate(info["quality_to_size"]) if size > 0), default=0 )
Am running the project locally, the above does not appear to be a solution (it did not halt propagation and it ended up failing further along) but my python sucks to the point where I can't get a debugger running.
A debug log would help better. And possibly a playlist link if it's public, or better the concrete track that is failing. Does it happen with any playlist/album?
The above commit solved the bug for me, however, if you get a File Not Found and/or Mutagen Error instead after the script tries to remove the temporary artwork files; this is fixable by disabling artwork from being embedded in the config file
Example error traceback:
DEBUG Removing dirs {'C:\\Users\\TimBr\\StreamripDownloads\\Glow Weird Wubs\\__artwork'} artwork.py:19
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ C:\Users\TimBr\Music Curation\streamrip_dev\.venv\Lib\site-packages\mutagen\_util.py:251 in │
│ _openfile │
│ │
│ 248 │ │ │
│ 249 │ │ inmemory_fileobj = False │
│ 250 │ │ try: │
│ > 251 │ │ │ fileobj = open(filename, "rb+" if writable else "rb") │
│ 252 │ │ except IOError as e: │
│ 253 │ │ │ if writable and e.errno == errno.EOPNOTSUPP: │
│ 254 │ │ │ │ # Some file systems (gvfs over fuse) don't support opening │
│ │
│ ┌─────────────────────────────────────────── locals ───────────────────────────────────────────┐ │
│ │ create = False │ │
│ │ filename = 'C:\\Users\\TimBr\\StreamripDownloads\\Glow Weird Wubs\\09. Flume - │ │
│ │ Spring.mp3' │ │
│ │ fileobj = None │ │
│ │ filething = 'C:\\Users\\TimBr\\StreamripDownloads\\Glow Weird Wubs\\09. Flume - │ │
│ │ Spring.mp3' │ │
│ │ inmemory_fileobj = False │ │
│ │ instance = {} │ │
│ │ writable = False │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\TimBr\\StreamripDownloads\\Glow Weird Wubs\\09. Flume - Spring.mp3'
See the commit comments for a more detailed version of this comment
I think you should open a new issue with that, will be more organized
Good point, unfortunately that work around doesn't work properly anyhow. I had not fixed an issue similar to #537 yet so my config file wasn't properly called upon
Regarding the PR #683.
Just accidentaly found a broken track for this use case, as it wasn't provided in this issue,
rip url https://www.deezer.com/track/526311152
And the error is captured but I see the stacktrace at the end which is not a good thing I think.
Just 1 line error would be better, something is missing when capturing that NonStreamableError
.
Cannot test it with other tracks after that one, but I'm pretty sure the execution would crash before downloading other tracks.
⠸ Resolving URLs...[21:34:55] ERROR Error fetching album of track 526311152: DataException: album/68014722 no data
deezer.py:80
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ in _run_module_as_main:198 │
│ in _run_code:88 │
│ │
│ ... 14 frames hidden ... │
│ │
│ d:\01\q\venv\Lib\site-packages\streamrip\client\deezer.py:191 in get_downloadable │
│ │
│ 188 │ │ │
│ 189 │ │ dl_info["url"] = url │
│ 190 │ │ logger.debug("dz track info: %s", track_info) │
│ > 191 │ │ return DeezerDownloadable(self.session, dl_info) │
│ 192 │ │
│ 193 │ def _get_encrypted_file_url( │
│ 194 │ │ self, │
│ │
│ d:\01\q\venv\Lib\site-packages\streamrip\client\downloadable.py:131 in __init__ │
│ │
│ 128 │ │ │ i for i, size in enumerate(info["quality_to_size"]) if size > 0 │
│ 129 │ │ ] │
│ 130 │ │ if len(qualities_available) == 0: │
│ > 131 │ │ │ raise NonStreamableError( │
│ 132 │ │ │ │ "Missing download info. Skipping.", │
│ 133 │ │ │ ) │
│ 134 │ │ max_quality_available = max(qualities_available) │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
NonStreamableError: Missing download info. Skipping.
I hope this finds someone well. I did happen to uncover some of the issues leading up to this main issue. I have done a rather hacky fix based on stuff I found.
ERROR Error fetching album of track 499218282: DataException: album/63443292/tracks no data deezer.py:80
album/63443292
to the url https://www.deezer.com/us/album/63443292
. I noticed deezer redirects to the same album but with a different ID.Nice one, Corey.
That looks like really in depth look at what is happening.
My workaround to this has actually been to remove and then re-add the offending tracks to the playlist on Deezer. It's a bit of a hassle for massive playlists but it's straightforward enough.
On Fri, 20 Sept 2024 at 09:21, Corey Berigan @.***> wrote:
I hope this finds someone well. I did happen to uncover some of the issues leading up to this main issue. I have done a rather hacky fix based on stuff I found.
- I noticed some errors preceding this error in the output like this:
ERROR Error fetching album of track 499218282: DataException: album/63443292/tracks no data deezer.py:80
- So I followed the part album/63443292 to the url https://www.deezer.com/us/album/63443292. I noticed deezer redirects to the same album but with a different ID.
- So I figured this was probably a result of this deezer/spotify playlist converter I used.
- Anyway, from the newly redirected album I added back the tracks that were in my playlist and removed the ones originally created in my playlist.
- This effectively removes the tracks related to the albums getting redirected in deezer from my playlist.
- I re-ran the download and it continues successfully.
- When I hit more of the same errors just keep apply this fix until it completes
— Reply to this email directly, view it on GitHub https://github.com/nathom/streamrip/issues/677#issuecomment-2363005910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGX5JKBL3M2PZYQKGRXYPLZXPEGPAVCNFSM6AAAAABHOJI5Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTGAYDKOJRGA . You are receiving this because you commented.Message ID: @.***>
Describe the bug
The download of my playlist went fine but about 80 tracks in streamrip crashed with this value error.
Command Used
Debug Traceback
Config File
Operating System
Windows 11
streamrip version
2.0.5
Screenshots and recordings
No response
Additional context
No response