I have been using tvheadend for a few months now and am successfully getting recordings and serving them up to my plex server. I was looking around and was wondering if could get the app to be aware of the movement of files. I found some stuff on inotify but am having trouble figuring out how to use it.
I have recordings go through 2 stages. TVHeadEnd records, Mcebuddy2 removes commercials from the first stage and drops them to another direcotory where filebot then picks them up to rename them properly and drops them to the final directory for plex to index them. I saw that you may be able to use inotify to track the movement of the files so that TVHeadEnd can follow them, so they don't end up in the "File Removed" section of the app. I have setup inotify tools to track files but am not having luck.
In my research, I found a way to let the app know about file moves and name changes using the api but ran into another problem. I can't get past the authorization part even when testing with a blank password. In my testing I have used my superuser hts and still not working. I get this:
<SNIP>
hts@localhost:~$ curl -s http://hts:pass@localhost:9981/api/dvr/entry/grid_upcoming
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Unauthorized</TITLE>
</HEAD><BODY>
<H1>401 Unauthorized</H1>
<P STYLE="text-align: center; margin: 2em"><A HREF="/" STYLE="border: 1px solid; border-radius: 4px; padding: .6em">Default login</A></P><P STYLE="text-align: center; margin: 2em"><A HREF="/login" STYLE="border: 1px solid; border-radius: 4px; padding: .6em">New login</A></P></BODY></HTML>
</SNIP>
I have been looking and can't find what is wrong since this user has full access to everything. Any ideas on what is wrong? I would also appreciate if anyone had any suggestions for using inotify-tools to do this as well.
Thanks.