Skip to content

Commit

Permalink
fix: support files in rclone root
Browse files Browse the repository at this point in the history
Files can sometimes be sitting in the root of the webdav mount.
This fix updates the symlinker to find those files.
  • Loading branch information
the-eversio authored and dreulavelle committed Oct 1, 2024
1 parent 7aeca0b commit 6ad6d4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/program/symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,9 @@ def get_item_path(item: Union[Movie, Episode]) -> Optional[Path]:
file_path = rclone_path / folder / item.file
if file_path.exists():
return file_path

# Not in a folder? Perhaps it's just sitting in the root.
file = rclone_path / item.file
if file.exists() and file.is_file():
return file
return None

0 comments on commit 6ad6d4d

Please sign in to comment.