Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Error when RD returns an empty string link #34

Open
piratsch opened this issue Apr 4, 2023 · 1 comment
Open

Error when RD returns an empty string link #34

piratsch opened this issue Apr 4, 2023 · 1 comment

Comments

@piratsch
Copy link

piratsch commented Apr 4, 2023

Sometimes, when querying the torrents endpoint, real-debrid returns an empty string in the links field

(some fields omitted)

{
  "bytes": 58618853263,
  "host": "real-debrid.com",
  "split": 2000,
  "progress": 100,
  "status": "downloaded",
  "links": [
    "https://real-debrid.com/d/XXXXXXXXX",
    "https://real-debrid.com/d/XXXXXXXXX",
    ""
  ]
}

This causes rclone to throw an error:
ERROR : shows/<name>: Entry doesn't belong in directory "shows/<name>" (too short) - ignoring

Nothing serious, and it doesn't affect the funtionality (at least I haven't noticed).
But it would be nice if this could be caught, or if the links array could be filtered to not include empty strings.

@itsToggle
Copy link
Owner

oh man thats what that is! I noticed this while developing the artificial sorting branch, but didnt know it lead to this error!

Thanks for this 👍

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