Skip to content

[BUG] OSError: [Errno 36] File name too long #856

@Delivator

Description

@Delivator

Describe the bug

Re-open of #712 and #301.

Command Used

streamrip url https://play.qobuz.com/album/v1x9yu6bcd4vc

Debug Traceback

❯ streamrip url https://play.qobuz.com/album/v1x9yu6bcd4vc
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /usr/bin/rip:8 in <module>                                                                       │
│                                                                                                  │
│   5 from streamrip.rip import rip                                                                │
│   6 if __name__ == "__main__":                                                                   │
│   7 │   sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])                         │
│ ❱ 8 │   sys.exit(rip())                                                                          │
│   9                                                                                              │
│                                                                                                  │
│ /usr/lib/python3.13/site-packages/click/core.py:1161 in __call__                                 │
│                                                                                                  │
│                                     ... 11 frames hidden ...                                     │
│                                                                                                  │
│ /usr/lib/python3.13/site-packages/streamrip/media/album.py:86 in resolve                         │
│                                                                                                  │
│    83 │   │   tracklist = get_album_track_ids(self.client.source, resp)                          │
│    84 │   │   folder = self.config.session.downloads.folder                                      │
│    85 │   │   album_folder = self._album_folder(folder, meta)                                    │
│ ❱  86 │   │   os.makedirs(album_folder, exist_ok=True)                                           │
│    87 │   │   embed_cover, _ = await download_artwork(                                           │
│    88 │   │   │   self.client.session,                                                           │
│    89 │   │   │   album_folder,                                                                  │
│ in makedirs:227                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [Errno 36] File name too long: '/home/david/Musik/rip/Bring Me The Horizon/Bring Me The Horizon - Music to listen to~dance to~blaze to~pray to~feed to~sleep to~talk to~grind to~trip to~breathe to~help to~hurt to~scroll to~roll to~love to~hate 
to~learn Too~plot to~play to~be to~feel to~breed to~sweat to~dream to~hide to~live to~die to'

Config File

-/-

Operating System

Linux

streamrip version

2.1.0

Screenshots and recordings

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions