New files don't show up automatically
When Sonarr has finished downloading a new TV episode file, it copies the file into the target folder with a .partial~
extension until the file has been fully copied, and then Sonarr renames it to the proper final filename.
Unfortunately, when the rename happens, Olaris appears to lose track of the renamed file, and it does not trigger a scan. I think when we detect a Rename
operation in fsnotify
, we should trigger a library update of just that folder.
Server debug output follows.
DEBU[28009] Got filesystem notification event. event=WRITE filename="/tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] File is not a valid media file, file won't be indexed. extension=".partial~" filepath="SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] Got filesystem notification event. event=WRITE filename="/tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] File is not a valid media file, file won't be indexed. extension=".partial~" filepath="SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] Got filesystem notification event. event=WRITE filename="/tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] File is not a valid media file, file won't be indexed. extension=".partial~" filepath="SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] Got filesystem notification event. event=CHMOD filename="/tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] File is not a valid media file, file won't be indexed. extension=".partial~" filepath="SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
DEBU[28009] Got filesystem notification event. event=RENAME filename="/tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~"
WARN[28009] Error getting node from filesystem. error="stat /tank/tv/SeriesName/s7/SeriesName.S07E09 - Episode Title.x264.AC3.mkv.partial~: no such file or directory"
Edited by Chris Lee