Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

anirip fails to create an episode if the title is too long #35

Open
eco9898 opened this issue Sep 14, 2019 · 1 comment
Open

anirip fails to create an episode if the title is too long #35

eco9898 opened this issue Sep 14, 2019 · 1 comment

Comments

@eco9898
Copy link

eco9898 commented Sep 14, 2019

Error message: [anirip] rename C:\Users[XusernameX]\AppData\Local\Temp\anirip\episode.mkv Do You Love Your Mom and Her Two-Hit Multi-Target Attacks\Season One\Do You Love Your Mom and Her Two-Hit Multi-Target Attacks - S01E04 - Kids Are Kids and Parents Are Parents (but Also Human Beings), and It Takes All Kinds, but They Get Through It Together, Right.mkv: The system cannot find the path specified.

I believe this error occurs because the episode title is too long for the file system to handle. If I manually attempt to create the file I get a length error.

Could you please add a check to try to handle this.
eg:
if title.length > X:
title = title.substring(0,x)

Obviously this would need to be done before checking if the file already exists to stop redownloads of renamed files.

Thank you for your time, I love your software

@s32x
Copy link
Owner

s32x commented Sep 16, 2019

This is a really good suggestion. I haven't yet run into this issue but I'll definitely be sure to add a check. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants