<div>I am baffled by what appears to be a totally inconsistent behavior. After a recording I use a user job to convert recordings to mp4 and then add them back into the database. As part of the conversion I use mythlink to create a directory structure for myth upnp. When I delete the file from mythweb I use a system event to find and remove the broken links that were created with mythlink. Perhaps up to 20% of the file deletions fail and even though the database is updated and I no longer show the program in mythweb the actual mp4 files are still on the disk. I set the logs to only show file,extra to see if I could see what is happening. </div>
<div>Looking at the logs it seems like in spite of the fact that the mp4 file is found, the delete function is against the mpg file. </div><div><br></div><div>Can someone help me understand this? </div><div><br></div><div>
<br></div><div><div>MythTV Version : v0.24.1-80-g1de0431</div><div>MythTV Branch : fixes/0.24</div><div>Network Protocol : 63</div><div>Library API : 0.24.20110505-1</div></div><div>One that didn't work:</div>
<div><br></div><div><div>2012-03-21 17:58:50.692 MainServer::ANN Monitor</div><div>2012-03-21 17:58:50.716 adding: dgsws as a client (events: 2)</div><div>2012-03-21 17:58:50.761 MainServer::ANN Monitor</div><div>2012-03-21 17:58:50.791 adding: dgsws as a client (events: 2)</div>
<div>2012-03-21 17:58:50.841 MythSystemEventHandler: SubstituteMatches: BEFORE: /usr/sbin/stale_links.sh</div><div>2012-03-21 17:58:50.879 SG(Default): FindRecordingFile: Searching for '1041_20120321165100.mp4'</div>
<div>2012-03-21 17:58:50.908 SG(Default): FindRecordingDir: Checking '/tv' for '/tv/1041_20120321165100.mp4'</div><div>2012-03-21 17:58:50.933 SG(Default): FindRecordingFile: Found '/tv/1041_20120321165100.mp4'</div>
<div>2012-03-21 17:58:50.958 ProgramInfo(1041_20120321165100.mp4): GetPlaybackURL: File is local: '/tv/1041_20120321165100.mp4'</div><div>2012-03-21 17:58:50.983 MythSystemEventHandler: SubstituteMatches: AFTER : /usr/sbin/stale_links.sh</div>
<div>2012-03-21 17:58:51.008 Launching: /usr/sbin/stale_links.sh</div><div>2012-03-21 17:58:51.038 PID 22564: launched</div><div>2012-03-21 17:58:53.848 About to delete file: /tv/1041_20120321165100.mpg</div><div>2012-03-21 17:58:56.077 About to delete file: /tv/1041_20120321165100.mpg.-1.100x56.png</div>
<div>2012-03-21 17:58:56.107 About to delete file: /tv/1041_20120321165100.mpg.png</div></div><div><br></div><div><br></div><div>And One that did:</div><div><br></div><div><div>2012-03-21 18:07:12.644 MythSystemEventHandler: SubstituteMatches: BEFORE: /usr/sbin/stale_links.sh</div>
<div>2012-03-21 18:07:12.671 SG(Default): FindRecordingFile: Searching for '1041_20120304080000.mp4'</div><div>2012-03-21 18:07:12.716 SG(Default): FindRecordingDir: Checking '/tv' for '/tv/1041_20120304080000.mp4'</div>
<div>2012-03-21 18:07:12.741 SG(Default): FindRecordingDir: Checking '/tv/Shows/_Series_' for '/tv/Shows/_Series_/1041_20120304080000.mp4'</div><div>2012-03-21 18:07:12.766 SG(Default): FindRecordingFile: Found '/tv/Shows/_Series_/1041_20120304080000.mp4'</div>
<div>2012-03-21 18:07:12.792 ProgramInfo(1041_20120304080000.mp4): GetPlaybackURL: File is local: '/tv/Shows/_Series_/1041_20120304080000.mp4'</div><div>2012-03-21 18:07:12.825 MythSystemEventHandler: SubstituteMatches: AFTER : /usr/sbin/stale_links.sh</div>
<div>2012-03-21 18:07:12.850 Launching: /usr/sbin/stale_links.sh</div><div>2012-03-21 18:07:12.886 PID 22697: launched</div><div>2012-03-21 18:07:15.652 About to delete file: /tv/Shows/_Series_/1041_20120304080000.mp4</div>
<div>2012-03-21 18:07:18.486 About to delete file: /tv/Shows/_Series_/1041_20120304080000.mp4.-1.100x56.png</div><div>2012-03-21 18:07:18.517 About to delete file: /tv/Shows/_Series_/1041_20120304080000.mp4.png</div><div>
<br></div></div><div><br></div>